示例#1
0
 public object FromQuery(ColumnValueSet columns, MappingConfig mapping)
 {
     if (Converter != null)
     {
         return(Converter.FromQuery(columns, this, mapping));
     }
     return(mapping.FromDb(Member.PropertyType, columns[PhysicalColumns[0].Name]));
 }
示例#2
0
 private static object MapScalar(MappingConfig config, Type type, ColumnValueSet columns)
 {
     return(config.FromDb(type, columns.Single().Value));
 }