Esempio n. 1
0
        public bool OnPreInsert(
            PreInsertEvent @event)
        {
            var properties = @event.ToPropertyEntry().ToList();

            Raise(@event, typeof(BeforeAddedEntityDomainEvent <>), @event.Entity, properties);

            return(false);
        }
Esempio n. 2
0
        public async Task <bool> OnPreInsertAsync(
            PreInsertEvent @event,
            CancellationToken cancellationToken)
        {
            var properties = @event.ToPropertyEntry().ToList();

            await RaiseAsync(@event, typeof(BeforeAddedEntityDomainEvent <>), @event.Entity, properties);

            return(false);
        }