Ejemplo n.º 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());
 }
Ejemplo n.º 2
0
 public IsLikeGenerator()
 {
     SupportedMethods = new[] { ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)) };
 }
 public MyLinqToHqlGeneratorsRegistry() : base()
 {
     RegisterGenerator(ReflectionHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)),
                       new IsLikeGenerator());
 }
Ejemplo n.º 4
0
 public GetTimeGenerator()
 {
     SupportedMethods = new[] { ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.GetTime(default(DateTime))) };
 }