/// <summary>
 /// Deprecated Method for adding a new object to the MainTablePersons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToMainTablePersons(MainTablePerson mainTablePerson)
 {
     base.AddObject("MainTablePersons", mainTablePerson);
 }
 /// <summary>
 /// Create a new MainTablePerson object.
 /// </summary>
 /// <param name="mainTable">Initial value of the MainTable property.</param>
 /// <param name="personCode">Initial value of the PersonCode property.</param>
 /// <param name="rolePerson">Initial value of the RolePerson property.</param>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="logDate">Initial value of the LogDate property.</param>
 public static MainTablePerson CreateMainTablePerson(global::System.String mainTable, global::System.String personCode, global::System.String rolePerson, global::System.String userId, global::System.DateTime logDate)
 {
     MainTablePerson mainTablePerson = new MainTablePerson();
     mainTablePerson.MainTable = mainTable;
     mainTablePerson.PersonCode = personCode;
     mainTablePerson.RolePerson = rolePerson;
     mainTablePerson.UserId = userId;
     mainTablePerson.LogDate = logDate;
     return mainTablePerson;
 }