3
私は多くの他のものの中で、会話が開始された日付を返す大きなフリントクエリーを持っています。私は2011年1月1日以降に開始された会話だけを返信したいと思います。DBから返された日付を日付(文字列など)と比較するにはどうすればよいですか?
私はこのようなものがあります:
conversation.TimeOfInitiation > "1-1-2011"
をしかし、私はこのエラーを取得しています:
The type
System.Nullable<System.DateTime>
does not support the 'comparison' constraint. For example, it does not support the 'System.IComparable' interface
obvoiusly私の素朴なアプローチが成功しませんでした。これをどうやって回避するのですか?