コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the UserRates EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserRates(UserRate userRate)
 {
     base.AddObject("UserRates", userRate);
 }
コード例 #2
0
 /// <summary>
 /// Create a new UserRate object.
 /// </summary>
 /// <param name="userId">Initial value of the UserId property.</param>
 /// <param name="petId">Initial value of the PetId property.</param>
 /// <param name="rateCategoryId">Initial value of the RateCategoryId property.</param>
 /// <param name="stars">Initial value of the Stars property.</param>
 /// <param name="rateDate">Initial value of the RateDate property.</param>
 public static UserRate CreateUserRate(global::System.Guid userId, global::System.Guid petId, global::System.Int16 rateCategoryId, global::System.Int16 stars, global::System.DateTime rateDate)
 {
     UserRate userRate = new UserRate();
     userRate.UserId = userId;
     userRate.PetId = petId;
     userRate.RateCategoryId = rateCategoryId;
     userRate.Stars = stars;
     userRate.RateDate = rateDate;
     return userRate;
 }