Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCcinvtranscriteria(ref DataRow row, Ccinvtranscriteria entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("cycle_wave_id", entity.cycleWaveId);
     row.SetField("ccinvtransuserfield", entity.ccinvtransuserfield);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Ccinvtranscriteria BuildCcinvtranscriteriaFromRow(DataRow row)
        {
            Ccinvtranscriteria entity = new Ccinvtranscriteria();

            entity.coNum               = row.IsNull("co_num") ? string.Empty : row.Field <string>("co_num");
            entity.whNum               = row.IsNull("wh_num") ? string.Empty : row.Field <string>("wh_num");
            entity.cycleWaveId         = row.IsNull("cycle_wave_id") ? 0 : row.Field <int>("cycle_wave_id");
            entity.ccinvtransuserfield = row.IsNull("ccinvtransuserfield") ? string.Empty : row.Field <string>("ccinvtransuserfield");
            entity.userfield           = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }