mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
ZeroDb 增加自定义异常,方便在外部捕获
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user