예제 #1
0
파일: Program.cs 프로젝트: DVDPT/ASI
        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();
        }
예제 #2
0
 public ManagementCenterProductMapper(ManagementCenterContext ctx)
 {
     _ctx = ctx;
 }
예제 #3
0
 public ManagementCenterCustomerMapper(ManagementCenterContext ctx)
 {
     _ctx = ctx;
 }