Yes there is one.
1) Create a very good but simple sample.
2) write a blog-post in NH-Forge
3) invite people to use it
4) wait for issue patchs
5) follow the project development day-by-day with passion and bloging
each improvement

2009/11/19 FaticaLabs <[email protected]>

> Hi all,
> I did commit a first version of the T4 enabled hbm2net.
> I'm worried about providing some good testing. At present there is
> only one ( sigh:( ) test running, and it works that way:
> a simple HBM with some insteresting collection/many-to-one/nullables
> in as a resource stream is submitted to the code generator, the
> generated file(s) are compiled in one assembly, then I execute the
> following:
>
> private void CheckMappingAgainstCode(Assembly asm, string mappingFile)
>        {
>            Configuration cfg = new Configuration()
>                                    .SetProperty
> (NHibernate.Cfg.Environment.Dialect, typeof
> (MsSql2005Dialect).AssemblyQualifiedName)
>                                    .SetProperty
> (NHibernate.Cfg.Environment.ConnectionProvider, typeof
> (DriverConnectionProvider).AssemblyQualifiedName)
>                                    .SetProperty
> (NHibernate.Cfg.Environment.ConnectionString, "nothing");
>                                    ;
>            cfg.AddFile(new FileInfo(mappingFile));
>            cfg.AddAssembly(asm);
>            //cfg.BuildMapping();
>            cfg.BuildSessionFactory();//do some sanity check on
> mapping and code...
>        }
>
> Don't worry about the configuration dialect/connection string:is just
> to make NH happy.
> Building the session factory do some interesting sanity check... bu
> the question is:
> is that enougth ? Is there some better way to ensure the generated
> classes code works ?
> Thanks in advance,
> Felice
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "NHibernate Contrib - Development Group" group.
> To post to this group, send email to [email protected].
> For more options, visit this group at
> http://groups.google.com/group/nhcdevs?hl=.
>
>
>


-- 
Fabio Maulo

--

You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/nhcdevs?hl=.


  • T4 hbm2net FaticaLabs
    • Re: T4 hbm2net Fabio Maulo

Reply via email to