How to add an ADO. NET File Project

Source: Internet
Author: User

How to add an ADO. NET File Project

The ADO. NET Entity Data Model version is also rapidly upgraded with the development of science and technology in the ERA. Next I will analyze Visual Studio before and after the upgrade. Hope to help you

These three stored procedures must be mapped to the object class at the same time. That is to say, if you map a stored procedure to an object class insertion method, the update and deletion operations must also be mapped to the stored procedure, these three stored procedures operate on the User table. Therefore, select the UserInfo object class and map the object to the function tab for setting in the ing details.

Add an ADO. NET Entity Data Model file, select to generate a Model from the database. When selecting a database object, you must check the table above and the stored procedure. This completes the generation of the Object Data Model.

However, if you use ADO. NET Framework to perform CRUD operations on Data at this time, the stored procedure will not be used. My ADO. NET Entity Data models need to map the stored procedure. The mappings between queries and the other three operations are discussed separately.

First, query the import of stored procedures. In the model browser, right-click Function Import and choose create function import.

In the displayed dialog box, select a stored procedure name for query. After ADO. NET Entity Data Model is set, the name of the function used to call the method is set, and the return type of the method is set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.