Enterprise Library Mappings <p>Is there a way to map database fields to OOP complex type fields with Enterprise Library. I am calling stored procedures that retrieves all data that I would like to store into custom class.</p> <p>Here I retrieve data from sp:</p> <pre><code> IEnumerable&lt;WorkHistoryGrid&gt; data = new List&lt;WorkHistoryGrid&gt;(); return db.ExecuteSprocAccessor&lt;WorkHistoryGrid&gt;("PensionPDF_RetrieveParticipantWorkHistoryForFund", pensionId, fund); </code></pre> <p>And here is my class</p> <pre><code> public class WorkHistoryGrid : BindableBase { private string _rateType; private string _fundType; private string _employer; private string _employerName; private string _local; private string _dateBalanced; private string _plan; private string _fund; private WorkHistoryGridMergeData _mergeData; #region Properties public WorkHistoryGridMergeData MergeData { get { return _mergeData; } set { SetProperty(ref _mergeData, value); } } public string RateType { get { return _rateType; } set { SetProperty(ref _rateType, value); } } public string FundType { get { return _fundType; } set { SetProperty(ref _fundType, value); } } public string Employer { get { return _employer; } set { SetProperty(ref _employer, value); } } public string EmployerName { get { return _employerName; } set { SetProperty(ref _employerName, value); } } public string Local { get { return _local; } set { SetProperty(ref _local, value); } } public string DateBalanced { get { return _dateBalanced; } set { SetProperty(ref _dateBalanced, value); } } public string Plan { get { return _plan; } set { SetProperty(ref _plan, value); } } public string Fund { get { return _fund; } set { SetProperty(ref _fund, value); } } } } } </code></pre> <p>It works fine if I would create one class with all database fields, but I would like to have more control over it by mapping database fields to custom complex type properties.</p>