I want to expose legacy .net code via WCF Data Services. But without using Entity Framework anywhere. Basically I currently populate all my models from db once every X hours and dump these models in cache. The current web services pull all the info from this cache. I now have to convert all of this to WCF Data Services, primarily to support OData protocol.
What is the simplest and quickest way out (again, no entity framework)
Below is an example of how my model currently looks like:
public class Country
{
public string CountryCode {get; set;}
public string CountryName {get; set;}
public List<State> ListOfStates {get; set;}
}
public class State
{
public string StateCode {get; set;}
public string StateName {get; set;}
}
Thanks in advance.