Lets imagine model entity:
and opposite Dto class:
Now creating mapping builder:
And when i trying to create Mapper from this mapping description, it fails on:
I can imagine(maybe wrong) why it throws this, because yours Xtensive.Orm.Entity has also indexer with return type object, not like mine string.
My question is, how can i tell to mapping description to ignore indexer ? something like Problem is i need such indexer in UserDto class because its implements |
Peter, the issue is fixed in 7544 revision. The binaries will be published soon. And how will you fix it?Just ignoring indexer? Right, properties with indexer are skipped. The nightly build is available in the download section. Downloaded, tested, worked. Confirmed that it was fixed. Thanks a lot! It was a pleasure =) |
Hello Peter,
I'll check this, thanks for the sample.
Can you confirm this? I have many Dto classes with indexer and for now i must enclose these parts
with #if SILVERILGHT #endif
to be not a part of Dto on server side when transform real DO entities to Dto.