static void Main(string[] args) { var p = new ManagementCenterContext(); var csss = p.Customer.ToList(); var xpto = p.Product.First(); OrdersCenterContext c; var a = new OrdersCenterProductMapper(c = new OrdersCenterContext()); var prod2 = c.Product.First(e => e.Id == 1); var cc = c.Customer.First(); var prod = a.Get(1); var x = a.Query().ToList(); var aa = prod; prod.AvailableAmount = 123321; a.Update(prod); c.SaveChanges(); }
public ManagementCenterProductMapper(ManagementCenterContext ctx) { _ctx = ctx; }
public ManagementCenterCustomerMapper(ManagementCenterContext ctx) { _ctx = ctx; }