Beispiel #1
0
    /// <summary>
    /// 开启工作单元事务
    /// </summary>
    /// <param name="level">事务等级</param>
    /// <returns></returns>
    public static IUnitOfWork Begin(IsolationLevel?level)
    {
        var uow = Orm.CreateUnitOfWork();

        uow.IsolationLevel = level;
        return(uow);
    }