I am creating advance search facility in one of my application. In that functionality i have to store selected search criteria. My search result is based on Logi XML...Logi XML requires SQL inline statement so that reason i have to store sql inline query into database table.
I have below tables in my current database.
Employee Salary PresentInfo
ID ID ID
Name EMPID SalaryID
City Basic TotalDays
State HRA PresentDays
Zip PF
Phone DA
Now user can select any criteria from above tables. I am managing selected criteria into session context. I mean to say i have all the selected details by user. I want to create dynamic sql inline statement in business logic with respective joins.
below function in business logic class
public string GetDetails(List<Class1> Entity)
{
//What should I write here? I have all the data in entity class
}
So if anyone have any idea about this scenario than please help me in this. Thanxs in Advance.