Skip to content
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

Create unique validator field #28

Open
OlegoO opened this issue Aug 31, 2017 · 0 comments
Open

Create unique validator field #28

OlegoO opened this issue Aug 31, 2017 · 0 comments

Comments

@OlegoO
Copy link
Contributor

OlegoO commented Aug 31, 2017

@Woland2k commented on Thu Jul 20 2017

In order to allow unique field type of validation, create a new fields in PropertyValue named "ShortTextUniqueValue" and "IntegerUniqueValue" (unique will only be available for short and integer value fields).

Then create the following type of constraints:

CREATE UNIQUE NONCLUSTERED INDEX idx_shorttextuniquevalue_notnull
ON PropertyValue(ShortTextUniqueValue)
WHERE ShortTextUniqueValue IS NOT NULL;


@OlegoO commented on Thu Aug 31 2017

  1. Display [Is Unique] checkbox [UI]
  2. Add new column ShortTextUniqueValue, IntegerUniqueValue into persistent model
  3. Add Database constrain into repository
  4. Update model mapping (Domain to Persistent, Persistent to Domain)
  5. Display validation error on save if error is occurred
@OlegoO OlegoO added this to the Operations milestone Aug 31, 2017
@OlegoO OlegoO modified the milestones: Product Backlog, Operations Sep 7, 2017
@t13ka t13ka removed this from the Product Backlog milestone Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants