public void updateSchema() { using (ClassLibrary1Context dbContext = new ClassLibrary1Context()) { dbContext.UpdateSchema(); } }
public void insert() { using (ClassLibrary1Context fluentContext = new ClassLibrary1Context()) { object product = fluentContext.CreateInstance("FluentModel.Product"); object category = fluentContext.CreateInstance("FluentModel.Category"); fluentContext.Add(product); fluentContext.Add(category); fluentContext.SaveChanges(); } }