4
「不」使用我有一個EntityDataSource其中在命令文本包含不在時收到錯誤在命令文本
的查詢是這樣的: - 。
SELECT User.LastName, User.Suffix
FROM [User]
WHERE [User].UserId not in (select [Contractors].UserId from Contractors)
這將導致以下錯誤: -
The element type 'Edm.Guid' and the CollectionType 'Transient.collection[Transient.rowtype[(UserId ,Edm.Guid(Nullable=True,DefaultValue=))](Nullable=True,DefaultValue=)]' are not compatible. The IN expression only supports entity, primitive, and reference types.
任何想法如何解決這個問題?
你能指導我如何解決這個問題,因爲我找不到方法做這個。 – 2010-10-05 12:46:08