我发现 Entity SQL 支持 NEWID(),但是 ObjectQuery 也支持它吗? http://msdn.microsoft.com/en-us/library/bb738616.aspx,
我可以像这样写objectquery:
context.member.orderby("NEWID()").select("it.UserID");
或类似的东西?或者我应该以其他方式写?
我想如果实体 sql 支持 NEWID() 函数,它也应该被 ObjectQuery 接受。就像您可以在 ObjectQuery.Where() 或 Select() 中使用 distinct(it.UserID) 或 BitWiseAND(it.UserID, 1)。
非常感谢。