UnintentionalCodeFirstException Class

 

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.

Namespace:   System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

System.Object
  System.Exception
    System.SystemException
      System.InvalidOperationException
        System.Data.Entity.Infrastructure.UnintentionalCodeFirstException

[SerializableAttribute]
public class UnintentionalCodeFirstException : InvalidOperationException

NameDescription
System_CAPS_pubmethodUnintentionalCodeFirstException()

Initializes a new instance of the UnintentionalCodeFirstException class.

System_CAPS_protmethodUnintentionalCodeFirstException(SerializationInfo, StreamingContext)

Initializes a new instance of the UnintentionalCodeFirstException class.

System_CAPS_pubmethodUnintentionalCodeFirstException(String)

Initializes a new instance of the UnintentionalCodeFirstException class.

System_CAPS_pubmethodUnintentionalCodeFirstException(String, Exception)

Initializes a new instance of the UnintentionalCodeFirstException class.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

(Inherited from Exception.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.