示例#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());
 }
示例#2
0
 public IsLikeGenerator()
 {
     SupportedMethods = new[] { ReflectHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)) };
 }
 public MyLinqToHqlGeneratorsRegistry() : base()
 {
     RegisterGenerator(ReflectionHelper.GetMethodDefinition(() => MyLinqExtensions.IsLike(null, null)),
                       new IsLikeGenerator());
 }