Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to analyze ADO.NET entity data Model

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article shows you how to analyze the ADO.NET entity data model, which is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

ADO.NET after a long period of development, many users are very familiar with ADO.NET, here I would like to publish a personal understanding, and discuss with you. The ADO.NET entity data Model Wizard is used to generate entity data models (EDM). Use the entity data Model wizard to create a model from an existing database (recommended for this version of ADO.NET entity data Model designer), or you can generate an empty model.

The entity data Model wizard starts after you add the ASP.NET entity data model to the project, and starts the ADO.NET entity data Model designer (entity designer) after you generate the EDM.

The ADO.NET entity data Model Wizard guides you through the following steps:

1. Select model content

It is recommended that you generate a model from an existing database. In the steps that follow, the entity data Model wizard guides you through the selection of data sources, databases, and database objects to include in the EDM. Generating an empty model requires manually selecting data sources, databases, and database objects after the entity data Model wizard closes.

two。 Select your data connection

You can select an existing connection from the connection drop-down list, or click New Database connection to open the connection Properties dialog box and create a new database connection. Visual Studio Express cannot connect to the server. They can only connect to the file instance of the database.

3. Select database object

If you include stored procedures in EDM, the entity data Model wizard creates items in the storage model that correspond to those stored procedures. You must manually add function imports to the conceptual model. For more information, see how to: import stored procedures. The entity data Model Wizard will create an .edmx file that contains model information after closing. The .edmx file is used by the ADO.NET entity data Model designer, which allows you to view and edit the model graphically.

In addition, the ADO.NET entity data Model wizard creates a source code file that contains classes generated based on the CSDL information in the .edmx file. The source code file is automatically generated and updated when the .edmx file changes. Earlier versions of the entity data Model wizard referenced .csdl, .ssdl, and .msl files. The information in these files is now encapsulated in the .edmx file. The .csdl, .ssdl, and .msl files are now stored in the bin\ Debug directory or the bin\ Release directory of the solution. However, these files should not be edited. Any changes made to EDM should be applied to the .edmx file through the ADO.NET entity data Model designer or the XML editor.

The above content is how to analyze the ADO.NET entity data model. Have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report