コード例 #1
0
ファイル: DsSendList.cs プロジェクト: TGHGH/MES-CAR
 public static XmlSchemaComplexType GetTypedTableSchema(XmlSchemaSet xs)
 {
     XmlSchemaComplexType type = new XmlSchemaComplexType();
     XmlSchemaSequence sequence = new XmlSchemaSequence();
     DsSendList list = new DsSendList();
     xs.Add(list.GetSchemaSerializable());
     XmlSchemaAny item = new XmlSchemaAny {
         Namespace = "http://www.w3.org/2001/XMLSchema",
         MinOccurs = 0M,
         MaxOccurs = 79228162514264337593543950335M,
         ProcessContents = XmlSchemaContentProcessing.Lax
     };
     sequence.Items.Add(item);
     XmlSchemaAny any2 = new XmlSchemaAny {
         Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1",
         MinOccurs = 1M,
         ProcessContents = XmlSchemaContentProcessing.Lax
     };
     sequence.Items.Add(any2);
     XmlSchemaAttribute attribute = new XmlSchemaAttribute {
         Name = "namespace",
         FixedValue = list.Namespace
     };
     type.Attributes.Add(attribute);
     XmlSchemaAttribute attribute2 = new XmlSchemaAttribute {
         Name = "tableTypeName",
         FixedValue = "V_NPDataTable"
     };
     type.Attributes.Add(attribute2);
     type.Particle = sequence;
     return type;
 }
コード例 #2
0
ファイル: DsSendList.cs プロジェクト: TGHGH/MES-CAR
 public static XmlSchemaComplexType GetTypedDataSetSchema(XmlSchemaSet xs)
 {
     DsSendList list = new DsSendList();
     XmlSchemaComplexType type = new XmlSchemaComplexType();
     XmlSchemaSequence sequence = new XmlSchemaSequence();
     xs.Add(list.GetSchemaSerializable());
     XmlSchemaAny item = new XmlSchemaAny {
         Namespace = list.Namespace
     };
     sequence.Items.Add(item);
     type.Particle = sequence;
     return type;
 }