Last active
June 30, 2021 07:13
-
-
Save gistlyn/20af4d47022946df2e470060022608fd to your computer and use it in GitHub Desktop.
supported-dbs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AppHost : AppHostBase | |
{ | |
public AppHost() : base("Web",typeof(MyServices).Assembly){} | |
public override void Configure(Container container) | |
{ | |
var connectionString = | |
"Server=127.0.0.1;Port=5432;" + | |
"Database=host;User Id=user;" + | |
"Password=myPassword;"; | |
container.Register<IDbConnectionFactory>( | |
new OrmLiteConnectionFactory( | |
connectionString, | |
PostgreSqlDialect.Provider)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment