All you documentation says you should use Unique = true for a unique index, e.g. [Index("FirstName", "LastName", Unique = true)]

however Unique does not exist, it appears it is "IsUnique = true".

Searching i cannot find any use of Unique = true or IsUnique = true in the samples or test, does this work ?

Tony Steele NeighbourNet Ltd

This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by Anonymous.

asked Jul 18 '09 at 11:37

Editor's gravatar image


Thanks, to be fixed.

(Jul 18 '09 at 11:37) Alex Yakunin Alex%20Yakunin's gravatar image

Actually, some samples in Wiki utilize outdated syntax, since recently we've updated our mapping attributes to make them more usable.

(Jul 18 '09 at 11:37) Alex Yakunin Alex%20Yakunin's gravatar image
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA