Table of Contents

Class RelationalModel

Namespace
Microsoft.EntityFrameworkCore.Metadata.Internal
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public class RelationalModel : Annotatable, IRelationalModel, IAnnotatable, IReadOnlyAnnotatable
Inheritance
RelationalModel
Implements
IAnnotatable
IReadOnlyAnnotatable

Constructors

RelationalModel(IModel)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public RelationalModel(IModel model)

Parameters

model IModel

Properties

DebugView

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual DebugView DebugView { get; }

Property Value

DebugView

DefaultTables

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<string, TableBase> DefaultTables { get; }

Property Value

SortedDictionary<string, TableBase>

Functions

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<(string, string?, IReadOnlyList<string>), StoreFunction> Functions { get; }

Property Value

SortedDictionary<(string, string, IReadOnlyList<string>), StoreFunction>

IsReadOnly

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public override bool IsReadOnly { get; }

Property Value

bool

Model

public virtual IModel Model { get; }

Property Value

IModel

Queries

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<string, SqlQuery> Queries { get; }

Property Value

SortedDictionary<string, SqlQuery>

StoredProcedures

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<(string, string?), StoreStoredProcedure> StoredProcedures { get; }

Property Value

SortedDictionary<(string, string), StoreStoredProcedure>

Tables

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<(string, string?), Table> Tables { get; }

Property Value

SortedDictionary<(string, string), Table>

Views

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public virtual SortedDictionary<(string, string?), View> Views { get; }

Property Value

SortedDictionary<(string, string), View>

Methods

Add(IModel, IRelationalAnnotationProvider, IRelationalTypeMappingSource, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IModel Add(IModel model, IRelationalAnnotationProvider relationalAnnotationProvider, IRelationalTypeMappingSource relationalTypeMappingSource, bool designTime)

Parameters

model IModel
relationalAnnotationProvider IRelationalAnnotationProvider
relationalTypeMappingSource IRelationalTypeMappingSource
designTime bool

Returns

IModel

Create(IModel, IRelationalAnnotationProvider, IRelationalTypeMappingSource, bool)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static IRelationalModel Create(IModel model, IRelationalAnnotationProvider relationalAnnotationProvider, IRelationalTypeMappingSource relationalTypeMappingSource, bool designTime)

Parameters

model IModel
relationalAnnotationProvider IRelationalAnnotationProvider
relationalTypeMappingSource IRelationalTypeMappingSource
designTime bool

Returns

IRelationalModel

FindFunction(string, string?, IReadOnlyList<string>)

public virtual IStoreFunction? FindFunction(string name, string? schema, IReadOnlyList<string> parameters)

Parameters

name string
schema string
parameters IReadOnlyList<string>

Returns

IStoreFunction

FindQuery(string)

public virtual ISqlQuery? FindQuery(string name)

Parameters

name string

Returns

ISqlQuery

FindStoredProcedure(string, string?)

public virtual IStoreStoredProcedure? FindStoredProcedure(string name, string? schema)

Parameters

name string
schema string

Returns

IStoreStoredProcedure

FindTable(string, string?)

public virtual ITable? FindTable(string name, string? schema)

Parameters

name string
schema string

Returns

ITable

FindView(string, string?)

public virtual IView? FindView(string name, string? schema)

Parameters

name string
schema string

Returns

IView

ToReferentialAction(DeleteBehavior)

This is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release. You should only use it directly in your code with extreme caution and knowing that doing so can result in application failures when updating to a new Entity Framework Core release.

public static ReferentialAction ToReferentialAction(DeleteBehavior deleteBehavior)

Parameters

deleteBehavior DeleteBehavior

Returns

ReferentialAction