My Current Architecture Plan for my Application is
UI -> WCF Bal -> Generic Dal -> Entity Model
I have created generic Dal methods and the related entity and the specific operation to be performed will be handled from the Business Logic.
I am trying to create a Business logic on wcf and as earlier we used to do separate classes for separate entities so from WCF context m confused how to go about ?
i initially thought of creating a interface which will have generic implementation like
public interface IBalService<TEntity> where TEntity:class
{
[OperationContract]
IDictionary<int, string> Populatelist();
[OperationContract]
IEnumerable<TEntity> Viewall();
[OperationContract]
void Insert(TEntity obj);
[OperationContract]
void Update(TEntity obj);
[OperationContract]
void Delete(TEntity obj);
}
now this interface should have different implementation for different entity say Product, Category, Customer but wcf can have just one Service class...
Any idea what i should do now ???