# How do I replicate the entity \_Updating , \_Inserting, \_Updated triggers from Lightswitch in Radzen

**URL:** <https://forum.radzen.com/t/how-do-i-replicate-the-entity-updating-inserting-updated-triggers-from-lightswitch-in-radzen/1042>\
**Category:** Angular\
**Created:** [March 27, 2019, 9:28pm UTC](https://forum.radzen.com/t/how-do-i-replicate-the-entity-updating-inserting-updated-triggers-from-lightswitch-in-radzen/1042 "2019-03-27T21:28:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dominic\_Lallemant](https://forum.radzen.com/user_avatar/forum.radzen.com/dominic_lallemant/32/1058_2.png) [@Dominic\_Lallemant](https://forum.radzen.com/u/Dominic_Lallemant)\
**Post date:** [March 27, 2019, 9:28pm UTC](https://forum.radzen.com/t/how-do-i-replicate-the-entity-updating-inserting-updated-triggers-from-lightswitch-in-radzen/1042/1 "2019-03-27T21:28:28Z")

</div>

I would like to migrate an application from Lightswitch, the application pages are pretty straightforward to understand but how do I replicate in Radzen the server code from the lsml.vb file attached to each datasources in Lightswitch

---

<div class="post-metadata">

**Author:** ![enchev](https://forum.radzen.com/user_avatar/forum.radzen.com/enchev/32/16_2.png) [@enchev](https://forum.radzen.com/u/enchev)\
**Post date:** [March 27, 2019, 9:34pm UTC](https://forum.radzen.com/t/how-do-i-replicate-the-entity-updating-inserting-updated-triggers-from-lightswitch-in-radzen/1042/2 "2019-03-27T21:34:47Z")

</div>

Hi @Dominic_Lallemant,

You can use controllers partial classes/methods:

> **[Customizing generated application](https://www.radzen.com/documentation/customizing-generated-application/#server)**
>
> Customizing generated application details.

Best Regards,  
Vladimir
