username@email.com
2023-09-18 ad4a0e39c5d95c9c64096f4851a90a584b2b3b26
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CY.Infrastructure.Domain;
 
namespace CY.IBaseDAL
{
    /// <summary>
    /// 表示所有集成于该接口的类型都是Unit Of Work的一种实现。
    /// </summary>
    public interface IUnitOfWork
    {
        void RegisterAmended(IAggregateRoot entity, ICommonDAL unitofWorkRepository);
        void RegisterNew(IAggregateRoot entity, ICommonDAL unitofWorkRepository);
        void RegisterRemoved(IAggregateRoot entity, ICommonDAL unitofWorkRepository);
        bool Commit();
    }
}