You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: XmlSchemaClassGenerator/CodeUtilities.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ public static Type GetEffectiveType(this XmlSchemaDatatype type, GeneratorConfig
177
177
varresultType=type.TypeCodeswitch
178
178
{
179
179
XmlTypeCode.AnyAtomicType=>typeof(string),// union
180
-
XmlTypeCode.AnyUri or XmlTypeCode.Duration or XmlTypeCode.GDay or XmlTypeCode.GMonth or XmlTypeCode.GMonthDay or XmlTypeCode.GYear or XmlTypeCode.GYearMonth=>typeof(string),
180
+
XmlTypeCode.AnyUri or XmlTypeCode.GDay or XmlTypeCode.GMonth or XmlTypeCode.GMonthDay or XmlTypeCode.GYear or XmlTypeCode.GYearMonth=>typeof(string),
181
181
XmlTypeCode.Time=>typeof(DateTime),
182
182
XmlTypeCode.Idref=>typeof(string),
183
183
XmlTypeCode.Integer or XmlTypeCode.NegativeInteger or XmlTypeCode.NonNegativeInteger or XmlTypeCode.NonPositiveInteger or XmlTypeCode.PositiveInteger=>GetIntegerDerivedType(type,configuration,restrictions),
@@ -373,6 +373,7 @@ public static KeyValuePair<NamespaceKey, string> ParseNamespace(string nsArg, st
373
373
("System.ComponentModel.DataAnnotations", c =>c.CompactTypeNames&&(c.DataAnnotationMode!=DataAnnotationMode.None||c.EntityFramework)),
374
374
("System.Diagnostics", c =>c.CompactTypeNames&&c.GenerateDebuggerStepThroughAttribute),
375
375
("System.Linq", c =>c.EnableDataBinding),
376
+
("System.Xml", c =>c.CompactTypeNames),
376
377
("System.Xml.Schema", c =>c.CompactTypeNames),
377
378
("System.Xml.Serialization", c =>c.CompactTypeNames)
0 commit comments