public DropObject ( DbObjectType objectType, ObjectName objectName ) : bool | ||
objectType | DbObjectType | |
objectName | ObjectName | |
Результат | bool |
public override bool DropObject(DbObjectType objectType, ObjectName objectName)
{
if (objectType == DbObjectType.Cursor)
return Request.Context.DropCursor(objectName.Name);
if (objectType == DbObjectType.Variable)
return Request.Context.DropVariable(objectName.Name);
if (objectType == DbObjectType.Trigger &&
Request.Context.DropTrigger(objectName.Name))
return true;
return base.DropObject(objectType, objectName);
}