Beispiel #1
0
        public MappingFactory(MappingCollection mappings, string assembliesField, Type attributeSearch)
        {
            if (!attributeSearch.IsSubclassOf(typeof(Attribute)) || !attributeSearch.GetInterfaces().Any(a => a == typeof(ISetFacadeAttribute)))
            {
                throw new NotImplementedException($"Not implemented [{typeof(ISetFacadeAttribute).Name}]");
            }

            Mapper          = new MappingStore(mappings);
            AssembliesField = assembliesField;
            AttributeSearch = attributeSearch ?? throw new ArgumentNullException(nameof(attributeSearch));
        }
Beispiel #2
0
 internal MappingStore(MappingCollection mappings)
 {
     Mappings = mappings ?? throw new ArgumentNullException(nameof(mappings));
 }