From 82a86b9dfff36195f789dc607a29b5331df0b9f7 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 16 Nov 2023 10:59:29 +0800 Subject: [PATCH] remove unused DbExec --- MyApp/Configure.AppHost.cs | 10 ---------- 1 file changed, 10 deletions(-) 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 {