Skip to content

Commit

Permalink
Update version number, readme and release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Mar 21, 2024
1 parent bc0dcb1 commit 06fe886
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
</PropertyGroup>

<PropertyGroup Label="Common assembly attributes">
<Version>8.1.0</Version>
<FileVersion>8.1.0</FileVersion>
<AssemblyVersion>8.1.0</AssemblyVersion>
<Version>8.1.1</Version>
<FileVersion>8.1.1</FileVersion>
<AssemblyVersion>8.1.1</AssemblyVersion>
<Authors>Giorgi Dalakishvili</Authors>
<Copyright>Copyright (c) 2018 - 2024 Giorgi Dalakishvili</Copyright>
<IsTrimmable>true</IsTrimmable>
Expand All @@ -21,7 +21,7 @@
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseFile>License.md</PackageLicenseFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageReleaseNotes>Add ConstraintName and ConstraintProperties to UniqueConstraintException</PackageReleaseNotes>
<PackageReleaseNotes>Add ConstraintName and ConstraintProperties to UniqueConstraintException and ReferenceConstraintException</PackageReleaseNotes>

<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild Condition="'$(Configuration)'=='Release'">True</ContinuousIntegrationBuild>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ EntityFramework.Exceptions simplifies this by handling all the database specific
to do is to configure `DbContext` by calling `UseExceptionProcessor` and handle the exception(s) such as `UniqueConstraintException`,
`CannotInsertNullException`, `MaxLengthExceededException`, `NumericOverflowException`, `ReferenceConstraintException` you need.

In case of `UniqueConstraintException` you can get the name of the associated constraint with **`ConstraintName`** property. The **`ConstraintProperties`** will contain the properties that are part of the constraint.
In case of `UniqueConstraintException` and `ReferenceConstraintException` you can get the name of the associated constraint with **`ConstraintName`** property. The **`ConstraintProperties`** will contain the properties that are part of the constraint.

> [!WARNING]
> `ConstraintName` and `ConstraintProperties` will be populated only if the index is defined in the Entity Framework Model. These properties will not be populated if the index exists in the database but isn't part of the model or if the index is added with [MigrationBuilder.Sql](https://learn.microsoft.com/en-us/dotnet/api/microsoft.entityframeworkcore.migrations.migrationbuilder.sql?view=efcore-8.0) method.
Expand Down

0 comments on commit 06fe886

Please sign in to comment.