When I use Entity Framework to find a model by using DbSet' s Find Method the VS will dump -


i want use dbset's find method search model has navigation attribute, times when application run code vs auto closed. there no such exceptions. want konw why. if query model doesn't have navigation attribute application run normal.


let me show example: here 2 models. 1 named storage, other named storagearea. 1 storage associate many storageareas. query storage using following code 'storage s=efcontext.storage.find(1)' or 'storage s=efcontext.storage.firstordefault()'. once code run, vs auto close.


Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -