0

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.

Timwi
  • 65,159
  • 33
  • 165
  • 230
James
  • 6,471
  • 11
  • 59
  • 86

1 Answers1

1

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

Blake Niemyjski
  • 3,432
  • 3
  • 25
  • 41