An exception occurs if the class could not find any properties with flags PrimaryKey or Unique.
Inheritance Hierarchy
System Exception
Nemiro.Data NoPrimaryKeyOrUniqueFieldsException
Namespace: Nemiro.Data
Assembly: Nemiro.Data (in Nemiro.Data.dll) Version: 2.11.4.126 (2.11.4.126)
Syntax
The NoPrimaryKeyOrUniqueFieldsException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
NoPrimaryKeyOrUniqueFieldsException |
Initializes a new instance of the NoPrimaryKeyOrUniqueFieldsException class.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | (Inherited from Exception.) | |
GetType | (Inherited from Exception.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Exception.) |
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) | |
HelpLink | (Inherited from Exception.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | (Inherited from Exception.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Events
Name | Description | |
---|---|---|
SerializeObjectState | (Inherited from Exception.) |
Remarks
This exception can occur in the methods of working with data in ORM classes.
To fix the error, add at least one attribute ColumnAttribute with flags PrimaryKey or Unique.
See Also