문제

There's a imported list with 500.000 items and an event receiver attached to it (itemAdded/Updated). I need to run the event receiver on older items meeting specific criteria but I don't want to update the items nor duplicate the code of the event receiver.

I'm thinking of creating a class inside the event receiver and import the .dll to a console app but I can't figure out the steps. The event receiver has not been implemented yet. The console app could be run on the server.

Has anyone done it before and how?

도움이 되었습니까?

해결책

Create a solution that has three projects: a class library containing the functionality, the console app, and the event receiver. The console app and event receiver would each have a reference to the class library project.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top