From 8349517e97c8fdafad73f7ef6c281ce1edb51d7d Mon Sep 17 00:00:00 2001 From: Argo-2016 Date: Fri, 10 Jan 2020 12:43:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=20Oracle=20=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj | 4 ++-- .../BootstrapDataAccessConventionMapper.cs | 1 + .../Bootstrap.Client.DataAccess.csproj | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj index e356a9eb..19bb39f2 100644 --- a/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj +++ b/src/admin/Bootstrap.DataAccess/Bootstrap.DataAccess.csproj @@ -5,7 +5,7 @@ - + @@ -20,7 +20,7 @@ - + diff --git a/src/admin/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs b/src/admin/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs index ec7a8820..954042a7 100644 --- a/src/admin/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs +++ b/src/admin/Bootstrap.DataAccess/BootstrapDataAccessConventionMapper.cs @@ -14,6 +14,7 @@ namespace Bootstrap.DataAccess { var ti = base.GetTableInfo(pocoType); ti.AutoIncrement = true; + ti.SequenceName = $"SEQ_{ti.TableName.ToUpperInvariant()}_ID"; return ti; } } diff --git a/src/client/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj b/src/client/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj index 2d7267c9..0870cdee 100644 --- a/src/client/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj +++ b/src/client/Bootstrap.Client.DataAccess/Bootstrap.Client.DataAccess.csproj @@ -5,7 +5,7 @@ - +