Hide

YetaWF.DataProvider.SQLGeneric Package Documentation

Display
Print

YetaWF.DataProvider.SQLGeneric.SQLGenericManager<TYPE> Class

Used to retrieve information about databases, tables, columns.

To minimize startup time, we collect table names and column names as they are accessed the first time (lazy loading).

Some of this could be made async, but often this is called in a context that is not async. As this is all cached and most of it is only used during model install/uninstall, using non-async is just easier. The SQL queries used for model install/uninstall (like GetColumnInfo) are not very efficient. Simplicity over perfection.

Namespace: YetaWF.DataProvider.SQLGeneric
Assembly: YetaWF.DataProvider.SQLGeneric

Inheritance

Syntax

public abstract class SQLGenericManager<TYPE>;

Constructors

This class cannot be instantiated.

Fields

PublicStaticDBFIRST_PREFIXWhen using a "Database First" approach, any index or foreign key whose name starts with this prefix will be ignored and remain untouched/unaltered by model updates.

Methods

PublicInherited from System.ObjectEqualsDetermines whether the specified object is equal to the current object.
ProtectedInherited from System.ObjectFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
PublicGetColumnReturns column information for the specified column.
PublicGetColumnNamesReturns the column names given the SQL-specific connection information, database and table name. The contents are dependent on the SQL dataprovider used.
PublicGetColumnsReturns column information for all columns in the specified database table.
PublicGetColumnsCondReturns column information for all columns in the specified database table.
PublicGetDatabaseReturns database information given a database name.
PublicGetDatabaseCondReturns database information given a database name.
PublicGetDataBaseNamesReturns the database names given the SQL-specific connection information. The contents are dependent on the SQL dataprovider used.
PublicGetDataSourceReturns the data source. The contents are dependent on the SQL dataprovider used.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
PublicGetTableReturns table information for the specified table.
PublicGetTableNamesReturns the table names given the SQL-specific connection information and database name. The contents are dependent on the SQL dataprovider used.
PublicGetTablesReturns table information for all tables in the specified database.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
PublicHasTableReturns whether the specified table exists.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.

See Also YetaWF.DataProvider.SQLGenericYetaWF.Core