Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWtlinenonstockhdr(ref DataRow row, Wtlinenonstockhdr entity)
 {
     row.SetField("wtno", entity.wtno);
     row.SetField("wtsuf", entity.wtsuf);
     row.SetField("cono2", entity.cono2);
     row.SetField("mode", entity.mode);
     row.SetField("shipfmwhse", entity.shipfmwhse);
     row.SetField("shiptowhse", entity.shiptowhse);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Wtlinenonstockhdr BuildWtlinenonstockhdrFromRow(DataRow row)
        {
            Wtlinenonstockhdr entity = new Wtlinenonstockhdr();

            entity.wtno       = row.IsNull("wtno") ? 0 : row.Field <int>("wtno");
            entity.wtsuf      = row.IsNull("wtsuf") ? 0 : row.Field <int>("wtsuf");
            entity.cono2      = row.IsNull("cono2") ? 0 : row.Field <int>("cono2");
            entity.mode       = row.IsNull("mode") ? string.Empty : row.Field <string>("mode");
            entity.shipfmwhse = row.IsNull("shipfmwhse") ? string.Empty : row.Field <string>("shipfmwhse");
            entity.shiptowhse = row.IsNull("shiptowhse") ? string.Empty : row.Field <string>("shiptowhse");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }