UnintentionalCodeFirstException Class
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.
Thrown when a context is generated from the DbContext templates in Database First or Model First mode and is then used in Code First mode.
[System.Serializable]
public class UnintentionalCodeFirstException : InvalidOperationException
type UnintentionalCodeFirstException = class
inherit InvalidOperationException
Public Class UnintentionalCodeFirstException
Inherits InvalidOperationException
- Inheritance
-
UnintentionalCodeFirstException
- Attributes
Code generated using the T4 templates provided for Database First and Model First use may not work correctly if used in Code First mode. To use these classes with Code First please add any additional configuration using attributes or the DbModelBuilder API and then remove the code that throws this exception.
Unintentional |
Initializes a new instance of the UnintentionalCodeFirstException class. |
Unintentional |
Initializes a new instance of the UnintentionalCodeFirstException class. |
Unintentional |
Initializes a new instance of the UnintentionalCodeFirstException class. |
Unintentional |
Initializes a new instance of the UnintentionalCodeFirstException class. |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: