Problem saving an object created dynamically with reflection (2)

8 views
Skip to first unread message

Regis Dubois

unread,
Jun 11, 2011, 7:57:30 AM6/11/11
to castle-pro...@googlegroups.com
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

ActiveRecordDebug.zip

Nicholas Kilian

unread,
Jun 11, 2011, 9:55:23 AM6/11/11
to castle-pro...@googlegroups.com
Good news.

Change:

cp.GenerateInMemory = true;

to:

cp.GenerateInMemory = false;

:-D

Regards
Nick

Hi Nicholas,

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 castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en.


Regis Dubois

unread,
Jun 11, 2011, 10:10:07 AM6/11/11
to Castle Project Users
My hero!

Thanks a lot for this.

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

On Jun 11, 2:55 pm, Nicholas Kilian <nicholaskil...@googlemail.com>
wrote:

Nicholas Kilian

unread,
Jun 13, 2011, 1:50:00 AM6/13/11
to castle-pro...@googlegroups.com
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.

Reply all
Reply to author
Forward
0 new messages