/// <summary>
 /// Deprecated Method for adding a new object to the limit EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTolimit(limit limit)
 {
     base.AddObject("limit", limit);
 }
 /// <summary>
 /// Create a new limit object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="accountID">Initial value of the AccountID property.</param>
 /// <param name="instrumentTypeID">Initial value of the InstrumentTypeID property.</param>
 /// <param name="maxOrderSize">Initial value of the MaxOrderSize property.</param>
 /// <param name="positionLimit">Initial value of the PositionLimit property.</param>
 /// <param name="lastModified">Initial value of the LastModified property.</param>
 public static limit Createlimit(global::System.Int64 id, global::System.Int64 accountID, global::System.Int64 instrumentTypeID, global::System.Int32 maxOrderSize, global::System.Int32 positionLimit, global::System.DateTime lastModified)
 {
     limit limit = new limit();
     limit.ID = id;
     limit.AccountID = accountID;
     limit.InstrumentTypeID = instrumentTypeID;
     limit.MaxOrderSize = maxOrderSize;
     limit.PositionLimit = positionLimit;
     limit.LastModified = lastModified;
     return limit;
 }