示例#1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcspcdcriteria(ref DataRow row, Icspcdcriteria entity)
 {
     row.SetField("product", entity.product);
     row.SetField("pullqtyfl", entity.pullqtyfl);
     row.SetField("demandqtyfl", entity.demandqtyfl);
     row.SetField("icspc-rowpointer", entity.icspcRowpointer);
     row.SetField("userfield", entity.userfield);
 }
示例#2
0
        public static Icspcdcriteria BuildIcspcdcriteriaFromRow(DataRow row)
        {
            Icspcdcriteria entity = new Icspcdcriteria();

            entity.product         = row.IsNull("product") ? string.Empty : row.Field <string>("product");
            entity.pullqtyfl       = row.Field <bool>("pullqtyfl");
            entity.demandqtyfl     = row.Field <bool>("demandqtyfl");
            entity.icspcRowpointer = row.IsNull("icspc-rowpointer") ? string.Empty : row.Field <string>("icspc-rowpointer");
            entity.userfield       = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }