protected override void Seed(Core.Data.StockContext context) { // This method will be called after migrating to the latest version. // You can use the DbSet<T>.AddOrUpdate() helper extension method // to avoid creating duplicate seed data. }
public UnitOfWork(StockContext context) { DatabaseContext = context; }