feat: 支持 Oracle 数据库

This commit is contained in:
Argo-2016 2020-01-10 12:43:38 +08:00
parent f750a4e60f
commit 8349517e97
3 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="3.1.1-beta-01" />
<PackageReference Include="Bootstrap.Security.DataAccess" Version="3.1.1-beta-02" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.1.1-beta-01" />
<PackageReference Include="Longbow" Version="3.1.0" />
<PackageReference Include="Longbow.Cache" Version="3.1.1-beta-02" />
@ -20,7 +20,7 @@
<PackageReference Include="Longbow.WeChatAuth" Version="3.1.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="3.1.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.0" />
<PackageReference Include="PetaPoco.Extensions" Version="3.0.1" />
<PackageReference Include="PetaPoco.Extensions" Version="3.1.0-beta-01" />
</ItemGroup>
</Project>

View File

@ -14,6 +14,7 @@ namespace Bootstrap.DataAccess
{
var ti = base.GetTableInfo(pocoType);
ti.AutoIncrement = true;
ti.SequenceName = $"SEQ_{ti.TableName.ToUpperInvariant()}_ID";
return ti;
}
}

View File

@ -5,7 +5,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bootstrap.Security.DataAccess" Version="3.1.1-beta-01" />
<PackageReference Include="Bootstrap.Security.DataAccess" Version="3.1.1-beta-02" />
<PackageReference Include="Bootstrap.Security.Mvc" Version="3.1.1-beta-01" />
<PackageReference Include="Longbow" Version="3.1.0" />
<PackageReference Include="Longbow.Cache" Version="3.1.1-beta-02" />