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