Class ForeignKeyException
- Namespace
- TimeCockpit.Data.Database
- Assembly
- TimeCockpit.Data.dll
Contains all information for foreign key exceptions.
public class ForeignKeyException : Exception, ISerializable, _Exception
- Inheritance
-
ObjectExceptionForeignKeyException
- Implements
-
ISerializable_Exception
- Inherited Members
-
Exception.GetBaseException()Exception.ToString()Exception.GetType()Exception.MessageException.DataException.InnerExceptionException.TargetSiteException.StackTraceException.HelpLinkException.SourceException.HResultException.SerializeObjectStateObject.Equals(Object)Object.Equals(Object, Object)Object.ReferenceEquals(Object, Object)Object.GetHashCode()Object.MemberwiseClone()
Constructors
ForeignKeyException(SerializationInfo, StreamingContext)
Initializes a new instance of the ForeignKeyException class.
protected ForeignKeyException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe serialization info.
contextStreamingContextThe serialization context.
ForeignKeyException(String, EntityObject, Relation, Exception)
Initializes a new instance of the ForeignKeyException class.
public ForeignKeyException(string message, EntityObject entityObject, Relation relation, Exception innerException)
Parameters
messageStringThe message to show.
entityObjectEntityObjectThe entity object that raises a foreign key exception.
relationRelationThe relation in the model entity that raises the foreign key exception.
innerExceptionExceptionThe inner exception.
Properties
ClientReplicaId
Gets or sets the client replica id of the sync.
public Guid ClientReplicaId { get; set; }
Property Value
- Guid
ClientVersion
Gets or sets the client version of the sync.
public byte[] ClientVersion { get; set; }
Property Value
- Byte[]
EntityObject
Gets or sets the entity object that raises a foreign key exception.
public EntityObject EntityObject { get; set; }
Property Value
FirstChangeAnchor
Gets or sets the first change anchor of the sync.
public byte[] FirstChangeAnchor { get; set; }
Property Value
- Byte[]
Relation
Gets or sets the relation in the model entity that raises the foreign key exception.
public Relation Relation { get; set; }
Property Value
Methods
GetObjectData(SerializationInfo, StreamingContext)
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext