/// <summary> /// Create a new TransportRoute object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="transportRouteName">Initial value of the TransportRouteName property.</param> /// <param name="distance">Initial value of the Distance property.</param> /// <param name="discontinued">Initial value of the Discontinued property.</param> /// <param name="rowVersion">Initial value of the RowVersion property.</param> public static TransportRoute CreateTransportRoute(global::System.Int32 id, global::System.String transportRouteName, global::System.Double distance, global::System.Boolean discontinued, global::System.Byte[] rowVersion) { TransportRoute transportRoute = new TransportRoute(); transportRoute.Id = id; transportRoute.TransportRouteName = transportRouteName; transportRoute.Distance = distance; transportRoute.Discontinued = discontinued; transportRoute.RowVersion = rowVersion; return transportRoute; }
/// <summary> /// Deprecated Method for adding a new object to the TransportRoutes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTransportRoutes(TransportRoute transportRoute) { base.AddObject("TransportRoutes", transportRoute); }