Beispiel #1
0
        public static Wmreplenishmentcriteria BuildWmreplenishmentcriteriaFromRow(DataRow row)
        {
            Wmreplenishmentcriteria entity = new Wmreplenishmentcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.oper      = row.IsNull("oper") ? string.Empty : row.Field <string>("oper");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Beispiel #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmreplenishmentcriteria(ref DataRow row, Wmreplenishmentcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("oper", entity.oper);
     row.SetField("userfield", entity.userfield);
 }