Did you read the entire page? The tutorial provides an implementation for the CreateSessionFactory method.
On Fri, Dec 25, 2009 at 7:35 AM, whit537 <[email protected]> wrote: > Greetings, > > I'm working through the tutorial ... > > http://wiki.fluentnhibernate.org/Getting_started > > ... in the context of an ASP.NET MVC demo project. I wrote the > entities in Models/Employee.cs and the mappings in Mappings/ > EmployeeMap.cs, and can successfully build the project. Now I am > trying to wire up the code under "Application" in the tutorial in > HomeController.cs. I'm stuck on this error: > > The name 'CreateSessionFactory' does not exist in the current > context > > From what I can tell this is an NHibernate function. I'm "using" the > same libraries as in the demo code: > > > http://github.com/jagregory/fluent-nhibernate/blob/master/src/Examples.FirstProject/Program.cs > > Namely: > > using FluentNHibernate.Cfg; > using FluentNHibernate.Cfg.Db; > using NHibernate; > using NHibernate.Cfg; > using NHibernate.Tool.hbm2ddl; > > Where does CreateSessionFactory come from? What am I missing? > > Thanks. > > > > chad > > -- > > You received this message because you are subscribed to the Google Groups > "Fluent NHibernate" 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/fluent-nhibernate?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" 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/fluent-nhibernate?hl=en.
