Поделиться через


Schema Element for SubscriptionClass (ADF)

Contains elements that define subscription class fields.

Синтаксис

<SubscriptionClasses>
    <SubscriptionClass>
        ...
        <Schema>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Required once per SubscriptionClass element.

Updates

Cannot be added or deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

SubscriptionClass Element (ADF)

Child elements

Field Element for SubscriptionClass/Schema (ADF)

Замечания

A subscription class schema defines a subscription class table in the application database. Notification Services automatically adds SubscriberID, Created, Updated, and Enabled columns to the subscription class schema.

Пример

The following example shows a Schema element that creates four subscription fields:

  • A 255-character subscriber device name field. You typically include this field if your application supports multiple device types.
  • A 10-character subscriber locale. You typically include this field if your application supports multiple locales.
  • A 10-character stock symbol field.
  • A stock trigger price field that accepts monetary data.
<Schema>
    <Field>
        <FieldName>DeviceName</FieldName>
        <FieldType>nvarchar(255)</FieldType>
        <FieldTypeMods>NOT NULL</FieldTypeMods>
    </Field>
    <Field>
        <FieldName>SubscriberLocale</FieldName>
        <FieldType>nvarchar(10)</FieldType>
        <FieldTypeMods>NOT NULL</FieldTypeMods>
    </Field>
    <Field>
        <FieldName>StockSymbol</FieldName>
        <FieldType>char(10)</FieldType>
        <FieldTypeMods>NOT NULL</FieldTypeMods>
    </Field>
    <Field>
        <FieldName>StockTriggerPrice</FieldName>
        <FieldType>money</FieldType>
        <FieldTypeMods>NOT NULL DEFAULT 10</FieldTypeMods>
    </Field>
</Schema>

См. также

Справочник

Application Definition File Reference

Другие ресурсы

Определение схемы подписок
Обновление экземпляров и приложений

Справка и поддержка

Получение помощи по SQL Server 2005