私は、次のプロパティを持つDBクラスを持っている:計算されたプロパティでフィルタリングされたEntity Frameworkを使用して、DBからクラスのリストを取得しますか?
public string AwsS3Key { get; set; }
public bool PendingS3Upload => !string.IsNullOrEmpty(AwsS3Key);
私はPendingS3Upload
プロパティに基づいてフィルタリングすることにより、私のコンテキストからのデータのリストを引くしようとしています。しかし、私は次のエラーを取得する:
The specified type member 'PendingS3Upload' is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported.
どのように私は、「計算された」プロパティPendingS3Upload
に対する私のテーブルからデータを取得することができますか?
ああ。作成した計算列について、具体的にはコード・ファースト・アプローチからどのように進んでいきますか? –
@DanielBrown私は自分の答えを更新しました。 – SimonGates