mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	- 修复 新功能 BeginEdit bug;#397
This commit is contained in:
		@@ -545,7 +545,7 @@ namespace FreeSql
 | 
			
		||||
        /// <param name="data"></param>
 | 
			
		||||
        public void BeginEdit(List<TEntity> data)
 | 
			
		||||
        {
 | 
			
		||||
            if (data == null || data.Any() == false) return;
 | 
			
		||||
            if (data == null) return;
 | 
			
		||||
            if (_table.Primarys.Any() == false) throw new Exception($"不可进行编辑,实体没有主键:{_db.OrmOriginal.GetEntityString(_entityType, data.First())}");
 | 
			
		||||
            _statesEditing.Clear();
 | 
			
		||||
            _dataEditing = data;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user