pechka-fullstack-setup/Keroosha.Pechka.Web/Database/AppDbContext.cs

21 lines
530 B
C#
Raw Normal View History

2023-07-02 19:21:42 +03:00
using LinqToDB.Data;
using LinqToDB.DataProvider;
using Pechka.AspNet.Database;
namespace Keroosha.Pechka.Web.Database;
public class AppDbContext : DataConnection
{
public AppDbContext(string connectionString, IDataProvider provider) : base(provider, connectionString)
{
}
}
public class AppDbContextManager : DbContextManagerBase<AppDbContext>
{
public AppDbContextManager(IDataProvider provider, string connectionString):
base(() => new AppDbContext(connectionString, provider))
{
}
}