テーブルを取得し、テーブルを解析してテーブルのサブセットを作成するテストを作成しようとしています。CreateSet を使用して既存の型を使用します。
私が直面している問題は、渡されるテーブルの値に応じて異なるリストを作成したいということです。
例えば:
次に: 値があります
name|otherinfo |isApple|isOrange|isMango|
ex1 |someinfo,otherinfo|true |false |false |
ex2 |someinfo,otherinfo|true |true |true |
CreateSet を使用して、これらのフラグに基づいてテーブルのサブセットのリストを作成したいと考えています。
何かのようなもの
List<apples> apples = table.CreateSet<apples>(only get apples).ToList();
しかし、私が試したすべてのliqステートメントは失敗します。ここで「リンゴだけを手に入れる」部分をどのように行うのですか?
**注: また、使用したい型にはこれらの識別子フラグがありません。これらは表にあるだけです。