Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question on program flow
Message
From
22/04/2011 15:28:51
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
22/04/2011 13:37:23
Tom Eby
Horizon Transport
Indiana, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01508123
Message ID:
01508155
Views:
28
>Tim
>
>Hopefully this is a better explanation of my PS (still skipped a bunch of steps but you gt the idea).
>I modified the User table and added 2 text fields flagged as nonnullable with no defaults in SQL Server.
>During creation of the business project I added the User table to the EntityDataModel.edmx and made no changes, left all as default
>I use the Business Layer Generator to create the User business objects, again left all as default.
>Create my WPF project and linked it to the business project
>Tinkered with the project to setup SQL access and enable MM security and got the build running.
>When I tried to run the Users Maintenance window it genereate the unhandled null exception before the window ever came up.
>I went into the constructor of the User.cs file, defaulted the 2 new text fields to a space (entity.DispatchBegin = " ";)
>Error went away and User window would open.
>
>Tom

It seems to me you may need to subclass the mmUserManager class and add support for the added columns. There are properties for each column in the table in this class. I have extended the Users table many times without that problem but I have always extended the base user Manager class and added properties for those columns.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform