Ask Your Question
2

What is the process for generating an object model using dot net from a database, which gives an error citing an invalid object name of 'MyData'?

asked 2021-10-31 11:00:00 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-09-28 02:00:00 +0000

huitzilopochtli gravatar image

The process for generating an object model using dot net from a database involves following these steps:

  1. Open Visual Studio and create a new project.

  2. Add a new item to the project, and select "ADO.NET Entity Data Model" from the list of options.

  3. Choose "EF Designer from Database" and click "Next".

  4. Choose the database connection you want to use, and click "Next".

  5. Select the database objects you want to include in the model, and click "Finish".

  6. If you encounter an error citing an invalid object name of 'MyData', it means that the database object you are trying to include in the model does not exist.

  7. To resolve this error, you need to check the spelling of the object name and ensure that it exists in the database.

  8. Once you have resolved the error, regenerate the object model using the steps above.

  9. The object model should now be generated successfully, and you can start using it in your application.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-10-31 11:00:00 +0000

Seen: 8 times

Last updated: Sep 28 '22