Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class UserModel {
- [MongoIndex(IndexName = nameof(UserId), IndexType = IndexType.Ascending)]
- public System.Guid UserId {get;set;}
- [MongoIndex(IndexName = nameof(Firstname), IndexType = IndexType.Text)]
- public string Firstname {get;set;}
- [MongoIndex(IndexName = nameof(Surname), IndexType = IndexType.Text)]
- public string Surname {get;set;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement