TypedView filter problem !!!

Posts   
 
    
Vladimir
User
Posts: 5
Joined: 24-Mar-2006
# Posted on: 24-Mar-2006 10:57:33   

I have a problem in filtering TypedView. View is constructed from 3 tables.

After this code:

_ContactListViewTypedView contactListViewCollection = 
                                                        new ContactListViewTypedView();

 IPredicateExpression filter = new PredicateExpression();
 filter.Add(PredicateFactory.Like(ContactFieldIndex.LastName, SearchTextBox.Text+"*"));
 contactListViewCollection.Fill(0, null, true, filter);
_

I have exception : System.Data.SqlClient.SqlException: The multi-part identifier "dbo.Contact.LastName" could not be bound.

this exception throw in line: _ public bool GetMultiAsDataTable(...) { return base.PerformGetMultiAsDataTableAction(...); } _ How to fix this issue ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39930
Joined: 17-Aug-2003
# Posted on: 24-Mar-2006 11:37:36   

ContactFieldIndex -> ContactListViewFieldIndex

Frans Bouma | Lead developer LLBLGen Pro
Vladimir
User
Posts: 5
Joined: 24-Mar-2006
# Posted on: 24-Mar-2006 17:29:35   

Yes, thank you ...