/// <summary> /// 获取列表 ///</summary> /// <param name="db">数据库上下文</param> /// <returns>数据列表</returns> public IQueryable <App.Models.SysSample> GetList(App.Models.DB db) { IQueryable <SysSample> list = db.SysSample.AsQueryable(); return(list); }
public CustomKeyConvention() { Properties() .Configure(config => config.HasColumnName(DB.GetColumnName(config.ClrPropertyInfo.Name))); }