Entity Framework 4.1 - Override Entity (DBSet) with Filter

后端 未结 5 1679
余生分开走
余生分开走 2021-02-06 03:38

I\'m trying to do something which should be relatively easy, but i just dont know how to construct it.

I have a Generated Entity which I\'d like to override by adding a

5条回答
  •  温柔的废话
    2021-02-06 04:20

    Have you tried adding a Condition to the Table Mapping in your model? Right click the entity in your edmx and choose "Table Mapping". Then "Add a condition". Probably a more elegant solution.

提交回复
热议问题