public int GetReportEditorPKValue() { try { //object u = processor.QueryScalar("select Max(ID) from ReportEditor", null); ReportEditor r = processor.QueryOne <ReportEditor>("select * from ReportEditor where id=(select max(id) from ReportEditor)", () => null); //if (r != null) return(r.ID); //if (u != null && u.ToString() != string.Empty) // return Convert.ToInt32(u); //else // return 0; } catch { return(0); } }
public bool UpdateReportEditor(ReportEditor report) { return(processor.Update <ReportEditor>(report, null)); }
public bool InsertReportEditor(ReportEditor report, DbTransaction tran) { return(processor.Insert <ReportEditor>(report, tran)); }
public bool InsertReportEditor(ReportEditor report) { return(InsertReportEditor(report, null)); }