Example #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcembfieldcriteria(ref DataRow row, Icembfieldcriteria entity)
 {
     row.SetField("product", entity.product);
     row.SetField("whse", entity.whse);
     row.SetField("fieldchanged", entity.fieldchanged);
     row.SetField("userfield", entity.userfield);
 }
Example #2
0
        public static Icembfieldcriteria BuildIcembfieldcriteriaFromRow(DataRow row)
        {
            Icembfieldcriteria entity = new Icembfieldcriteria();

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