Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business object builder
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Business object builder
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01125716
Message ID:
01125716
Vues:
49
I am using a VFP 7.0 database.

When I get to the Select Data Base Items screen and drill down the nodes to a specific field, I get the error message, "Unable to cast object of type System.Int32 to type System.String". The location of the error is MMBusinesslayerGenerator.mmWizardPageSelectData, line 1346, which is the BindPropertyControls method.

When I select select OK to build the business objects, it builds them with no errors but I get a warning in the .NET screen for the first field (alphabetically) in each table that says:
"The namespace already contains a definition for ?"

At first I thought the problem might be field names that are used in more than one table (e.g., Address1). I did get rid of some additional warning messages when I made that change but can't get past this one. Any ideas?

When I try to run the app test from the class design screen, these turn into errors.

I did find in the entity class that there was no field type in the definitions so I added that. This creates a new set of errors, all related to the first field alphabetically in the table.

The error messages are:
- Invalid token '{' in class, struct or interface member declaration.
[This one appears at each '{'.]
- Array size cannot be specified in a variable declaration. (Try initializing with a 'new' expression.)
[This appears at the field name "catcode".]

The code is below. I can't see any difference between it and the other declarations below it.

public catcode
{
get { return ()mmType.GetNonNullableDbValue(this.Row["catcode"], "System."); }
set { this.Row["catcode"] = value; }
}


Thanks for any help you can offer.

update:

Never mind. I had to add the variable type. Got past this one now.

Linda
Linda Harmes
HiBit Technologies, Inc.
Répondre
Fil
Voir

Click here to load this message in the networking platform