예제 #1
0
        /// <summary>
        /// 保存数据
        /// </summary>
        /// <returns></returns>
        public async Task SaveAsync()
        {
            _db.Configuration.ValidateOnSaveEnabled = false;
            await _db.SaveChangesAsync();

            _db.Configuration.ValidateOnSaveEnabled = true;
        }