I'm fairly new to NHibernate, and so far everything went pretty well, but I ran into a problem, I'm not quite sure how to solve the problem. Basically, I need to filter out the output of the User Defined function. If I wrote in SQL, this is what I would write:
declare @Latitude decimal declare @Longitude decimal declare @radius int set @Latitude = -118.4104684 set @Longitude = 34.1030032 select * from store where dbo.CalculateDistance([Latitude], [Longitude], @Latitude, @Longitude) < @radius
I saw a formula attribute, which, it seems to me, does not fit, called requests and examples of creating my own dialect (which seemed a little more killed). I would have thought that there is a more direct way to do this, but I cannot find an example.
source share