By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,825 Members | 2,437 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,825 IT Pros & Developers. It's quick & easy.

remoting and database access

P: n/a
Hi there,

I developed a client server model. The server is
connected to a database and I see the contents of the
database. I have a Class Library which the Server
referenced to. Furthermore I have an interface which
should communicate with the client for data exchange.

How can I access the data from the database from the
Windows Apllication to the Class Library?

Thanks a lot for your help.
Chris

Class Library

using System;
using IRemoteServer;

namespace BankClassLibrary
{
/// <summary>
/// Summary description for Class1.
/// </summary>public class
BankDetailsClassLibrary : MarshalByRefObject,
RemoteInterface
{
public BankDetailsClassLibrary()
{
//
// TODO: Add constructor logic
here
//
}

private string b_bankid = "";

public string B_bankid
{
get
{
return b_bankid;
}
set
{
b_bankid = value;
}
}
}
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
how about this:
http://www.dotnetbips.com/displayarticle.aspx?id=213

or this:
http://www.dotnetbips.com/displayarticle.aspx?id=208

The latter includes source code for doing Remoting in a multi-tiered app.
"chris" <ch*********@hotmail.com> wrote in message
news:07****************************@phx.gbl...
Hi there,

I developed a client server model. The server is
connected to a database and I see the contents of the
database. I have a Class Library which the Server
referenced to. Furthermore I have an interface which
should communicate with the client for data exchange.

How can I access the data from the database from the
Windows Apllication to the Class Library?

Thanks a lot for your help.
Chris

Class Library

using System;
using IRemoteServer;

namespace BankClassLibrary
{
/// <summary>
/// Summary description for Class1.
/// </summary>public class
BankDetailsClassLibrary : MarshalByRefObject,
RemoteInterface
{
public BankDetailsClassLibrary()
{
//
// TODO: Add constructor logic
here
//
}

private string b_bankid = "";

public string B_bankid
{
get
{
return b_bankid;
}
set
{
b_bankid = value;
}
}
}

Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.