Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PersonTemplates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPersonTemplates(PersonTemplate personTemplate)
 {
     base.AddObject("PersonTemplates", personTemplate);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new PersonTemplate object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="lastName">Initial value of the LastName property.</param>
 /// <param name="isMale">Initial value of the IsMale property.</param>
 public static PersonTemplate CreatePersonTemplate(global::System.Int32 id, global::System.String firstName, global::System.String lastName, global::System.Boolean isMale)
 {
     PersonTemplate personTemplate = new PersonTemplate();
     personTemplate.Id = id;
     personTemplate.FirstName = firstName;
     personTemplate.LastName = lastName;
     personTemplate.IsMale = isMale;
     return personTemplate;
 }