mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 21:58:02 +08:00
Update pull
This commit is contained in:
parent
00e574e197
commit
6c81d39aa4
@ -271,18 +271,7 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Methods
|
#region Methods
|
||||||
public override bool IsAnyConstraint(string constraintName)
|
|
||||||
{
|
|
||||||
string query = @"
|
|
||||||
SELECT COUNT(*)
|
|
||||||
FROM ALL_INDEXES
|
|
||||||
WHERE INDEX_NAME = @constraintName
|
|
||||||
AND OWNER = USER";
|
|
||||||
|
|
||||||
var parameters = new { constraintName = constraintName };
|
|
||||||
return this.Context.Ado.GetInt(query, parameters) > 0;
|
|
||||||
}
|
|
||||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||||
{
|
{
|
||||||
if (isCache)
|
if (isCache)
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.167-preview26</version>
|
<version>5.1.4.167-preview29</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user