コード例 #1
0
 public virtual int Update(NorthwindDataSet.ProductsDataTable dataTable) {
     return this.Adapter.Update(dataTable);
 }
コード例 #2
0
 public virtual int Fill(NorthwindDataSet.ProductsDataTable dataTable) {
     this.Adapter.SelectCommand = ((System.Data.OleDb.OleDbCommand)(this.CommandCollection[0]));
     if ((this.m_clearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
コード例 #3
0
 public virtual int Update(NorthwindDataSet dataSet) {
     return this.Adapter.Update(dataSet, "Products");
 }
コード例 #4
0
 public static System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(System.Xml.Schema.XmlSchemaSet xs) {
     NorthwindDataSet ds = new NorthwindDataSet();
     System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
     System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
     xs.Add(ds.GetSchemaSerializable());
     if (PublishLegacyWSDL()) {
         System.Xml.Schema.XmlSchemaAny any = new System.Xml.Schema.XmlSchemaAny();
         any.Namespace = ds.Namespace;
         sequence.Items.Add(any);
     }
     else {
         System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
         any1.Namespace = "http://www.w3.org/2001/XMLSchema";
         any1.MinOccurs = new decimal(0);
         any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
         sequence.Items.Add(any1);
         System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
         any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
         any2.MinOccurs = new decimal(0);
         any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
         sequence.Items.Add(any2);
         sequence.MaxOccurs = decimal.MaxValue;
         System.Xml.Schema.XmlSchemaAttribute attribute = new System.Xml.Schema.XmlSchemaAttribute();
         attribute.Name = "namespace";
         attribute.FixedValue = ds.Namespace;
         type.Attributes.Add(attribute);
     }
     type.Particle = sequence;
     return type;
 }
コード例 #5
0
 public static System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(System.Xml.Schema.XmlSchemaSet xs) {
     System.Xml.Schema.XmlSchemaComplexType type = new System.Xml.Schema.XmlSchemaComplexType();
     System.Xml.Schema.XmlSchemaSequence sequence = new System.Xml.Schema.XmlSchemaSequence();
     NorthwindDataSet ds = new NorthwindDataSet();
     xs.Add(ds.GetSchemaSerializable());
     System.Xml.Schema.XmlSchemaAny any1 = new System.Xml.Schema.XmlSchemaAny();
     any1.Namespace = "http://www.w3.org/2001/XMLSchema";
     any1.MinOccurs = new decimal(0);
     any1.MaxOccurs = decimal.MaxValue;
     any1.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
     sequence.Items.Add(any1);
     System.Xml.Schema.XmlSchemaAny any2 = new System.Xml.Schema.XmlSchemaAny();
     any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
     any2.MinOccurs = new decimal(1);
     any2.ProcessContents = System.Xml.Schema.XmlSchemaContentProcessing.Lax;
     sequence.Items.Add(any2);
     System.Xml.Schema.XmlSchemaAttribute attribute1 = new System.Xml.Schema.XmlSchemaAttribute();
     attribute1.Name = "namespace";
     attribute1.FixedValue = ds.Namespace;
     type.Attributes.Add(attribute1);
     System.Xml.Schema.XmlSchemaAttribute attribute2 = new System.Xml.Schema.XmlSchemaAttribute();
     attribute2.Name = "tableTypeName";
     attribute2.FixedValue = "EmployeesDataTable";
     type.Attributes.Add(attribute2);
     type.Particle = sequence;
     return type;
 }
コード例 #6
0
 public virtual int Update(NorthwindDataSet dataSet) {
     return this.Adapter.Update(dataSet, "Employees");
 }
コード例 #7
0
 public virtual int Update(NorthwindDataSet.EmployeesDataTable dataTable) {
     return this.Adapter.Update(dataTable);
 }
コード例 #8
0
 public virtual int Update(NorthwindDataSet.Order_DetailsDataTable dataTable) {
     return this.Adapter.Update(dataTable);
 }
コード例 #9
0
 public virtual int Update(NorthwindDataSet dataSet) {
     return this.Adapter.Update(dataSet, "Order Details");
 }
コード例 #10
0
 public virtual int Update(NorthwindDataSet dataSet) {
     return this.Adapter.Update(dataSet, "Categories");
 }
コード例 #11
0
 public virtual int Update(NorthwindDataSet.CustomersDataTable dataTable) {
     return this.Adapter.Update(dataTable);
 }
コード例 #12
0
 public virtual int Update(NorthwindDataSet dataSet) {
     return this.Adapter.Update(dataSet, "Customers");
 }