Class MissingKeyAttributeException
Custom Exception that is thrown when attempted to access properties of object that isn't decorated with either [Key] attribute , or [SqlColumn(SetPrimaryKey=true)] attribute
Inherited Members
Namespace: DotNetHelper.ObjectToSql.Exceptions
Assembly: DotNetHelper.ObjectToSql.dll
Syntax
[Serializable]
public class MissingKeyAttributeException : Exception, ISerializable, _Exception
Constructors
| Improve this Doc View SourceMissingKeyAttributeException(SerializationInfo, StreamingContext)
Create the exception from serialized data. Usual scenario is when exception is occured somewhere on the remote workstation and we have to re-create/re-throw the exception on the local machine
Declaration
protected MissingKeyAttributeException(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| SerializationInfo | info | Serialization info |
| StreamingContext | context | Serialization context |