RelationalModelBuilderExtensions RelationalModelBuilderExtensions Class

Relational database specific extension methods for ModelBuilder.

Syntax

Declaration

public static class RelationalModelBuilderExtensionsPublic Module RelationalModelBuilderExtensions

Inheritance Hierarchy

  • System.Object
    System.Object
  • RelationalModelBuilderExtensions
    RelationalModelBuilderExtensions

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

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

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Configures a database sequence when targeting a relational database.

Methods

  • 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

    Returns

  • HasSequence(ModelBuilder, String, Action<RelationalSequenceBuilder>)
    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

    Returns

  • 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

      The model builder.

    • name
      System.String
      System.String

      The name of the sequence.

    • schema
      System.String
      System.String

      The schema of the sequence.

    Returns

  • HasSequence(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
    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

    Returns

  • HasSequence(ModelBuilder, Type, String, Action<RelationalSequenceBuilder>)
    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

    Returns

  • 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

      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

  • HasSequence(ModelBuilder, Type, String, String, Action<RelationalSequenceBuilder>)
    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

      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<T><RelationalSequenceBuilder>
      System.Action<T>(Of RelationalSequenceBuilder)

      An action that performs configuration of the sequence.

    Returns

  • HasSequence<T>(ModelBuilder, String, Action<RelationalSequenceBuilder>)
    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

    Parameters

    Returns

  • HasSequence<T>(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

    Parameters

    • 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

  • HasSequence<T>(ModelBuilder, String, String, Action<RelationalSequenceBuilder>)
    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

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll