DesignStrings DesignStrings Class

Definition

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public static class DesignStrings
Public Module DesignStrings
Inheritance
System.ObjectSystem.Object
DesignStringsDesignStrings

Properties

Cancelled Cancelled

Cancelled.

public static string Cancelled { get; }
Public Shared ReadOnly Property Cancelled As String
Value
System.String System.String

ConnectionStringRequired ConnectionStringRequired

ConnectionString is required to generate code.

public static string ConnectionStringRequired { get; }
Public Shared ReadOnly Property ConnectionStringRequired As String
Value
System.String System.String

DestructiveOperation DestructiveOperation

An operation was scaffolded that may result in the loss of data. Please review the migration for accuracy.

public static string DestructiveOperation { get; }
Public Shared ReadOnly Property DestructiveOperation As String
Value
System.String System.String

Done Done

Done.

public static string Done { get; }
Public Shared ReadOnly Property Done As String
Value
System.String System.String

LogFindingContexts LogFindingContexts

Finding DbContext classes...

public static string LogFindingContexts { get; }
Public Shared ReadOnly Property LogFindingContexts As String
Value
System.String System.String

ManuallyDeleted ManuallyDeleted

A manual migration deletion was detected.

public static string ManuallyDeleted { get; }
Public Shared ReadOnly Property ManuallyDeleted As String
Value
System.String System.String

MultipleContexts MultipleContexts

More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands.

public static string MultipleContexts { get; }
Public Shared ReadOnly Property MultipleContexts As String
Value
System.String System.String

NoSnapshot NoSnapshot

No ModelSnapshot was found.

public static string NoSnapshot { get; }
Public Shared ReadOnly Property NoSnapshot As String
Value
System.String System.String

ProjectPathRequired ProjectPathRequired

ProjectPath is required to generate code.

public static string ProjectPathRequired { get; }
Public Shared ReadOnly Property ProjectPathRequired As String
Value
System.String System.String

RemovingSnapshot RemovingSnapshot

Removing model snapshot.

public static string RemovingSnapshot { get; }
Public Shared ReadOnly Property RemovingSnapshot As String
Value
System.String System.String

RevertingSnapshot RevertingSnapshot

Reverting model snapshot.

public static string RevertingSnapshot { get; }
Public Shared ReadOnly Property RevertingSnapshot As String
Value
System.String System.String

RootNamespaceRequired RootNamespaceRequired

Root namespace of the project is required to generate code.

public static string RootNamespaceRequired { get; }
Public Shared ReadOnly Property RootNamespaceRequired As String
Value
System.String System.String

SensitiveInformationWarning SensitiveInformationWarning

To protect potentially sensitive information in your connection string, you should move it out of source code. See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.

public static string SensitiveInformationWarning { get; }
Public Shared ReadOnly Property SensitiveInformationWarning As String
Value
System.String System.String

Methods

CannotFindDesignTimeProviderAssembly(Object) CannotFindDesignTimeProviderAssembly(Object)

Unable to find design-time provider assembly. Please install the {designTimeProviderAssemblyName} NuGet package and ensure that the package is referenced by the project.

public static string CannotFindDesignTimeProviderAssembly(object designTimeProviderAssemblyName)
Public Shared Function CannotFindDesignTimeProviderAssembly(designTimeProviderAssemblyName As Object) As String
Parameters
designTimeProviderAssemblyName
System.Object System.Object
Returns
System.String System.String

CannotFindDesignTimeProviderAssemblyAttribute(Object, Object) CannotFindDesignTimeProviderAssemblyAttribute(Object, Object)

Unable to find expected assembly attribute named {attributeName} in provider assembly {runtimeProviderAssemblyName}. This attribute is required to identify the class which acts as the design-time service provider factory.

public static string CannotFindDesignTimeProviderAssemblyAttribute(object attributeName, object runtimeProviderAssemblyName)
Public Shared Function CannotFindDesignTimeProviderAssemblyAttribute(attributeName As Object, runtimeProviderAssemblyName As Object) As String
Parameters
attributeName
System.Object System.Object
runtimeProviderAssemblyName
System.Object System.Object
Returns
System.String System.String

CannotFindRuntimeProviderAssembly(Object) CannotFindRuntimeProviderAssembly(Object)

Unable to find provider assembly with name {assemblyName}. Ensure the specified name is correct and is referenced by the project.

public static string CannotFindRuntimeProviderAssembly(object assemblyName)
Public Shared Function CannotFindRuntimeProviderAssembly(assemblyName As Object) As String
Parameters
assemblyName
System.Object System.Object
Returns
System.String System.String

ContextClassNotValidCSharpIdentifier(Object) ContextClassNotValidCSharpIdentifier(Object)

The context class name passed in, {contextClassName}, is not a valid C# identifier.

public static string ContextClassNotValidCSharpIdentifier(object contextClassName)
Public Shared Function ContextClassNotValidCSharpIdentifier(contextClassName As Object) As String
Parameters
contextClassName
System.Object System.Object
Returns
System.String System.String

CouldNotSerialize(Object, Object) CouldNotSerialize(Object, Object)

Could not serialize {obj} [{name}]

public static string CouldNotSerialize(object obj, object name)
Public Shared Function CouldNotSerialize(obj As Object, name As Object) As String
Parameters
obj
System.Object System.Object
name
System.Object System.Object
Returns
System.String System.String

DuplicateMigrationName(Object) DuplicateMigrationName(Object)

The name '{migrationName}' is used by an existing migration.

public static string DuplicateMigrationName(object migrationName)
Public Shared Function DuplicateMigrationName(migrationName As Object) As String
Parameters
migrationName
System.Object System.Object
Returns
System.String System.String

Equals(Object) Equals(Object)

Inherited from System.Object

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

Inherited from System.Object

ForceRemoveMigration(Object) ForceRemoveMigration(Object)

Removing migration '{name}' without checking the database. If this migration has been applied to the database, you will need to manually reverse the changes it made.

public static string ForceRemoveMigration(object name)
Public Shared Function ForceRemoveMigration(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

ForeignMigrations(Object) ForeignMigrations(Object)

The namespace '{migrationsNamespace}' contains migrations for a different DbContext. This can result in conflicting migration names. It's recommend to put migrations for different DbContext classes into different namespaces.

public static string ForeignMigrations(object migrationsNamespace)
Public Shared Function ForeignMigrations(migrationsNamespace As Object) As String
Parameters
migrationsNamespace
System.Object System.Object
Returns
System.String System.String

GetHashCode() GetHashCode()

Inherited from System.Object

GetType() GetType()

Inherited from System.Object

InvokeStartupMethodFailed(Object, Object, Object) InvokeStartupMethodFailed(Object, Object, Object)

An error occurred while calling method '{method}' on startup class '{startupClass}'. Consider using IDbContextFactory to override the initialization of the DbContext at design-time. Error: {error}

public static string InvokeStartupMethodFailed(object method, object startupClass, object error)
Public Shared Function InvokeStartupMethodFailed(method As Object, startupClass As Object, error As Object) As String
Parameters
method
System.Object System.Object
startupClass
System.Object System.Object
error
System.Object System.Object
Returns
System.String System.String

LogDatabaseDropped(Object) LogDatabaseDropped(Object)

Successfully dropped database '{name}'.

public static string LogDatabaseDropped(object name)
Public Shared Function LogDatabaseDropped(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

LogDroppingDatabase(Object) LogDroppingDatabase(Object)

Dropping database '{name}'.

public static string LogDroppingDatabase(object name)
Public Shared Function LogDroppingDatabase(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

LogNotExistDatabase(Object) LogNotExistDatabase(Object)

Database '{name}' did not exist, no action was taken.

public static string LogNotExistDatabase(object name)
Public Shared Function LogNotExistDatabase(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

LogUseContext(Object) LogUseContext(Object)

Using context '{name}'.

public static string LogUseContext(object name)
Public Shared Function LogUseContext(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

MigrationsAssemblyMismatch(Object, Object) MigrationsAssemblyMismatch(Object, Object)

Your target project '{assembly}' doesn't match your migrations assembly '{migrationsAssembly}'. Either change your target project or change your migrations assembly. Change your migrations assembly by using DbContextOptionsBuilder. E.g. options.UseSqlServer(connection, b => b.MigrationsAssembly("{assembly}")). By default, the migrations assembly is the assembly containing the DbContext. Change your target project to the migrations project by using the Package Manager Console's Default project drop-down list, or by executing "dotnet ef" from the directory containing the migrations project.

public static string MigrationsAssemblyMismatch(object assembly, object migrationsAssembly)
Public Shared Function MigrationsAssemblyMismatch(assembly As Object, migrationsAssembly As Object) As String
Parameters
assembly
System.Object System.Object
migrationsAssembly
System.Object System.Object
Returns
System.String System.String

MultipleContextsWithName(Object) MultipleContextsWithName(Object)

More than one DbContext named '{name}' was found. Specify which one to use by providing its fully qualified name.

public static string MultipleContextsWithName(object name)
Public Shared Function MultipleContextsWithName(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

MultipleContextsWithQualifiedName(Object) MultipleContextsWithQualifiedName(Object)

More than one DbContext named '{name}' was found. Specify which one to use by providing its fully qualified name using its exact case.

public static string MultipleContextsWithQualifiedName(object name)
Public Shared Function MultipleContextsWithQualifiedName(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

NoContext(Object) NoContext(Object)

No DbContext was found in assembly '{assembly}'. Ensure that you're using the correct assembly and that the type is neither abstract nor generic.

public static string NoContext(object assembly)
Public Shared Function NoContext(assembly As Object) As String
Parameters
assembly
System.Object System.Object
Returns
System.String System.String

NoContextWithName(Object) NoContextWithName(Object)

No DbContext named '{name}' was found.

public static string NoContextWithName(object name)
Public Shared Function NoContextWithName(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

NoMigrationFile(Object, Object) NoMigrationFile(Object, Object)

No file named '{file}' was found. You must manually remove the migration class '{migrationClass}'.

public static string NoMigrationFile(object file, object migrationClass)
Public Shared Function NoMigrationFile(file As Object, migrationClass As Object) As String
Parameters
file
System.Object System.Object
migrationClass
System.Object System.Object
Returns
System.String System.String

NoMigrationMetadataFile(Object) NoMigrationMetadataFile(Object)

No file named '{file}' was found.

public static string NoMigrationMetadataFile(object file)
Public Shared Function NoMigrationMetadataFile(file As Object) As String
Parameters
file
System.Object System.Object
Returns
System.String System.String

NoParameterlessConstructor(Object) NoParameterlessConstructor(Object)

No parameterless constructor was found on '{contextType}'. Either add a parameterless constructor to '{contextType}' or add an implementation of 'IDbContextFactory<{contextType}>' in the same assembly as '{contextType}'.

public static string NoParameterlessConstructor(object contextType)
Public Shared Function NoParameterlessConstructor(contextType As Object) As String
Parameters
contextType
System.Object System.Object
Returns
System.String System.String

NoSnapshotFile(Object, Object) NoSnapshotFile(Object, Object)

No file named '{file}' was found. You must manually remove the model snapshot class '{snapshotClass}'.

public static string NoSnapshotFile(object file, object snapshotClass)
Public Shared Function NoSnapshotFile(file As Object, snapshotClass As Object) As String
Parameters
file
System.Object System.Object
snapshotClass
System.Object System.Object
Returns
System.String System.String

NonRelationalProvider(Object) NonRelationalProvider(Object)

{provider} is not a Relational provider and therefore cannot be use with Migrations.

public static string NonRelationalProvider(object provider)
Public Shared Function NonRelationalProvider(provider As Object) As String
Parameters
provider
System.Object System.Object
Returns
System.String System.String

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

Inherited from System.Object

RemovingMigration(Object) RemovingMigration(Object)

Removing migration '{name}'.

public static string RemovingMigration(object name)
Public Shared Function RemovingMigration(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

ReusingDirectory(Object) ReusingDirectory(Object)

Reusing directory of file '{file}'.

public static string ReusingDirectory(object file)
Public Shared Function ReusingDirectory(file As Object) As String
Parameters
file
System.Object System.Object
Returns
System.String System.String

ReusingNamespace(Object) ReusingNamespace(Object)

Reusing namespace of type '{type}'.

public static string ReusingNamespace(object type)
Public Shared Function ReusingNamespace(type As Object) As String
Parameters
type
System.Object System.Object
Returns
System.String System.String

ReusingSnapshotName(Object) ReusingSnapshotName(Object)

Reusing model snapshot name '{name}'.

public static string ReusingSnapshotName(object name)
Public Shared Function ReusingSnapshotName(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

ToString() ToString()

Inherited from System.Object

UnapplyMigration(Object) UnapplyMigration(Object)

The migration '{name}' has already been applied to the database. Unapply it and try again. If the migration has been applied to other databases, consider reverting its changes using a new migration.

public static string UnapplyMigration(object name)
Public Shared Function UnapplyMigration(name As Object) As String
Parameters
name
System.Object System.Object
Returns
System.String System.String

UnknownLiteral(Object) UnknownLiteral(Object)

The current CSharpHelper cannot scaffold literals of type '{literalType}'. Configure your services to use one that can.

public static string UnknownLiteral(object literalType)
Public Shared Function UnknownLiteral(literalType As Object) As String
Parameters
literalType
System.Object System.Object
Returns
System.String System.String

UnknownOperation(Object) UnknownOperation(Object)

The current CSharpMigrationOperationGenerator cannot scaffold operations of type '{operationType}'. Configure your services to use one that can.

public static string UnknownOperation(object operationType)
Public Shared Function UnknownOperation(operationType As Object) As String
Parameters
operationType
System.Object System.Object
Returns
System.String System.String

UnreferencedAssembly(Object, Object) UnreferencedAssembly(Object, Object)

Could not load assembly '{assembly}'. Ensure it is referenced by the startup project '{startupProject}'.

public static string UnreferencedAssembly(object assembly, object startupProject)
Public Shared Function UnreferencedAssembly(assembly As Object, startupProject As Object) As String
Parameters
assembly
System.Object System.Object
startupProject
System.Object System.Object
Returns
System.String System.String

WritingMigration(Object) WritingMigration(Object)

Writing migration to '{file}'.

public static string WritingMigration(object file)
Public Shared Function WritingMigration(file As Object) As String
Parameters
file
System.Object System.Object
Returns
System.String System.String

WritingSnapshot(Object) WritingSnapshot(Object)

Writing model snapshot to '{file}'.

public static string WritingSnapshot(object file)
Public Shared Function WritingSnapshot(file As Object) As String
Parameters
file
System.Object System.Object
Returns
System.String System.String