public void AddHrefToBook(long bookId, Hyperlink hyperlink) { DB.Execute("insert into book_href values(?,?)", bookId, AddHyperlink(hyperlink)); }
public bool Equals(Hyperlink other) { return this.Href == other.Href; }
public long AddHyperlink(Hyperlink hyperlink) { return DB.ExecuteScalar<long>("insert into hyperlink values(NULL,?,?); select last_insert_rowid()", hyperlink.Name, hyperlink.Href); }