Yes, they have. Unfortunately the project isn’t configured by default to use it (at least, that was the scenario when I first downloaded it). Btw, can anyone confirm it they’ve added the attribute for allowing partial trusted callers?
Thanks.
<br
Yes, that is correct (I’ve done that in the past).
From: sharp-arc...@googlegroups.com
[mailto:sharp-arc...@googlegroups.com] On Behalf Of Simone Busoli
Sent: segunda-feira, 12 de Janeiro de 2009 21:28
To: sharp-arc...@googlegroups.com
Subject: Re: AutoPersisenceModel not working
I don't think there should be issues with referencing their strong named assemblies.
My main problem with autopersistence is inheritance and custom versioning. Ex.: I’ve got base class for all entities and my versions are timestamps (sql server). I believe you can get the code for the inflector has been added to their project (or will be in a near future) so you should be able to pluralize their names. The inheritance problem can be solved by setting the IsBaseclass on the conventions.
From: sharp-arc...@googlegroups.com
[mailto:sharp-arc...@googlegroups.com] On Behalf Of Kyle Baley
Sent: terça-feira, 13 de Janeiro de 2009 02:53
To: sharp-arc...@googlegroups.com
Subject: Re: AutoPersisenceModel not working
I got the final bit of Fluent NHibernate going for just the category page in the Northwind sample. But I ran into enough issues that I won't be creating a patch for it. Here is a summary:
There is the IsBaseClass entry on the convetion object which you can use to skip the base class and to get the correct behavior on the mappings. It will not work if you have to customize any of the fields (ex.: suppose you have a version field of type timestamp (sql server). In this case, you can have the automappings but then you need to add specific entries for all the entities so that the version is correctly set up. In these cases, the mappings won’t work. But if you’re using the traditional int version field, then the IsBaseClass entry should solve the current problems).
From: sharp-arc...@googlegroups.com
[mailto:sharp-arc...@googlegroups.com] On Behalf Of Kyle Baley
Sent: terça-feira, 13 de Janeiro de 2009 03:40
To: sharp-arc...@googlegroups.com
Subject: Re: AutoPersisenceModel not working
I'd say it warrants some investigation by someone more familiar with Fluent NHibernate. The main stumbling block I see is that it wants to map the base classes, rather than the actual domain objects. I imagine there is a convention that can be created to work around this because I find it hard to believe this is the first project using Fluent NHibernate that uses a base class in its domain.
If I got it right, you should be able to do what you want by passing something like this on the convetions:
convention.IsBaseType = (type => type == typeof(PersistentObject));
now, I haven’t looked at the current version, but I do recall that there are probably several base classes so you’d probably have to perform several checks for all the base classes which shouldn’t be rendered.
PS: I think that fluent NH is still a little bit away for getting automatic mappings working for all cases, but…
<br
If I got it right, you should be able to do what you want by passing something like this on the convetions:
convention.IsBaseType = (type => type == typeof(PersistentObject));
PS: I think that fluent NH is still a little bit away for getting automatic mappings working for all cases, but…
Yeah, there are still some things which need some work, but after following their list for a few days, I’m really under the impression that they will be updating it into what we need for cases like these.
<br
Didi you set the default lazy mode on the conventions? If you don’t, then I think it will assume lazy loading by default…