本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}