Search Results for

    Show / Hide Table of Contents

    Class ColumnProperties

    A record representing the properties of a column.

    Inheritance
    object
    ColumnProperties
    Implements
    IEquatable<ColumnProperties>
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.Connections.Database.Migrations.Core
    Assembly: LemonEdge.Database.Connector.dll
    Syntax
    public record ColumnProperties : IEquatable<ColumnProperties>

    Constructors

    ColumnProperties(ColumnProperties)

    Declaration
    protected ColumnProperties(ColumnProperties original)
    Parameters
    Type Name Description
    ColumnProperties original

    ColumnProperties(string, SQLType, bool, int)

    A record representing the properties of a column.

    Declaration
    public ColumnProperties(string Name, SQLType Type, bool IsNullable, int MaxLength)
    Parameters
    Type Name Description
    string Name

    The Name

    SQLType Type

    The SQLType

    bool IsNullable

    Whether it is nullable

    int MaxLength

    The maximum length

    Properties

    EqualityContract

    Declaration
    protected virtual Type EqualityContract { get; }
    Property Value
    Type Description
    Type

    IsNullable

    Whether it is nullable

    Declaration
    public bool IsNullable { get; init; }
    Property Value
    Type Description
    bool

    MaxLength

    The maximum length

    Declaration
    public int MaxLength { get; init; }
    Property Value
    Type Description
    int

    Name

    The Name

    Declaration
    public string Name { get; init; }
    Property Value
    Type Description
    string

    Type

    The SQLType

    Declaration
    public SQLType Type { get; init; }
    Property Value
    Type Description
    SQLType

    Methods

    Deconstruct(out string, out SQLType, out bool, out int)

    Declaration
    public void Deconstruct(out string Name, out SQLType Type, out bool IsNullable, out int MaxLength)
    Parameters
    Type Name Description
    string Name
    SQLType Type
    bool IsNullable
    int MaxLength

    Equals(ColumnProperties?)

    Declaration
    public virtual bool Equals(ColumnProperties? other)
    Parameters
    Type Name Description
    ColumnProperties other
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    PrintMembers(StringBuilder)

    Declaration
    protected virtual bool PrintMembers(StringBuilder builder)
    Parameters
    Type Name Description
    StringBuilder builder
    Returns
    Type Description
    bool

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    <Clone>$()

    Declaration
    public virtual ColumnProperties <Clone>$()
    Returns
    Type Description
    ColumnProperties

    Operators

    operator ==(ColumnProperties?, ColumnProperties?)

    Declaration
    public static bool operator ==(ColumnProperties? left, ColumnProperties? right)
    Parameters
    Type Name Description
    ColumnProperties left
    ColumnProperties right
    Returns
    Type Description
    bool

    operator !=(ColumnProperties?, ColumnProperties?)

    Declaration
    public static bool operator !=(ColumnProperties? left, ColumnProperties? right)
    Parameters
    Type Name Description
    ColumnProperties left
    ColumnProperties right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.