/// <summary> /// Deprecated Method for adding a new object to the Pets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPets(Pet pet) { base.AddObject("Pets", pet); }
/// <summary> /// Create a new Pet object. /// </summary> /// <param name="petId">Initial value of the PetId property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="active">Initial value of the Active property.</param> /// <param name="creationDate">Initial value of the CreationDate property.</param> /// <param name="userId">Initial value of the UserId property.</param> public static Pet CreatePet(global::System.Guid petId, global::System.String name, global::System.Boolean active, global::System.DateTime creationDate, global::System.Guid userId) { Pet pet = new Pet(); pet.PetId = petId; pet.Name = name; pet.Active = active; pet.CreationDate = creationDate; pet.UserId = userId; return pet; }