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
|
When i drag a table from the server explorer to the model i get the following exception:
Exception while processing Server Explorer drag: System.NullReferenceException: Object reference not set to an instance of an object.
at Mindscape.LightSpeed.Generator.Integration.EntityBuilder.AddTablesToModel(Model model, IDesignTimeNamingStrategy namingStrategy, ILightSpeedDataSource connection, IEnumerable`1 tableNames, IGenerationLog log)
at Mindscape.LightSpeed.Generator.Integration.DiagramDragDropHandler.<>c__DisplayClass4.<OnDragDrop>b__3(DragObject dragObject, IGenerationLog log)
at Mindscape.LightSpeed.Generator.Integration.ServerExplorer.IfIsServerExplorerDrag(DragEventArgs e, DragAction action)
I have tried to reinstall lightspeed with out any luck. I am on a windows 7 ultimate machine with visual studio 2010. I hope you can help me. |
|
|
Hmm, not sure what could cause this I'm afraid. There's nothing in that method that looks like it could throw a NRE. Can you confirm that there is nothing above AddTablesToModel in the stack trace? Does it happen with all tables, or just with particular tables (e.g. one particular table, or tables in a particular schema)? What database are you using? As a workaround, you could try setting up the database connection by hand (using the model's Connection String and Database Provider settings), creating empty entities (with suitable table mappings via the Table Name property) using the Toolbox, then using Update From Source to synchronise the empty entities to the database tables. Does that work or do you still get the NRE? |
|
|
Hi Ivan I managed to solve the problem. I tried to drag tables from the wrong place instead of dataconnections. So it was my own mistake. Thanks for your reply. |
|