示例#1
0
        public IQueryable <ItemEntity> Post(ItemModel item)
        {
            var entity = new ItemEntity {
                Name        = item.Name,
                Description = item.Description,
                IsVisible   = item.IsVisible
            };

            _dbContext.Items.Add(entity);
            _dbContext.SaveChanges();


            return(_dbContext.Set <ItemEntity>());
        }