Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Collection of useful tools for getting apps running with AppHarbor
Latest commit 4fc2787 @csainty Update nuget package
Failed to load latest commit information.
src Update nuget package
.gitignore Allow simple enabling of MARS for connection strings. Updated README


AppHarbify.Tools is a collection of small nuget packages that help make your software deployable to AppHarbor by AppHarbify.


A common pattern with EF is to define your DataContext like so.

public class FooContext : DbContext {  
    public FooContext() : base ("Foo")  

Which then, by convention, picks up a connection string named Foo.

This doesn't work very well for AppHarbify as by default on AppHarbor, the connection string lives in an AppSetting called SQLSERVER_CONNECTION_STRING.

AppHarbify.EF makes it really simple to override this convention when it detects the AppSetting, leaving it alone when it does not, so that with a single line of code you can support running on AppHarbor with no setup.

First install the package Install-Package AppHarbify.EF
Then add the following line of code somewhere in your app startup process.


You can also enable MultipleActiveResultSets by simply passing in true, which will append MultipleActiveResultSets=True; to the connection string provided by AppHarbor.


See Also

Something went wrong with that request. Please try again.