摘要: /// <summary> /// decimal 转换中文大写 /// </summary> /// <param name="val"></param> /// <returns></returns> public static string ToRMB(this decimal val) { 阅读全文
posted @ 2021-08-26 16:53 87de海雷 阅读(102) 评论(0) 推荐(0)
摘要: public static string ToUrlParams(this object obj) { return string.Join("&", obj.GetType().GetProperties().Where(x => x.GetValue(obj)!= null).Select(x 阅读全文
posted @ 2021-08-26 15:48 87de海雷 阅读(395) 评论(0) 推荐(1)
摘要: 打开 nuget管理器 搜索 PinYinConverterCore 安装 public static class Helper {public static string ToPinYin(this string val, bool first = false) { return string.J 阅读全文
posted @ 2021-08-26 15:18 87de海雷 阅读(747) 评论(0) 推荐(1)
摘要: public static T MapTo<T>(this object obj) { return new MapperConfiguration(x => x.CreateMap(obj.GetType(), typeof(T))).CreateMapper().Map<T>(obj); } 阅读全文
posted @ 2021-08-26 09:36 87de海雷 阅读(134) 评论(0) 推荐(0)