/// <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; }
/// <summary> /// Deprecated Method for adding a new object to the Colours EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToColours(Colour colour) { base.AddObject("Colours", colour); }