/// <summary> /// 创建新的 VehicleDetailType 对象。 /// </summary> /// <param name="id">Id 属性的初始值。</param> /// <param name="name">Name 属性的初始值。</param> /// <param name="parentId">ParentId 属性的初始值。</param> public static VehicleDetailType CreateVehicleDetailType(global::System.Int32 id, global::System.String name, global::System.Int32 parentId) { VehicleDetailType vehicleDetailType = new VehicleDetailType(); vehicleDetailType.Id = id; vehicleDetailType.Name = name; vehicleDetailType.ParentId = parentId; return(vehicleDetailType); }
/// <summary> /// 用于向 VehicleDetailTypes EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> internal void AddToVehicleDetailTypes(VehicleDetailType vehicleDetailType) { base.AddObject("VehicleDetailTypes", vehicleDetailType); }