Hide

YetaWF.DataProvider.SQLGeneric Package Documentation

Display
Print

YetaWF.DataProvider.SQLGeneric.SQLGenericBase Class

This abstract class is the base class for all SQL low-level data providers.

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

Inheritance

Syntax

public abstract class SQLGenericBase : System.IDisposable;

Constructors

This class cannot be instantiated.

Properties

PublicCacheableDefines whether the data is cacheable. This corresponds to the Cacheable parameter of the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method.
PublicDatabaseThe database used by this data provider. This information is extracted from the SQL connection string.
PublicDatasetThe dataset provided to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider was created.
PublicHasKey2Defines whether the model defines a secondary key.
PublicStaticIdentityColumnDefines the column name of the identity column used in tables. Not all tables use an identity column.
PublicIdentityNameThe column name of the identity column.
PublicIdentitySeedThe initial value of the identity seed. The default value is defined by YetaWF.Core.DataProvider.DataProviderImpl.IDENTITY_SEED, but this can be overridden by passing an optional IdentitySeed parameter to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider is created.
PublicKey1NameThe column name of the primary key.
PublicKey2NameThe column name of the secondary key.
PublicLanguagesDefines the languages supported by the data provider. If NoLanguages is true, no language data is available. Otherwise, the languages supported are identical to collection of active languages defined by YetaWF.Core.Models.MultiString.Languages.
PublicLoggingDefines whether logging is wanted for the data provider. The default value is false, but this can be overridden by passing an optional Logging parameter to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider is created.
PublicNoLanguagesDefines whether language support (for YetaWF.Core.Models.MultiString) is wanted for the data provider. The default is true. This can be overridden by passing an optional NoLanguages parameter to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider is created.
PublicOptionsA dictionary of options and optional parameters as provided to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider was created.
PublicPackageThe package implementing the data provider.
PublicStaticSiteColumnDefines the column name used to associate a site with a data record. The __Site column contains the site ID, or 0 if there is no associated site. Not all tables use the __Site column.
PublicSiteIdentityThe site identity provided to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider was created. This may be 0 if no specific site is associated with the data provider.
PublicStaticSubTableKeyColumnDefines the column name in subtables to connect a subtable and its records to the main table. The __Key column in a subtable contains the identity column used in the main table, used to join record data across tables.
PublicWebConfigAreaThe section in AppSettings.json, where SQL connection string, database owner, etc. are located. WebConfigArea is normally not specified and all connection information is derived from the AppSettings.json section that corresponds to the table name used by the data provider. This can be overridden by passing an optional WebConfigArea parameter to the YetaWF.Core.DataProvider.DataProviderImpl.MakeDataProvider method when the data provider is created.
ProtectedCalculatedPropertyCallbackAsyncAn optional callback which is called whenever an object is retrieved to update some properties.
ProtectedIdentityNameOrDefaultReturns the identity column name or the default identity column name for the current object type.

Fields

PublicStaticDefaultStringDefines the default key used in appsettings.json.

Methods

PublicStaticColumnFromPropertyWithLanguageReturns a column name based on language id.
PublicDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
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.
PublicInherited from System.ObjectGetHashCodeServes as the default hash function.
ProtectedGetIdentityNameReturns the identity column name.
ProtectedGetKey1NameReturns the primary key's column name.
ProtectedGetKey2NameReturns the secondary key's column name.
PublicStaticGetLanguageSuffixReturns the suffix appended to language dependent columns using the active language.
ProtectedGetPropertyDataRetrieves the property information for the model used.
PublicInherited from System.ObjectGetTypeGets the Type of the current instance.
ProtectedHasIdentityReturns whether the specified identity name string identityName is a valid identity name.
ProtectedInherited from System.ObjectMemberwiseCloneCreates a shallow copy of the current Object.
ProtectedNormalizeFilterNormalizes filters and updates column names for constructed names (as used in MultiString).
ProtectedNormalizeSortNormalizes sort filters.
PublicStaticInherited from System.ObjectReferenceEqualsDetermines whether the specified Object instances are the same instance.
PublicInherited from System.ObjectToStringReturns a string that represents the current object.
PublicStaticTryGetDataTypeTests whether a given type is a simple type that can be stored in one column.

See Also YetaWF.DataProvider.SQLGenericYetaWF.Core