This project is read-only.
1

Closed

ViewModel and its adaptor being created twice

description

This ticket is just a placeholder - resulting from working with Aidan C.

A single request appears to be creating the same view model twice, with two separate adaptors, wrapping two separate POCOs.

It is only causing them a problem because they are doing some highly non-standard stuff (switching the POCO on the adaptor - to point to a NOF POCO object. So on the second time around the framework (rightly) protests that it already has an adaptor for this POCO.

I suggested a temporary workaround that appeared to work - without any side effects showing yet. (Which is that when the second one is created, to find and delete the first Adaptor.)

But longer term we should look at why this is happening at all.
Closed Mar 21, 2014 at 4:30 PM by RichardPawson

comments

scascarini wrote Jan 15, 2014 at 4:13 PM

Improved Viewmodel adapter handling - should be no user visible differences but optimise creation of viewmodels and calls to populate and derive keys to minimise number of calls.