Skip to content

Commit

Permalink
remove unused DbExec
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Nov 16, 2023
1 parent 25b0b8b commit 82a86b9
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions MyApp/Configure.AppHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,6 @@ public override void Configure(Container container)
}
}

public static class AppExtensions
{
public static T DbExec<T>(this IServiceProvider services, Func<System.Data.IDbConnection, T> fn) =>
services.DbContextExec<ApplicationDbContext, T>(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
{
Expand Down

0 comments on commit 82a86b9

Please sign in to comment.