Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.ComponentModel.DataAnnotations
- Imports Microsoft.AspNet.Identity.EntityFramework
- Imports System.ComponentModel
- Imports System.Collections.Generic
- Public Class User
- Inherits IdentityUser(Of Integer, UserLogin, UserRole, UserClaim)
- <Display(Name:="Display Name")>
- Public Property Displayname As String
- Public Property DateTimeCreated As DateTime
- Public Property DateTimeLastLoggedIn As DateTime
- Public Property isActive As UserStatus
- <Display(Name:="Mobile Phone")>
- Public Property MobilePhone As String
- Public Property logoffredirecturl As String
- Public Overridable Property BEMUserRoles As ICollection(Of BEMUserRole) = New HashSet(Of BEMUserRole)
- End Class
- Public Enum UserStatus
- <Description("Active")>
- Active = 0
- <Description("Inactive")>
- Inactive = 10
- End Enum
- Public Class UserLogin
- Inherits IdentityUserLogin(Of Integer)
- End Class
- Public Class UserRole
- Inherits IdentityUserRole(Of Integer)
- End Class
- Public Class UserClaim
- Inherits IdentityUserClaim(Of Integer)
- End Class
- Public Class UserIdentityRole
- Inherits IdentityRole(Of Integer, UserRole)
- End Class
Advertisement
Add Comment
Please, Sign In to add comment