Пример #1
0
 public DataSource(string name, Database database, CacheSettings cacheSettings = null)
 {
     Database = database;
     App      = Database.DbModel.EntityApp;
     Name     = database.Settings.DataSourceName;
     if (cacheSettings != null && cacheSettings.HasTypes())
     {
         Cache = new EntityCache(App, cacheSettings, this.Database);
     }
 }