示例#1
0
        public virtual T Add(T entity)
        {
            var newEntity = _vsShopperContext.Set <T>().Add(entity);

            _vsShopperContext.SaveChanges();
            return(newEntity.Entity);
        }