mirror of
				https://github.com/nsnail/FreeSql.git
				synced 2025-11-04 17:20:49 +08:00 
			
		
		
		
	增加 UnitOfWorkManager 类管理工作单元,移除 FreeSql.UnitOfWork.Current 静态属性;
This commit is contained in:
		@@ -5,6 +5,9 @@ using System.Data.Common;
 | 
			
		||||
 | 
			
		||||
namespace FreeSql
 | 
			
		||||
{
 | 
			
		||||
    /// <summary>
 | 
			
		||||
    /// 工作单元
 | 
			
		||||
    /// </summary>
 | 
			
		||||
    public interface IUnitOfWork : IDisposable
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
@@ -40,7 +43,7 @@ namespace FreeSql
 | 
			
		||||
        void Open();
 | 
			
		||||
 | 
			
		||||
        /// <summary>
 | 
			
		||||
        /// 此工作单元内的实体变化跟踪
 | 
			
		||||
        /// 工作单元内的实体变化跟踪
 | 
			
		||||
        /// </summary>
 | 
			
		||||
        DbContext.EntityChangeReport EntityChangeReport { get; }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user