|
using System.Collections.Generic;
using System.Linq;
using AdventureWorks.Entities;
using Xomega.Framework;
using Xomega.Framework.Services;
namespace AdventureWorks.Services
{
public class StateProvinceService : EntityServiceBase<AdvWorksEntities>, IStateProvinceService
{
public List<State> ReadList()
{
var states = from st in objCtx.StateProvince
select new State()
{
StateProvinceId = st.StateProvinceId,
StateProvinceCode = st.StateProvinceCode,
Name = st.Name,
CountryRegionCode = st.CountryRegionCodeObject.CountryRegionCode
};
return states.ToList();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Xomega Team is striving to increase productivity and development quality by utilizing Model Driven Development coupled with Code Generation and the best design practices for application development.
We provide MDD tools, code generators and frameworks for Visual Studio and .Net development.
Visit us at
http://www.xomega.net