Пример #1
0
 static NameMapper()
 {
     if(CoreSettings.NameMapper.StartsWith("@"))
     {
         Instance = SimpleContainer.Get<NameMapper>(CoreSettings.NameMapper.Substring(1));
     }
     else
     {
         Instance = (NameMapper)ClassHelper.CreateInstance(CoreSettings.NameMapper);
     }
 }
Пример #2
0
 static NameMapper()
 {
     if (CoreSettings.NameMapper.StartsWith("@"))
     {
         Instance = SimpleContainer.Get <NameMapper>(CoreSettings.NameMapper.Substring(1));
     }
     else
     {
         Instance = (NameMapper)ClassHelper.CreateInstance(CoreSettings.NameMapper);
     }
 }
Пример #3
0
        static NameMapper()
        {
            var nameMapper = ConfigReader.Config.Database.NameMapper;

            if (nameMapper.StartsWith("@"))
            {
                Instance = SimpleContainer.Get <NameMapper>(nameMapper.Substring(1));
            }
            else
            {
                Instance = (NameMapper)ClassHelper.CreateInstance(nameMapper);
            }
        }