I've no idea really. 

I assume some incongruences in how the assembly is loaded during the model
generation and the setting of the properties. From a brief check the other
day of the generated model it appears the model is generated when the
dynamic assembly is used, but not the persister.

I'm not knowledgeable enough when it comes to the NH codebase to do much
more than guess without spending a lot more time investigating all the
possibilities.

Regards
Nick

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Regis Dubois
Sent: 11 June 2011 04:10 PM
To: Castle Project Users
Subject: Re: Problem saving an object created dynamically with reflection
(2)

My hero!

Thanks a lot for this.

Any explanation why this was calling Save() to fail?

On Jun 11, 2:55 pm, Nicholas Kilian <[email protected]>
wrote:
> Good news.
>
> Change:
>
> cp.GenerateInMemory = true;
>
> to:
>
> cp.GenerateInMemory = false;
>
> :-D
>
> Regards
> Nick
>
> -----Original Message-----
> From: [email protected]
>
> [mailto:[email protected]] On Behalf Of Regis 
> Dubois
> Sent: 11 June 2011 01:58 PM
> To: [email protected]
> Subject: Problem saving an object created dynamically with reflection 
> (2)
>
> Hi Nicholas,
>
> Here is a very simplified project for you to reproduce the problem.
> It comes with two tests "CreateType" and "StoreObject"
>
> Let me know your thoughts.
>
> Regis
>
> --
> You received this message because you are subscribed to the Google 
> Groups "Castle Project Users" group.
> To post to this group, send email to
[email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group
athttp://groups.google.com/group/castle-project-users?hl=en.

--
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to