Naming conventions for tables

Fields

Fields on table extensions should be named with suffix _PRJ
Fields on new tables are created without suffix.

Example:

Table Extensions\CategoryTable.Extension_PRJ\FIelds\CategoryGroupId_PRJ
Table Extensions\InventTable.Extension_PRJ\FIelds\ItemConsumerGroup_PRJ
Tables\ItemCategoryList_PRJ\Fields\ItemCategoryListId

Indexes

Indexes on added tables should be named with Idx suffix.
For indexes on table extension - use suffix Idx_PRJ.

Example:

Tables\ItemCategoryList_PRJ\Indexes\ItemCategoryListIdIdx
Table Extensions\InventTable.Extension_PRJ\Indexes\ItemConsumerGroupIdx_PRJ

Methods

See Naming conventions for methods

Extending the tables

For extending/changing of behavior of methods on existing standard tables new class-handlers are created, named with name of the origin table and suffix _PRJ_Extension.

You should follow these guides with that:

Class extension via method wrapping and Chain of Command (CoC)

Add methods to tables through extension

Using of CoC (Chain of Commands) is more reasonable. If not possible, it is allowed to use EventHandlers.

See also Code execution sequence using Chain-of-Commands and EventHandlers

Examples:

Classes\SMAServiceOrderTable_PRJ_Extension
Classes\PurchTable_RU_PRJ_Extension

Для создания класса-обработчика используется атрибут ExtensionOf:

[ExtensionOf(tableStr(PurchParmTable))] 

Temporary tables

Temporary tables, either InMemory or TempDB, should be named with prefix Tmp.

Examples:

TmpEcoResCategoryImport_PRJ
TmpMarkReportTable_PRJ