remoting and database access

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chris

    #1

    remoting and database access

    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 BankClassLibrar y
    {
    /// <summary>
    /// Summary description for Class1.
    /// </summary>public class
    BankDetailsClas sLibrary : MarshalByRefObj ect,
    RemoteInterface
    {
    public BankDetailsClas sLibrary()
    {
    //
    // TODO: Add constructor logic
    here
    //
    }

    private string b_bankid = "";

    public string B_bankid
    {
    get
    {
    return b_bankid;
    }
    set
    {
    b_bankid = value;
    }
    }
    }
  • Dino Chiesa [MSFT]

    #2
    Re: remoting and database access

    how about this:


    or this:


    The latter includes source code for doing Remoting in a multi-tiered app.


    "chris" <chriscoelle@ho tmail.com> wrote in message
    news:07f201c368 72$248fa520$a40 1280a@phx.gbl.. .[color=blue]
    > 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 BankClassLibrar y
    > {
    > /// <summary>
    > /// Summary description for Class1.
    > /// </summary>public class
    > BankDetailsClas sLibrary : MarshalByRefObj ect,
    > RemoteInterface
    > {
    > public BankDetailsClas sLibrary()
    > {
    > //
    > // TODO: Add constructor logic
    > here
    > //
    > }
    >
    > private string b_bankid = "";
    >
    > public string B_bankid
    > {
    > get
    > {
    > return b_bankid;
    > }
    > set
    > {
    > b_bankid = value;
    > }
    > }
    > }[/color]


    Comment

    Working...