Exemplo n.º 1
0
 /// <summary>
 /// 开启事务
 /// </summary>
 /// <returns></returns>
 public static IBoundedContext Create(UnitOfWorkOptions options)
 {
     return(new BoundedContext(options));
 }
Exemplo n.º 2
0
 private BoundedContext(UnitOfWorkOptions options)
 {
     getInstance = () => CFAspect.Resolve <IUnitOfWork>(options);
 }
Exemplo n.º 3
0
 public UnitOfWorkBase(UnitOfWorkOptions options)
 {
     dbQuery = CFAspect.Resolve <IDBQuery>(options.ConnectionName);
 }