SqlServerDbContextOptionsBuilder 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
允许在 上DbContextOptions执行SQL Server特定配置。
public class SqlServerDbContextOptionsBuilder : Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder,Microsoft.EntityFrameworkCore.Infrastructure.Internal.SqlServerOptionsExtension>
public class SqlServerDbContextOptionsBuilder : Microsoft.EntityFrameworkCore.Infrastructure.RelationalDbContextOptionsBuilder<Microsoft.EntityFrameworkCore.Infrastructure.SqlServerDbContextOptionsBuilder,Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.SqlServerOptionsExtension>
type SqlServerDbContextOptionsBuilder = class
inherit RelationalDbContextOptionsBuilder<SqlServerDbContextOptionsBuilder, SqlServerOptionsExtension>
Public Class SqlServerDbContextOptionsBuilder
Inherits RelationalDbContextOptionsBuilder(Of SqlServerDbContextOptionsBuilder, SqlServerOptionsExtension)
- 继承
-
RelationalDbContextOptionsBuilder<SqlServerDbContextOptionsBuilder,Microsoft.EntityFrameworkCore.Infrastructure.Internal.SqlServerOptionsExtension>SqlServerDbContextOptionsBuilder
- 继承
-
RelationalDbContextOptionsBuilder<SqlServerDbContextOptionsBuilder,Microsoft.EntityFrameworkCore.SqlServer.Infrastructure.Internal.SqlServerOptionsExtension>SqlServerDbContextOptionsBuilder
注解
此类的实例是从对 的调用 SqlServerDbContextOptionsExtensions.UseSqlServer 返回的,它不是设计为在应用程序代码中直接构造的。
构造函数
SqlServerDbContextOptionsBuilder(DbContextOptionsBuilder) |
初始化 SqlServerDbContextOptionsBuilder 类的新实例。 |
属性
OptionsBuilder |
获取核心选项生成器。 (继承自 RelationalDbContextOptionsBuilder<TBuilder,TExtension>) |
方法
显式接口实现
IRelationalDbContextOptionsBuilderInfrastructure.OptionsBuilder |
获取核心选项生成器。 (继承自 RelationalDbContextOptionsBuilder<TBuilder,TExtension>) |
扩展方法
UseNetTopologySuite(SqlServerDbContextOptionsBuilder) |
使用 NetTopologySuite 访问SQL Server空间数据。 |