public static void InsertOrUpdateAuthorISBN(string isbn, int id) { BooksDataContext dc = new BooksDataContext(); Table<AuthorISBN> authorISBNs = dc.GetTable<AuthorISBN>(); AuthorISBN a = new AuthorISBN(); a.AuthorID = id; a.ISBN = isbn; authorISBNs.InsertOnSubmit(a); authorISBNs.Context.SubmitChanges(); dc.SubmitChanges(); }
private void detach_AuthorISBNs(AuthorISBN entity) { this.SendPropertyChanging(); entity.Title = null; }
private void attach_AuthorISBNs(AuthorISBN entity) { this.SendPropertyChanging(); entity.Title = this; }
partial void DeleteAuthorISBN(AuthorISBN instance);
partial void UpdateAuthorISBN(AuthorISBN instance);
partial void InsertAuthorISBN(AuthorISBN instance);