update packages

This commit is contained in:
2021-08-05 14:57:55 +02:00
parent 4576d2b6a6
commit 03aff8a007
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -109,7 +109,7 @@ namespace zero.Core.Extensions
bool any = await session.Advanced.AsyncDocumentQuery<T>()
.WhereNotEquals(nameof(ZeroIdEntity.Id), entity.Id)
.WhereEquals(context.Rule.PropertyName.ToPascalCaseId(), value)
.WhereEquals(context.PropertyName.ToPascalCaseId(), value)
.AnyAsync(cancellation);
return !any;
@@ -128,7 +128,7 @@ namespace zero.Core.Extensions
return await session.Advanced.AsyncDocumentQuery<T>()
.WhereNotEquals(nameof(ZeroIdEntity.Id), entity.Id)
.WhereEquals(context.Rule.PropertyName.ToPascalCaseId(), expectedValue)
.WhereEquals(context.PropertyName.ToPascalCaseId(), expectedValue)
.AnyAsync(cancellation);
}).WithMessage("@errors.forms.not_unique_alone");
}