Delen via


SqlitePropertyAnnotations Class

Definition

Properties for SQLite-specific annotations accessed through Sqlite(IMutableProperty).

public class SqlitePropertyAnnotations : Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations, Microsoft.EntityFrameworkCore.Metadata.ISqlitePropertyAnnotations
type SqlitePropertyAnnotations = class
    inherit RelationalPropertyAnnotations
    interface ISqlitePropertyAnnotations
    interface IRelationalPropertyAnnotations
Public Class SqlitePropertyAnnotations
Inherits RelationalPropertyAnnotations
Implements ISqlitePropertyAnnotations
Inheritance
SqlitePropertyAnnotations
Implements

Constructors

SqlitePropertyAnnotations(IProperty)

Constructs an instance for annotations of the given IProperty.

SqlitePropertyAnnotations(RelationalAnnotations)

Constructs an instance for annotations of the IProperty represented by the given annotation helper.

Fields

ProviderFullAnnotationNames (Inherited from RelationalPropertyAnnotations)

Properties

Annotations

The RelationalAnnotations helper representing the IProperty to annotate.

(Inherited from RelationalPropertyAnnotations)
ColumnName

The name of the column to which the property is mapped.

(Inherited from RelationalPropertyAnnotations)
ColumnType

The database type of the column to which the property is mapped.

(Inherited from RelationalPropertyAnnotations)
ComputedColumnSql

The computed constraint SQL expression that should be used when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
DefaultValue

The default value to use in the definition of the column when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
DefaultValueSql

The default constraint SQL expression that should be used when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
Dimension

Gets or sets the dimension to use when creating a column for this property.

IsFixedLength

A flag indicating if the property as capable of storing only fixed-length data, such as strings.

(Inherited from RelationalPropertyAnnotations)
Property

The IProperty to annotate.

(Inherited from RelationalPropertyAnnotations)
ShouldThrowOnConflict

Indicates whether or not an exception should be thrown if conflicting configuration is set. This is typically overridden when building using a fluent API to implement last call wins semantics.

(Inherited from RelationalPropertyAnnotations)
ShouldThrowOnInvalidConfiguration

Indicates whether or not an exception should be thrown if invalid configuration is set.

(Inherited from RelationalPropertyAnnotations)
Srid

Gets or sets the SRID to use when creating a column for this property.

Methods

CanSetComputedColumnSql(String)

Determines whether or not ComputedColumnSql can be set without conflict.

This method may throw if ShouldThrowOnConflict returns true.

(Inherited from RelationalPropertyAnnotations)
CanSetDefaultValue(Object)

Determines whether or not DefaultValue can be set without conflict.

This method may throw if ShouldThrowOnConflict returns true.

(Inherited from RelationalPropertyAnnotations)
CanSetDefaultValueSql(String)

Determines whether or not DefaultValueSql can be set without conflict.

This method may throw if ShouldThrowOnConflict returns true.

(Inherited from RelationalPropertyAnnotations)
ClearAllServerGeneratedValues()

Clears any values set for DefaultValue, DefaultValueSql, and ComputedColumnSql.

(Inherited from RelationalPropertyAnnotations)
GetAnnotations(IEntityType)

Gets a RelationalEntityTypeAnnotations instance for the given IEntityType maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

(Inherited from RelationalPropertyAnnotations)
GetAnnotations(IProperty)

Gets a RelationalPropertyAnnotations instance for the given IProperty maintaining the RelationalAnnotations semantics being used by this instance to control setting annotations by convention.

(Inherited from RelationalPropertyAnnotations)
GetComputedColumnSql(Boolean)

Gets the computed constraint SQL expression that should be used when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
GetDefaultValue(Boolean)

Gets the default value to use in the definition of the column when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
GetDefaultValueSql(Boolean)

Gets the default constraint SQL expression that should be used when creating a column for this property.

(Inherited from RelationalPropertyAnnotations)
SetColumnName(String)

Attempts to set the ColumnName using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalPropertyAnnotations)
SetColumnType(String)

Attempts to set the ColumnType using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalPropertyAnnotations)
SetComputedColumnSql(String)

Attempts to set the ComputedColumnSql using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalPropertyAnnotations)
SetDefaultValue(Object)

Attempts to set the DefaultValue using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalPropertyAnnotations)
SetDefaultValueSql(String)

Attempts to set the DefaultValueSql using the semantics of the RelationalAnnotations in use.

(Inherited from RelationalPropertyAnnotations)
SetDimension(String)

Sets the dimension to use when creating a column for this property.

SetFixedLength(Boolean)

Configures the property as capable of storing only fixed-length data, such as strings.

(Inherited from RelationalPropertyAnnotations)
SetSrid(Nullable<Int32>)

Sets the SRID to use when creating a column for this property.

Applies to