I’m using .NET Remoting to build a distributed application. I use interfaces and the Factory design pattern to acquire remoted objects from the server to the client application. As long as I’ve used simple classes, I had no trouble in acquiring a reference to the real class via the factory interface (ICustomerFactory.GetNewCustomer). However, I now use a typed Dataset on the server which represents the database tables. I couldn’t find a way to use the same Factory pattern to acquire the Typed Dataset object to the client.
Another thing is that a simple class (not Typed Dataset) enables writing code (Methods etc...). When working with a Typed Dataset, there is a code file associated with it, but any changes made to that code file are lost each time its schema is regenerated. This prevents me from writing permanent code which fills the Typed Dataset with database data.
Any ideas how to workaround these issues?
Another thing is that a simple class (not Typed Dataset) enables writing code (Methods etc...). When working with a Typed Dataset, there is a code file associated with it, but any changes made to that code file are lost each time its schema is regenerated. This prevents me from writing permanent code which fills the Typed Dataset with database data.
Any ideas how to workaround these issues?