SchemaInfoCollection Class |
Namespace: NetQuarry.Data
The SchemaInfoCollection type exposes the following members.
Name | Description | |
---|---|---|
SchemaInfoCollection |
Default constructor. Should be used only when the corresponding object does not exist in the schema.
| |
SchemaInfoCollection(IDataReader) | Obsolete.
Initializes a new instance of the object based on the schema provided in the DataReader.
This overload is intended for use with tables and views.
Use SchemaInfoCollection(IDataParameterCollection, DBMSType) for stored procedures.
Note that this constructor is deprecated and use of SchemaInfoCollection(IDataParameterCollection, DBMSType) is preferred
because it does not assume the provider is SQLServer. | |
SchemaInfoCollection(IDataParameterCollection, DBMSType) |
Initializes a new instance of the object based on the schema provided in the parameters collection.
This overload is intended for use with stored procedures.
Use SchemaInfoCollection(IDataReader, DBMSType) for tables and views.
| |
SchemaInfoCollection(IDataReader, DBMSType) |
Initializes a new instance of the object based on the schema provided in the DataReader.
This overload is intended for use with tables and views.
Use SchemaInfoCollection(IDataParameterCollection, DBMSType) for stored procedures.
|
Name | Description | |
---|---|---|
Count |
Gets the number of columns in the collection. Zero columns typically indicates that the object does not
exist in the schema, but it is recommended to use ObjectExists to make that determination.
| |
DBMSType |
Gets the DBMSType (e.g. SQL-Server), or zero if not known.
| |
Item |
Indexer for the collection returning a SchemaInfo object.
| |
ObjectExists |
Gets whether or not the object exists in the schema.
|
Name | Description | |
---|---|---|
ClearSchemaCache(String) | Obsolete.
Clears a schema cache object.
This method is deprecated in favor of ClearSchemaCache(IAppContext, String) in order to prevent
the possibility of cross-application clearing.
| |
ClearSchemaCache(IAppContext, String) |
Clears a schema cache object.
| |
ColumnSize |
Returns the size of the specified column.
If the column is unknown then -1 is returned.
| |
CreateInstance(IDataReader, String) | Obsolete.
Creates and returns an instance of the collection from the global cache. If the object doesn't exist in the cache it is added.
This method is deprecated in favor of CreateInstance(IAppContext, IDataReader, String, DBMSType) in order to prevent
the possibility of cross-application caching.
| |
CreateInstance(IDataReader, String, DBMSType) | Obsolete.
Creates and returns an instance of the collection from the global cache. If the object doesn't exist in the cache it is added.
This method is deprecated in favor of CreateInstance(IAppContext, IDataReader, String, DBMSType) in order to prevent
the possibility of cross-application caching.
| |
CreateInstance(IAppContext, IDataReader, String, DBMSType) |
Creates and returns an instance of the collection from the global cache. If the object doesn't exist in the cache it is added.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsAutoIncrement |
Returns true if the specified column is an AutoIncrement (Identity) column.
If the column is unknown then false is returned.
| |
IsNullable |
Returns true if the specified column is nullable.
If the column is unknown then false is returned.
| |
LoadFromParameters |
Load the schema information from the provided command parameters.
| |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
UpdateViewBaseTableNames |
Updates the base table names when the object is a view. Works for SQL Server only.
|
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |