-
Notifications
You must be signed in to change notification settings - Fork 936
NH-2611 - Allow injectable/inheritance of Linq query provider #313
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@rjperes it seems that you've forgot to set default linq provider. |
Hmm, no, that's what this does: string className = PropertiesHelper.GetString( Will have a look. |
The problem does not happen in my machine, all tests are green. Any thoughts? |
@rjperes I saw your original message ;) |
@hazzik :-) |
The error message on the build server is Might have been temporary. I've started the same build again. |
Can you update the fix version in Jira? |
public void NH2890Standard() | ||
{ | ||
var cfg = new Configuration(); | ||
cfg.Configure("TestEnbeddedConfig.cfg.xml") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in the file name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but not mine! :-) I used a file that was already there
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
OK, added a factory method |
@rjperes, can you please do following
|
|
||
namespace NHibernate.Linq | ||
{ | ||
public static class QueryProviderFactory |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Internal, please
Well, if we are to have a plugable mechanism, why not allow developers from inheriting from existing classes and change its behavior? For that, we need virtual methods, right? I mean, most people won't create a brand new query provider, but instead inherit from the existing one. |
Ok, right.. |
@rjperes can you please do following? git fetch --all --prune |
Just did |
@rjperes could you please document this new configuration setting? |
Ok. |
https://nhibernate.jira.com/browse/NH-2611