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