Bool queryCheck = (from cnt in context. CmsContents where cnt. ContentId == myContentIdSelected && cnt.
CmsSourcesContents.Any() select cnt).Any().
Thanks what it works great! – GibboK Mar 17 at 18:58 @GibboK standard procedure is to accept this as the answer then :) – msarchet Mar 17 at 19:05.
You can use Any() again on the total query to see if there are any matches: var queryCheck = (from cnt in context. CmsContents where cnt. ContentId == myContentIdSelected && cnt.
CmsSourcesContents.Any() select cnt).Any().
I use asp.net 4 linq and EF4. I have this query where CmsSourcesContents is a navigational property. At he moment when I run the query the result for queryCheck is a type IQuerable.
Any idea how to make it? This query should look for a specific cnt and check if it has any association.. and give me the result as bool.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.