Firstly I created class library project into solution explorer and I named it StudentRemotingService.
In this project i added a class and named it IStudentRemotingService and change it to interface . Then I defined all the required methods . Here is the code for defined methods .
namespace StudentRemotingService
{
public interface IStudentRemotingService
{
DataTable Get();
string Insert(string Name, string Address, string Email, string Mobile);
void Update(int Student_Id, string Name, string Address, string Email, string Mobile);
DataTable GetRecord(int Student_Id);
void Delete(int Student_Id);
}
}
.
In next session we will see how to implement this methods insdie console application where we will run the host .
No comments:
Post a Comment