ORM Petapoco Error--vs in NuGet package management installation Petapoco

Source: Internet
Author: User

The general use of Petapoco in VS is using NuGet package management to install Petapoco, if you set connectionstring before installing Petapoco, Then the T4 template in Petapoco will automatically create the corresponding class for your database. PS: This is the advantage of Petapoco, but I personally like to create the class manually, do not know how to block this feature.

But when the T4 template creates a class for you, the namespace of its automatically generated code is the name tag of your connectionstring. So the question is, if the string in your name tag contains a space, then the generated namespace is also marked with a space, then the VS will be an error when compiling. So it's important to note that this is neither a code error nor a logic error ...

ORM Petapoco Error--vs in NuGet package management installation Petapoco

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.