Use Entity Framework code first in appharbor

Source: Internet
Author: User

Currently, the default setting of Entity Framework code first in appharbor may cause some problems, because EF will execute dropcreatedb by default, and appharbor has the permission to drop.

Currently, the solution provided by appharbor is to use this nuget package.

However, even though this package is not explicitly stated in the package, it does not actually support the latest EF 4.3.1, because the migrations function provided by the latest EF is different from the previous one, there are no tables such as ed1_adata. In short, the solution is to use EF 4.1 .*

In addition, this package is also subject to the use of webactivator, I personally feel that as long as you add in application_startCode--

Despite all sorts of unhappiness, we can simply run-v-

By the way, the appharbor document is really orz. For example, what connection string alias cannot be used in EF code first? Actually, it is okay, but I want to add"Multipleactiveresultsets = true;" you may need to write some code. Please refer to the documentation. I haven't tried it yet.

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.