0

次の RIA のコードは、私の Silverlight クライアントで動作します。しかし、テーブル「tbLeagues」からのすべてのデータが必要ないので、どのようにフィルタリングしますか?

            JasonsDomainContext context = new JasonsDomainContext();
        dgLeagues.ItemsSource = context.tbLeagues;
        context.Load(context.GetTbLeagueQuery());

そこにある多くの記事を読むと、標準はこれを行うようです....(where句を使用)しかし、この通常の選択でさえ、データグリッドにレコードがありません。

JasonsDomainContext context = new JasonsDomainContext();
        dgLeagues.ItemsSource = from l in context.tbLeagues
                                select l.dbLeagueName;

        context.Load(context.GetTbLeagueQuery());
  1. 私は何を間違っていますか?
  2. これは最善のアプローチですか?

ありがとう、ジェイソン

4

1 に答える 1

0

JasonsDomainServices GetTbLeague メソッドに where 句を追加しようとしましたか?

于 2009-11-01T15:01:24.637 に答える