Using MyGeneration with Fluent NHibernate

I found a fantastic template for NHibernate code generation using MyGeneration here,

http://vucetica.blogspot.com/2009/01/nhibernate-template-for-mygeneration.html

This creates XML mapping files with the extension hbm.xml.

I was wonder if anybody knows of templates which support fluent NHibernate which defines the mapping using C# files.

Thanks

-------------Problems Reply------------

When you are using Fluent NHiberate you needn't hbm files, you can generate them based on your domain model and conventions

Category:c# Views:0 Time:2009-11-05

Related post

  • Generate C# entities from existing DB and Fluent NHibernate auto mapping 2009-12-11

    I'm working with an existing database that uses some really ugly conventions. I'd like to use NHibernate, and I think I can fix all these ugly DB conventions using Fluent NHibernate's auto mapping conventions. I'd like to avoid writing all the entity

  • T4 template for NHibernate? - not Fluent NHibernate 2009-02-03

    Wondering if anyone knows of a set of T4 templates for generating C# POCO classes and also mapping XML files for NHibernate from a set of tables in a database. I saw that David Hayden has created T4 for generating FluentNH code based upon a DBML mode

  • Dealing with Schema Updates in nHibernate/Fluent nHibernate after Deployment 2011-05-06

    In writing an application that runs on Fluent Nhibernate/Nhibernate, something has me a bit concerned. I suppose this would be true of any ORM (and even without using an ORM), but what is the ... I guess the word is 'field of study' that relates to t

  • Fluent NHibernate Many-to-Many 2008-09-20

    I am using Fluent NHibernate and having some issues getting a many to many relationship setup with one of my classes. It's probably a stupid mistake but I've been stuck for a little bit trying to get it working. Anyways, I have a couple classes that

  • Does Fluent-NHibernate support mapping to procedures? 2008-11-17

    I've been wondering if it's possible to have Fluent-NHibernate communicate with stored procedures that already exist and assign mapping from the result set to my own domain objects. Also is Fluent-NHibernate able to directly execute procedures with n

  • Fluent NHibernate - how to map a subclass one-to-one? 2008-11-17

    Suppose I have three classes. It is valid to instantiate A, but there are also special cases B and D which subclass A, adding additional information. How would I do the mapping files for this in (fluent) NHibernate? public class A { public int ID { g

  • Fluent NHibernate: How to create one-to-many bidirectional mapping? 2008-11-22

    Basic question: How to I create a bidirectional one-to-many map in Fluent NHibernate? Details: I have a parent object with many children. In my case, it is meaningless for the child to not have a parent, so in the database, I would like the foreign k

  • NHibernate: Best way to deal with intermediary table using Fluent NHibernate? 2008-11-24

    How would you map the following in Fluent NHibernate? See "18.3. Customer/Order/Product" http://www.hibernate.org/hib_docs/nhibernate/html/example-mappings.html --------------Solutions------------- The following solution uses the same approach as the

  • Odd Exception when Combining .hbm.xml and Fluent NHibernate - Any ideas? 2008-11-24

    So I'm converting my mapping files on an as needed basis (when making changes, convert to mapping). Any when configuring NHibernate like so: Assembly asm = Assembly.Load("RPMWare.Core.DataAccess"); //NHibernate configuration: see hibernate.cfg.xml va

  • Fluent NHibernate, joined-subclass mapping 2008-11-25

    I'm trying to map a joined-subclass scenario using Fluent NHibernate. I have a class Entity defined in the namespace Core, and a class SubClass : Entity in the namespace SomeModule Now I obviously don't want class Entity to know about its derived typ

  • Can this mapping be done with (Fluent) NHibernate? 2008-11-28

    I have an Events table whose goal is to store actions done by web site users. An action basically alters or create a new row in a table X. This will allow me to store an history of all actions done by a user. As such, Events contains: a primary key c

  • How to build Fluent NHibernate? 2008-12-05

    I want to take a look on Fluent NHibernate but unfortunately I cannot find any information on how to build it from the sources. Maybe someone can help me? What tools I need for building it? --------------Solutions------------- The Build.bat file only

  • How to test fluent-NHibernate's PersistenceSpecification.VerifyTheMappings with lists and relational objects? 2008-12-07

    How would you test this scenario? I've just started looking into NHibernate and having my first bash at TDD. So far I've really enjoyed it and have been using fluent-Nhibernate for my mapping of the classes. However I seem to be hitting a dead end wh

  • Could we have custom name of the primary key column in Fluent NHibernate? 2008-12-17

    I'm so surprise while I'm working in Fluent NHibernate. I got my legacy database that has primary key column name is different from my property in domain model. I'm sure that I can use this mapping file: <class name="Person"> <id name="Id" c

  • using (Fluent) NHibernate with StructureMap (or any IoCC) 2008-12-20

    On my quest to learn NHibernate I have reached the next hurdle; how should I go about integrating it with StructureMap? Although code examples are very welcome, I'm more interested in the general procedure. What I was planning on doing was... Use Flu

  • fluent nHibernate mapping 2008-12-27

    I am working on a legacy system and have introduced fluent nHibernate but have one last mapping that I can not seem to get working. Code: public class Permit { public int PermitId { get; set; } public char Discipline { get; set; } public PermitDetail

  • Possible Bug in Fluent-NHibernate Repository? 2009-01-05

    I think I might have found a bug, but I'm not really sure. It could be a syntax error on my part, but the compiler isn't catching. Anyway, here is what I'm trying to do. Basically I've written my own repository class that essentially just wraps the F

  • Rhino.Commons + Fluent NHibernate 2009-01-12

    Is there a way to use Rhino.Commons with Fluent Nhibernate, (in particular AutoMapping)? Many thanks fromano --------------Solutions------------- # # # # # # # # # # UPDATE: That answer was written in Feb of 2009. With the rate that the FluentNHibern

  • How do you map an enum as an int value with fluent NHibernate? 2009-01-13

    Question says it all really, the default is for it to map as a string but I need it to map as an int. I'm currently using PersistenceModel for setting my conventions if that makes any difference. Thanks in advance. Update Found that getting onto the

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.090 (s). 11 q(s)