This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, I have just purchased and installed the NHibernate designer. Whenever I click the "get started" item from the menu, I get the two boxes displayed, one for "configuration" and one for "Code For Your Model". Whenever I click the configure button, I get an error message saying that it is unable to locate the visual studio project and to configure manually. In the "Code For Your Model" box, I am always just getting the following line - "Unrecognised project type; can't generate starter code for this language" I am using Visual Studio 2012 Premium on Windows 8 64 Bit. I have NHibernate 3.3.1.4000 installed. Regards Simon |
|
|
In fact, I am having lots of problems. I have followed the getting started guide. I have added a couple of tables from a Sql Server database, and they added OK. Just nothing after that seems to work as it should. Firstly, I don't get a popup asking me how to generate the code, i.e. file per class etc. Also, whenever I click an entity and select Show Data, I get an error message "Object Reference Not Set To AN Instance of an object". When I click the refactor menu item, and then generate partial classes, I get another error message Null Reference Exception. I dont appear to get any files generated either unless I am missing the whole concept. I am really struggling with this tool and am a bit disappointed with it as a whole at the moment. I have to say that a short introduction tutorial video on this would have also been extremely useful. Please could someone help out ASAP as I would like to work on this over the weekend. Many thanks Simon |
|
|
Hi Simon, Sorry to hear you are having these issues - I am investigating what is occuring here and we will likely need to make an update once we have tracked down the cause of this so I will let you know once I have an update for this. JD passed on the details you send via email so thanks for the extra detail there.
|
|
|
Hi Simon, I have made a number of updates which I believe should address most of these issues and these will be available in the next nightly build. These are updated around midday UTC.
|
|
|
Hi Jeremy, That's great - thank you. I will give it a try this evening and let you know. Kind Regards Simon |
|
|
Hi Jeremy, Just to let you know, it all worked fine with the latest nightly build. Just out of interest, is there any way to get it to generate separate mapping files? Many thanks Simon |
|
|
Hi Simon, Thanks thats good to hear! By "generating seperate mapping files" are you meaning having it generate a file per class or having the mapping XML generated into an independent file?
|
|
|
Hi Jeremy, I am wanting to have the mapping Xml generated into a seperate file and wondered if that was possible. Many thanks Simon |
|
|
No, the mapping currently is always embedded with the class so its not possible to have this generated in a seperate file Im afraid. That does sound like a good future enhancement though - did you want to add it to the Feature Requests (http://www.mindscapehq.com/thinktank/product/25) and we will certainly look in to adding this option in the future if there is enough interest.
|
|