I have created a external content type (BCS list) in SharePoint. I am using the below code in order to get items from bcs list.
SPQuery query = new SPQuery(); query.Query = "<Where><IsNotNull><FieldRef Name='BdcIdentity'/></IsNotNull></Where>"; SPListItemCollection col = list.GetItems(query);
Also I have created a view for the list. Can anyone tell me how to get items from the view of the list?