摘要:
using System;using System.Data;using System.Data.Common;using System.Configuration;using System.Text;using System.Collections.Generic;using System.Dat 阅读全文
摘要:
获取接口的方法 public static T GetProvider<T>() { using (var kernal = new StandardKernel(new BusinessBinding())) { var provider = kernal.Get<T>(); return pro 阅读全文
摘要:
比如数据库里存的是数字,从枚举中获取相应的文字描述 公共方法 public static string GetEnumDesc<T>(T Enumtype) { if (Enumtype == null) throw new ArgumentNullException("Enumtype"); if 阅读全文
摘要:
写在model里,实体类里。 public string FirstName{get{return string.IsNullOrEmpty(this.Name) ? "" : Net.Sourceforge.Pinyin4j.PinyinHelper.ToHanyuPinyinString(thi 阅读全文