Exemplo n.º 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromOmorderdropsummary(ref DataRow row, Omorderdropsummary entity)
 {
     row.SetField("wave", entity.wave);
     row.SetField("order", entity.order);
     row.SetField("order_suffix", entity.orderSuffix);
     row.SetField("line_count", entity.lineCount);
     row.SetField("is_successful", entity.isSuccessful);
     row.SetField("ch_work", entity.chWork);
     row.SetField("userfield", entity.userfield);
 }
Exemplo n.º 2
0
        public static Omorderdropsummary BuildOmorderdropsummaryFromRow(DataRow row)
        {
            Omorderdropsummary entity = new Omorderdropsummary();

            entity.wave         = row.IsNull("wave") ? 0 : row.Field <int>("wave");
            entity.order        = row.IsNull("order") ? string.Empty : row.Field <string>("order");
            entity.orderSuffix  = row.IsNull("order_suffix") ? string.Empty : row.Field <string>("order_suffix");
            entity.lineCount    = row.IsNull("line_count") ? 0 : row.Field <int>("line_count");
            entity.isSuccessful = row.Field <bool>("is_successful");
            entity.chWork       = row.IsNull("ch_work") ? string.Empty : row.Field <string>("ch_work");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }