예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOecalcordshptotcriteria(ref DataRow row, Oecalcordshptotcriteria entity)
 {
     row.SetField("maint", entity.maint);
     row.SetField("orderno", entity.orderno);
     row.SetField("ordersuf", entity.ordersuf);
     row.SetField("calcsob", entity.calcsob);
     row.SetField("customparam", entity.customparam);
 }
예제 #2
0
        public static Oecalcordshptotcriteria BuildOecalcordshptotcriteriaFromRow(DataRow row)
        {
            Oecalcordshptotcriteria entity = new Oecalcordshptotcriteria();

            entity.maint       = row.Field <bool>("maint");
            entity.orderno     = row.IsNull("orderno") ? 0 : row.Field <int>("orderno");
            entity.ordersuf    = row.IsNull("ordersuf") ? 0 : row.Field <int>("ordersuf");
            entity.calcsob     = row.IsNull("calcsob") ? string.Empty : row.Field <string>("calcsob");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            return(entity);
        }