/// <summary> /// Deprecated Method for adding a new object to the BatteryOrders EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToBatteryOrders(BatteryOrder batteryOrder) { base.AddObject("BatteryOrders", batteryOrder); }
/// <summary> /// Create a new BatteryOrder object. /// </summary> /// <param name="batteryOrderId">Initial value of the BatteryOrderId property.</param> /// <param name="entityId">Initial value of the EntityId property.</param> /// <param name="bTN">Initial value of the BTN property.</param> /// <param name="cBR">Initial value of the CBR property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="address">Initial value of the Address property.</param> /// <param name="mailSent">Initial value of the MailSent property.</param> /// <param name="createDateTime">Initial value of the CreateDateTime property.</param> /// <param name="refNumber">Initial value of the RefNumber property.</param> public static BatteryOrder CreateBatteryOrder(global::System.Int32 batteryOrderId, global::System.Int32 entityId, global::System.String bTN, global::System.String cBR, global::System.String name, global::System.String address, global::System.Boolean mailSent, global::System.DateTime createDateTime, global::System.String refNumber) { BatteryOrder batteryOrder = new BatteryOrder(); batteryOrder.BatteryOrderId = batteryOrderId; batteryOrder.EntityId = entityId; batteryOrder.BTN = bTN; batteryOrder.CBR = cBR; batteryOrder.Name = name; batteryOrder.Address = address; batteryOrder.MailSent = mailSent; batteryOrder.CreateDateTime = createDateTime; batteryOrder.RefNumber = refNumber; return batteryOrder; }