Пример #1
0
 /// <summary>
 /// 注册EntityFramework实体配置
 /// </summary>
 /// <param name="config"></param>
 /// <returns></returns>
 public static CFConfig RegisterEFRepository(this CFConfig config)
 {
     foreach (ConnectionStringSettings cnStr in ConfigurationManager.ConnectionStrings)
     {
         DynamicContext.GetCompiledModel(cnStr.Name);
     }
     return(config);
 }