Is the Predicate system datatype sensitive when constructing filter expressions? I have run into an issue where the datatype supplied when constructing a EntityView2 object's filter seems to determine whether or not the filter is applied.
The code below shows the problem. Can someone confirm this is an issue or am I supposed to cast data to the exact type?
Snippet
long Id = 1
Dim filterThisLong As IPredicate = (TblAccountTypeFields.AccountTypeId = Id)
Dim filterThisInt As IPredicate = (TblAccountTypeFields.AccountTypeId = CInt(Id))
'Create data collection
entityData = New EntityCollection(New MyTestEntityFactory())
'Retrieve data
adapter.FetchEntityCollection(entityData, Nothing)
'Filter data
viewData = entityData.DefaultView
'This does not work - no error, but the view has no data
viewData.Filter = filterThisLong
'This works - view contains data
viewData.Filter = filterThisInt