Example #1
0
        public virtual T Fragment <T>() where T : IFragmentBuilder
        {
            var fragment = this.Fragments.OfType <T>().FirstOrDefault();

            if (fragment == null)
            {
                return(this.Fragment(FragmentBuilder.GetProxy(this).Fragment <T>()));
            }
            return(fragment);
        }
Example #2
0
 private IndexConfig(IConfig config)
 {
     this.Config     = config;
     this.Builder    = FragmentBuilder.GetProxy(null);
     this.Expression = this.CreateConstraint();
 }