Accessing Class Properties
- From: senfo <enceladus311@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 13 Dec 2006 16:13:19 -0500
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
.
- Follow-Ups:
- Re: Accessing Class Properties
- From: Scott M.
- Re: Accessing Class Properties
- Prev by Date: Re: Best Practice 1 .asmx file per Web Site?
- Next by Date: Re: Accessing Class Properties
- Previous by thread: Re: Best Practice 1 .asmx file per Web Site?
- Next by thread: Re: Accessing Class Properties
- Index(es):
Relevant Pages
|