예제 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmsbpsearchcriteria(ref DataRow row, Wmsbpsearchcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("binloc", entity.binloc);
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }
예제 #2
0
        public static Wmsbpsearchcriteria BuildWmsbpsearchcriteriaFromRow(DataRow row)
        {
            Wmsbpsearchcriteria entity = new Wmsbpsearchcriteria();

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