Exception raised when an attempt is made to add an entity to a context without first setting its key properties.
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public sealed class EntityKeyRequiredException : EntityFrameworkException |
Visual Basic |
---|
Public NotInheritable Class EntityKeyRequiredException Inherits EntityFrameworkException |
Visual C++ |
---|
public ref class EntityKeyRequiredException sealed : public EntityFrameworkException |
F# |
---|
[<SealedAttribute>] type EntityKeyRequiredException = class inherit EntityFrameworkException end |
Remarks
This type of exception will also be raised if the parameterless Create() method is called on the context entity set for
an entity type that has key proeprties.
Inheritance Hierarchy
System..::..Object
System..::..Exception
BrightstarDB.EntityFramework..::..EntityFrameworkException
BrightstarDB.EntityFramework..::..EntityKeyRequiredException
System..::..Exception
BrightstarDB.EntityFramework..::..EntityFrameworkException
BrightstarDB.EntityFramework..::..EntityKeyRequiredException