You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
When using Dapper QueryMultiple, it appears the mapped columns are not working.
In my case QueryMultiple returns 3 tables.
var ds = con.QueryMultiple("uspSELNodes", p, commandType: CommandType.StoredProcedure);
var rows = ds.Read().ToDictionary(v => v.RowNo); //Returns a dynamic dictionary
var total = ds.Read<int>().First(); //Returns table 2 that contains just an int for a total
var columns = ds.Read<DynamicTable.Column>(); // Does not seem to map properly.
Class is as below :
public class Column : IDynamicTableColumn
{
public string Prefix { get; set; }
public string Name { get; set; }
public string DisplayName { get; set; }
public int Order { get; set; }
public bool Orderable { get; set; }
public bool Filterable { get; set; }
public int Width { get; set; }
public string ResourceName { get; set; }
}
The columns that match name for name for example DisplayName all get their correct values from Dapper, the mapped columns appear to be getting the defaults for their type, strings empty, bools false and ints 0.
Am I initializing this correctly?
The text was updated successfully, but these errors were encountered:
When using Dapper QueryMultiple, it appears the mapped columns are not working.
In my case QueryMultiple returns 3 tables.
Class is as below :
Mapping :
Config :
The columns that match name for name for example DisplayName all get their correct values from Dapper, the mapped columns appear to be getting the defaults for their type, strings empty, bools false and ints 0.
Am I initializing this correctly?
The text was updated successfully, but these errors were encountered: