internal static IEnumerable <PropertyFieldMapping> GetDbMapping(Type entityType)
 {
     return(from s in PropertyUnity.GetLoadedProperties(entityType, true)
            let name = string.IsNullOrEmpty(s.Info.FieldName) ? s.Name : s.Info.FieldName
                       let dbType = s.Info.DataType == null ? DbType.String : s.Info.DataType.Value
                                    select new PropertyFieldMapping(s.Name, s.Info.FieldName, s.Type, dbType)
     {
         ValueFunc = e => PropertyValueHelper.GetValueSafely(((IEntity)e).InternalGetValue(s))
     });
 }