Class UserRole
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
[MultipleUnique(new string[] { "UserID", "RoleID" })]
public class UserRole : BaseEntity, IUserRole, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IUserRole>
Constructors
UserRole()
Declaration
Properties
RoleID
[Key] Links to IRole. The Role you want to provide access to the user.
Declaration
[RequiredNoDefaultIDValidation]
public Guid RoleID { get; set; }
Property Value
RoleID_Label
Declaration
public string RoleID_Label { get; set; }
Property Value
RoleID_Label_Silent
Declaration
[NotMapped]
public string RoleID_Label_Silent { get; set; }
Property Value
UserID
[Key] Links to IUser. The User you want to provide with access to the role.
Declaration
[RequiredNoDefaultIDValidation]
public Guid UserID { get; set; }
Property Value
UserID_Label
Declaration
public string UserID_Label { get; set; }
Property Value
UserID_Label_Silent
Declaration
[NotMapped]
public string UserID_Label_Silent { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IUserRole)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IUserRole source)
Parameters
Type |
Name |
Description |
IUserRole |
source |
The source object to copy all values from.
|
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods