Exemplo n.º 1
0
        public static Wmproductcriteria BuildWmproductcriteriaFromRow(DataRow row)
        {
            Wmproductcriteria entity = new Wmproductcriteria();

            entity.whse      = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prod      = row.IsNull("prod") ? string.Empty : row.Field <string>("prod");
            entity.userfield = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromWmproductcriteria(ref DataRow row, Wmproductcriteria entity)
 {
     row.SetField("whse", entity.whse);
     row.SetField("prod", entity.prod);
     row.SetField("userfield", entity.userfield);
 }