Beispiel #1
0
 public MyLinqToHqlGeneratorsRegistry() : base()
 {
     RegisterGenerator(ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)),
                       new IsLikeGenerator());
     RegisterGenerator(ReflectHelper.GetMethodDefinition(() => new object().Equals(null)), new ObjectEqualsGenerator());
     RegisterGenerator(ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.GetTime(default(DateTime))), new GetTimeGenerator());
 }
Beispiel #2
0
 public IsLikeGenerator()
 {
     SupportedMethods = new[] { ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)) };
 }
 public MyLinqToHqlGeneratorsRegistry() : base()
 {
     RegisterGenerator(ReflectionHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)),
                       new IsLikeGenerator());
 }
Beispiel #4
0
 public GetTimeGenerator()
 {
     SupportedMethods = new[] { ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.GetTime(default(DateTime))) };
 }