Exemple #1
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromPdemexcelnewsetupdtcadd(ref DataRow row, Pdemexcelnewsetupdtcadd entity)
 {
     row.SetField("cSetID", entity.cSetID);
     row.SetField("cDescription", entity.cDescription);
     row.SetField("deCustNo", entity.deCustNo);
     row.SetField("cShipTo", entity.cShipTo);
     row.SetField("cCustType", entity.cCustType);
     row.SetField("cProduct", entity.cProduct);
     row.SetField("cProdPrcType", entity.cProdPrcType);
     row.SetField("userfield", entity.userfield);
 }
Exemple #2
0
        public static Pdemexcelnewsetupdtcadd BuildPdemexcelnewsetupdtcaddFromRow(DataRow row)
        {
            Pdemexcelnewsetupdtcadd entity = new Pdemexcelnewsetupdtcadd();

            entity.cSetID       = row.IsNull("cSetID") ? string.Empty : row.Field <string>("cSetID");
            entity.cDescription = row.IsNull("cDescription") ? string.Empty : row.Field <string>("cDescription");
            entity.deCustNo     = row.IsNull("deCustNo") ? decimal.Zero : row.Field <decimal>("deCustNo");
            entity.cShipTo      = row.IsNull("cShipTo") ? string.Empty : row.Field <string>("cShipTo");
            entity.cCustType    = row.IsNull("cCustType") ? string.Empty : row.Field <string>("cCustType");
            entity.cProduct     = row.IsNull("cProduct") ? string.Empty : row.Field <string>("cProduct");
            entity.cProdPrcType = row.IsNull("cProdPrcType") ? string.Empty : row.Field <string>("cProdPrcType");
            entity.userfield    = row.IsNull("userfield") ? string.Empty : row.Field <string>("userfield");
            return(entity);
        }