TableExistenceChecker.AnyModelTableExistsInDatabase Method (ObjectContext, DbConnection, IEnumerable<EntitySet>, String)
When overridden in a derived class checks where the given tables exist in the database for the given connection.
Assembly: EntityFramework (in EntityFramework.dll)
public abstract bool AnyModelTableExistsInDatabase( ObjectContext context, DbConnection connection, IEnumerable<EntitySet> modelTables, string edmMetadataContextTableName )
Parameters
- context
-
Type:
System.Data.Entity.Core.Objects.ObjectContext
The context for which table checking is being performed, usually used to obtain an appropriate DbInterceptionContext.
- connection
-
Type:
System.Data.Common.DbConnection
A connection to the database. May be open or closed; should be closed again if opened. Do not dispose.
- modelTables
-
Type:
System.Collections.Generic.IEnumerable<EntitySet>
The tables to check for existence.
- edmMetadataContextTableName
-
Type:
System.String
The name of the EdmMetadata table to check for existence.