/// <summary> /// Deprecated Method for adding a new object to the PetOwnerHistories EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPetOwnerHistories(PetOwnerHistory petOwnerHistory) { base.AddObject("PetOwnerHistories", petOwnerHistory); }
/// <summary> /// Create a new PetOwnerHistory object. /// </summary> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="petId">Initial value of the PetId property.</param> /// <param name="assignDate">Initial value of the AssignDate property.</param> /// <param name="petOwnerHistoryId">Initial value of the PetOwnerHistoryId property.</param> public static PetOwnerHistory CreatePetOwnerHistory(global::System.Guid userId, global::System.Guid petId, global::System.DateTime assignDate, global::System.Int32 petOwnerHistoryId) { PetOwnerHistory petOwnerHistory = new PetOwnerHistory(); petOwnerHistory.UserId = userId; petOwnerHistory.PetId = petId; petOwnerHistory.AssignDate = assignDate; petOwnerHistory.PetOwnerHistoryId = petOwnerHistoryId; return petOwnerHistory; }