Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Pet object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="firstName">Initial value of the FirstName property.</param>
 /// <param name="personId">Initial value of the PersonId property.</param>
 public static Pet CreatePet(global::System.Int64 id, global::System.String firstName, global::System.Int64 personId)
 {
     Pet pet = new Pet();
     pet.Id = id;
     pet.FirstName = firstName;
     pet.PersonId = personId;
     return pet;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Pets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPets(Pet pet)
 {
     base.AddObject("Pets", pet);
 }