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

后端 未结 3 1088
花落未央
花落未央 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:36

    I think easiest way to do this is using Computed attribute of DelegateDecompiler.EntityFramework package that mentioned in this answer.

提交回复
热议问题