Groups
Sign in
Groups
nhusers
Conversations
About
Send feedback
Help
Configuration with db and creating sessions.
24 views
Skip to first unread message
Princess Moana
unread,
Apr 5, 2021, 1:01:12 PM
4/5/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nhusers
Hello everyone! I am new i n this group and also new at NHibernate. I am using .net core and MSSql cannot find a proper NHibernate tutorial for my project. I tried
https://gunnarpeipman.com/aspnet-core-nhibernate/
tutorial but it gives me <<An unhandled exception of type 'NHibernate.SchemaValidationException' occurred in NHibernate.dll>> error that I cannot handle with it. Then I try to follow
https://medium.com/software-development-turkey/net-core-nhibernate-tabanl%C4%B1-rest-api-53e91eee9825
tutorial but it gives errors in configureServices method (it cannot run BuilSessionFactory() line and also cannot compile <<
services.AddSingleton<ISession>(factory => factory.GetServices<ISessionFactory>().First().OpenSession()); >> line ). Also tried to follow
http://www.semakudu.com/2019/04/net-core-fluent-nhibernate-orm-ile.html
and
https://www.codeproject.com/Tips/1243873/Work-with-Fluent-NHibernate-in-Core
tutorials but they do not work too. Do you know any suggestions about how should I integrate NHibernate in my project?
Reply all
Reply to author
Forward
0 new messages