コード例 #1
0
        public static Reportcchistcriteria BuildReportcchistcriteriaFromRow(DataRow row)
        {
            Reportcchistcriteria entity = new Reportcchistcriteria();

            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }
コード例 #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromReportcchistcriteria(ref DataRow row, Reportcchistcriteria entity)
 {
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("customparam", entity.customparam);
 }