protected GetGeneratorType ( string col, ClassMapping mapping ) : GeneratorType | ||
col | string | Column to look up. |
mapping | ClassMapping | Mapping for the class we're creating a table for. |
return | GeneratorType |
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;
}