Table of Contents

Class UserRoleMappingSqlModel

Namespace
OpenSettings.Domains.Sql.Entities
Assembly
OpenSettings.dll

Represents a user-role mapping entity.

[Table("UserRoleMappings")]
public class UserRoleMappingSqlModel : EntityBase<int>
Inheritance
UserRoleMappingSqlModel
Inherited Members

Properties

CreatedBy

The user who created this user-role mapping.

[ForeignKey("CreatedById")]
public virtual UserSqlModel CreatedBy { get; set; }

Property Value

UserSqlModel

CreatedById

The id of the user who created this user-role mapping.

public Guid? CreatedById { get; set; }

Property Value

Guid?

Id

[NotMapped]
public int Id { get; set; }

Property Value

int

Role

The role associated with this mapping.

public virtual UserRoleSqlModel Role { get; set; }

Property Value

UserRoleSqlModel

RoleId

The id of the associated user role.

public int RoleId { get; set; }

Property Value

int

UpdatedOn

[NotMapped]
public DateTime? UpdatedOn { get; set; }

Property Value

DateTime?

User

The user associated with this mapping.

public virtual UserSqlModel User { get; set; }

Property Value

UserSqlModel

UserId

The id of the associated user.

public Guid UserId { get; set; }

Property Value

Guid