예제 #1
0
        public void SaveTest()
        {
            //var tenant = new Tenant
            //{
            //    FirstName = "Joe",
            //    Surname = "Blog",
            //    IsActive = true
            //};

            using (var context = new RentalContext())
            {
                //context.Tenant.Add(tenant);
                //context.Entry(tenant).State = EntityState.Added;
                //context.SaveChanges();

                var test = context.Tenants.ToList();
                var x    = 1;
            }
        }
예제 #2
0
        public void SaveTest()
        {
            //var tenant = new Tenant
            //{
            //    FirstName = "Joe",
            //    Surname = "Blog",
            //    IsActive = true
            //};

            using (var context = new RentalContext())
            {
                //context.Tenant.Add(tenant);
                //context.Entry(tenant).State = EntityState.Added;
                //context.SaveChanges();

                var test = context.Tenants.ToList();
                var x = 1;

            }
        }
예제 #3
0
 public TransactionRepository(RentalContext context)
 {
     _context = context;
 }
예제 #4
0
 public TransactionRepository(RentalContext context)
 {
     _context = context;
 }