How to get ObjectSet's entity key name?

后端 未结 7 1369
悲哀的现实
悲哀的现实 2020-12-29 00:08

I\'ve created a generic ObjectSet in my generic repository.

What I would like to get is the name of the EntityKey of ObjectS

7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-29 00:48

    See this post that I made regarding getting the EntitySetName. For my repository, I create a property that gets the entity set name for the specific class name to do exactly what you are trying to do.

提交回复
热议问题