How does one use a custom property in a LINQ-to-Entities query?

后端 未结 3 1094
花落未央
花落未央 2020-12-15 07:20

I have a class Post which is an Entity Framework model. It contains a property like this:

public bool Showable {
  get {
    return this.Public          


        
3条回答
  •  没有蜡笔的小新
    2020-12-15 07:38

    Unfortunately, the Entity Framework simply does not support computed properties (that is to say, a property that returns a computed value rather than a reference to a backing field) but it may be supported at a future date.

提交回复
热议问题