public static int?update(ChapterRelation chapterRelation) { return(Global.db.Updateable(chapterRelation).ExecuteCommand()); }
public static int?insert(ChapterRelation chapterRelation) { return(chapterRelation.id != null?Global.db.Saveable <ChapterRelation>(chapterRelation).ExecuteCommand() : Global.db.Insertable(chapterRelation).ExecuteCommand()); }