RelationalScaffoldingModelFactory RelationalScaffoldingModelFactory Class

Definition

public class RelationalScaffoldingModelFactory : IScaffoldingModelFactory
Public Class RelationalScaffoldingModelFactory
    Implements IScaffoldingModelFactory
Inheritance
System.ObjectSystem.Object
RelationalScaffoldingModelFactoryRelationalScaffoldingModelFactory
Implements

Constructors

RelationalScaffoldingModelFactory(ILogger, IRelationalTypeMapper, IDatabaseModelFactory, CandidateNamingService) RelationalScaffoldingModelFactory(ILogger(Of RelationalScaffoldingModelFactory), IRelationalTypeMapper, IDatabaseModelFactory, CandidateNamingService)

public RelationalScaffoldingModelFactory(ILogger<RelationalScaffoldingModelFactory> logger, IRelationalTypeMapper typeMapper, IDatabaseModelFactory databaseModelFactory, CandidateNamingService candidateNamingService)
Public Sub New(logger As ILogger(Of RelationalScaffoldingModelFactory), typeMapper As IRelationalTypeMapper, databaseModelFactory As IDatabaseModelFactory, candidateNamingService As CandidateNamingService)
Parameters

Properties

CandidateNamingService CandidateNamingService

protected virtual CandidateNamingService CandidateNamingService { get; }
Protected Overridable ReadOnly Property CandidateNamingService As CandidateNamingService

Logger Logger

protected virtual ILogger Logger { get; }
Protected Overridable ReadOnly Property Logger As ILogger
Value
ILogger ILogger

TypeMapper TypeMapper

protected virtual IRelationalTypeMapper TypeMapper { get; }
Protected Overridable ReadOnly Property TypeMapper As IRelationalTypeMapper

Methods

AddNavigationProperties(IMutableForeignKey) AddNavigationProperties(IMutableForeignKey)

protected virtual void AddNavigationProperties(IMutableForeignKey foreignKey)
Protected Overridable Sub AddNavigationProperties(foreignKey As IMutableForeignKey)
Parameters

CheckSelectionsMatched(TableSelectionSet) CheckSelectionsMatched(TableSelectionSet)

public virtual void CheckSelectionsMatched(TableSelectionSet tableSelectionSet)
Public Overridable Sub CheckSelectionsMatched(tableSelectionSet As TableSelectionSet)
Parameters

Create(String, TableSelectionSet) Create(String, TableSelectionSet)

public virtual IModel Create(string connectionString, TableSelectionSet tableSelectionSet)
Public Overridable Function Create(connectionString As String, tableSelectionSet As TableSelectionSet) As IModel
Parameters
connectionString
System.String System.String
Returns

CreateFromDatabaseModel(DatabaseModel) CreateFromDatabaseModel(DatabaseModel)

protected virtual IModel CreateFromDatabaseModel(DatabaseModel databaseModel)
Protected Overridable Function CreateFromDatabaseModel(databaseModel As DatabaseModel) As IModel
Parameters
Returns

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

ExistingIdentifiers(IEntityType) ExistingIdentifiers(IEntityType)

protected virtual List<string> ExistingIdentifiers(IEntityType entityType)
Protected Overridable Function ExistingIdentifiers(entityType As IEntityType) As List(Of String)
Parameters
Returns
System.Collections.Generic.List<System.String> System.Collections.Generic.List(Of System.String)

GetEntityTypeName(TableModel) GetEntityTypeName(TableModel)

protected virtual string GetEntityTypeName(TableModel table)
Protected Overridable Function GetEntityTypeName(table As TableModel) As String
Parameters
Returns
System.String System.String

GetHashCode() GetHashCode()

Inherited from System.Object

GetPropertyName(ColumnModel) GetPropertyName(ColumnModel)

protected virtual string GetPropertyName(ColumnModel column)
Protected Overridable Function GetPropertyName(column As ColumnModel) As String
Parameters
Returns
System.String System.String

GetType() GetType()

Inherited from System.Object

GetTypeMapping(ColumnModel) GetTypeMapping(ColumnModel)

protected virtual RelationalTypeMapping GetTypeMapping(ColumnModel column)
Protected Overridable Function GetTypeMapping(column As ColumnModel) As RelationalTypeMapping
Parameters
Returns

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

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

Inherited from System.Object

ToString() ToString()

Inherited from System.Object

VisitColumn(EntityTypeBuilder, ColumnModel) VisitColumn(EntityTypeBuilder, ColumnModel)

protected virtual PropertyBuilder VisitColumn(EntityTypeBuilder builder, ColumnModel column)
Protected Overridable Function VisitColumn(builder As EntityTypeBuilder, column As ColumnModel) As PropertyBuilder
Parameters
Returns

VisitColumns(EntityTypeBuilder, ICollection) VisitColumns(EntityTypeBuilder, ICollection(Of ColumnModel))

protected virtual EntityTypeBuilder VisitColumns(EntityTypeBuilder builder, ICollection<ColumnModel> columns)
Protected Overridable Function VisitColumns(builder As EntityTypeBuilder, columns As ICollection(Of ColumnModel)) As EntityTypeBuilder
Parameters
columns
System.Collections.Generic.ICollection<ColumnModel> System.Collections.Generic.ICollection(Of ColumnModel)
Returns

VisitDatabaseModel(ModelBuilder, DatabaseModel) VisitDatabaseModel(ModelBuilder, DatabaseModel)

protected virtual ModelBuilder VisitDatabaseModel(ModelBuilder modelBuilder, DatabaseModel databaseModel)
Protected Overridable Function VisitDatabaseModel(modelBuilder As ModelBuilder, databaseModel As DatabaseModel) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
Returns

VisitForeignKey(ModelBuilder, ForeignKeyModel) VisitForeignKey(ModelBuilder, ForeignKeyModel)

protected virtual IMutableForeignKey VisitForeignKey(ModelBuilder modelBuilder, ForeignKeyModel foreignKey)
Protected Overridable Function VisitForeignKey(modelBuilder As ModelBuilder, foreignKey As ForeignKeyModel) As IMutableForeignKey
Parameters
modelBuilder
ModelBuilder ModelBuilder
Returns

VisitForeignKeys(ModelBuilder, IList) VisitForeignKeys(ModelBuilder, IList(Of ForeignKeyModel))

protected virtual ModelBuilder VisitForeignKeys(ModelBuilder modelBuilder, IList<ForeignKeyModel> foreignKeys)
Protected Overridable Function VisitForeignKeys(modelBuilder As ModelBuilder, foreignKeys As IList(Of ForeignKeyModel)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
foreignKeys
System.Collections.Generic.IList<ForeignKeyModel> System.Collections.Generic.IList(Of ForeignKeyModel)
Returns

VisitIndex(EntityTypeBuilder, IndexModel) VisitIndex(EntityTypeBuilder, IndexModel)

protected virtual IndexBuilder VisitIndex(EntityTypeBuilder builder, IndexModel index)
Protected Overridable Function VisitIndex(builder As EntityTypeBuilder, index As IndexModel) As IndexBuilder
Parameters
Returns

VisitIndexes(EntityTypeBuilder, ICollection) VisitIndexes(EntityTypeBuilder, ICollection(Of IndexModel))

protected virtual EntityTypeBuilder VisitIndexes(EntityTypeBuilder builder, ICollection<IndexModel> indexes)
Protected Overridable Function VisitIndexes(builder As EntityTypeBuilder, indexes As ICollection(Of IndexModel)) As EntityTypeBuilder
Parameters
indexes
System.Collections.Generic.ICollection<IndexModel> System.Collections.Generic.ICollection(Of IndexModel)
Returns

VisitPrimaryKey(EntityTypeBuilder, TableModel) VisitPrimaryKey(EntityTypeBuilder, TableModel)

protected virtual KeyBuilder VisitPrimaryKey(EntityTypeBuilder builder, TableModel table)
Protected Overridable Function VisitPrimaryKey(builder As EntityTypeBuilder, table As TableModel) As KeyBuilder
Parameters
Returns

VisitSequence(ModelBuilder, SequenceModel) VisitSequence(ModelBuilder, SequenceModel)

protected virtual RelationalSequenceBuilder VisitSequence(ModelBuilder modelBuilder, SequenceModel sequence)
Protected Overridable Function VisitSequence(modelBuilder As ModelBuilder, sequence As SequenceModel) As RelationalSequenceBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
Returns

VisitSequences(ModelBuilder, ICollection) VisitSequences(ModelBuilder, ICollection(Of SequenceModel))

protected virtual ModelBuilder VisitSequences(ModelBuilder modelBuilder, ICollection<SequenceModel> sequences)
Protected Overridable Function VisitSequences(modelBuilder As ModelBuilder, sequences As ICollection(Of SequenceModel)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
sequences
System.Collections.Generic.ICollection<SequenceModel> System.Collections.Generic.ICollection(Of SequenceModel)
Returns

VisitTable(ModelBuilder, TableModel) VisitTable(ModelBuilder, TableModel)

protected virtual EntityTypeBuilder VisitTable(ModelBuilder modelBuilder, TableModel table)
Protected Overridable Function VisitTable(modelBuilder As ModelBuilder, table As TableModel) As EntityTypeBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
Returns

VisitTables(ModelBuilder, ICollection) VisitTables(ModelBuilder, ICollection(Of TableModel))

protected virtual ModelBuilder VisitTables(ModelBuilder modelBuilder, ICollection<TableModel> tables)
Protected Overridable Function VisitTables(modelBuilder As ModelBuilder, tables As ICollection(Of TableModel)) As ModelBuilder
Parameters
modelBuilder
ModelBuilder ModelBuilder
tables
System.Collections.Generic.ICollection<TableModel> System.Collections.Generic.ICollection(Of TableModel)
Returns