public void UpdateUserEntity()
        {
            var ctx        = new EconomicsArcadeDbContext(ConnString);
            var userEntity = ctx.Users.Find(1);

            userEntity.UpdateDateTime = DateTime.Now;
            ctx.SaveChanges();
            //ctx.UserEntitySet.
        }
        public void CreateUserEntity()
        {
            var entity = new UserEntity
            {
                Email          = "*****@*****.**",
                CreateDateTime = DateTime.Now
            };
            var ctx = new EconomicsArcadeDbContext(ConnString);

            ctx.Users.Add(entity);
            ctx.SaveChanges();
            //ctx.UserEntitySet.
        }
Esempio n. 3
0
 public GetAllCountersQuery(EconomicsArcadeDbContext dbContext)
     : base(dbContext)
 {
 }
 public GetUsersBySearchStringQuery(EconomicsArcadeDbContext dbContext)
     : base(dbContext)
 {
 }
 public GetUserByNameQuery(EconomicsArcadeDbContext dbContext)
     : base(dbContext)
 {
 }
Esempio n. 6
0
 public GetAllCustomRuleQuery(EconomicsArcadeDbContext dbContext)
     : base(dbContext)
 {
 }
Esempio n. 7
0
 public GetAllFundsDriversQuery(EconomicsArcadeDbContext dbContext)
     : base(dbContext)
 {
 }