Skip to content

How to build a custom mapper for a class with a child list #190

Answered by alirezanet
moxplod asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @moxplod,
This should work as expected

var gm = new GridifyMapper<TestEntity>()
		.AddMap("k", q => q.CustomFields.Select(cf => cf.Key))
		.AddMap("v", q => q.CustomFields.Select(cf => cf.Value));

var gridifyResult = dataSource.ApplyFiltering("k=Key1,v=Value1", gm);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alirezanet
Comment options

Answer selected by moxplod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants