In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly shows you "Visual Studio 2010 RC how to install EF POCO Template", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn how to install EF POCO Template in Visual Studio 2010 RC "this article.
Templates are designed for VS 2010 Beta, and additional effort is required to use them in Visual Studio 2010 RC.
Install the template file directly first. Using this template, you will refer to the following file, EF.Utility.CS.ttinclude, which was installed by Visual Studio 2010 RC in 2010.
When using the POCO template, there is an error message:
This is due to a change in the EF.Utility.CS.ttinclude referenced by T4.
There are two ways to choose:
1. The coexistence of Beta 2 and Visual Studio 2010 RC requires the original VS 2010 Beta 2 installation file.
1. Find the\ WCU\ EFTools\ directory
2. Open the ADONETEntityFrameworkTools_enu.cab file
3. Extract two files EntityDesignerTemplates_EFInclude.
4. Copy to E:\ Program Files\ Microsoft Visual Studio 10.0\ Common7\ IDE\ Extensions\ Microsoft\ Entity Framework Tools\ Templates\ Includes
5. Change the name
EF.B2.Utility.CS.ttinclude
EF.B2.Utility.VB.ttinclude
6. Find the template file
Under\ AppData\ Local\ Microsoft\ VisualStudio\ 10.0\ Extensions\ Microsoft under the user directory, there are two corresponding directories, CS and VB.
\ AppData is a hidden directory.
Take CS as an example, and then open the directory\ Microsoft ADO.NET C # POCO Entity Generator\ 1.0\ T\ Code, and there will be a CSharpPocoItems.zip.
7. Modify the template file
Extract the two files CSharpPoco.Context.tt and CSharpPoco.Types.tt in the compressed package.
Put the second line
Change to
8. Add the two modified files to the compressed package.
Done.
It's a little complicated. Let's look at the second way.
Second, modify the template file directly.
This does not require a Beta 2 installation.
1. The research error indicates that the problem lies in line 15.
2. Find the template file, namely CSharpPocoItems.zip
3. Extract CSharpPoco.Types.tt
4. Modify line 15
TemplateFileManager fileManager = TemplateFileManager.Create (this)
Change it to:
EntityFrameworkTemplateFileManagerfileManager=EntityFrameworkTemplateFileManager.Create (this)
5. Modify line 678
FileManager.WriteFiles ()
Change it to:
FileManager.Process ()
6. Add the modified files to the compressed package.
Done.
The above is all the contents of the article "how to install EF POCO Template in Visual Studio 2010 RC". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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: 289
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.