Abp simple practice field event <three> Custom Events

Entropy sheet used EntityCreatedEventData <TEntity>, inherited from EventData.

We can define an event:

    public class TestEvent: EventData
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public int Age { get; set; }
    }

Inherited IEventHandler <TestEvent> The root interface polymerization.

So when the application layer trigger TestEvent will be executed field events polymerization roots.

Guess you like

Origin www.cnblogs.com/qgbo/p/11281760.html