-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1831 from hyzx86/UpdateZeroDb
ZeroDb 增加自定义异常,方便在外部捕获
- Loading branch information
Showing
6 changed files
with
1,511 additions
and
1,427 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Extensions/FreeSql.Extensions.ZeroEntity/Models/SchemaValidationException.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using System; | ||
|
||
namespace FreeSql.Extensions.ZeroEntity.Models | ||
{ | ||
public class SchemaValidationException : Exception | ||
{ | ||
public SchemaValidationException(string message) : base(message) { } | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
Extensions/FreeSql.Extensions.ZeroEntity/Models/SchemaValidationResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace FreeSql.Extensions.ZeroEntity.Models | ||
{ | ||
public class SchemaValidationResult | ||
{ | ||
public readonly static SchemaValidationResult _schemaValidationResult = new SchemaValidationResult(); | ||
|
||
public static SchemaValidationResult SuccessedResult => _schemaValidationResult; | ||
|
||
public SchemaValidationResult(string errorMessage) | ||
{ | ||
ErrorMessage = errorMessage; | ||
} | ||
|
||
public string ErrorMessage { get; set; } | ||
public bool Succeeded { get; set; } = false; | ||
} | ||
} |
Oops, something went wrong.