Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
DotNetNext committed Aug 31, 2017
1 parent 89c6361 commit 5e2b3a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Src/Asp.Net/SqlSugar/Abstract/AdoProvider/AdoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ public DbResult<bool> UseTran(Action action)
}
catch (Exception ex)
{
result.Exception = ex;
result.Messaage = ex.Message;
result.ErrorException = ex;
result.ErrorMessage = ex.Message;
result.IsSuccess = false;
this.RollbackTran();
}
Expand All @@ -178,8 +178,8 @@ public DbResult<T> UseTran<T>(Func<T> action)
}
catch (Exception ex)
{
result.Exception = ex;
result.Messaage = ex.Message;
result.ErrorException = ex;
result.ErrorMessage = ex.Message;
result.IsSuccess = false;
this.RollbackTran();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public virtual void InitTables(Type entityType)
{
Execute(entityType);
});
Check.Exception(!executeResult.IsSuccess, executeResult.Messaage);
Check.Exception(!executeResult.IsSuccess, executeResult.ErrorMessage);
}
public virtual void InitTables(Type[] entityTypes)
{
Expand Down

0 comments on commit 5e2b3a4

Please sign in to comment.