/// <summary> /// Deprecated Method for adding a new object to the Tills EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTills(Till till) { base.AddObject("Tills", till); }
/// <summary> /// Create a new Till object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="iPAddress">Initial value of the IPAddress property.</param> /// <param name="enabled">Initial value of the Enabled property.</param> /// <param name="identifier">Initial value of the Identifier property.</param> /// <param name="name">Initial value of the Name property.</param> public static Till CreateTill(global::System.Guid id, global::System.String iPAddress, global::System.Boolean enabled, global::System.Int32 identifier, global::System.String name) { Till till = new Till(); till.ID = id; till.IPAddress = iPAddress; till.Enabled = enabled; till.Identifier = identifier; till.Name = name; return till; }
public TillModel(Till till) { _till = till; if (_till.TillDivision != null) _tillDivision = _till.TillDivision; if (_till.TillDivision == null || _till.TillDivision.MasterTillID == null) IsMaster = false; else if (_till.TillDivision.MasterTillID == _till.ID) IsMaster = true; else IsMaster = false; }