public Storage() { this.StorageContext = new StorageContext(Storage.ConnectionString, Storage.Assemblies); this.StorageContext.Database.EnsureCreated(); }
public void SetStorageContext(IStorageContext dbContext) { this.dbContext = dbContext as StorageContext; this.dbSet = this.dbContext.Set <TEntity>(); }