Beispiel #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmscsearchcriteria(ref DataRow row, Wmscsearchcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("sizetype", entity.sizetype);
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }
Beispiel #2
0
        public static Wmscsearchcriteria BuildWmscsearchcriteriaFromRow(DataRow row)
        {
            Wmscsearchcriteria entity = new Wmscsearchcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.sizetype  = row.IsNull("sizetype") ? string.Empty : row.Field <string>("sizetype");
            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }