Barefoot learning LINQ (021): Using Stored Procedures in LINQ (C #)

Source: Internet
Author: User

Http://u.115.com/file/f2f879dd4b demo

This walkthrough provides the basic end-to-end solution for writing data through only the stored procedure. Database Administrators often use this method to restrict access to data storage.

For the purpose of this walkthrough, you will use two methods mapped to the stored procedure in the northwind Sample Database: custordersdetail and custorderhist. This ing occurs when you run sqlmetal command line tool to generate a C # file.

C # generated from the northwind database #CodeFile.
This walkthrough usesSqlmetalTool and the following command line:

Sqlmetal/Code: "C: \ linqtest7 \ northwind. cs"/language: CSHARP "C: \ linqtest \ northwind. MDF"/sprocs/functions/pluralize
Related Article

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.