从默认的identityUser元数据文件(asp.net核心)中删除未使用的列

时间:2019-03-08 01:46:54

标签: c#

public class IdentityUser<TKey> where TKey : IEquatable<TKey>
{
  public IdentityUser();
  public IdentityUser(string userName);
  public virtual DateTimeOffset? LockoutEnd { get; set; }  
  public virtual bool TwoFactorEnabled { get; set;}
  public virtual bool PhoneNumberConfirmed { get; set; }
  public virtual string PhoneNumber { get; set; }
  public virtual string ConcurrencyStamp { get; set; }
  public virtual string SecurityStamp { get; set; }
  public virtual string PasswordHash { get; set; }
  public virtual bool EmailConfirmed { get; set; }
  public virtual string NormalizedEmail { get; set; }
  public virtual string Email { get; set; }
  public virtual string NormalizedUserName { get; set; }
  public virtual string UserName { get; set; }
  public virtual TKey Id { get; set; }
  public virtual bool LockoutEnabled { get; set; }
  public virtual int AccessFailedCount { get; set; }
  public override string ToString();
}

这是用户默认的身份元数据文件,我可以删除一些未使用的文件 宣言。这是因为我想从aspnetusers中抛出concurrencystamp和NormalizedUserName列。

0 个答案:

没有答案