Skip to content

Commit

Permalink
Merge pull request #1831 from hyzx86/UpdateZeroDb
Browse files Browse the repository at this point in the history
ZeroDb 增加自定义异常,方便在外部捕获
  • Loading branch information
2881099 authored Jun 24, 2024
2 parents c9a311d + 70400d5 commit 46cedf6
Show file tree
Hide file tree
Showing 6 changed files with 1,511 additions and 1,427 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</PropertyGroup>

<ItemGroup>
<None Include="../../readme.md" Pack="true" PackagePath="\"/>
<None Include="../../readme.md" Pack="true" PackagePath="\" />
<None Include="../../logo.png" Pack="true" PackagePath="\" />
</ItemGroup>

Expand All @@ -39,5 +39,5 @@
<ItemGroup>
<ProjectReference Include="..\..\FreeSql\FreeSql.csproj" />
</ItemGroup>

</Project>
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) { }
}
}
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;
}
}
Loading

0 comments on commit 46cedf6

Please sign in to comment.