Friendlier ToString

This commit is contained in:
Hao Kung 2015-06-08 14:32:39 -07:00
parent d8b3cf238e
commit 4e5bba35da
2 changed files with 18 additions and 0 deletions

View File

@ -71,5 +71,14 @@ namespace Microsoft.AspNet.Identity.EntityFramework
/// A random value that should change whenever a role is persisted to the store
/// </summary>
public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
/// <summary>
/// Returns a friendly name
/// </summary>
/// <returns></returns>
public override string ToString()
{
return Name;
}
}
}

View File

@ -103,5 +103,14 @@ namespace Microsoft.AspNet.Identity.EntityFramework
/// Navigation property for users logins
/// </summary>
public virtual ICollection<IdentityUserLogin<TKey>> Logins { get; } = new List<IdentityUserLogin<TKey>>();
/// <summary>
/// Returns a friendly name
/// </summary>
/// <returns></returns>
public override string ToString()
{
return UserName;
}
}
}