示例#1
0
 /// <summary>
 /// Create a new Person object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="guid">Initial value of the Guid property.</param>
 /// <param name="createdBy">Initial value of the CreatedBy property.</param>
 /// <param name="createdAt">Initial value of the CreatedAt property.</param>
 /// <param name="lastname">Initial value of the Lastname property.</param>
 /// <param name="gender">Initial value of the Gender property.</param>
 /// <param name="validFrom">Initial value of the ValidFrom property.</param>
 /// <param name="timestamp">Initial value of the Timestamp property.</param>
 /// <param name="mdaCountryID">Initial value of the MdaCountryID property.</param>
 public static Person CreatePerson(global::System.Int32 id, global::System.Guid guid, global::System.String createdBy, global::System.DateTime createdAt, global::System.String lastname, global::System.String gender, global::System.DateTime validFrom, global::System.Byte[] timestamp, global::System.Int32 mdaCountryID)
 {
     Person person = new Person();
     person.ID = id;
     person.Guid = guid;
     person.CreatedBy = createdBy;
     person.CreatedAt = createdAt;
     person.Lastname = lastname;
     person.Gender = gender;
     person.ValidFrom = validFrom;
     person.Timestamp = timestamp;
     person.MdaCountryID = mdaCountryID;
     return person;
 }
示例#2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Persons EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersons(Person person)
 {
     base.AddObject("Persons", person);
 }