Merge pull request #2990 from jimschubert/cs/number_to_decimal

[csharp] map number/no format to Decimal
This commit is contained in:
wing328 2016-05-29 20:58:31 +08:00
commit a1e9b8f81e

View File

@ -77,6 +77,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
"string", "string",
"bool?", "bool?",
"double?", "double?",
"decimal?",
"int?", "int?",
"long?", "long?",
"float?", "float?",
@ -112,7 +113,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
typeMapping.put("float", "float?"); typeMapping.put("float", "float?");
typeMapping.put("long", "long?"); typeMapping.put("long", "long?");
typeMapping.put("double", "double?"); typeMapping.put("double", "double?");
typeMapping.put("number", "double?"); typeMapping.put("number", "decimal?");
typeMapping.put("datetime", "DateTime?"); typeMapping.put("datetime", "DateTime?");
typeMapping.put("date", "DateTime?"); typeMapping.put("date", "DateTime?");
typeMapping.put("file", "System.IO.Stream"); typeMapping.put("file", "System.IO.Stream");