diff --git a/MyApp/Configure.AppHost.cs b/MyApp/Configure.AppHost.cs index ba591f0..1cf3b20 100644 --- a/MyApp/Configure.AppHost.cs +++ b/MyApp/Configure.AppHost.cs @@ -36,16 +36,6 @@ public override void Configure(Container container) } } -public static class AppExtensions -{ - public static T DbExec(this IServiceProvider services, Func fn) => - services.DbContextExec(ctx => - { - ctx.Database.OpenConnection(); - return ctx.Database.GetDbConnection(); - }, fn); -} - // Add any additional metadata properties you want to store in the Users Typed Session public class CustomUserSession : AuthUserSession {