Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with Jump Start Defaults
Message
From
17/12/2006 01:03:05
 
 
To
17/12/2006 00:50:19
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01178365
Message ID:
01178367
Views:
16
>Hello, All -
>
>I've installed MM .NET v2.3 and am going through the jumpstarts (C#) again to look firsthand at any differences.
>
>In step 4 (Generating Business Objects) of the C# "Creating Business Objects" jump start, I've noticed two things:
>1. I'm not able to set the default value of the OrderID field in the OrderDetails table because the checkbox for setting/not setting it is dimmed out. I believe I read something earlier in the manual where foreign key values would be dimmed out, so I believe this is expected behavior now. But it is not addressed this way in the manual (at least the one I downloaded Friday evening).
>2. The Business Layer Generator also does not seem to output an OrderDetailDefaults.cs class file as shown in Step 4, which then causes the following code entered in Step 14 of the "Windows Form Application - C#" jump start to not compile because there is not OrderDetailDefaults class:
> this.oOrderDetail.NewRow(new OrderDetailDefaults(this.oOrder.Entity.OrderID));
>
>Am I missing something, or have I perhaps jumped the gun and downloaded the Dev Guide before the revisions for 2.3 have been completed?
>
>Yours,
>
>Mark

BTW, I do see that simply calling the "plain vanilla" version overload

(this.oOrderDetail.NewRow();

appears to apply all the default values through the HookSetDefaultValues() method, so perhaps the fix is as simple as this?

Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform