Esempio n. 1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromCartoninfocriteria(ref DataRow row, Cartoninfocriteria entity)
 {
     row.SetField("ch_co", entity.chCo);
     row.SetField("ch_wh", entity.chWh);
     row.SetField("ch_ord", entity.chOrd);
     row.SetField("ch_suf", entity.chSuf);
     row.SetField("cartoninfocriteriauserfield", entity.cartoninfocriteriauserfield);
     row.SetField("userfield", entity.userfield);
 }
Esempio n. 2
0
        public static Cartoninfocriteria BuildCartoninfocriteriaFromRow(DataRow row)
        {
            Cartoninfocriteria entity = new Cartoninfocriteria();

            entity.chCo  = row.IsNull("ch_co") ? string.Empty : row.Field <string>("ch_co");
            entity.chWh  = row.IsNull("ch_wh") ? string.Empty : row.Field <string>("ch_wh");
            entity.chOrd = row.IsNull("ch_ord") ? string.Empty : row.Field <string>("ch_ord");
            entity.chSuf = row.IsNull("ch_suf") ? string.Empty : row.Field <string>("ch_suf");
            entity.cartoninfocriteriauserfield = row.IsNull("cartoninfocriteriauserfield") ? string.Empty : row.Field <string>("cartoninfocriteriauserfield");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }