// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
namespace System.Data.Entity
{
///
/// Describes the format of connection strings used for DbContext construction
/// that takes a connection string
///
public enum ConnectionStringFormat
{
///
/// Describes the string passed in to be the Database Name
///
DatabaseName,
///
/// Describes the string passed in to be a Named Connection String
///
NamedConnectionString,
///
/// Describes the string passed in to be a Provider Connection String
///
ProviderConnectionString
};
///
/// Describes the ways of DbContext construction
///
public enum DbContextConstructorArgumentType
{
///
/// DbContext constructed via DbContext Parameterless constructor
///
Parameterless,
///
/// DbContext constructed via DbContext constructor that takes a DbCompiledModel parameter
///
DbCompiledModel,
///
/// DbContext constructed via DbContext constructor that takes a DbConnection parameter
///
Connection,
///
/// DbContext constructed via DbContext constructor that takes a ConnectionString parameter
///
ConnectionString,
///
/// DbContext constructed via DbContext constructor that takes Connection and DbCompiledModel parameters
///
ConnectionAndDbCompiledModel,
///
/// DbContext constructed via DbContext constructor that takes Connection String and DbCompiledModel parameters
///
ConnectionStringAndDbCompiledModel,
///
/// DbContext constructed via DbContext constructor that takes an ObjectContext parameter
///
ObjectContext,
};
///
/// Enumeration to denote the different types of DbCompiledModel that could be constructed
///
public enum DbCompiledModelContents
{
///
/// Empty DbCompiledModel
///
IsEmpty,
///
/// Null DbCompiledModel
///
IsNull,
///
/// DbCompiledModel that defines entities which are a subset of those defined on DbContext
///
IsSubset,
///
/// DbCompiledModel that defines entities which are a superset of those defined on DbContext
///
IsSuperset,
///
/// DbCompiledModel that defines the same entities as those defined on DbContext
///
Match,
///
/// DbCompiledModel that defines entities which are not defined on DbContext
///
DontMatch,
};
}