From: <fab...@us...> - 2010-07-28 21:35:17
|
Revision: 5076 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5076&view=rev Author: fabiomaulo Date: 2010-07-28 21:35:11 +0000 (Wed, 28 Jul 2010) Log Message: ----------- Relax of DefaultLinqToHqlGeneratorsRegistry Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Linq/Functions/DefaultLinqToHqlGeneratorsRegistry.cs Modified: trunk/nhibernate/src/NHibernate/Linq/Functions/DefaultLinqToHqlGeneratorsRegistry.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Linq/Functions/DefaultLinqToHqlGeneratorsRegistry.cs 2010-07-28 21:19:47 UTC (rev 5075) +++ trunk/nhibernate/src/NHibernate/Linq/Functions/DefaultLinqToHqlGeneratorsRegistry.cs 2010-07-28 21:35:11 UTC (rev 5076) @@ -23,7 +23,7 @@ Register(new ICollectionGenerator()); } - private bool GetMethodGeneratorForType(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) + protected bool GetMethodGeneratorForType(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) { methodGenerator = null; @@ -35,7 +35,7 @@ return false; } - private bool GetStandardLinqExtensionMethodGenerator(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) + protected bool GetStandardLinqExtensionMethodGenerator(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) { methodGenerator = null; @@ -50,7 +50,7 @@ return false; } - private bool GetRegisteredMethodGenerator(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) + protected bool GetRegisteredMethodGenerator(MethodInfo method, out IHqlGeneratorForMethod methodGenerator) { if (registeredMethods.TryGetValue(method, out methodGenerator)) { @@ -59,7 +59,7 @@ return false; } - public bool TryGetGenerator(MethodInfo method, out IHqlGeneratorForMethod generator) + public virtual bool TryGetGenerator(MethodInfo method, out IHqlGeneratorForMethod generator) { if (method.IsGenericMethod) { @@ -77,22 +77,22 @@ return false; } - public bool TryGetGenerator(MemberInfo property, out IHqlGeneratorForProperty generator) + public virtual bool TryGetGenerator(MemberInfo property, out IHqlGeneratorForProperty generator) { return registeredProperties.TryGetValue(property, out generator); } - public void RegisterGenerator(MethodInfo method, IHqlGeneratorForMethod generator) + public virtual void RegisterGenerator(MethodInfo method, IHqlGeneratorForMethod generator) { registeredMethods.Add(method, generator); } - public void RegisterGenerator(MemberInfo property, IHqlGeneratorForProperty generator) + public virtual void RegisterGenerator(MemberInfo property, IHqlGeneratorForProperty generator) { registeredProperties.Add(property, generator); } - private void Register(IHqlGeneratorForType typeMethodGenerator) + protected void Register(IHqlGeneratorForType typeMethodGenerator) { typeGenerators.Add(typeMethodGenerator); typeMethodGenerator.Register(this); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |