Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Positions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToPositions(Position position)
 {
     base.AddObject("Positions", position);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Position object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="quantity">Initial value of the Quantity property.</param>
 /// <param name="openDateInternal">Initial value of the OpenDateInternal property.</param>
 /// <param name="openPrice">Initial value of the OpenPrice property.</param>
 /// <param name="isLong">Initial value of the IsLong property.</param>
 /// <param name="isMarged">Initial value of the IsMarged property.</param>
 /// <param name="intendedToClose">Initial value of the IntendedToClose property.</param>
 public static Position CreatePosition(global::System.Int64 id, global::System.Int64 quantity, global::System.String openDateInternal, global::System.Double openPrice, global::System.Boolean isLong, global::System.Boolean isMarged, global::System.Boolean intendedToClose)
 {
     Position position = new Position();
     position.Id = id;
     position.Quantity = quantity;
     position.OpenDateInternal = openDateInternal;
     position.OpenPrice = openPrice;
     position.IsLong = isLong;
     position.IsMarged = isMarged;
     position.IntendedToClose = intendedToClose;
     return position;
 }