Example #1
0
        public async Task <EThorTestEntity> UpdateAsync(EThorTestEntity entity)
        {
            var result = _db.TestEntities.Update(entity).Entity;

            await _db.SaveChangesAsync();

            return(result);
        }
Example #2
0
 public EntityModel(EThorTestEntity entity)
 {
     _entity = entity;
 }
Example #3
0
 public EntityModel()
 {
     _entity = new EThorTestEntity();
 }