コード例 #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromIcwhseproductcopyresults(ref DataRow row, Icwhseproductcopyresults entity)
 {
     row.SetField("cFromWhse", entity.cFromWhse);
     row.SetField("cProd", entity.cProd);
     row.SetField("cToWhse", entity.cToWhse);
     row.SetField("lCostFl", entity.lCostFl);
     row.SetField("lBinFl", entity.lBinFl);
     row.SetField("lUseICSLFl", entity.lUseICSLFl);
     row.SetField("cARPWhse", entity.cARPWhse);
     row.SetField("cError", entity.cError);
     row.SetField("userfield", entity.userfield);
 }
コード例 #2
0
        public static Icwhseproductcopyresults BuildIcwhseproductcopyresultsFromRow(DataRow row)
        {
            Icwhseproductcopyresults entity = new Icwhseproductcopyresults();

            entity.cFromWhse  = row.IsNull("cFromWhse") ? string.Empty : row.Field <string>("cFromWhse");
            entity.cProd      = row.IsNull("cProd") ? string.Empty : row.Field <string>("cProd");
            entity.cToWhse    = row.IsNull("cToWhse") ? string.Empty : row.Field <string>("cToWhse");
            entity.lCostFl    = row.Field <bool>("lCostFl");
            entity.lBinFl     = row.Field <bool>("lBinFl");
            entity.lUseICSLFl = row.Field <bool>("lUseICSLFl");
            entity.cARPWhse   = row.IsNull("cARPWhse") ? string.Empty : row.Field <string>("cARPWhse");
            entity.cError     = row.IsNull("cError") ? string.Empty : row.Field <string>("cError");
            entity.userfield  = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }