RelationalModelBuilderExtensions RelationalModelBuilderExtensions Class

Definition

Relational database specific extension methods for ModelBuilder.

public static class RelationalModelBuilderExtensions
Public Module RelationalModelBuilderExtensions
Inheritance
System.ObjectSystem.Object
RelationalModelBuilderExtensionsRelationalModelBuilderExtensions

Methods

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

HasDefaultSchema(ModelBuilder, String) HasDefaultSchema(ModelBuilder, String)

Configures the default schema that database objects should be created in, if no schema is explicitly configured.

public static ModelBuilder HasDefaultSchema(this ModelBuilder modelBuilder, string schema)
<ExtensionAttribute>
Public Shared Function HasDefaultSchema(modelBuilder As ModelBuilder, schema As String) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

schema
System.String System.String

The default schema.

Returns

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

HasSequence(ModelBuilder, String, Action) HasSequence(ModelBuilder, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence(this ModelBuilder modelBuilder, string name, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

HasSequence(ModelBuilder, String, String) HasSequence(ModelBuilder, String, String)

Configures a database sequence when targeting a relational database.

public static RelationalSequenceBuilder HasSequence(this ModelBuilder modelBuilder, string name, string schema = null)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, name As String, schema As String = Nothing) As RelationalSequenceBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

Returns

A builder to further configure the sequence.

HasSequence(ModelBuilder, String, String, Action) HasSequence(ModelBuilder, String, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence(this ModelBuilder modelBuilder, string name, string schema, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

HasSequence(ModelBuilder, Type, String, Action) HasSequence(ModelBuilder, Type, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence(this ModelBuilder modelBuilder, Type clrType, string name, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, clrType As Type, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

clrType
System.Type System.Type

The type of values the sequence will generate.

name
System.String System.String

The name of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

HasSequence(ModelBuilder, Type, String, String) HasSequence(ModelBuilder, Type, String, String)

Configures a database sequence when targeting a relational database.

public static RelationalSequenceBuilder HasSequence(this ModelBuilder modelBuilder, Type clrType, string name, string schema = null)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String = Nothing) As RelationalSequenceBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

clrType
System.Type System.Type

The type of values the sequence will generate.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

Returns

A builder to further configure the sequence.

HasSequence(ModelBuilder, Type, String, String, Action) HasSequence(ModelBuilder, Type, String, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence(this ModelBuilder modelBuilder, Type clrType, string name, string schema, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(modelBuilder As ModelBuilder, clrType As Type, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

clrType
System.Type System.Type

The type of values the sequence will generate.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

HasSequence(ModelBuilder, String, Action) HasSequence(Of T)(ModelBuilder, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence<T>(this ModelBuilder modelBuilder, string name, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(Of T)(modelBuilder As ModelBuilder, name As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Type Parameters
T

The type of values the sequence will generate.

Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

HasSequence(ModelBuilder, String, String) HasSequence(Of T)(ModelBuilder, String, String)

Configures a database sequence when targeting a relational database.

public static RelationalSequenceBuilder HasSequence<T>(this ModelBuilder modelBuilder, string name, string schema = null)
<ExtensionAttribute>
Public Shared Function HasSequence(Of T)(modelBuilder As ModelBuilder, name As String, schema As String = Nothing) As RelationalSequenceBuilder
Type Parameters
T

The type of values the sequence will generate.

Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

Returns

A builder to further configure the sequence.

HasSequence(ModelBuilder, String, String, Action) HasSequence(Of T)(ModelBuilder, String, String, Action(Of RelationalSequenceBuilder))

Configures a database sequence when targeting a relational database.

public static ModelBuilder HasSequence<T>(this ModelBuilder modelBuilder, string name, string schema, Action<RelationalSequenceBuilder> builderAction)
<ExtensionAttribute>
Public Shared Function HasSequence(Of T)(modelBuilder As ModelBuilder, name As String, schema As String, builderAction As Action(Of RelationalSequenceBuilder)) As ModelBuilder
Type Parameters
T

The type of values the sequence will generate.

Parameters
modelBuilder
ModelBuilder ModelBuilder

The model builder.

name
System.String System.String

The name of the sequence.

schema
System.String System.String

The schema of the sequence.

builderAction
System.Action<RelationalSequenceBuilder> System.Action(Of RelationalSequenceBuilder)

An action that performs configuration of the sequence.

Returns

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

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object