public FillSchema ( |
||
dataSet | ||
schemaType | SchemaType | |
return | System.Data.DataTable[] |
public override DataTable[] FillSchema(DataSet dataSet, SchemaType schemaType)
{
long logScopeId = DataCommonEventSource.Log.EnterScope("<comm.DbDataAdapter.FillSchema|API> {0}, dataSet, schemaType={1}", ObjectID, schemaType);
try
{
IDbCommand command = _IDbDataAdapter.SelectCommand;
if (DesignMode && ((null == command) || (null == command.Connection) || string.IsNullOrEmpty(command.CommandText)))
{
return Array.Empty<DataTable>(); // design-time support
}
CommandBehavior cmdBehavior = FillCommandBehavior;
return FillSchema(dataSet, schemaType, command, DbDataAdapter.DefaultSourceTableName, cmdBehavior);
}
finally
{
DataCommonEventSource.Log.ExitScope(logScopeId);
}
}
DbDataAdapter::FillSchema ( |
|
DbDataAdapter::FillSchema ( |
|
DbDataAdapter::FillSchema ( |
|
DbDataAdapter::FillSchema ( |
/// <summary> /// ���ر� /// </summary> /// <param name="da"></param> /// <param name="blFillSchema">�Ƿ���ؿ��</param> /// <returns></returns> public DataTable GetDataTable(DbDataAdapter da, bool blFillSchema) { DataTable dt = null; try { dt = new DataTable(); da.Fill(dt); if (blFillSchema) { da.FillSchema(dt, SchemaType.Mapped); } } catch (Exception) { throw; } return dt; }