- I have one class in c# which contains the referral Property. like below - class Abc { public string referral {get;set;} } 
- When I will use migration I will be generated as a column in the table (in SQL). 
- I want the value of that filed to be unique in the whole system.
- And the length should be 20 without any space.
Note: I am adding value from UI to value should be known to me It shouldn't any random string.
Is there any way to do that?
 
     
     
     
     
    