using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Abp.Domain.Entities; namespace IwbZero.Authorization.Users { [Table("Sys_UserLogins")] public class UserLogin : Entity { /// /// Maximum length of property. /// public const int MaxLoginProviderLength = 128; /// /// Maximum length of property. /// public const int MaxProviderKeyLength = 256; //public virtual int? TenantId { get; set; } /// /// Id of the User. /// public virtual long UserId { get; set; } /// /// Login Provider. /// [Required] [MaxLength(MaxLoginProviderLength)] public virtual string LoginProvider { get; set; } /// /// Key in the . /// [Required] [MaxLength(MaxProviderKeyLength)] public virtual string ProviderKey { get; set; } public UserLogin() { } public UserLogin(long userId, string loginProvider, string providerKey) { UserId = userId; LoginProvider = loginProvider; ProviderKey = providerKey; } } }