Accessing Class Properties

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



When designing a DAL (data access layer), I designed the methods to return custom classes that contain properties. Example:

public class Employee
{
private string _name;

public string Name
{
get { return _name; }
}

public Employee()
{
_name = "Employee Name";
}
}

[...]

public static Employee GetEmployee()
{
return new Employee();
}

The requirements have since changed completely from what they were originally and I'll have to design the DAL as a web service. I didn't think this would be a big deal, but apparently properties are not serialized as XML as I had expected.

There is quite a bit of custom code developed in the DAL, so I'm obviously looking for the simplest approach to modifying my original code into something that can be accessed through a web service.

Does anybody have any suggestions on how to implement this design change as seamless as possible?

Thank you in advance,

--
Sean
.



Relevant Pages

  • Re: Accessing Class Properties
    ... How about implementing webmethods that get/set internal class property ... custom classes that contain properties. ... public class Employee ... private string _name; ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: Capturing an employee in a team at a point in time
    ... you will have a robust design that will not need altering. ... Access Query Grid interrogates the Windows setting and as ... you have entered a date in US m/d/y format. ... I would like to design a db that captures employee data. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Looking for PCB layout designer
    ... at a $5 adder to go to six layer), but that does *not* mean that they ... Descrimination against smart people (as well as ... for a digital design type job one question ... Are you saying that every employee should have identical skills? ...
    (sci.electronics.design)
  • Re: Still New to Access DB
    ... The tab order in the design view on the subform only is correct, ... Employee, can you add more than 1 record to it. ... EmpID ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Design Pattern Question
    ... but Proxy is pretty much designed for restricted or selective access. ... interfaces for Employee that only provide X, X+Y, or Z access. ... one "hard-wires" the appropriate interface for each client. ... I would like to explore this design further. ...
    (comp.object)