mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +08:00
Update pull
This commit is contained in:
parent
00e574e197
commit
6c81d39aa4
@ -271,18 +271,7 @@ namespace SqlSugar
|
||||
}
|
||||
#endregion
|
||||
|
||||
#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;
|
||||
}
|
||||
#region Methods
|
||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||
{
|
||||
if (isCache)
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.167-preview26</version>
|
||||
<version>5.1.4.167-preview29</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user