Пример #1
0
        public static Wmbincriteria BuildWmbincriteriaFromRow(DataRow row)
        {
            Wmbincriteria entity = new Wmbincriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.binloc    = row.IsNull("binloc") ? string.Empty : row.Field <string>("binloc");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Пример #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmbincriteria(ref DataRow row, Wmbincriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("binloc", entity.binloc);
     row.SetField("userfield", entity.userfield);
 }