示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcswloadsensitivitycriteria(ref DataRow row, Icswloadsensitivitycriteria entity)
 {
     row.SetField("vendno", entity.vendno);
     row.SetField("product", entity.product);
     row.SetField("whse", entity.whse);
     row.SetField("prodline", entity.prodline);
     row.SetField("rankty", entity.rankty);
     row.SetField("currproc", entity.currproc);
     row.SetField("secure", entity.secure);
     row.SetField("customparam", entity.customparam);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Icswloadsensitivitycriteria BuildIcswloadsensitivitycriteriaFromRow(DataRow row)
        {
            Icswloadsensitivitycriteria entity = new Icswloadsensitivitycriteria();

            entity.vendno      = row.IsNull("vendno") ? decimal.Zero : row.Field <decimal>("vendno");
            entity.product     = row.IsNull("product") ? string.Empty : row.Field <string>("product");
            entity.whse        = row.IsNull("whse") ? string.Empty : row.Field <string>("whse");
            entity.prodline    = row.IsNull("prodline") ? string.Empty : row.Field <string>("prodline");
            entity.rankty      = row.IsNull("rankty") ? string.Empty : row.Field <string>("rankty");
            entity.currproc    = row.IsNull("currproc") ? string.Empty : row.Field <string>("currproc");
            entity.secure      = row.IsNull("secure") ? 0 : row.Field <int>("secure");
            entity.customparam = row.IsNull("customparam") ? string.Empty : row.Field <string>("customparam");
            entity.userfield   = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }