Table of Contents

Interface ISqlObjectBuilder

Namespace
LfrlAnvil.Sql.Objects.Builders
Assembly
LfrlAnvil.Sql.Core.dll

Represents an SQL object builder.

public interface ISqlObjectBuilder

Properties

CanRemove

Specifies whether or not this object can be removed.

bool CanRemove { get; }

Property Value

bool

Database

Database that this object belongs to.

ISqlDatabaseBuilder Database { get; }

Property Value

ISqlDatabaseBuilder

IsRemoved

Specifies whether or not this object has been removed.

bool IsRemoved { get; }

Property Value

bool

Name

Object's name.

string Name { get; }

Property Value

string

ReferencingObjects

Collection of sources that reference this object.

SqlObjectBuilderReferenceCollection<ISqlObjectBuilder> ReferencingObjects { get; }

Property Value

SqlObjectBuilderReferenceCollection<ISqlObjectBuilder>

Type

Object's type.

SqlObjectType Type { get; }

Property Value

SqlObjectType

Methods

Remove()

Removes this object.

void Remove()

Exceptions

SqlObjectBuilderException

When this object cannot be removed.

SetName(string)

Changes the name of this object.

ISqlObjectBuilder SetName(string name)

Parameters

name string

Name to set.

Returns

ISqlObjectBuilder

this.

Exceptions

SqlObjectBuilderException

When name cannot be changed.