/// <summary> /// Deprecated Method for adding a new object to the CardTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToCardTypes(CardType cardType) { base.AddObject("CardTypes", cardType); }
/// <summary> /// Create a new CardType object. /// </summary> /// <param name="cardTypeId">Initial value of the CardTypeId property.</param> /// <param name="name">Initial value of the Name property.</param> public static CardType CreateCardType(global::System.Int32 cardTypeId, global::System.String name) { CardType cardType = new CardType(); cardType.CardTypeId = cardTypeId; cardType.Name = name; return cardType; }