If I understand you correctly, you want to keep the code in the shared dataset at its current location, but do not want the client to see it, only the server. If you are using .NET 2.0, maybe using the InternalsVisibleTo attribute would be a solution? That said, moving the code in the dataset over to the server would be a better long term solution...
Sébastien > -----Original Message----- > From: Discussion of advanced .NET topics. [mailto:ADVANCED- > [EMAIL PROTECTED] On Behalf Of Mark Nicholls > Sent: Friday, November 24, 2006 1:41 AM > To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM > Subject: [ADVANCED-DOTNET] migrating thick client to remoting.......how > to share a dataset > > We have a system that's been developed as a thick client in it's early > stages and intend to pull it apart and deploy using remoting under IIS. > > it consists of 3 projects > > 1 client > 2 shared > 3 server > > The problem is simply that the dataset sits in the shared project, > because > obviously the client and the server need to know the schema of the data, > but the dataset also contains all the data access code....the client > shouldn't need to see this when running over remoting, in fact I want > it > explicitly not to see it, so that when I compile the client, all the > current DataAdapter.GetXYZ() code will fail to compile...i.e. the > compiler > will tell me what code I need to move to the server object (and be > delegated in the server to the relevant dataadapters). > > any idea's. > > currently it compiles, half the dataaccess goes via the server, and the > other half happens direct from the client....I've overriden the > connection > string property on the client so the code currently breaks if it tries > to > update directly to the database....it would be nice for the compiler to > explicitly tell me. > > =================================== > This list is hosted by DevelopMentor® http://www.develop.com > > View archives and manage your subscription(s) at > http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com