/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="queryModel"> The <see cref="QueryModel" />. </param> public QueryModelEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] QueryModel queryModel) : base(eventDefinition, messageGenerator) { QueryModel = queryModel; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="property"> The property. </param> public PropertyEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IProperty property) : base(eventDefinition, messageGenerator) { Property = property; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="context"> The current <see cref="DbContext" />. </param> public DbContextEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] DbContext context) : base(eventDefinition, messageGenerator) { Context = context; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="foreignKey"> The foreign key. </param> public ForeignKeyEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IForeignKey foreignKey) : base(eventDefinition, messageGenerator) { ForeignKey = foreignKey; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="navigation"> The navigation. </param> public NavigationEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] INavigation navigation) : base(eventDefinition, messageGenerator) { Navigation = navigation; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="contextType"> The current <see cref="DbContext" />. </param> public DbContextTypeEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] Type contextType) : base(eventDefinition, messageGenerator) { ContextType = contextType; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="navigationPath"> The navigation property. </param> public NavigationPathEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IReadOnlyCollection <IPropertyBase> navigationPath) : base(eventDefinition, messageGenerator) { NavigationPath = navigationPath; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="expression"> The <see cref="Expression" />. </param> public ExpressionEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] Expression expression) : base(eventDefinition, messageGenerator) { Expression = expression; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="includeResultOperator"> The <see cref="IncludeResultOperator" />. </param> public IncludeEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IncludeResultOperator includeResultOperator) : base(eventDefinition, messageGenerator) { IncludeResultOperator = includeResultOperator; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="serviceProvider"> The <see cref="IServiceProvider" />. </param> public ServiceProviderEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IServiceProvider serviceProvider) : base(eventDefinition, messageGenerator) { ServiceProvider = serviceProvider; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="serviceProviders"> The <see cref="IServiceProvider" />s. </param> public ServiceProvidersEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] ICollection <IServiceProvider> serviceProviders) : base(eventDefinition, messageGenerator) { ServiceProviders = serviceProviders; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="queryModel"> The <see cref="QueryModel" />. </param> /// <param name="queryModelElement"> The query model element requiring client-eval. </param> public QueryModelClientEvalEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] QueryModel queryModel, [NotNull] object queryModelElement) : base(eventDefinition, messageGenerator, queryModel) { QueryModelElement = queryModelElement; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="context"> The current <see cref="DbContext" />. </param> /// <param name="exception"> The exception that triggered this event. </param> public DbContextErrorEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] DbContext context, [NotNull] Exception exception) : base(eventDefinition, messageGenerator, context) { Exception = exception; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="context"> The current <see cref="DbContext" />. </param> /// <param name="entitiesSavedCount"> The number of entities saved to the database. </param> public SaveChangesCompletedEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] DbContext context, int entitiesSavedCount) : base(eventDefinition, messageGenerator, context) { EntitiesSavedCount = entitiesSavedCount; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entries"> Entries for the entities being saved. </param> /// <param name="rowsAffected"> The rows affected. </param> public SaveChangesEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IEnumerable <IUpdateEntry> entries, int rowsAffected) : base(eventDefinition, messageGenerator) { Entries = entries; RowsAffected = rowsAffected; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entityEntry"> The entity entry. </param> public EntityEntryEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] EntityEntry entityEntry) : base(eventDefinition, messageGenerator) { Check.NotNull(entityEntry, nameof(entityEntry)); EntityEntry = entityEntry; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="firstPropertyCollection"> The first property collection. </param> /// <param name="secondPropertyCollection"> The second property collection. </param> public TwoUnmappedPropertyCollectionsEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IEnumerable <Tuple <MemberInfo, Type> > firstPropertyCollection, [NotNull] IEnumerable <Tuple <MemberInfo, Type> > secondPropertyCollection) : base(eventDefinition, messageGenerator) { FirstPropertyCollection = firstPropertyCollection; SecondPropertyCollection = secondPropertyCollection; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="queryExpression"> The <see cref="Expression" />. </param> /// <param name="expressionPrinter"> An <see cref="IExpressionPrinter" /> that can be used to render the <see cref="Expression" />. </param> public QueryExpressionEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] Expression queryExpression, [NotNull] IExpressionPrinter expressionPrinter) : base(eventDefinition, messageGenerator) { Expression = queryExpression; ExpressionPrinter = expressionPrinter; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="firstPropertyCollection"> The first property collection. </param> /// <param name="secondPropertyCollection"> The second property collection. </param> public TwoPropertyBaseCollectionsEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IReadOnlyList <IPropertyBase> firstPropertyCollection, [NotNull] IReadOnlyList <IPropertyBase> secondPropertyCollection) : base(eventDefinition, messageGenerator) { FirstPropertyCollection = firstPropertyCollection; SecondPropertyCollection = secondPropertyCollection; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="left"> The left <see cref="Expression" />. </param> /// <param name="right"> The right <see cref="Expression" />. </param> public BinaryExpressionEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] Expression left, [NotNull] Expression right) : base(eventDefinition, messageGenerator) { Left = left; Right = right; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="newDebugInfo"> The debug information for the new provider. </param> /// <param name="cachedDebugInfos"> The debug information for existing providers. </param> public ServiceProviderDebugInfoEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IDictionary <string, string> newDebugInfo, [NotNull] IList <IDictionary <string, string> > cachedDebugInfos) : base(eventDefinition, messageGenerator) { NewDebugInfo = newDebugInfo; CachedDebugInfos = cachedDebugInfos; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="firstEntityType"> The first <see cref="IEntityType" />. </param> /// <param name="secondEntityType"> The second <see cref="IEntityType" />. </param> public SharedDependentEntityEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IEntityType firstEntityType, [NotNull] IEntityType secondEntityType) : base(eventDefinition, messageGenerator) { FirstEntityType = firstEntityType; SecondEntityType = secondEntityType; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="mappingClrType"> The CLR type. </param> /// <param name="valueConverter"> The <see cref="ValueConverter" />. </param> public ValueConverterEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] Type mappingClrType, [NotNull] ValueConverter valueConverter) : base(eventDefinition, messageGenerator) { MappingClrType = mappingClrType; ValueConverter = valueConverter; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="context"> The <see cref="DbContext" /> that is initialized. </param> /// <param name="contextOptions"> The <see cref="DbContextOptions" /> being used. </param> public ContextInitializedEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] DbContext context, [NotNull] DbContextOptions contextOptions) : base(eventDefinition, messageGenerator) { Context = context; ContextOptions = contextOptions; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="context"> The current <see cref="DbContext" />. </param> /// <param name="entity"> The entity instance on which lazy-loading was initiated. </param> /// <param name="navigationPropertyName"> The navigation property name of the relationship to be loaded. </param> public LazyLoadingEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] DbContext context, [NotNull] object entity, [NotNull] string navigationPropertyName) : base(eventDefinition, messageGenerator, context) { Entity = entity; NavigationPropertyName = navigationPropertyName; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entityEntry"> The entity entry. </param> /// <param name="oldState"> The old state. </param> /// <param name="newState"> The new state. </param> public StateChangedEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] EntityEntry entityEntry, EntityState oldState, EntityState newState) : base(eventDefinition, messageGenerator, entityEntry) { OldState = oldState; NewState = newState; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="exceptionsEncountered"> /// The exceptions that have been caught during the execution of an operation. /// </param> /// <param name="delay"> The delay before retrying the operation. </param> /// <param name="async"> /// Indicates whether or not the command was executed asynchronously. /// </param> public ExecutionStrategyEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] IReadOnlyList <Exception> exceptionsEncountered, TimeSpan delay, bool async) : base(eventDefinition, messageGenerator) { ExceptionsEncountered = exceptionsEncountered; Delay = delay; IsAsync = async; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entityEntry"> The entry for the entity instance on which the property value has changed. </param> /// <param name="property"> The property. </param> /// <param name="value"> The old value. </param> public PropertyValueEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] EntityEntry entityEntry, [NotNull] IProperty property, [CanBeNull] object value) : base(eventDefinition, messageGenerator, property) { Check.NotNull(entityEntry, nameof(entityEntry)); EntityEntry = entityEntry; Value = value; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entityEntry"> The entity entry for the entity that is being deleted. </param> /// <param name="parentEntityTypes"> The entity type to which the relationship was severed. </param> /// <param name="state"> The state that the child is transitioning to--usually 'Deleted'. </param> public CascadeDeleteOrphanEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] EntityEntry entityEntry, [NotNull] IEntityType parentEntityTypes, EntityState state) : base(eventDefinition, messageGenerator, entityEntry) { Check.NotNull(parentEntityTypes, nameof(parentEntityTypes)); ParentEntityType = parentEntityTypes; State = state; }
/// <summary> /// Constructs the event payload. /// </summary> /// <param name="eventDefinition"> The event definition. </param> /// <param name="messageGenerator"> A delegate that generates a log message for this event. </param> /// <param name="entityEntry"> The entry for the entity instance on which the property value has changed. </param> /// <param name="property"> The property. </param> /// <param name="oldValue"> The old value. </param> /// <param name="newValue"> The new value. </param> public PropertyChangedEventData( [NotNull] EventDefinitionBase eventDefinition, [NotNull] Func <EventDefinitionBase, EventData, string> messageGenerator, [NotNull] EntityEntry entityEntry, [NotNull] IProperty property, [CanBeNull] object oldValue, [CanBeNull] object newValue) : base(eventDefinition, messageGenerator, property) { Check.NotNull(entityEntry, nameof(entityEntry)); EntityEntry = entityEntry; OldValue = oldValue; NewValue = newValue; }