SqlServerEntityTypeBuilderExtensions SqlServerEntityTypeBuilderExtensions Class

Definition

SQL Server specific extension methods for EntityTypeBuilder.

public static class SqlServerEntityTypeBuilderExtensions
Public Module SqlServerEntityTypeBuilderExtensions
Inheritance
System.ObjectSystem.Object
SqlServerEntityTypeBuilderExtensionsSqlServerEntityTypeBuilderExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean) ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean)

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

public static EntityTypeBuilder ForSqlServerIsMemoryOptimized(this EntityTypeBuilder entityTypeBuilder, bool memoryOptimized = true)
<ExtensionAttribute>
Public Shared Function ForSqlServerIsMemoryOptimized(entityTypeBuilder As EntityTypeBuilder, memoryOptimized As Boolean = True) As EntityTypeBuilder
Parameters
entityTypeBuilder
EntityTypeBuilder EntityTypeBuilder

The builder for the entity type being configured.

memoryOptimized
System.Boolean System.Boolean

A value indicating whether the table is memory-optimized.

Returns

The same builder instance so that multiple calls can be chained.

ForSqlServerIsMemoryOptimized(EntityTypeBuilder, Boolean) ForSqlServerIsMemoryOptimized(Of TEntity)(EntityTypeBuilder(Of TEntity), Boolean)

Configures the table that the entity maps to when targeting SQL Server as memory-optimized.

public static EntityTypeBuilder<TEntity> ForSqlServerIsMemoryOptimized<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, bool memoryOptimized = true)where TEntity : class
<ExtensionAttribute>
Public Shared Function ForSqlServerIsMemoryOptimized(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), memoryOptimized As Boolean = True) As EntityTypeBuilder(Of TEntity)
Type Parameters
TEntity

The entity type being configured.

Parameters
entityTypeBuilder
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The builder for the entity type being configured.

memoryOptimized
System.Boolean System.Boolean

A value indicating whether the table is memory-optimized.

Returns
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The same builder instance so that multiple calls can be chained.

ForSqlServerToTable(EntityTypeBuilder, String) ForSqlServerToTable(EntityTypeBuilder, String)

Configures the table that the entity maps to when targeting SQL Server.

public static EntityTypeBuilder ForSqlServerToTable(this EntityTypeBuilder entityTypeBuilder, string name)
<ExtensionAttribute>
Public Shared Function ForSqlServerToTable(entityTypeBuilder As EntityTypeBuilder, name As String) As EntityTypeBuilder
Parameters
entityTypeBuilder
EntityTypeBuilder EntityTypeBuilder

The builder for the entity type being configured.

name
System.String System.String

The name of the table.

Returns

The same builder instance so that multiple calls can be chained.

ForSqlServerToTable(EntityTypeBuilder, String, String) ForSqlServerToTable(EntityTypeBuilder, String, String)

Configures the table that the entity maps to when targeting SQL Server.

public static EntityTypeBuilder ForSqlServerToTable(this EntityTypeBuilder entityTypeBuilder, string name, string schema)
<ExtensionAttribute>
Public Shared Function ForSqlServerToTable(entityTypeBuilder As EntityTypeBuilder, name As String, schema As String) As EntityTypeBuilder
Parameters
entityTypeBuilder
EntityTypeBuilder EntityTypeBuilder

The builder for the entity type being configured.

name
System.String System.String

The name of the table.

schema
System.String System.String

The schema of the table.

Returns

The same builder instance so that multiple calls can be chained.

ForSqlServerToTable(EntityTypeBuilder, String) ForSqlServerToTable(Of TEntity)(EntityTypeBuilder(Of TEntity), String)

Configures the table that the entity maps to when targeting SQL Server.

public static EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, string name)where TEntity : class
<ExtensionAttribute>
Public Shared Function ForSqlServerToTable(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)
Type Parameters
TEntity

The entity type being configured.

Parameters
entityTypeBuilder
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The builder for the entity type being configured.

name
System.String System.String

The name of the table.

Returns
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The same builder instance so that multiple calls can be chained.

ForSqlServerToTable(EntityTypeBuilder, String, String) ForSqlServerToTable(Of TEntity)(EntityTypeBuilder(Of TEntity), String, String)

Configures the table that the entity maps to when targeting SQL Server.

public static EntityTypeBuilder<TEntity> ForSqlServerToTable<TEntity>(this EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema)where TEntity : class
<ExtensionAttribute>
Public Shared Function ForSqlServerToTable(Of TEntity As Class)(entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)
Type Parameters
TEntity

The entity type being configured.

Parameters
entityTypeBuilder
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The builder for the entity type being configured.

name
System.String System.String

The name of the table.

schema
System.String System.String

The schema of the table.

Returns
EntityTypeBuilder<TEntity> EntityTypeBuilder(Of TEntity)

The same builder instance so that multiple calls can be chained.

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

ToString() ToString()

Inherited from System.Object