The exception usually means that you have not added the mapping assembly to the sessionfactory configuration.
In ChinookMediaManager, the Data.Tests project was* out of the solution*(becouse it was out-of-date) I have added the project again to the solution and fixed all tests, and added new ones, so others can learn how i write persistence tests... :) Do an update and read the readme inside the folder.. Don't hesitate to ask me more questions about my sample application, and please do it in the unhaddins lists. Thanks 2010/9/15 Kris-I <[email protected]> > Hi, > > Starting a new project, I use as "model" (good, best practices) the > application "Chinook" located here > > http://code.google.com/p/unhaddins/source/browse/#svn/trunk/Examples/uNHAddIns.Examples.WPF > > When I execute the test method : > > [Test] > public void TryingToGet() > { > using (var session = sessions.OpenSession()) > { > CurrentSessionContext.Bind(session); > > var albumRepository = new > CustomerRepository(sessions); > var customer = session.Get<Customer>(1); > } > } > > I get this error : "failed: NHibernate.MappingException : No persister > for" on the session.Get line > > Any idea ? > > Thanks, > > -- > 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]<nhusers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhusers?hl=en. > > -- 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.
