Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class UserModel {
  2.  
  3. [MongoIndex(IndexName = nameof(UserId), IndexType = IndexType.Ascending)]
  4. public System.Guid UserId {get;set;}
  5.  
  6. [MongoIndex(IndexName = nameof(Firstname), IndexType = IndexType.Text)]
  7. public string Firstname {get;set;}
  8.  
  9. [MongoIndex(IndexName = nameof(Surname), IndexType = IndexType.Text)]
  10. public string Surname {get;set;}
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement