init
This commit is contained in:
@@ -0,0 +1,108 @@
|
||||
using System;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
|
||||
namespace SDA.DataProvider.Core
|
||||
{
|
||||
public abstract class SDADataAdapterWrapper : IDisposable, IDbDataAdapter
|
||||
{
|
||||
public abstract SDACommandWrapper DeleteCommand { get; set; }
|
||||
public abstract SDACommandWrapper InsertCommand { get; set; }
|
||||
public abstract SDACommandWrapper SelectCommand { get; set; }
|
||||
public abstract SDACommandWrapper UpdateCommand { get; set; }
|
||||
|
||||
public abstract DataTableMappingCollection TableMappings { get; }
|
||||
|
||||
public abstract bool AcceptChangesDuringFill { get; set; }
|
||||
public abstract bool ContinueUpdateOnError { get; set; }
|
||||
public abstract int Fill(DataTable dataTable);
|
||||
public abstract int Fill(DataSet dts, int startRecord, int endRecord, string srcTable);
|
||||
public abstract DataTable FillSchema(DataTable dataTable, SchemaType schemaType);
|
||||
public abstract DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType, string srcTable);
|
||||
public abstract int Update(DataRow[] dataRows);
|
||||
public abstract int Update(DataTable dataTable);
|
||||
|
||||
#region IDisposable Members
|
||||
|
||||
public abstract void Dispose();
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDbDataAdapter Members
|
||||
|
||||
IDbCommand IDbDataAdapter.UpdateCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
return UpdateCommand;
|
||||
}
|
||||
set
|
||||
{
|
||||
UpdateCommand = (SDACommandWrapper)value;
|
||||
}
|
||||
}
|
||||
|
||||
IDbCommand IDbDataAdapter.SelectCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
return SelectCommand;
|
||||
}
|
||||
set
|
||||
{
|
||||
SelectCommand = (SDACommandWrapper)value;
|
||||
}
|
||||
}
|
||||
|
||||
IDbCommand IDbDataAdapter.DeleteCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
return DeleteCommand;
|
||||
}
|
||||
set
|
||||
{
|
||||
DeleteCommand = (SDACommandWrapper)value;
|
||||
}
|
||||
}
|
||||
|
||||
IDbCommand IDbDataAdapter.InsertCommand
|
||||
{
|
||||
get
|
||||
{
|
||||
return InsertCommand;
|
||||
}
|
||||
set
|
||||
{
|
||||
InsertCommand = (SDACommandWrapper)value;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region IDataAdapter Members
|
||||
|
||||
public abstract MissingMappingAction MissingMappingAction { get; set; }
|
||||
public abstract MissingSchemaAction MissingSchemaAction { get; set; }
|
||||
|
||||
ITableMappingCollection IDataAdapter.TableMappings
|
||||
{
|
||||
get
|
||||
{
|
||||
return TableMappings;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract int Fill(DataSet dataSet);
|
||||
public abstract DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType);
|
||||
|
||||
public IDataParameter[] GetFillParameters()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public abstract int Update(DataSet dataSet);
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user