I am trying to filter few records based on a list that is in my UI. But I am querying the DB where I am getting extra details other than what I am displaying in UI. How can I restrict my search to only to the properties of object which I am displaying in UI.
eg. I am querying DB and getting firstName,lastName,age and marks . but In UI I am only displaying the firstName and marks,So When in search box I write lastName it should not display anything.