public UnitOfWorlImpl(UowType type) { Type = type; UnitOfWorks.Value.Push(this); }
public UowInfo(IUnitOfWork uow, UowType type, bool isNotSupported) { this.Uow = uow; this.Type = type; this.IsNotSupported = isNotSupported; }
/// <summary> /// 开启一个工作单元 /// </summary> /// <param name="type"></param> /// <returns></returns> public static IUnitOfWork Begin(UowType type) { var work = new UnitOfWorlImpl(type); return(work); }