mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-21 18:48:27 +08:00
Update Oracle IsAnyConstraint
This commit is contained in:
@@ -272,6 +272,17 @@ 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user