.NET Deployment of Interface/Classes for Command Pattern Question
- by Jonno
In theory I would like to produce 2 projects:
1) Asp.net (Sever A)
2) DAL running (Server B)
I would like to utilise command objects to comunicate with the DAL.
ASP.net instantiates a command class e.g. CmdGetAllUsers which impliments IMyCommand interface and sends it to the DAL (using ASMX or WCF).
My question is:
Would the class definition of CmdGetAllUsers need to exist on the DAL server? Or would having the interface definition be enough?
My goal is to reduce the need to redeploy the DAL code, and have it as a fairly simple pass-through layer.
Many thanks for your time.