Я пишу простое приложение для генерации кода для создания POCO из схемы базы данных DB2. Я знаю, это не имеет значения, но я предпочитаю использовать псевдонимы типов, а не фактическое имя типа системы, если они доступны, то есть "int", а не "Int32". Есть ли способ использовать отражение, что я могу получить псевдоним типа, а не фактический тип?
//Get the type name
var typeName = column.DataType.Name;
//If column.DataType is, say, Int64, I would like the resulting property generated
//in the POCO to be...
public long LongColumn { get; set; }
//rather than what I get now using the System.Reflection.MemberInfo.Name property:
public Int64 LongColumn { get; set; }
Спасибо заранее.