/// <summary>
 /// 用于向 Cards EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet&lt;T&gt; 属性的 .Add 方法。
 /// </summary>
 public void AddToCards(Card card)
 {
     base.AddObject("Cards", card);
 }
 /// <summary>
 /// 创建新的 Card 对象。
 /// </summary>
 /// <param name="id">Id 属性的初始值。</param>
 /// <param name="number">Number 属性的初始值。</param>
 /// <param name="isAlive">IsAlive 属性的初始值。</param>
 /// <param name="isInTheHole">IsInTheHole 属性的初始值。</param>
 /// <param name="baseStationNumber">BaseStationNumber 属性的初始值。</param>
 /// <param name="pushButtonState">PushButtonState 属性的初始值。</param>
 /// <param name="position">Position 属性的初始值。</param>
 /// <param name="datetime">Datetime 属性的初始值。</param>
 /// <param name="rowVersion">RowVersion 属性的初始值。</param>
 public static Card CreateCard(global::System.String id, global::System.String number, global::System.Boolean isAlive, global::System.Boolean isInTheHole, global::System.String baseStationNumber, global::System.Int32 pushButtonState, global::System.Int32 position, global::System.DateTime datetime, global::System.Byte[] rowVersion)
 {
     Card card = new Card();
     card.Id = id;
     card.Number = number;
     card.IsAlive = isAlive;
     card.IsInTheHole = isInTheHole;
     card.BaseStationNumber = baseStationNumber;
     card.PushButtonState = pushButtonState;
     card.Position = position;
     card.Datetime = datetime;
     card.RowVersion = rowVersion;
     return card;
 }