Skip to content

Instantly share code, notes, and snippets.

View andlewis's full-sized avatar
💭
Debating the merits of immanentizing the eschaton

Andrew Lewis andlewis

💭
Debating the merits of immanentizing the eschaton
View GitHub Profile
@andlewis
andlewis / AuthorService.cs
Created February 10, 2012 13:28 — forked from mythz/AuthorService.cs
1 class in ServiceStack
/*
With no other C# or config other than OrmLite DB config in AppHost below - this web service provides all the screenshots attached, out-of-the-box, for free.
Code-first Simplicity at Great Speed - http://www.servicestack.net/benchmarks/
container.Register<IDbConnectionFactory>(
new OrmLiteConnectionFactory(ConfigUtils.GetConnectionString("AppDb"), //ConnectionString in Web.Config
SqlServerOrmLiteDialectProvider.Instance) {
ConnectionFilter = x => new ProfiledDbConnection(x, Profiler.Current) });