Using linqpad with Entity Framework

Source: Internet
Author: User

Linqpad lets you query Entity Framework models that you define in Visual Studio. In a nutshell, here's how to proceed:

    1. CreateADO. NET Entity Data ModelIn a Visual Studio project, and build.
    2. From linqpad, clickAdd connection(Top left)
    3. SetData ContextDropdownCustom Entity Framework objectcontext:
    4. ClickBrowseAnd locate the Assembly (DLL or EXE) that you built in Step 1:
    5. Choose your typed objectcontext class and Entity Data Model:
    6. ConfirmSQL ServerAndDatabaseDetails and click OK.
    7. Your conceptual model will now show in the schema explorer. Right-click to start a new query:

A few notes:

    • You can return to Visual Studio at any time and rebuild-linqpad will not lock your assembly.
    • Linqpad automatically refreshes the schema explorer and autocompletion cache whenever the Assembly changes.
    • If your Assembly references other assemblies, linqpad will pick up these, too, providing they live inSame folder.

Http://www.linqpad.net/EntityFramework.aspx

 

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.