Esempio n. 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);
 }
Esempio n. 2
0
 public DataAccessService(EntityApp app, EntityCache sharedCache = null) {
   _app = app;
   _events = new DataSourceEvents(this);
   app.RegisterService<IDataAccessService>(this); 
 }