SyncChanges icon indicating copy to clipboard operation
SyncChanges copied to clipboard

'NPoco.PocoExpando' does not contain a definition for 'TableName'

Open markive opened this issue 2 years ago • 3 comments

Hi @mganss,

I'm trying to test this library, it looks great for my purpose..

I have enabled change tracking in the source database and on 2 tables.

However when I run synchronizer.init() I get the following error:

image

However when I run the sql manually I do get the expected result:

image

Any idea why this is happening? I tried to run the previous version of the library and it also failed. I'm running .Net Core 6.0 console app.

markive avatar Oct 17 '22 03:10 markive

Strange. Can you set a breakpoint inside the GroupBy to see what the contents of the dynamic object look like?

mganss avatar Oct 17 '22 09:10 mganss

image

Yeah it seems close, but it can't project the Select to a TableInfo but the GroupBy does work.

markive avatar Oct 17 '22 11:10 markive

What happens if you step further? Which properties do the dynamic objects have? You can set breakpoints inside lambdas by placing the cursor in the lambda function, right click and select insert breakpoint.

mganss avatar Oct 17 '22 14:10 mganss