Table of Contents

Class SqlObjectChangeDescriptor

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

Represents a type-erased description of an SQL object builder property change.

public abstract class SqlObjectChangeDescriptor : IEquatable<SqlObjectChangeDescriptor>
Inheritance
SqlObjectChangeDescriptor
Implements
Derived
Inherited Members

Fields

Computation

Represents a change in column's Computation property.

public static readonly SqlObjectChangeDescriptor<SqlColumnComputation?> Computation

Field Value

SqlObjectChangeDescriptor<SqlColumnComputation?>

DataType

Represents a change in column's ISqlDataType from its TypeDefinition property.

public static readonly SqlObjectChangeDescriptor<ISqlDataType> DataType

Field Value

SqlObjectChangeDescriptor<ISqlDataType>

DefaultValue

Represents a change in column's DefaultValue property.

public static readonly SqlObjectChangeDescriptor<SqlExpressionNode?> DefaultValue

Field Value

SqlObjectChangeDescriptor<SqlExpressionNode>

Filter

Represents a change in index's Filter property.

public static readonly SqlObjectChangeDescriptor<SqlConditionNode?> Filter

Field Value

SqlObjectChangeDescriptor<SqlConditionNode>

IsNullable

Represents a change in column's IsNullable property.

public static readonly SqlObjectChangeDescriptor<bool> IsNullable

Field Value

SqlObjectChangeDescriptor<bool>

IsRemoved

Represents a change in object's IsRemoved property.

public static readonly SqlObjectChangeDescriptor<bool> IsRemoved

Field Value

SqlObjectChangeDescriptor<bool>

IsUnique

Represents a change in index's IsUnique property.

public static readonly SqlObjectChangeDescriptor<bool> IsUnique

Field Value

SqlObjectChangeDescriptor<bool>

IsVirtual

Represents a change in index's IsVirtual property.

public static readonly SqlObjectChangeDescriptor<bool> IsVirtual

Field Value

SqlObjectChangeDescriptor<bool>

Name

Represents a change in object's Name property.

public static readonly SqlObjectChangeDescriptor<string> Name

Field Value

SqlObjectChangeDescriptor<string>

OnDeleteBehavior

Represents a change in foreign key's OnDeleteBehavior property.

public static readonly SqlObjectChangeDescriptor<ReferenceBehavior> OnDeleteBehavior

Field Value

SqlObjectChangeDescriptor<ReferenceBehavior>

OnUpdateBehavior

Represents a change in foreign key's OnUpdateBehavior property.

public static readonly SqlObjectChangeDescriptor<ReferenceBehavior> OnUpdateBehavior

Field Value

SqlObjectChangeDescriptor<ReferenceBehavior>

PrimaryKey

Represents a change in index's PrimaryKey property.

public static readonly SqlObjectChangeDescriptor<SqlPrimaryKeyBuilder?> PrimaryKey

Field Value

SqlObjectChangeDescriptor<SqlPrimaryKeyBuilder>

Properties

Description

Description of the change.

public string Description { get; }

Property Value

string

Key

Identifier of the change.

public int Key { get; }

Property Value

int

Type

Type of the property associated with this change.

public abstract Type Type { get; }

Property Value

Type

Methods

Equals(SqlObjectChangeDescriptor?)

Indicates whether the current object is equal to another object of the same type.

[Pure]
public bool Equals(SqlObjectChangeDescriptor? other)

Parameters

other SqlObjectChangeDescriptor

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

[Pure]
public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

[Pure]
public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string representation of this SqlObjectChangeDescriptor instance.

[Pure]
public override string ToString()

Returns

string

String representation.

Operators

operator ==(SqlObjectChangeDescriptor?, SqlObjectChangeDescriptor?)

Checks if a is equal to b.

[Pure]
public static bool operator ==(SqlObjectChangeDescriptor? a, SqlObjectChangeDescriptor? b)

Parameters

a SqlObjectChangeDescriptor

First operand.

b SqlObjectChangeDescriptor

Second operand.

Returns

bool

true when operands are equal, otherwise false.

operator !=(SqlObjectChangeDescriptor?, SqlObjectChangeDescriptor?)

Checks if a is not equal to b.

[Pure]
public static bool operator !=(SqlObjectChangeDescriptor? a, SqlObjectChangeDescriptor? b)

Parameters

a SqlObjectChangeDescriptor

First operand.

b SqlObjectChangeDescriptor

Second operand.

Returns

bool

true when operands are not equal, otherwise false.