Class SqlObjectChangeDescriptor
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
DataType
Represents a change in column's ISqlDataType from its TypeDefinition property.
public static readonly SqlObjectChangeDescriptor<ISqlDataType> DataType
Field Value
DefaultValue
Represents a change in column's DefaultValue property.
public static readonly SqlObjectChangeDescriptor<SqlExpressionNode?> DefaultValue
Field Value
Filter
Represents a change in index's Filter property.
public static readonly SqlObjectChangeDescriptor<SqlConditionNode?> Filter
Field Value
IsNullable
Represents a change in column's IsNullable property.
public static readonly SqlObjectChangeDescriptor<bool> IsNullable
Field Value
IsRemoved
Represents a change in object's IsRemoved property.
public static readonly SqlObjectChangeDescriptor<bool> IsRemoved
Field Value
IsUnique
Represents a change in index's IsUnique property.
public static readonly SqlObjectChangeDescriptor<bool> IsUnique
Field Value
IsVirtual
Represents a change in index's IsVirtual property.
public static readonly SqlObjectChangeDescriptor<bool> IsVirtual
Field Value
Name
Represents a change in object's Name property.
public static readonly SqlObjectChangeDescriptor<string> Name
Field Value
OnDeleteBehavior
Represents a change in foreign key's OnDeleteBehavior property.
public static readonly SqlObjectChangeDescriptor<ReferenceBehavior> OnDeleteBehavior
Field Value
OnUpdateBehavior
Represents a change in foreign key's OnUpdateBehavior property.
public static readonly SqlObjectChangeDescriptor<ReferenceBehavior> OnUpdateBehavior
Field Value
PrimaryKey
Represents a change in index's PrimaryKey property.
public static readonly SqlObjectChangeDescriptor<SqlPrimaryKeyBuilder?> PrimaryKey
Field Value
Properties
Description
Description of the change.
public string Description { get; }
Property Value
Key
Identifier of the change.
public int Key { get; }
Property Value
Type
Type of the property associated with this change.
public abstract Type Type { get; }
Property Value
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
SqlObjectChangeDescriptorAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
[Pure]
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
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
SqlObjectChangeDescriptorFirst operand.
b
SqlObjectChangeDescriptorSecond 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
SqlObjectChangeDescriptorFirst operand.
b
SqlObjectChangeDescriptorSecond operand.
Returns
- bool
true when operands are not equal, otherwise false.