Entity Framework 6 Code First Trigger

前端 未结 3 780
醉酒成梦
醉酒成梦 2020-12-09 16:03

I\'m using Entity Framework 6 Code First, and would like to create a Trigger.

How do I do this?

The reason I need the trigger is because a user may either ed

3条回答
  •  攒了一身酷
    2020-12-09 16:29

    After you add a migration, open the migration file and create your trigger as shown below

    Note: you need to run update-database to see the changes in your database.

提交回复
热议问题