public ClientApp_Detail GetHomeDetbyClientID_AppID(string clientid, long appId)
{
ClientApp_Detail sp = null;
using (HelpDeskDataContext HDDC = Conn.GetContext())
{
sp = (from st in HDDC.ClientApp_Details where st.ClientID == clientid && st.AppID == appId && st.IsDeleted != true select st).FirstOrDefault();
}
return sp;
}
As I am a beginner to .NET, I am unable to understand the use of the above query and why it is declared as from st in. Please explain the usage of such type query and what is returning to sp(example) variable.