mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-10 03:14:57 +08:00
-
This commit is contained in:
@@ -217,6 +217,7 @@ namespace SqlSugar
|
|||||||
() =>
|
() =>
|
||||||
{
|
{
|
||||||
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
|
var oldIsEnableLog = this.Context.Ado.IsEnableLogEvent;
|
||||||
|
this.Context.Ado.IsEnableLogEvent = false;
|
||||||
string sql = @" select cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au
|
string sql = @" select cu.COLUMN_name KEYNAME from user_cons_columns cu, user_constraints au
|
||||||
where cu.constraint_name = au.constraint_name
|
where cu.constraint_name = au.constraint_name
|
||||||
and au.constraint_type = 'P' and au.table_name = '" +tableName.ToUpper()+ @"'";
|
and au.constraint_type = 'P' and au.table_name = '" +tableName.ToUpper()+ @"'";
|
||||||
|
|||||||
Reference in New Issue
Block a user