-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement database duplication #671
Conversation
if (await Context.MixDatabase.AnyAsync(p => p.SystemName == SystemName, cancellationToken)) | ||
{ | ||
IsValid = false; | ||
Errors.Add(new ValidationResult("Database Existed")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@truongtphat Only invalid when different Id but the same name or the update function will not work
await Context.MixDatabase.AnyAsync(p => p.Id != this.Id && p.SystemName == SystemName, cancellationToken)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to remove this first and find another solution to validate this view model
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nhathoang989 updated.
No description provided.