static void Test() { try { var adapter = new SqlAdapter { ConnectionString = connectionString }; var book = new Book { IsbnCode = "4774180947", Title = "C#プログラマーのための 基礎からわかるLINQマジック!" }; adapter.Insert(book); adapter.Delete(book); adapter.Create <Author>(); adapter.Create <Writing>(); adapter.Drop <Author>(); adapter.Drop <Writing>(); } catch (Exception ex) { Console.WriteLine($"エラー: {ex.Message}"); } }