/// <summary> /// Create a new Flashcard object. /// </summary> /// <param name="flashcardId">Initial value of the FlashcardId property.</param> /// <param name="question">Initial value of the Question property.</param> /// <param name="answer">Initial value of the Answer property.</param> public static Flashcard CreateFlashcard(global::System.Int32 flashcardId, global::System.String question, global::System.String answer) { Flashcard flashcard = new Flashcard(); flashcard.FlashcardId = flashcardId; flashcard.Question = question; flashcard.Answer = answer; return flashcard; }
/// <summary> /// Deprecated Method for adding a new object to the Flashcards EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToFlashcards(Flashcard flashcard) { base.AddObject("Flashcards", flashcard); }