有谁知道查询天空表存储空值的正确方法。从我读过的,这是可能的(虽然有一个错误,防止它在开发存储)。但是,当我在活动云存储上这样做时,我仍然收到以下错误:查询天空表存储空值
其中一个请求输入无效。
这是我放在一起的LINQ查询的简化版本。
var query = from fooBar in fooBarSVC.CreateQuery<FooBar>("FooBars")
where fooBar.PartitionKey == kPartitionID
&& fooBar.Code == kfooBarCode
&& fooBar.Effective_Date <= kFooBarDate.ToUniversalTime()
&& (fooBar.Termination_Date > kFooBarDate.ToUniversalTime() || fooBar.Termination_Date == null)
select fooBar;
如果我运行查询而不检查null,它工作正常。我知道一个可能的解决方案是对该查询带回的集合运行第二个查询。如果需要,我不介意这样做,但想知道我是否可以先采取这种方法。
任何人看到任何明显的我做错了?
Nathan,谢谢你的回应。这很有帮助。 – Brosto 2010-12-09 16:13:33
@Nathan Totten:很好的回答! – 2011-11-23 15:15:58