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
Name
Gets the column name.
string Name { get; }
Property Value
PropertyMappings
Gets the property mappings.
IReadOnlyList<IColumnMappingBase> PropertyMappings { get; }
Property Value
ProviderClrType
Gets the provider type.
Type ProviderClrType { get; }
Property Value
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
StoreTypeMapping
Gets the type mapping for the column-like object.
RelationalTypeMapping StoreTypeMapping { get; }
Property Value
Table
Gets the containing table-like object.
ITableBase Table { get; }
Property Value
Methods
FindColumnMapping(IReadOnlyEntityType)
Returns the property mapping for the given entity type.
IColumnMappingBase? FindColumnMapping(IReadOnlyEntityType entityType)
Parameters
entityType
IReadOnlyEntityTypeAn entity type.
Returns
- IColumnMappingBase
The property mapping or null if not found.