/// <summary> /// Deprecated Method for adding a new object to the PhotoComments EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPhotoComments(PhotoComment photoComment) { base.AddObject("PhotoComments", photoComment); }
/// <summary> /// Create a new PhotoComment object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="userId">Initial value of the UserId property.</param> /// <param name="photoId">Initial value of the PhotoId property.</param> /// <param name="comment">Initial value of the Comment property.</param> /// <param name="dateTimeStamp">Initial value of the DateTimeStamp property.</param> public static PhotoComment CreatePhotoComment(global::System.Int32 id, global::System.Int32 userId, global::System.Int32 photoId, global::System.String comment, global::System.DateTime dateTimeStamp) { PhotoComment photoComment = new PhotoComment(); photoComment.Id = id; photoComment.UserId = userId; photoComment.PhotoId = photoId; photoComment.Comment = comment; photoComment.DateTimeStamp = dateTimeStamp; return photoComment; }