Пример #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmsbsearchcriteria(ref DataRow row, Wmsbsearchcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("binloc", entity.binloc);
     row.SetField("assigncode", entity.assigncode);
     row.SetField("statuscode", entity.statuscode);
     row.SetField("building", entity.building);
     row.SetField("recordlimit", entity.recordlimit);
     row.SetField("userfield", entity.userfield);
 }
Пример #2
0
        public static Wmsbsearchcriteria BuildWmsbsearchcriteriaFromRow(DataRow row)
        {
            Wmsbsearchcriteria entity = new Wmsbsearchcriteria();

            entity.whse        = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.binloc      = row.IsNull("binloc") ? string.Empty : row.Field <string>("binloc");
            entity.assigncode  = row.IsNull("assigncode") ? string.Empty : row.Field <string>("assigncode");
            entity.statuscode  = row.IsNull("statuscode") ? string.Empty : row.Field <string>("statuscode");
            entity.building    = row.IsNull("building") ? string.Empty : row.Field <string>("building");
            entity.recordlimit = row.IsNull("recordlimit") ? 0 : row.Field <int>("recordlimit");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }