コード例 #1
0
 /// <summary>
 /// Create a new Colour object.
 /// </summary>
 /// <param name="colourId">Initial value of the ColourId property.</param>
 /// <param name="colourName">Initial value of the ColourName property.</param>
 public static Colour CreateColour(global::System.Int32 colourId, global::System.String colourName)
 {
     Colour colour = new Colour();
     colour.ColourId = colourId;
     colour.ColourName = colourName;
     return colour;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Colours EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToColours(Colour colour)
 {
     base.AddObject("Colours", colour);
 }