Example #1
0
        private TransientCreationLevel _convertToTransientLevel(MappingLevel mapping_level)
        {
            TransientCreationLevel _transient_level = TransientCreationLevel.None;

            switch (mapping_level)
            {
            case MappingLevel.Current:
                _transient_level = TransientCreationLevel.Current;
                break;

            case MappingLevel.CurrentWithDependencies:
                _transient_level = TransientCreationLevel.CurrentWithDependencies;
                break;

            case MappingLevel.CascadeAll:
                _transient_level = TransientCreationLevel.CascadeAll;
                break;
            }
            return(_transient_level);
        }
Example #2
0
 public MappingLoad(IMappingProvider _provider, MappingLevel _mapping_level = MappingLevel.None, InjectionTarget _injection = InjectionTarget.All)
 {
     provider  = _provider;
     level     = _mapping_level;
     injection = _injection;
 }