Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Question on program flow
Just another one of my newby questions.
I am working on learning MM .NET and I have a question on if the results I am seeing is correct MM behavior or something is wrong.
I created a new project using C#, latest MM 4.0 build, VS2010 and WPF windows with EF business objects.
As part of the project I have turned on MM security.
To start out simple I first got the Roles window that the MM project wizard added for me working. My issue is that when I am in the role window the only way I have been able to add a new role is to follow the following steps:
1) on the list tab I click on the Add button
2) then a window comes up that says "Do you want to save changes" with Yes/No/Cancel buttons.
3) then even though I have made no changes I have to click the Yes button. clicking either the no or cancel button will not allow me to add a new role.
4) next even though I haven't yet had a chance to do any edits the broken rule window comes up with the message a description is required.
5) now it goes to the properties tab, with the description text box outlined in red.
6) I can now enter the description and click the save button and the roll will be added.
I seem to have no problems either editing or deleting an existing role, just adding one is giving me fits.
Thanks for any help.
Tom
PS
I found that if you have a table field flagged as not nullable and don't have a default value defined in the business objects constructor it generates an unhandled exception error. You might want to modify your business object generator to force a default value for any fields flagged as not nullable.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement