18 lines
459 B
C#
18 lines
459 B
C#
using RIZO.Server.EFCore;
|
|
|
|
namespace RIZO.Server.EFContext
|
|
{
|
|
public class EFContext : IEFContext.IEFContext
|
|
{
|
|
IConfiguration.IConfiguration _configuration;
|
|
public EFContext(IConfiguration.IConfiguration configuration)
|
|
{
|
|
_configuration = configuration;
|
|
}
|
|
public EFCoreContext CreateDBContext()
|
|
{
|
|
return new EFCoreContext(_configuration.Read("DBConnectStr"));
|
|
}
|
|
}
|
|
}
|