Table of Contents

Interface INeosColumn

Namespace
GroupeIsa.Neos.Migration.Schema
Assembly
GroupeIsa.Neos.Migration.Abstractions.dll

Provides the functionalities of a column.

public interface INeosColumn : IEquatable<INeosColumn>
Inherited Members

Properties

ComputedColumnPersistenceMode

Gets or sets the persistence mode for computed columns.

ComputedColumnPersistenceMode ComputedColumnPersistenceMode { get; set; }

Property Value

ComputedColumnPersistenceMode

ComputedExpression

Gets or sets the computed SQL expression for the active database provider.

string? ComputedExpression { get; set; }

Property Value

string

DefaultValue

Gets or sets the default value.

object? DefaultValue { get; set; }

Property Value

object

MaxLength

Gets or sets the max length.

int? MaxLength { get; set; }

Property Value

int?

Name

Gets or sets name.

string Name { get; set; }

Property Value

string

Nullable

Gets or sets a value indicating whether the column is nullable or not.

bool Nullable { get; set; }

Property Value

bool

OldNames

Gets or sets the OldNames.

[NotMapped]
ReadOnlyArray<string>? OldNames { get; set; }

Property Value

ReadOnlyArray<string>

OracleComputedExpression

Gets or sets the computed SQL expression for Oracle.

string? OracleComputedExpression { get; set; }

Property Value

string

PostgreSqlComputedExpression

Gets or sets the computed SQL expression for PostgreSQL.

string? PostgreSqlComputedExpression { get; set; }

Property Value

string

Precision

Gets or sets the decimal precision.

int? Precision { get; set; }

Property Value

int?

Scale

Gets or sets the numeric scale.

int? Scale { get; set; }

Property Value

int?

SqlServerComputedExpression

Gets or sets the computed SQL expression for SQL Server.

string? SqlServerComputedExpression { get; set; }

Property Value

string

TableName

Gets or sets the name of the table.

string TableName { get; set; }

Property Value

string

Type

Gets or sets type.

ColumnType Type { get; set; }

Property Value

ColumnType

Methods

Clone()

Creates a clone of the column.

INeosColumn Clone()

Returns

INeosColumn

The clone.

IsString()

Gets a value indicating whether the column is a string or not.

bool IsString()

Returns

bool

True if the column type is a string type, false otherwise.

WithNullability(bool)

Sets the column nullability.

INeosColumn WithNullability(bool nullable)

Parameters

nullable bool

Nullable.

Returns

INeosColumn

The instance.