Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在codesmith中获取完整的.NET类型名称_C#_Codesmith - Fatal编程技术网

C# 在codesmith中获取完整的.NET类型名称

C# 在codesmith中获取完整的.NET类型名称,c#,codesmith,C#,Codesmith,在编写codesmith模板时,有没有办法获得完整的.NET类型名称?GetCSharpVariableType似乎只返回别名。因为我使用的是反射,所以我需要能够生成具有类型名称的属性,而仅仅“int”或“string”将不起作用。在后台,该方法使用的是DbType CSharp映射。您需要在模板中创建一个使用Sql系统映射或仅使用column.SystemType.Name的方法 谢谢 -布莱克·尼米斯基

在编写codesmith模板时,有没有办法获得完整的.NET类型名称?GetCSharpVariableType似乎只返回别名。因为我使用的是反射,所以我需要能够生成具有类型名称的属性,而仅仅“int”或“string”将不起作用。

在后台,该方法使用的是DbType CSharp映射。您需要在模板中创建一个使用Sql系统映射或仅使用column.SystemType.Name的方法

谢谢 -布莱克·尼米斯基