/// <summary>
 /// Create a new CardType object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 public static CardType CreateCardType(global::System.Int32 id)
 {
     CardType cardType = new CardType();
     cardType.Id = id;
     return cardType;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the CardTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCardTypes(CardType cardType)
 {
     base.AddObject("CardTypes", cardType);
 }
 /// <summary>
 /// Создание нового объекта CardType.
 /// </summary>
 /// <param name="id">Исходное значение свойства Id.</param>
 /// <param name="name">Исходное значение свойства Name.</param>
 public static CardType CreateCardType(global::System.Int32 id, global::System.String name)
 {
     CardType cardType = new CardType();
     cardType.Id = id;
     cardType.Name = name;
     return cardType;
 }