You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Framework/Connected.Security/Membership/IMembership.cs

22 lines
558 B

2 years ago
using Connected.Data;
namespace Connected.Security.Membership;
/// <summary>
/// Represents a user's membership.
/// </summary>
/// <remarks>
/// <see cref="Identity.IUser"/> can belong to one or more <see cref="Identity.IRole"/>. This relations is defined via <see cref="IMembership"/>.
/// </remarks>
public interface IMembership : IPrimaryKey<int>
{
/// <summary>
/// The id of the <see cref="Identity.IUser"/>.
/// </summary>
int User { get; }
/// <summary>
/// The id of the <see cref="Identity.IRole"/>.
/// </summary>
int Role { get; }
}