摘要:
using System;using System.Data;using System.Data.Common;using System.Configuration;using System.Text;using System.Collections.Generic;using System.Dat 阅读全文
posted @ 2016-02-29 11:15
MaoSan-Jerry
阅读(686)
评论(0)
推荐(0)
摘要:
获取接口的方法 public static T GetProvider<T>() { using (var kernal = new StandardKernel(new BusinessBinding())) { var provider = kernal.Get<T>(); return pro 阅读全文
posted @ 2016-02-29 11:12
MaoSan-Jerry
阅读(493)
评论(0)
推荐(0)
摘要:
比如数据库里存的是数字,从枚举中获取相应的文字描述 公共方法 public static string GetEnumDesc<T>(T Enumtype) { if (Enumtype == null) throw new ArgumentNullException("Enumtype"); if 阅读全文
posted @ 2016-02-29 11:05
MaoSan-Jerry
阅读(289)
评论(0)
推荐(0)
摘要:
写在model里,实体类里。 public string FirstName{get{return string.IsNullOrEmpty(this.Name) ? "" : Net.Sourceforge.Pinyin4j.PinyinHelper.ToHanyuPinyinString(thi 阅读全文
posted @ 2016-02-29 10:39
MaoSan-Jerry
阅读(265)
评论(0)
推荐(0)

浙公网安备 33010602011771号