protected GeneratorType GetGeneratorType(string col, ClassMapping mapping) { bool isId = mapping.IdGeneratorsByDataCol.ContainsKey(col); GeneratorType gen = GeneratorType.NONE; if (isId) { gen = mapping.IdGeneratorsByDataCol[col]; } return gen; }