protected override void BuildIdGenerator()
 {
     if (_configOptions.IdGenerator == null)
     {
         return;
     }
     SmartSqlConfig.IdGenerator = IdGeneratorBuilder.Build(_configOptions.IdGenerator.Type, _configOptions.IdGenerator.Properties);
 }
Beispiel #2
0
 protected override void BuildIdGenerators()
 {
     if (_configOptions.IdGenerators == null)
     {
         return;
     }
     SmartSqlConfig.IdGenerators.Clear();
     foreach (var idGenConfig in _configOptions.IdGenerators)
     {
         var idGen = IdGeneratorBuilder.Build(idGenConfig.Type, idGenConfig.Properties);
         SmartSqlConfig.IdGenerators.Add(idGenConfig.Name, idGen);
     }
 }