Table of Contents

Interface IColumnBase

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

Represents a column-like object in a table-like object.

public interface IColumnBase : IAnnotatable, IReadOnlyAnnotatable

Remarks

See Modeling entity types and relationships for more information and examples.

Properties

IsNullable

Gets the value indicating whether the column can contain NULL.

bool IsNullable { get; }

Property Value

bool

Name

Gets the column name.

string Name { get; }

Property Value

string

PropertyMappings

Gets the property mappings.

IReadOnlyList<IColumnMappingBase> PropertyMappings { get; }

Property Value

IReadOnlyList<IColumnMappingBase>

ProviderClrType

Gets the provider type.

Type ProviderClrType { get; }

Property Value

Type

ProviderValueComparer

Gets the Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer for this column.

ValueComparer ProviderValueComparer { get; }

Property Value

ValueComparer

The comparer.

StoreType

Gets the column type.

string StoreType { get; }

Property Value

string

StoreTypeMapping

Gets the type mapping for the column-like object.

RelationalTypeMapping StoreTypeMapping { get; }

Property Value

RelationalTypeMapping

Table

Gets the containing table-like object.

ITableBase Table { get; }

Property Value

ITableBase

Methods

FindColumnMapping(IReadOnlyEntityType)

Returns the property mapping for the given entity type.

IColumnMappingBase? FindColumnMapping(IReadOnlyEntityType entityType)

Parameters

entityType IReadOnlyEntityType

An entity type.

Returns

IColumnMappingBase

The property mapping or null if not found.