What I meant in the issue was that the current lack of support wasn't a
bug, but adding support for it would be regarded as a new feature. Seems
doable to me.

You need to decide on a set of names for the HQL functions that will
underpin the linq support. These functions must have the same semantics
regardless of SQL dialect. The dialect classes will need to translate them
into appropriate SQL constructs depending on SQL variety. Usually it's not
very difficult. Implementations should be provided for at least 4-5 of the
most common dialects, the more the better, before inclusion.

The linq layer then needs a few fairly simple additions to teach it about
the HQL methods. Doesn't need to know about different dialects.

You can perhaps review how Substring() is handled in linq and the dialects
for inspiration.

/Oskar
Den 8 apr 2015 22:59 skrev "Andreas Ravnestad" <andreas.ravnes...@gmail.com
>:

> Hi Ricardo,
>
> It is only mentioned briefly in the subject of my post, but I was planning
> to scope the implementation to the Microsoft SQL Server dialect since
> that's the database engine we are using. Perhaps this is undesirable?
>
> -Andreas
>
>
> On Wednesday, April 8, 2015 at 9:44:40 PM UTC+2, Ricardo Peres wrote:
>>
>> The problem is what Oskar said in the issue: Since LINQ is translated to
>> HQL and HQL has no support for date operations like, for example, SQL
>> Server's DATEADD, this might be tricky, because possibly - and I'm not 100%
>> sure on this - Dialects need to be involved.
>>
>> RP
>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nhibernate-development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nhibernate-development+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhibernate-development+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to