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