语言

SqlitePropertyBuilderExtensions 类

定义

特定于 SQLite 的 PropertyBuilder扩展方法。

public static class SqlitePropertyBuilderExtensions
[System.Runtime.CompilerServices.Nullable(0)]
public static class SqlitePropertyBuilderExtensions
type SqlitePropertyBuilderExtensions = class
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlitePropertyBuilderExtensions = class
Public Module SqlitePropertyBuilderExtensions
继承
SqlitePropertyBuilderExtensions
特性

注解

有关详细信息和示例,请参阅使用 EF Core 对 实体类型和关系进行建模,以及 访问 SQLite 数据库 。

方法

名称 说明
CanSetGeometricDimension(IConventionPropertyBuilder, String, Boolean)

返回一个值,该值指示是否可以将给定值设置为列的维度。

CanSetSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

返回一个值,该值指示是否可以将给定值设置为列的 SRID。

CanSetValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqliteValueGenerationStrategy>, Boolean)

返回一个值,该值指示是否可以为属性设置给定的值生成策略。

ForSqliteHasColumnName(PropertyBuilder, String)

配置属性在面向 SQLite 时映射到的列。

ForSqliteHasColumnName<TProperty>(PropertyBuilder<TProperty>, String)

配置属性在面向 SQLite 时映射到的列。

ForSqliteHasColumnType(PropertyBuilder, String)

配置属性在面向 SQLite 时映射到的列的数据类型。

ForSqliteHasColumnType<TProperty>(PropertyBuilder<TProperty>, String)

配置属性在面向 SQLite 时映射到的列的数据类型。

ForSqliteHasDefaultValue(PropertyBuilder, Object)

配置属性在面向 SQLite 时映射到的列的默认值。

ForSqliteHasDefaultValue<TProperty>(PropertyBuilder<TProperty>, Object)

配置属性在面向 SQLite 时映射到的列的默认值。

ForSqliteHasDefaultValueSql(PropertyBuilder, String)

配置属性在面向 SQLite 时映射到的列的默认值表达式。

ForSqliteHasDefaultValueSql<TProperty>(PropertyBuilder<TProperty>, String)

配置属性在面向 SQLite 时映射到的列的默认值表达式。

ForSqliteHasDimension(IConventionPropertyBuilder, String, Boolean)
已过时.

配置属性在面向 SQLite 时映射到的列的维度。

ForSqliteHasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
已过时.

配置属性在面向 SQLite 时映射到的列的 SRID。

ForSqliteHasSrid(PropertyBuilder, Int32)
已过时.

配置属性在面向 SQLite 时映射到的列的 SRID。

ForSqliteHasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)
已过时.

配置属性在面向 SQLite 时映射到的列的 SRID。

HasGeometricDimension(IConventionPropertyBuilder, String, Boolean)

配置属性在面向 SQLite 时映射到的列的维度。

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

配置属性在面向 SQLite 时映射到的列的 SRID。

HasSrid(PropertyBuilder, Int32)

配置属性在面向 SQLite 时映射到的列的 SRID。

HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)

配置属性在面向 SQLite 时映射到的列的 SRID。

HasValueGenerationStrategy(IConventionPropertyBuilder, Nullable<SqliteValueGenerationStrategy>, Boolean)

针对 SQLite 配置属性的值生成策略。

UseAutoincrement(ColumnBuilder)

将属性配置为使用 SQLite AUTOINCREMENT 功能在面向 SQLite 时为新实体生成值。 此方法将属性设置为 OnAdd.

UseAutoincrement(PropertyBuilder)

将属性配置为使用 SQLite AUTOINCREMENT 功能在面向 SQLite 时为新实体生成值。 此方法将属性设置为 OnAdd.

UseAutoincrement<TProperty>(PropertyBuilder<TProperty>)

将属性配置为使用 SQLite AUTOINCREMENT 功能在面向 SQLite 时为新实体生成值。 此方法将属性设置为 OnAdd.

适用于