... It's an interesting approach. But doesn't this mean that you have to recompile for any changes to the mapping file? -- Cory Foy http://www.cornetdesign.com...
Indeed ... But you will also have to if you use ActiveRecord, or if your hbm files are compiled as an embedded resource (which they nearly always are) ... The...
There is nothing to say you couldn't fire up a csharpcodeprovider and compile the code at runtime into an in memory assembly if you wanted to. ... -- It is the...
What bothers me is that this is in exact opposite to the way I want to work in most cases.How do I specify rules for _all_ my entities?...
Ayende Rahien
Ayende@...
Aug 12, 2008 6:23 am
Hi I'm intrigued what do you mean by this? ... I've never done this, and wonder when or why you would. Cheers Andy ... -- ================= I-nnovate Software...
Andrew Stewart
andrew.stewart@...
Aug 12, 2008 9:14 am
Imagine something like: public class MyMappingGenerator : MappingGenerator { // another approach would be IEnumerable<Assembly> GetEntitiesAssemblies() public...
Ayende Rahien
Ayende@...
Aug 12, 2008 1:19 pm
this seems to be a very advanced scenario. In my opinion most of the NHibernate devs will never reach this territory......
While that may be the case ... In three projects using nhibernate, I have yet to need anything more than the most simple of mappings ... XML was used on two...
That really depends on how complex you model is, indeed.For most apps, using AR is a natural choice, because it takes care of a lot of the boring details. ...
Ayende Rahien
Ayende@...
Aug 12, 2008 3:53 pm
I agree that the Fluent example given, without using conventions, would be a point of friction for most of my applications. As mentioned earlier though, the...
... Yes, once you are ready to deploy. But when you are tweaking... But I do like the readability and testability of this. ... Actually, I disagree. I've...
I'm open minded, but let me check understanding: - This would be aimed at people that do not want to use attributes (presumably because they feel they have not...
... What interests me most is the conventions you're baking in, that's what (for me) could be the killer advantage over XML. However I haven't seen much...
We haven't tackled it properly yet, that's probably why you haven't heard much. We're focussing on getting all the main features into the API for our first...
Indeed ... my choice would be the same as for Windsor ... a) Use the XML configuration ... not compiled so no type safety, very verbose, a lot of flexibility ...
Hi Simone, Are you suggesting that your coding cycle is Write a test, run the build server to see it fail, make the test pass, run the build server, etc? Cory...
Of course not. Tests are run locally before checking the changes in. What I meant is that tuning does not exist, before going in production you must pass...
... Just an extra step. I'm not suggesting that one is better than the other. Just that they serve different needs. If this were a dynamic language instead of...
How do you do conventions with XML today? I'm not aware of a way to do this. Maybe AR has this, but then you have to, you know, use AR :). Fluent NHib has...
The primary reasons we did it were: - no persistence-related attributes on our domain - allow strong-typing and R# refactoring support Currently, neither AR,...
Seems like a pretty cool alternative to ActiveRecord. My only comment is that this approach reeks of the "Feature Envy" smell. This is unavoidable with NH,...
You could do that with the convention support in Fluent nhib. It's not baked in yet, but it's not difficult to do. ... From: Ayende Rahien <Ayende@...>...
Correction: ITypeConvention does not loop through every type, only the types you've told Fluent NHibernate about. It'll then loop through al the properties on...