I would like refresh this thread
http://groups.google.com/group/nhusers/browse_thread/thread/2e238e02ff4b97e1
As you can read here
http://fabiomaulo.blogspot.com/2008/10/entity-name-in-action-strongly-typed.html
http://fabiomaulo.blogspot.com/2008/10/power-of-orm.html
now we are supporting generics.
The today-news is that we are supporting the save without specify the
entity-name that mean we are passing
using (ISession s = sessions.OpenSession())
using (ITransaction tx = s.BeginTransaction())
{
var hf = new Human {Description = "Flinstone", Name = "Fred"};
var hm = new Human {Description = "Flinstone", Name = "Wilma"};
var hc1 = new Human {Description = "Flinstone", Name = "Pebbles"};
var hfamily = new Family<Human>
{
Father = hf,
Mother = hm,
Childs = new HashedSet<Human> {hc1}
};
s.Save(hfamily);
tx.Commit();
}
And something more... but will be the matter of the next post.
--
Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---