/// <summary>
 /// Deprecated Method for adding a new object to the PermissionLog EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPermissionLog(PermissionLog permissionLog)
 {
     base.AddObject("PermissionLog", permissionLog);
 }
 private bool FilterPermissionLog1(PermissionLog entity)
 {
     return (entity.CreatedBy == this.Id);
 }
 /// <summary>
 /// Create a new PermissionLog object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="operation">Initial value of the Operation property.</param>
 /// <param name="message">Initial value of the Message property.</param>
 /// <param name="createdDate">Initial value of the CreatedDate property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 public static PermissionLog CreatePermissionLog(global::System.Int64 id, global::System.Int16 operation, global::System.String message, global::System.DateTime createdDate, global::System.Int32 createdBy)
 {
     PermissionLog permissionLog = new PermissionLog();
     permissionLog.Id = id;
     permissionLog.Operation = operation;
     permissionLog.Message = message;
     permissionLog.CreatedDate = createdDate;
     permissionLog.CreatedBy = createdBy;
     return permissionLog;
 }
 private void DetachPermissionLog1(PermissionLog entity)
 {
     entity.CreatedByUser = null;
 }
 private void AttachPermissionLog1(PermissionLog entity)
 {
     entity.CreatedByUser = this;
 }
 private bool FilterPermissionLog(PermissionLog entity)
 {
     return (entity.UserId == this.Id);
 }
 private void DetachPermissionLog(PermissionLog entity)
 {
     entity.User = null;
 }
 private void AttachPermissionLog(PermissionLog entity)
 {
     entity.User = this;
 }