문제

Is there any way of getting the full .NET type name when writing a codesmith template? GetCSharpVariableType seems to return aliases only. Since I'm using reflection, I need to be able to generate attributes with the type name and just "int" or "string" will not work.

도움이 되었습니까?

해결책

Under the hood, that method is using the DbType-CSharp map. You would need to create a method in your template that uses the Sql-System map or just use column.SystemType.Name

Thanks -Blake Niemyjski

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top