How can i configure model builder to delete all recipes when user is deleted but when recipe is deleted keep the user

前端 未结 0 684
北荒
北荒 2021-01-28 01:54

This is my model builder right now, but when i delete user it sets recipes userid to null.

  protected override void OnModelCreating(ModelBuilder modelBuilder)
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题