static NameMapper() { if(CoreSettings.NameMapper.StartsWith("@")) { Instance = SimpleContainer.Get<NameMapper>(CoreSettings.NameMapper.Substring(1)); } else { Instance = (NameMapper)ClassHelper.CreateInstance(CoreSettings.NameMapper); } }
static NameMapper() { if (CoreSettings.NameMapper.StartsWith("@")) { Instance = SimpleContainer.Get <NameMapper>(CoreSettings.NameMapper.Substring(1)); } else { Instance = (NameMapper)ClassHelper.CreateInstance(CoreSettings.NameMapper); } }
static NameMapper() { var nameMapper = ConfigReader.Config.Database.NameMapper; if (nameMapper.StartsWith("@")) { Instance = SimpleContainer.Get <NameMapper>(nameMapper.Substring(1)); } else { Instance = (NameMapper)ClassHelper.CreateInstance(nameMapper); } }