当前位置: 首页>>代码示例>>C#>>正文


C# MDataSet.Clear方法代码示例

本文整理汇总了C#中MDataSet.Clear方法的典型用法代码示例。如果您正苦于以下问题:C# MDataSet.Clear方法的具体用法?C# MDataSet.Clear怎么用?C# MDataSet.Clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MDataSet的用法示例。


在下文中一共展示了MDataSet.Clear方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Fill

 public virtual int Fill(MDataSet.inventoryDetailsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:MDataSet.Designer.cs

示例2: FillNew

 public virtual int FillNew(MDataSet.RemainsDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[3];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:MDataSet.Designer.cs

示例3: FillByStartPeriod

 public virtual int FillByStartPeriod(MDataSet.OrdersDataTable dataTable, System.Nullable<System.DateTime> begin) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((begin.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(begin.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例4: FillOrders

 public virtual int FillOrders(MDataSet.ProductDataTable dataTable) {
     this.Adapter.SelectCommand = this.CommandCollection[4];
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:8,代码来源:MDataSet.Designer.cs

示例5: FillByReceiptDetailRef

 public virtual int FillByReceiptDetailRef(MDataSet.RemainsDataTable dataTable, System.Nullable<int> id) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((id.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(id.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例6: FillByPeriodNum

 public virtual int FillByPeriodNum(MDataSet.ReceiptMasterDataTable dataTable, System.Nullable<int> num) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((num.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(num.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例7: FillById

 public virtual int FillById(MDataSet.ProductDataTable dataTable, System.Nullable<int> ProductRef) {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if ((ProductRef.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(ProductRef.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例8: Fill

 public virtual int Fill(MDataSet.LinkedInvoiceMasterDataTable dataTable, System.Nullable<int> TradePutletRef) {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if ((TradePutletRef.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(TradePutletRef.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例9: FillBy

 public virtual int FillBy(MDataSet.RemainsDataTable dataTable, System.Nullable<int> Original_ID, byte[] Original_RowVersion) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((Original_ID.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((int)(Original_ID.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((Original_RowVersion == null)) {
         this.Adapter.SelectCommand.Parameters[2].Value = System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[2].Value = ((byte[])(Original_RowVersion));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:20,代码来源:MDataSet.Designer.cs

示例10: FillByName

 public virtual int FillByName(MDataSet.ManufacturerDataTable dataTable, string name) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((name == null)) {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = ((string)(name));
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs

示例11: FillNew

 public virtual int FillNew(MDataSet.OrganizationDataTable dataTable, System.Nullable<System.DateTime> DateLastUpdate) {
     this.Adapter.SelectCommand = this.CommandCollection[1];
     if ((DateLastUpdate.HasValue == true)) {
         this.Adapter.SelectCommand.Parameters[1].Value = ((System.DateTime)(DateLastUpdate.Value));
     }
     else {
         this.Adapter.SelectCommand.Parameters[1].Value = System.DBNull.Value;
     }
     if ((this.ClearBeforeFill == true)) {
         dataTable.Clear();
     }
     int returnValue = this.Adapter.Fill(dataTable);
     return returnValue;
 }
开发者ID:vpjulia,项目名称:Salvia,代码行数:14,代码来源:MDataSet.Designer.cs


注:本文中的MDataSet.Clear方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。