Get the App
SLTechnology News&Howtos  ›  Development  › 

The solution that the ado.net model created by vs2012 can not be instantiated

Shulou Source: shulou.com Published: 2022-06-03 18:51:25 10月03日 Update

This article focuses on "the solution that the ado.net model created by vs2012 can not be instantiated", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the solution that the ado.net model created by vs2012 can't be instantiated.

Recently upgraded from vs2010 to vs2012, building a data model, found that the generated things are not the same as before, and can not be instantiated. Baidu tried n keywords, and I finally found a solution. Record it here.

1. Open the designer, that is, double-click this

two。 If no object is selected, find the attribute, code generation strategy, and change it from none to default.

3. Delete two tt files under edmx

4. Rebuild the project

At this point, I believe you have a deeper understanding of "the solution that the ado.net model created by vs2012 cannot be instantiated". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Methods examples models generation content learning practical deeper things two that is code code generation keys keywords interests practicality actual objects properties Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei NVidia vpn macOS Shulou Information