DbConnectionStringOrigin Enum
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.
Describes the origin of the database connection string associated with a DbContext.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", Justification="Casing is intentional")]
public enum DbConnectionStringOrigin
public enum DbConnectionStringOrigin
type DbConnectionStringOrigin =
Public Enum DbConnectionStringOrigin
- Inheritance
-
DbConnectionStringOrigin
- Attributes
Fields
Configuration | 1 | The connection string was read from external configuration. |
Convention | 0 | The connection string was created by convention. |
DbContextInfo | 3 | The connection string was overriden by connection information supplied to DbContextInfo. |
UserCode | 2 | The connection string was explicitly specified at runtime. |
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for