Example #1
0
        public static void ClassInitialize(TestContext context)
        {
            db = new LinqLibraryDataContext(BookTest.connectionString);
            Book book = new Book();

            book.title         = "Chrzest Ognia";
            book.author        = "Andrzej Sapkowski";
            book.yearPublished = 1996;
            book.publisher     = "superNOWA";

            db.Book.InsertOnSubmit(book);
            db.SubmitChanges();
        }