Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Typed Dataset and interfaces problem

Status
Not open for further replies.

leassaf

Instructor
May 20, 2001
49
IL
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?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top