WCF -- How to access DAL.
-
Hi Guys, I have a small requirement. Please can any one help me?? Req: I have a UI---WCFService---DAL. From UI on button click i have 2 access WCF Service which will access DAL and fill my GridView... Plz can one help me for this... I tried but :(( some error coming in WCF Service...
-
Hi Guys, I have a small requirement. Please can any one help me?? Req: I have a UI---WCFService---DAL. From UI on button click i have 2 access WCF Service which will access DAL and fill my GridView... Plz can one help me for this... I tried but :(( some error coming in WCF Service...
-
This function declaration i am using in Interface [OperationContract] ISingleResult Spr_GetEmployerDetails(); Class Implementation public ISingleResult Spr_GetEmployerDetails() { //DBHelperDataContext db = new DBHelperDataContext("Data Source=10.105.103.112;Initial Catalog=esic;Persist Security Info=True;User ID=esicpoc;Password=pass@word1"); ISingleResult Emplist = db.Spr_GetEmployerDetails(); return Emplist; } after this i ran in wcfclientteest myservice the error is (the operation is not supported in the WCF).. with red mark
-
This function declaration i am using in Interface [OperationContract] ISingleResult Spr_GetEmployerDetails(); Class Implementation public ISingleResult Spr_GetEmployerDetails() { //DBHelperDataContext db = new DBHelperDataContext("Data Source=10.105.103.112;Initial Catalog=esic;Persist Security Info=True;User ID=esicpoc;Password=pass@word1"); ISingleResult Emplist = db.Spr_GetEmployerDetails(); return Emplist; } after this i ran in wcfclientteest myservice the error is (the operation is not supported in the WCF).. with red mark
-
sorry i don't understand your code. My doubts are: 1)What is ISingleResult?Is that interface? 2)In Which line this error comes?
Ok let me explain my requirement... I have one button and one grid On button cliek i have 2 fill employee details... using WCF I tuk button, grid.. Now I wrote WCF code which will access DAL layer... In DAL I used LinqtoSQLClass.. I want to return one dataset from DAL to WCF which will return 2 my UI and it will fill my Grid. So to get data from DAL I used as I cant use LinqtoSQLClass functions directly from my UI. public ISingleResult Spr_GetEmployerDetails() { ISingleResult Emplist = db.Spr_GetEmployerDetails(); return Emplist; } So the return type is ISingleResult.... Or Can U suggues how can i do ? UI---WCF---DAL UI(Grid)----WCF(Access DAL)---------DAL(Contain all employee database in LinqtoSQLClass) Thanks & Regards Alim