Changeset b25b9ea for src/FinkiChattery/FinkiChattery.Persistence/Configurations/QuestionCategoryConfig.cs
- Timestamp:
- 10/14/21 17:55:51 (3 years ago)
- Branches:
- dev
- Children:
- 7f1a891
- Parents:
- 7dd2ea2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FinkiChattery/FinkiChattery.Persistence/Configurations/QuestionCategoryConfig.cs
r7dd2ea2 rb25b9ea 26 26 27 27 builder.HasOne(x => x.Question).WithMany(x => x.QuestionCategories).HasForeignKey(x => x.QuestionFk).OnDelete(DeleteBehavior.Restrict); 28 builder.HasOne(x => x.Category).WithMany().HasForeignKey(x => x. QuestionFk).OnDelete(DeleteBehavior.Restrict);28 builder.HasOne(x => x.Category).WithMany().HasForeignKey(x => x.CategoryFk).OnDelete(DeleteBehavior.Restrict); 29 29 } 30 30 }
Note:
See TracChangeset
for help on using the changeset viewer.