/// <summary> /// Deprecated Method for adding a new object to the PetCounters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPetCounters(PetCounter petCounter) { base.AddObject("PetCounters", petCounter); }
/// <summary> /// Create a new PetCounter object. /// </summary> /// <param name="petId">Initial value of the PetId property.</param> /// <param name="likes">Initial value of the Likes property.</param> /// <param name="following">Initial value of the Following property.</param> /// <param name="views">Initial value of the Views property.</param> /// <param name="comments">Initial value of the Comments property.</param> /// <param name="friends">Initial value of the Friends property.</param> /// <param name="rates">Initial value of the Rates property.</param> public static PetCounter CreatePetCounter(global::System.Guid petId, global::System.Int16 likes, global::System.Int16 following, global::System.Int16 views, global::System.Int16 comments, global::System.Int16 friends, global::System.Int16 rates) { PetCounter petCounter = new PetCounter(); petCounter.PetId = petId; petCounter.Likes = likes; petCounter.Following = following; petCounter.Views = views; petCounter.Comments = comments; petCounter.Friends = friends; petCounter.Rates = rates; return petCounter; }