In WCF, methods or functions that aren't marked as OperationContract won't be read or presented as service methods.
But what if I used for example:
[ServiceContract] public interface IService1 { void Connect(); [OperationContract] DataTable SelectData(string Proc, SqlParameter[] param); } Then I used the Connect method in the SelectData function that it needs a connection provided by the Connect method, will it still work?
I'm using the WCF services in a Windows Phone application.
The main question is: should I work only on the classes IService1/Service1 and put all my functions and methods on, or can I add classes for example Ip1/p1 ?