public bool Delete(QuestionAnswer qa) { using (IDbConnection db = _factory.OpenDbConnection()) { db.Delete<QuestionAnswer>(qa); return true; } }
public QuestionAnswer Add(QuestionAnswer qa) { using (IDbConnection db = _factory.OpenDbConnection()) { db.Insert<QuestionAnswer>(qa); qa.Id = db.GetLastInsertId(); return qa; } }
public QuestionAnswer Update(QuestionAnswer qa) { using (IDbConnection db = _factory.OpenDbConnection()) { db.Update<QuestionAnswer>(qa); return qa; } }