mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-21 02:57:54 +08:00
fix issue #I3YVBH 兼容oracle 11g
add load all users/roles for flowinstance fix issue #I3W5YR
This commit is contained in:
@@ -10,7 +10,7 @@ namespace OpenAuth.Repository.Core
|
||||
public class LongEntity :BaseEntity
|
||||
{
|
||||
[Browsable(false)]
|
||||
public long Id { get; set; }
|
||||
public decimal Id { get; set; }
|
||||
public override bool KeyIsNull()
|
||||
{
|
||||
return Id == 0;
|
||||
|
@@ -21,14 +21,16 @@ namespace OpenAuth.Repository
|
||||
private ILoggerFactory _LoggerFactory;
|
||||
private IHttpContextAccessor _httpContextAccessor;
|
||||
private IConfiguration _configuration;
|
||||
private IOptions<AppSetting> _appConfiguration;
|
||||
|
||||
public OpenAuthDBContext(DbContextOptions<OpenAuthDBContext> options, ILoggerFactory loggerFactory,
|
||||
IHttpContextAccessor httpContextAccessor, IConfiguration configuration)
|
||||
IHttpContextAccessor httpContextAccessor, IConfiguration configuration, IOptions<AppSetting> appConfiguration)
|
||||
: base(options)
|
||||
{
|
||||
_LoggerFactory = loggerFactory;
|
||||
_httpContextAccessor = httpContextAccessor;
|
||||
_configuration = configuration;
|
||||
_appConfiguration = appConfiguration;
|
||||
}
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
@@ -65,7 +67,7 @@ namespace OpenAuth.Repository
|
||||
}
|
||||
else
|
||||
{
|
||||
optionsBuilder.UseOracle(connect);
|
||||
optionsBuilder.UseOracle(connect,options =>options.UseOracleSQLCompatibility("11"));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user