Ejemplo n.º 1
0
        public IHaveModelConventions GetConventions(ModelInfo info)
        {
            if (_ignored.Any(d => d(info)))
            {
                return(ModelConventions.Ignored);
            }
            var conventions = new ModelConventions(this);

            conventions.Builder   = _builders.Find(d => d.AppliesTo(info));
            conventions.Modifiers = _modifiers.FindAll(d => d.AppliesTo(info));
            return(conventions);
        }
Ejemplo n.º 2
0
 public IHaveModelConventions GetConventions(ModelInfo info)
 {
     if (_ignored.Any(d => d(info)))
     {
         return ModelConventions.Ignored;
     }
     var conventions = new ModelConventions(this);
     conventions.Builder = _builders.Find(d => d.AppliesTo(info));
     conventions.Modifiers = _modifiers.FindAll(d => d.AppliesTo(info));
     return conventions;
 }