コード例 #1
0
 /// <summary>
 /// Create a new Challenge object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="privacy">Initial value of the Privacy property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="customerID">Initial value of the CustomerID property.</param>
 /// <param name="currentBid">Initial value of the CurrentBid property.</param>
 /// <param name="state">Initial value of the State property.</param>
 /// <param name="anonymous">Initial value of the Anonymous property.</param>
 public static Challenge CreateChallenge(global::System.Int64 id, global::System.String title, global::System.String description, global::System.Byte privacy, global::System.Byte type, global::System.Int64 customerID, global::System.Decimal currentBid, global::System.Int32 state, global::System.Byte anonymous)
 {
     Challenge challenge = new Challenge();
     challenge.ID = id;
     challenge.Title = title;
     challenge.Description = description;
     challenge.Privacy = privacy;
     challenge.Type = type;
     challenge.CustomerID = customerID;
     challenge.CurrentBid = currentBid;
     challenge.State = state;
     challenge.Anonymous = anonymous;
     return challenge;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Challenge EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToChallenge(Challenge challenge)
 {
     base.AddObject("Challenge", challenge);
 }