public DBContextBase(App.IDatabase database) : base(database.Configuration.ConnectionString) { this.database = database; ((IObjectContextAdapter)this).ObjectContext.ObjectMaterialized += new ObjectMaterializedEventHandler(ObjectContext_ObjectMaterialized); }
private void assign(ILogin login) { this.login = login; this.database = login.Database; }