Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ApplicationUser : IdentityUser
- {
- public Person PersonInfo { get; set; }
- public async Task<ClaimsIdentity> GenerateUserIdentityAsync(UserManager<ApplicationUser> manager)
- {
- // Note the authenticationType must match the one defined in CookieAuthenticationOptions.AuthenticationType
- var userIdentity = await manager.CreateIdentityAsync(this, DefaultAuthenticationTypes.ApplicationCookie);
- // Add custom user claims here
- return userIdentity;
- }
- }
- public class Person
- {
- public int Id { get; set; }
- [MaxLength(128)]
- [Required]
- public string AspNetUserID { get; set; }
- [MaxLength(25)]
- public string FirstName { get; set; }
- [MaxLength(25)]
- public string LastName { get; set; }
- public string Company { get; set; }
- public string OfficePhone { get; set; }
- public string CellPhone { get; set; }
- public DateTime? EffectiveDate { get; set; }
- public DateTime? TerminationDate { get; set; }
- [MaxLength(50)]
- public string Address1 { get; set; }
- [MaxLength(50)]
- public string Address2 { get; set; }
- [MaxLength(25)]
- public string City { get; set; }
- [MaxLength(2)]
- public string State { get; set; }
- [MaxLength(10)]
- public string Zip { get; set; }
- [MaxLength(1)]
- public string Status { get; set; }
- public ICollection<ApplicationUser> AspNetUsers { get; set; }
- }
Add Comment
Please, Sign In to add comment