Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Business Layer class errors
Message
From
11/04/2007 15:23:00
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
11/04/2007 14:40:18
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01214606
Message ID:
01214649
Views:
13
OK, I may have posted hastily as I am in a big time crunch with this new project. It appears the BLG wasn't able to determine the type for the columns in the access table. After going through all the objects and putting in the proper type such as this below
public string ValidateCompany(? company) with this
public string ValidateCompany(string company) all the way through the objects it builds ok. What I don't understand is why some of the instances have a "?" and other places it is left empty. The BLG was able to find the access tables and the columns but ultimately didn't identify the column types. Has anybody else found this behavior?
Tim

>I am using version 2.3 of the framework and getting errors right after a successful business layer generation. I have not added a single line of code to the classess generated but when I build I get errors in the classess. Here is one of them.
>
>Identifier expected
>The code is this
>public string ValidateButton_Flagged( button_Flagged)
>
>And it is in the Rules object for one of the business objects. Button_Flagged is a field in the table.
>
>Another also in the Rules object is:
>"Type Expected"
>in this code:
>public string ValidateCompany(? company)
>{
> string Msg = null;
> if (mmType.IsEmpty(company))
> {
> this.EntityPropertyDisplayName = "Company";
>
> Msg = this.RequiredFieldMessagePrefix +
> this.EntityPropertyDisplayName +
> this.RequiredFieldMessageSuffix;
>
> AddErrorProviderBrokenRule("Company", Msg);
> }
> return Msg;
>}
>
>There are actually several errors flagged within this block of code.
>
>My data is an Access table. Should I expect to create business objects with the generator without any errors if the BLG completes successful?
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform