예제 #1
0
        /// <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);
        }
예제 #2
0
 public CustomKeyConvention()
 {
     Properties()
     .Configure(config => config.HasColumnName(DB.GetColumnName(config.ClrPropertyInfo.Name)));
 }