/// <summary> /// Deprecated Method for adding a new object to the Shantuis EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToShantuis(Shantui shantui) { base.AddObject("Shantuis", shantui); }
/// <summary> /// Create a new Shantui object. /// </summary> /// <param name="productID">Initial value of the ProductID property.</param> /// <param name="category">Initial value of the Category property.</param> /// <param name="model">Initial value of the Model property.</param> /// <param name="operatingWeight">Initial value of the OperatingWeight property.</param> /// <param name="engine">Initial value of the Engine property.</param> /// <param name="power">Initial value of the Power property.</param> /// <param name="mainPicture">Initial value of the MainPicture property.</param> /// <param name="mainPictureOrder">Initial value of the MainPictureOrder property.</param> public static Shantui CreateShantui(global::System.Int32 productID, global::System.String category, global::System.String model, global::System.String operatingWeight, global::System.String engine, global::System.String power, global::System.String mainPicture, global::System.Int32 mainPictureOrder) { Shantui shantui = new Shantui(); shantui.ProductID = productID; shantui.Category = category; shantui.Model = model; shantui.OperatingWeight = operatingWeight; shantui.Engine = engine; shantui.Power = power; shantui.MainPicture = mainPicture; shantui.MainPictureOrder = mainPictureOrder; return shantui; }