Friendlier ToString
This commit is contained in:
parent
d8b3cf238e
commit
4e5bba35da
|
|
@ -71,5 +71,14 @@ namespace Microsoft.AspNet.Identity.EntityFramework
|
||||||
/// A random value that should change whenever a role is persisted to the store
|
/// A random value that should change whenever a role is persisted to the store
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
|
public virtual string ConcurrencyStamp { get; set; } = Guid.NewGuid().ToString();
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns a friendly name
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return Name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -103,5 +103,14 @@ namespace Microsoft.AspNet.Identity.EntityFramework
|
||||||
/// Navigation property for users logins
|
/// Navigation property for users logins
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual ICollection<IdentityUserLogin<TKey>> Logins { get; } = new List<IdentityUserLogin<TKey>>();
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue