Interface INeosColumn
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
ComputedExpression
Gets or sets the computed SQL expression for the active database provider.
string? ComputedExpression { get; set; }
Property Value
DefaultValue
Gets or sets the default value.
object? DefaultValue { get; set; }
Property Value
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
Nullable
Gets or sets a value indicating whether the column is nullable or not.
bool Nullable { get; set; }
Property Value
OldNames
Gets or sets the OldNames.
[NotMapped]
ReadOnlyArray<string>? OldNames { get; set; }
Property Value
OracleComputedExpression
Gets or sets the computed SQL expression for Oracle.
string? OracleComputedExpression { get; set; }
Property Value
PostgreSqlComputedExpression
Gets or sets the computed SQL expression for PostgreSQL.
string? PostgreSqlComputedExpression { get; set; }
Property Value
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
TableName
Gets or sets the name of the table.
string TableName { get; set; }
Property Value
Type
Gets or sets type.
ColumnType Type { get; set; }
Property Value
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
nullableboolNullable.
Returns
- INeosColumn
The instance.