標籤:style io ar sp strong on log cti bs
1,雖然同樣是實現了IDataReader介面,但是 對於
MySql.Data.MySqlClient.MySqlDataReader 和 System.Data.SqlClient.SqlDataReader
來說GetSchemaTable 方法的返回結果是不同的
以下是返回的datatable的結構
mysql |
sqlserver |
AllowDBNull |
AllowDBNull |
BaseCatalogName |
BaseCatalogName |
BaseColumnName |
BaseColumnName |
BaseSchemaName |
BaseSchemaName |
BaseTableName |
BaseServerName |
ColumnName |
BaseTableName |
ColumnOrdinal |
ColumnName |
ColumnSize |
ColumnOrdinal |
DataType |
ColumnSize |
IsAliased |
DataType |
IsAutoIncrement |
DataTypeName |
IsExpression |
IsAliased |
IsHidden |
IsAutoIncrement |
IsIdentity |
IsColumnSet |
IsKey |
IsExpression |
IsLong |
IsHidden |
IsReadOnly |
IsIdentity |
IsRowVersion |
IsKey |
IsUnique |
IsLong |
NumericPrecision |
IsReadOnly |
NumericScale |
IsRowVersion |
ProviderType |
IsUnique |
|
NonVersionedProviderType |
|
NumericPrecision |
|
NumericScale |
|
ProviderSpecificDataType |
|
ProviderType |
|
UdtAssemblyQualifiedName |
|
XmlSchemaCollectionDatabase |
|
XmlSchemaCollectionName |
|
XmlSchemaCollectionOwningSchema |
mysql connector 和 sqlserver ado.net 的區別