Passing Custom Object into Backend Layer

  • Thread starter Thread starter Octavie van Haaften
  • Start date Start date
O

Octavie van Haaften

Hai there,

I have a custom object called objSelection of class
clsSelection. This class is defined in my FrontEnd C#
Windows application and has some properties. I want to
pass this object to an Backend object, like this:

btnOK_Click(..)
{
...

BE_Selection myBE = new BE_Selection();
DataTable dt = myBE.ExecuteSelection( objSelection );
myBE = null;

...

}

How to define the Selection class in my backend, so I can
read the properties set in my FrontEnd??

Thanx,
Octavie
 
mark your Selection class with SerailbleAttribut , and if possible , package
in an assemebly to be shared with both your FornEnd and BackEnd
 
Back
Top