tag:blogger.com,1999:blog-8980734269859237005.post4159281544642226871..comments2024-01-30T01:03:21.768-08:00Comments on DevCurry: Using NHibernate in an ASP.NET MVC 4 ApplicationSuprotim Agarwalhttp://www.blogger.com/profile/08349831623922214390noreply@blogger.comBlogger10125tag:blogger.com,1999:blog-8980734269859237005.post-86569938042205338852015-07-03T04:44:29.953-07:002015-07-03T04:44:29.953-07:00I am new for MVC so please help me for View code f...I am new for MVC so please help me for View code fot this demo..Anonymoushttps://www.blogger.com/profile/14072533581622295834noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-3033982217161923792014-12-14T10:53:14.642-08:002014-12-14T10:53:14.642-08:00Important thing!!! If you will user many-to-one or...Important thing!!! If you will user many-to-one or one-to-many relations mapping use fully qualified names for your entities. I've spend hours for not doing so :). Ex: instead of just class="EmployeeInfo" use class="yourProjectName.Models.EmployeeInfo".<br />Hope this helps!Anonymoushttps://www.blogger.com/profile/10060732332049090942noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-17129134808644842722014-12-13T05:50:04.902-08:002014-12-13T05:50:04.902-08:00I've fix it. The problem was in my cfg file. I...I've fix it. The problem was in my cfg file. In the connection.string I've copied the connection string provided by VS in server explorer database properties connection. Hope this helps.Anonymoushttps://www.blogger.com/profile/10060732332049090942noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-59518926964979325992014-12-13T05:02:31.369-08:002014-12-13T05:02:31.369-08:00Hi. I've created a MVC Internet Project from o...Hi. I've created a MVC Internet Project from one of VS 2012 templates. I've added NHibernate as you explained and also I've changed this HttpContext.Current.Server.MapPath( @"Models\NHibernate\Configuration\hibernate.cfg.xml"));<br />for this <br /><br />HttpContext.Current.Server.MapPath( @"~\Models\NHibernate\Configuration\hibernate.cfg.xml"));<br /><br />as one Anonymoushttps://www.blogger.com/profile/10060732332049090942noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-36479381792267076422014-05-08T08:41:08.235-07:002014-05-08T08:41:08.235-07:00how to create view pls, send instruction to my mai...how to create view pls, send instruction to my mail yantarb@rambler.ru<br /><br />ty!Anonymoushttps://www.blogger.com/profile/00900582299706731187noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-66367409287543647522013-07-09T05:10:14.967-07:002013-07-09T05:10:14.967-07:00The web.config in your solution is still using the...The web.config in your solution is still using the Entity Framework. You never covered removing that reference. How do you know that you're actually using NHibernate to get the data?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-72370814435985851672013-05-04T22:24:10.440-07:002013-05-04T22:24:10.440-07:00@Rohit
I had the same problem but substuting this:...@Rohit<br />I had the same problem but substuting this:<br />System.Web.Hosting.HostingEnvironment.MapPath("~/Models/NHibernate/Configuration/hibernate.cfg.xml")<br /><br />for this:<br />HttpContext.Current.Server.MapPath( @"Models\NHibernate\Configuration\hibernate.cfg.xml"));<br /><br />Seemed to helpAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-76514798136864314092013-04-02T21:53:27.580-07:002013-04-02T21:53:27.580-07:00Nice article!. One Important typo is that you have...Nice article!. One Important typo is that you have mentioned "Lesi.Collections" instead of Iesi.Collections i.e. you have used "L" instead of "I" since it contains some special implementations of ISet.Anonymoushttps://www.blogger.com/profile/08269960592264166589noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-19064231047170549352013-03-29T07:47:07.170-07:002013-03-29T07:47:07.170-07:00Nice blog for freshers.
Please help me. I am getti...Nice blog for freshers.<br />Please help me. I am getting this error while performing DML operation:<br /><br />An exception occurred during configuration of persistence layer.<br /><br />Thanks in advance.Rohit Kesharwanihttp://rohit-developer.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-8980734269859237005.post-40772096872820508912013-02-11T07:59:54.345-08:002013-02-11T07:59:54.345-08:00Thanks for taking the time to write this up. Thanks for taking the time to write this up. Anonymousnoreply@blogger.com