static DataMap() { Accessor = new DataAccessor(typeof(T)); }
/// <summary> /// Creates the exception with the given context and data type. /// </summary> /// <param name="context">The entity that triggered the exception.</param> /// <param name="accessor">The data type that was concurrently modified.</param> internal RemodifiedDataException(IEntity context, DataAccessor accessor) : base("Already modified data for type=" + accessor.DataType + " in " + context) { }
/// <summary> /// Creates the exception with the given context and data type. /// </summary> /// <param name="context">The entity that triggered the exception.</param> /// <param name="accessor">The data type that the entity lacks.</param> internal NoSuchDataException(IQueryableEntity context, DataAccessor accessor) : base(string.Format("No such data for type={0} in context={1}", accessor.DataType, context)) { }
internal PreviousRequiresVersionedDataException(IQueryableEntity context, DataAccessor accessor) : base(string.Format("Retrieving previous data requires that the data extends " + "Data.IVersioned, but type={0} in context={1} does not", accessor.DataType, context)) { }
/// <summary> /// Creates the exception with the given context and data type. /// </summary> /// <param name="context">The entity that triggered the exception.</param> /// <param name="accessor">The data type that was already added.</param> internal AlreadyAddedDataException(IEntity context, DataAccessor accessor) : base("The entity already has a data instance for type=" + accessor.DataType + " in " + context) { }