// namespace Microsoft.AspNet.Diagnostics.Entity { using System.Globalization; using System.Reflection; using System.Resources; internal static class Strings { private static readonly ResourceManager _resourceManager = new ResourceManager("Microsoft.AspNet.Diagnostics.Entity.Strings", typeof(Strings).GetTypeInfo().Assembly); /// /// The string argument '{argumentName}' cannot be empty. /// internal static string ArgumentIsEmpty { get { return GetString("ArgumentIsEmpty"); } } /// /// The string argument '{argumentName}' cannot be empty. /// internal static string FormatArgumentIsEmpty(object argumentName) { return string.Format(CultureInfo.CurrentCulture, GetString("ArgumentIsEmpty", "argumentName"), argumentName); } /// /// The collection argument '{argumentName}' must contain at least one element. /// internal static string CollectionArgumentIsEmpty { get { return GetString("CollectionArgumentIsEmpty"); } } /// /// The collection argument '{argumentName}' must contain at least one element. /// internal static string FormatCollectionArgumentIsEmpty(object argumentName) { return string.Format(CultureInfo.CurrentCulture, GetString("CollectionArgumentIsEmpty", "argumentName"), argumentName); } /// /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page. /// internal static string DatabaseErrorPageMiddleware_ContextNotRegistered { get { return GetString("DatabaseErrorPageMiddleware_ContextNotRegistered"); } } /// /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. Skipping display of the database error page. /// internal static string FormatDatabaseErrorPageMiddleware_ContextNotRegistered(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPageMiddleware_ContextNotRegistered"), p0); } /// /// An exception occurred while calculating the database error page content. Skipping display of the database error page. /// internal static string DatabaseErrorPageMiddleware_Exception { get { return GetString("DatabaseErrorPageMiddleware_Exception"); } } /// /// An exception occurred while calculating the database error page content. Skipping display of the database error page. /// internal static string FormatDatabaseErrorPageMiddleware_Exception() { return GetString("DatabaseErrorPageMiddleware_Exception"); } /// /// > k ef migration add [migration name] /// internal static string DatabaseErrorPage_AddMigrationCommand { get { return GetString("DatabaseErrorPage_AddMigrationCommand"); } } /// /// > k ef migration add [migration name] /// internal static string FormatDatabaseErrorPage_AddMigrationCommand() { return GetString("DatabaseErrorPage_AddMigrationCommand"); } /// /// Apply Migrations /// internal static string DatabaseErrorPage_ApplyMigrationsButton { get { return GetString("DatabaseErrorPage_ApplyMigrationsButton"); } } /// /// Apply Migrations /// internal static string FormatDatabaseErrorPage_ApplyMigrationsButton() { return GetString("DatabaseErrorPage_ApplyMigrationsButton"); } /// /// Migrations Applied /// internal static string DatabaseErrorPage_ApplyMigrationsButtonDone { get { return GetString("DatabaseErrorPage_ApplyMigrationsButtonDone"); } } /// /// Migrations Applied /// internal static string FormatDatabaseErrorPage_ApplyMigrationsButtonDone() { return GetString("DatabaseErrorPage_ApplyMigrationsButtonDone"); } /// /// Applying Migrations... /// internal static string DatabaseErrorPage_ApplyMigrationsButtonRunning { get { return GetString("DatabaseErrorPage_ApplyMigrationsButtonRunning"); } } /// /// Applying Migrations... /// internal static string FormatDatabaseErrorPage_ApplyMigrationsButtonRunning() { return GetString("DatabaseErrorPage_ApplyMigrationsButtonRunning"); } /// /// An error occurred applying migrations, try applying them from the command line /// internal static string DatabaseErrorPage_ApplyMigrationsFailed { get { return GetString("DatabaseErrorPage_ApplyMigrationsFailed"); } } /// /// An error occurred applying migrations, try applying them from the command line /// internal static string FormatDatabaseErrorPage_ApplyMigrationsFailed() { return GetString("DatabaseErrorPage_ApplyMigrationsFailed"); } /// /// You can also apply migrations from the command line: /// internal static string DatabaseErrorPage_HowToApplyFromCmd { get { return GetString("DatabaseErrorPage_HowToApplyFromCmd"); } } /// /// You can also apply migrations from the command line: /// internal static string FormatDatabaseErrorPage_HowToApplyFromCmd() { return GetString("DatabaseErrorPage_HowToApplyFromCmd"); } /// /// Try refreshing the page /// internal static string DatabaseErrorPage_MigrationsAppliedRefresh { get { return GetString("DatabaseErrorPage_MigrationsAppliedRefresh"); } } /// /// Try refreshing the page /// internal static string FormatDatabaseErrorPage_MigrationsAppliedRefresh() { return GetString("DatabaseErrorPage_MigrationsAppliedRefresh"); } /// /// From the command line, scaffold a new migration and apply it to the database: /// internal static string DatabaseErrorPage_NoDbOrMigrationsInfo { get { return GetString("DatabaseErrorPage_NoDbOrMigrationsInfo"); } } /// /// From the command line, scaffold a new migration and apply it to the database: /// internal static string FormatDatabaseErrorPage_NoDbOrMigrationsInfo() { return GetString("DatabaseErrorPage_NoDbOrMigrationsInfo"); } /// /// Use migrations to create the database for {0} /// internal static string DatabaseErrorPage_NoDbOrMigrationsTitle { get { return GetString("DatabaseErrorPage_NoDbOrMigrationsTitle"); } } /// /// Use migrations to create the database for {0} /// internal static string FormatDatabaseErrorPage_NoDbOrMigrationsTitle(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_NoDbOrMigrationsTitle"), p0); } /// /// Scaffold a new migration for these changes and apply them to the database from the command line: /// internal static string DatabaseErrorPage_PendingChangesInfo { get { return GetString("DatabaseErrorPage_PendingChangesInfo"); } } /// /// Scaffold a new migration for these changes and apply them to the database from the command line: /// internal static string FormatDatabaseErrorPage_PendingChangesInfo() { return GetString("DatabaseErrorPage_PendingChangesInfo"); } /// /// There are pending model changes for {0} /// internal static string DatabaseErrorPage_PendingChangesTitle { get { return GetString("DatabaseErrorPage_PendingChangesTitle"); } } /// /// There are pending model changes for {0} /// internal static string FormatDatabaseErrorPage_PendingChangesTitle(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingChangesTitle"), p0); } /// /// There are migrations for {0} that have not been applied to the database /// internal static string DatabaseErrorPage_PendingMigrationsInfo { get { return GetString("DatabaseErrorPage_PendingMigrationsInfo"); } } /// /// There are migrations for {0} that have not been applied to the database /// internal static string FormatDatabaseErrorPage_PendingMigrationsInfo(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingMigrationsInfo"), p0); } /// /// Applying existing migrations for {0} may resolve this issue /// internal static string DatabaseErrorPage_PendingMigrationsTitle { get { return GetString("DatabaseErrorPage_PendingMigrationsTitle"); } } /// /// Applying existing migrations for {0} may resolve this issue /// internal static string FormatDatabaseErrorPage_PendingMigrationsTitle(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_PendingMigrationsTitle"), p0); } /// /// > k ef migration apply /// internal static string DatabaseErrorPage_ApplyMigrationsCommand { get { return GetString("DatabaseErrorPage_ApplyMigrationsCommand"); } } /// /// > k ef migration apply /// internal static string FormatDatabaseErrorPage_ApplyMigrationsCommand() { return GetString("DatabaseErrorPage_ApplyMigrationsCommand"); } /// /// The value provided for argument '{argumentName}' must be a valid value of enum type '{enumType}'. /// internal static string InvalidEnumValue { get { return GetString("InvalidEnumValue"); } } /// /// The value provided for argument '{argumentName}' must be a valid value of enum type '{enumType}'. /// internal static string FormatInvalidEnumValue(object argumentName, object enumType) { return string.Format(CultureInfo.CurrentCulture, GetString("InvalidEnumValue", "argumentName", "enumType"), argumentName, enumType); } /// /// Migrations successfully applied for context '{0}'. /// internal static string MigrationsEndPointMiddleware_Applied { get { return GetString("MigrationsEndPointMiddleware_Applied"); } } /// /// Migrations successfully applied for context '{0}'. /// internal static string FormatMigrationsEndPointMiddleware_Applied(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_Applied"), p0); } /// /// Request is valid, applying migrations for context '{0}'. /// internal static string MigrationsEndPointMiddleware_ApplyingMigrations { get { return GetString("MigrationsEndPointMiddleware_ApplyingMigrations"); } } /// /// Request is valid, applying migrations for context '{0}'. /// internal static string FormatMigrationsEndPointMiddleware_ApplyingMigrations(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_ApplyingMigrations"), p0); } /// /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. /// internal static string MigrationsEndPointMiddleware_ContextNotRegistered { get { return GetString("MigrationsEndPointMiddleware_ContextNotRegistered"); } } /// /// The context type '{0}' was not found in services. This usually means the context was not registered in services during startup. You probably want to call AddScoped<{0}>() inside the UseServices(...) call in your application startup code. /// internal static string FormatMigrationsEndPointMiddleware_ContextNotRegistered(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_ContextNotRegistered"), p0); } /// /// An error occurred while applying the migrations for '{0}'. See InnerException for details. /// internal static string MigrationsEndPointMiddleware_Exception { get { return GetString("MigrationsEndPointMiddleware_Exception"); } } /// /// An error occurred while applying the migrations for '{0}'. See InnerException for details. /// internal static string FormatMigrationsEndPointMiddleware_Exception(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_Exception"), p0); } /// /// The context type '{0}' could not be loaded. Ensure this is the correct type name for the context you are trying to apply migrations for. /// internal static string MigrationsEndPointMiddleware_InvalidContextType { get { return GetString("MigrationsEndPointMiddleware_InvalidContextType"); } } /// /// The context type '{0}' could not be loaded. Ensure this is the correct type name for the context you are trying to apply migrations for. /// internal static string FormatMigrationsEndPointMiddleware_InvalidContextType(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_InvalidContextType"), p0); } /// /// No context type was specified. Ensure the form data from the request includes a contextTypeName value, specifying the context to apply migrations for. /// internal static string MigrationsEndPointMiddleware_NoContextType { get { return GetString("MigrationsEndPointMiddleware_NoContextType"); } } /// /// No context type was specified. Ensure the form data from the request includes a contextTypeName value, specifying the context to apply migrations for. /// internal static string FormatMigrationsEndPointMiddleware_NoContextType() { return GetString("MigrationsEndPointMiddleware_NoContextType"); } /// /// Request path matched the path configured for this migrations endpoint ({0}). Attempting to process the migrations request. /// internal static string MigrationsEndPointMiddleware_RequestPathMatched { get { return GetString("MigrationsEndPointMiddleware_RequestPathMatched"); } } /// /// Request path matched the path configured for this migrations endpoint ({0}). Attempting to process the migrations request. /// internal static string FormatMigrationsEndPointMiddleware_RequestPathMatched(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("MigrationsEndPointMiddleware_RequestPathMatched"), p0); } /// /// A database operation failed while processing the request. /// internal static string DatabaseErrorPage_Title { get { return GetString("DatabaseErrorPage_Title"); } } /// /// A database operation failed while processing the request. /// internal static string FormatDatabaseErrorPage_Title() { return GetString("DatabaseErrorPage_Title"); } /// /// To use migrations from a command prompt you will need to <a href='http://go.microsoft.com/fwlink/?LinkId=518242'>install K Version Manager (KVM)</a>. Once installed, you can run migration commands from a standard command prompt in the project directory. /// internal static string DatabaseErrorPage_EnableMigrationsCommandsInfo { get { return GetString("DatabaseErrorPage_EnableMigrationsCommandsInfo"); } } /// /// To use migrations from a command prompt you will need to <a href='http://go.microsoft.com/fwlink/?LinkId=518242'>install K Version Manager (KVM)</a>. Once installed, you can run migration commands from a standard command prompt in the project directory. /// internal static string FormatDatabaseErrorPage_EnableMigrationsCommandsInfo() { return GetString("DatabaseErrorPage_EnableMigrationsCommandsInfo"); } /// /// {0} occurred, checking if Entity Framework recorded this exception as resulting from a failed database operation. /// internal static string DatabaseErrorPage_AttemptingToMatchException { get { return GetString("DatabaseErrorPage_AttemptingToMatchException"); } } /// /// {0} occurred, checking if Entity Framework recorded this exception as resulting from a failed database operation. /// internal static string FormatDatabaseErrorPage_AttemptingToMatchException(object p0) { return string.Format(CultureInfo.CurrentCulture, GetString("DatabaseErrorPage_AttemptingToMatchException"), p0); } /// /// Entity Framework recorded that the current exception was due to a failed database operation. Attempting to show database error page. /// internal static string DatabaseErrorPage_Matched { get { return GetString("DatabaseErrorPage_Matched"); } } /// /// Entity Framework recorded that the current exception was due to a failed database operation. Attempting to show database error page. /// internal static string FormatDatabaseErrorPage_Matched() { return GetString("DatabaseErrorPage_Matched"); } /// /// Entity Framework did not record any exceptions due to failed database operations. This means the current exception is not a failed Entity Framework database operation, or the current exception occurred from a DbContext that was not obtained from request services. /// internal static string DatabaseErrorPage_NoRecordedException { get { return GetString("DatabaseErrorPage_NoRecordedException"); } } /// /// Entity Framework did not record any exceptions due to failed database operations. This means the current exception is not a failed Entity Framework database operation, or the current exception occurred from a DbContext that was not obtained from request services. /// internal static string FormatDatabaseErrorPage_NoRecordedException() { return GetString("DatabaseErrorPage_NoRecordedException"); } /// /// The target data store is not a relational database. Skipping the database error page. /// internal static string DatabaseErrorPage_NotRelationalDatabase { get { return GetString("DatabaseErrorPage_NotRelationalDatabase"); } } /// /// The target data store is not a relational database. Skipping the database error page. /// internal static string FormatDatabaseErrorPage_NotRelationalDatabase() { return GetString("DatabaseErrorPage_NotRelationalDatabase"); } /// /// The current exception (and its inner exceptions) do not match the last exception Entity Framework recorded due to a failed database operation. This means the database operation exception was handled and another exception occurred later in the request. /// internal static string DatabaseErrorPage_NoMatch { get { return GetString("DatabaseErrorPage_NoMatch"); } } /// /// The current exception (and its inner exceptions) do not match the last exception Entity Framework recorded due to a failed database operation. This means the database operation exception was handled and another exception occurred later in the request. /// internal static string FormatDatabaseErrorPage_NoMatch() { return GetString("DatabaseErrorPage_NoMatch"); } private static string GetString(string name, params string[] formatterNames) { var value = _resourceManager.GetString(name); System.Diagnostics.Debug.Assert(value != null); if (formatterNames != null) { for (var i = 0; i < formatterNames.Length; i++) { value = value.Replace("{" + formatterNames[i] + "}", "{" + i + "}"); } } return value; } } }