示例#1
0
 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); }
 }
示例#2
0
 public bool UpdateReportEditor(ReportEditor report)
 {
     return(processor.Update <ReportEditor>(report, null));
 }
示例#3
0
 public bool InsertReportEditor(ReportEditor report, DbTransaction tran)
 {
     return(processor.Insert <ReportEditor>(report, tran));
 }
示例#4
0
 public bool InsertReportEditor(ReportEditor report)
 {
     return(InsertReportEditor(report, null));
 }