tag:blogger.com,1999:blog-6029629494508626591.post7667117982558202660..comments2024-03-27T07:26:29.743+00:00Comments on Pedro's Tech Mumblings: NHibernate Spatial (Part 5 - NHibernate 3.3.1+)Pedro Sousahttp://www.blogger.com/profile/17058685497255714267noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-6029629494508626591.post-19374508326084708602013-05-29T14:26:59.034+01:002013-05-29T14:26:59.034+01:00Hello Pedro...
Is it working with the NHibernate ...Hello Pedro...<br /><br />Is it working with the NHibernate 3.3.3?<br /><br />ThanksPaulhttps://www.blogger.com/profile/03282060397500813343noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-72746110112003497152013-01-04T17:03:30.726+00:002013-01-04T17:03:30.726+00:00Pedro,
you are GREAT!
Thank you very much for your...Pedro,<br />you are GREAT!<br />Thank you very much for your good job.<br /><br />tonioTonio Guzzihttps://www.blogger.com/profile/01020295130939348822noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-7203369338977411902012-10-25T12:33:26.599+01:002012-10-25T12:33:26.599+01:00Worked great Pedro!
Thank you!Worked great Pedro! <br />Thank you!Paulhttps://www.blogger.com/profile/03282060397500813343noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-81927393656459605402012-10-25T12:29:27.628+01:002012-10-25T12:29:27.628+01:00Pedro,
It works fine now.
Thank you very much for ...Pedro,<br />It works fine now.<br />Thank you very much for your good job and your quick response.<br />Before I found your blog, I was in this other http://www.spatially-oriented.com. I have tested his code too and throws the same errors.<br />De nuevo obrigado.<br />Pedro.<br />Anonymoushttps://www.blogger.com/profile/17461860304325191726noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-9542641565559117572012-10-25T00:34:08.353+01:002012-10-25T00:34:08.353+01:00Guys,
Both problems have been fixed and I've ...Guys,<br /><br />Both problems have been fixed and I've committed the changes to Github. <br /><br />Also, I've added new unit-tests for "within" and "contains" in class<br />"Tests.NHibernate.Spatial.CriteriaFixture"<br />Pedro Sousahttps://www.blogger.com/profile/17058685497255714267noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-30410536090539659122012-10-24T20:11:53.561+01:002012-10-24T20:11:53.561+01:00Thanks Pedro. Will also take a look at that. The p...Thanks Pedro. Will also take a look at that. The problem is that I thought the unit tests covered the NHibernate features pretty well. Doesn't seem to be the case though...Pedro Sousahttps://www.blogger.com/profile/17058685497255714267noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-47061625309504982292012-10-24T18:40:08.087+01:002012-10-24T18:40:08.087+01:00Hi,
I have the same error when trying with this sa...Hi,<br />I have the same error when trying with this sample code,<br /><br />Country country = session.CreateCriteria(typeof(Country))<br /> .Add(SpatialExpression.Contains("Boundaries", new Point(-70.40, -33.24)))<br /> .UniqueResult() as Country;<br /><br />InnerException: Must declare the scalar variable "@p0".<br />Thanks<br />PedroAnonymoushttps://www.blogger.com/profile/17461860304325191726noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-75296075225744477082012-10-24T16:20:43.382+01:002012-10-24T16:20:43.382+01:00Thanks for the feedback Paul. I'll try to fix ...Thanks for the feedback Paul. I'll try to fix it tonight ;)Pedro Sousahttps://www.blogger.com/profile/17058685497255714267noreply@blogger.comtag:blogger.com,1999:blog-6029629494508626591.post-83076818513827220652012-10-24T16:17:34.293+01:002012-10-24T16:17:34.293+01:00Great work Pedro!
But I got an error using QueryO...Great work Pedro!<br /><br />But I got an error using QueryOver: <br /><br />queryOver.WhereSpatialRestrictionOn(x => x.Geo).Within(extent);<br /><br />The error I got is the same you described : "Must declare the scalar variable \"@p1\"."<br /><br />It works great with older version (NH 3.1)<br /><br />Any idea?<br /><br />ThanksPaulhttps://www.blogger.com/profile/03282060397500813343noreply@blogger.com