Automapping internal properties

8 views
Skip to first unread message

mcintyre321

unread,
Jun 30, 2009, 4:39:00 PM6/30/09
to Fluent NHibernate
Sorry this has probably been asked a bazillion times, but what do i
need to do to get the AutoMapper to pick up internal properties? I've
had to make all my properties public :(

thanks!

James Gregory

unread,
Jun 30, 2009, 4:52:18 PM6/30/09
to fluent-n...@googlegroups.com
Take a look at the PrivateAutoMapper.

mcintyre321

unread,
Jul 7, 2009, 5:18:10 AM7/7/09
to Fluent NHibernate
Sorry James I couldn't figure out how to use the PrivateAutoMapperin
conjunction with my config. I read the reasoning behind making the
PrivateAutoMapper (to prevent breaking changes), but it seems a bit of
an odd approach to me, particularly as the default method encourages
dangerous scope.

Could the AutoPersistenceModel.MapEntitiesFromAssemblyOf<User>() be
changed to something like
AutoPersistenceModel.MapEntitiesFromAssemblyOf<User>
(MapProperties.Public | MapProperties.Private |
MapProperties.Internal)

and the default value could be the current behaviour (or even make it
required and make people make the decision themselves)

On Jun 30, 9:52 pm, James Gregory <jagregory....@gmail.com> wrote:
> Take a look at the PrivateAutoMapper.
>
Reply all
Reply to author
Forward
0 new messages