コード例 #1
0
        public Int32 UpdateReportPerson(ReportPerson reportPerson)
        {
            String sql    = ORMapping.GetUpdateSql(reportPerson, BuilderEx.TSqlBuilderInstance);
            int    result = _DataHelper.ExecuteSql(sql);

            return(result);
        }
コード例 #2
0
        public List <ReportPerson> GetReportPersonList(WhereSqlClauseBuilder builder)
        {
            String              sql    = String.Format("SELECT * FROM {0} WHERE {1} ", ReportPersonDBConst.TableName, builder.ToSqlString());
            DataTable           dt     = _DataHelper.GetDataTable(sql);
            List <ReportPerson> result = new List <ReportPerson>();

            for (Int32 i = 0; i < dt.Rows.Count; i++)
            {
                ReportPerson info = new ReportPerson();
                ORMapping.DataRowToObject(dt.Rows[i], info);
                result.Add(info);
            }
            return(result);
        }
コード例 #3
0
 public Int32 UpdateReportPerson(ReportPerson reportPerson)
 {
     String sql = ORMapping.GetUpdateSql(reportPerson, BuilderEx.TSqlBuilderInstance);
     int result = _DataHelper.ExecuteSql(sql);
     return result;
 }
コード例 #4
0
 public List<ReportPerson> GetReportPersonList(WhereSqlClauseBuilder builder)
 {
     String sql = String.Format("SELECT * FROM {0} WHERE {1} ", ReportPersonDBConst.TableName, builder.ToSqlString());
     DataTable dt = _DataHelper.GetDataTable(sql);
     List<ReportPerson> result = new List<ReportPerson>();
     for (Int32 i = 0; i < dt.Rows.Count; i++)
     {
         ReportPerson info = new ReportPerson();
         ORMapping.DataRowToObject(dt.Rows[i], info);
         result.Add(info);
     }
     return result;
 }