Deveel.Data.Sql.Statements.DropTypeStatement.DropType C# (CSharp) Method

DropType() private method

private DropType ( ExecutionContext context, ObjectName typeName ) : void
context ExecutionContext
typeName ObjectName
return void
        private void DropType(ExecutionContext context, ObjectName typeName)
        {
            if (!context.DirectAccess.DropObject(DbObjectType.Type, typeName))
                throw new StatementException(String.Format("Could not drop type '{0}' for an unknown reason.", typeName));

            context.DirectAccess.RevokeAllGrantsOn(DbObjectType.Type, typeName);
        }