Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PhotoRatings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPhotoRatings(PhotoRatings photoRatings)
 {
     base.AddObject("PhotoRatings", photoRatings);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new PhotoRatings object.
 /// </summary>
 /// <param name="pr_fromusername">Initial value of the pr_fromusername property.</param>
 /// <param name="p_id">Initial value of the p_id property.</param>
 /// <param name="pr_rating">Initial value of the pr_rating property.</param>
 /// <param name="pr_timestamp">Initial value of the pr_timestamp property.</param>
 public static PhotoRatings CreatePhotoRatings(global::System.String pr_fromusername, global::System.Int32 p_id, global::System.Int32 pr_rating, global::System.DateTime pr_timestamp)
 {
     PhotoRatings photoRatings = new PhotoRatings();
     photoRatings.pr_fromusername = pr_fromusername;
     photoRatings.p_id = p_id;
     photoRatings.pr_rating = pr_rating;
     photoRatings.pr_timestamp = pr_timestamp;
     return photoRatings;
 }