コード例 #1
0
 /// <summary>
 /// Create a new Evaluation object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="time">Initial value of the Time property.</param>
 /// <param name="score">Initial value of the Score property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="userName">Initial value of the UserName property.</param>
 public static Evaluation CreateEvaluation(global::System.Int32 id, global::System.DateTime time, global::System.Int32 score, global::System.Int32 productId, global::System.String userName)
 {
     Evaluation evaluation = new Evaluation();
     evaluation.Id = id;
     evaluation.Time = time;
     evaluation.Score = score;
     evaluation.ProductId = productId;
     evaluation.UserName = userName;
     return evaluation;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Evaluations EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEvaluations(Evaluation evaluation)
 {
     base.AddObject("Evaluations", evaluation);
 }