C# Класс Deveel.Data.Sql.Schemas.SchemaInfo

Describes the properties of a schema in a database system.

A schema is a collection of database objects (for example TABLE, VIEW, TYPE, TRIEGGER, etc.).

It is possible for a schema to specify additional metadata information, such as the culture that will be used by default to collate strings in comparisons.

It is not possible to define more than one schema with the same name in a database.

Наследование: IObjectInfo
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
Compare ( string s1, string s2 ) : int

Compares two strngs given using the culture set in the schema.

Compare ( string s1, string s2, bool ignoreCase ) : int

Compares two strngs given using the culture set in the schema.

If the Culture metadata was not set in the schema, the two strings will be compared using the invariant culture.

SchemaInfo ( string name, string type ) : System

Constructs the schema with the given name

Описание методов

Compare() публичный Метод

Compares two strngs given using the culture set in the schema.
public Compare ( string s1, string s2 ) : int
s1 string The first string to compare.
s2 string The second argument of the comparison.
Результат int

Compare() публичный Метод

Compares two strngs given using the culture set in the schema.
If the Culture metadata was not set in the schema, the two strings will be compared using the invariant culture.
public Compare ( string s1, string s2, bool ignoreCase ) : int
s1 string The first string to compare.
s2 string The second argument of the comparison.
ignoreCase bool Indicates whether to ignore the case of strings or not.
Результат int

SchemaInfo() публичный Метод

Constructs the schema with the given name
public SchemaInfo ( string name, string type ) : System
name string The name that identifies the schema.
type string The type of the schema to create.
Результат System