suppose i am showing data in grid and i have many textboxes for filter the data. textbox for employee id. if employee id textbox is empty then no where clause will be added
Try this:-
First select the data:-
var r = from t in TblFamilie select new { t.ID, t.ParentID, t.Name, t.CurDate };
Then you can filter based on condition:-
if (sName!="") r = r.Where(x => x.Name == sName);