Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserRole" /> class.
 /// </summary>
 /// <param name="id">A system-generated unique identifier for a UserRole (required).</param>
 /// <param name="effectiveDate">The date on which the user was given the related role. (required).</param>
 /// <param name="expiryDate">The date on which a role previously assigned to a user was removed from that user..</param>
 /// <param name="role">A foreign key reference to the system-generated unique identifier for a Role.</param>
 public UserRole(ObjectId id, DateTime effectiveDate, DateTime?expiryDate = null, Role role = null)
 {
     Id            = id;
     EffectiveDate = effectiveDate;
     ExpiryDate    = expiryDate;
     Role          = role;
 }