TableExistenceChecker.AnyModelTableExistsInDatabase Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class checks where the given tables exist in the database for the given connection.
public abstract bool AnyModelTableExistsInDatabase (System.Data.Entity.Core.Objects.ObjectContext context, System.Data.Common.DbConnection connection, System.Collections.Generic.IEnumerable<System.Data.Entity.Core.Metadata.Edm.EntitySet> modelTables, string edmMetadataContextTableName);
abstract member AnyModelTableExistsInDatabase : System.Data.Entity.Core.Objects.ObjectContext * System.Data.Common.DbConnection * seq<System.Data.Entity.Core.Metadata.Edm.EntitySet> * string -> bool
Public MustOverride Function AnyModelTableExistsInDatabase (context As ObjectContext, connection As DbConnection, modelTables As IEnumerable(Of EntitySet), edmMetadataContextTableName As String) As Boolean
Parameters
- context
- ObjectContext
The context for which table checking is being performed, usually used to obtain an appropriate DbInterceptionContext.
- connection
- DbConnection
A connection to the database. May be open or closed; should be closed again if opened. Do not dispose.
- modelTables
- IEnumerable<EntitySet>
The tables to check for existence.
- edmMetadataContextTableName
- String
The name of the EdmMetadata table to check for existence.
Returns
True if any of the model tables or EdmMetadata table exists.
Applies to
Entity Framework