Status: Current. Reference for users and maintainers.
Use these names consistently when discussing Allors3. This page records the shared vocabulary and links to the pages that own the detailed definitions. Exact API identifiers keep their declared spelling and capitalization. A name that the model declares, such as a class, a unit or a role, is written in code formatting; the writing guide gives the rule.
The platform
Section titled “The platform”| Term | Definition and usage |
|---|---|
| Platform | System and Core together, with the TypeScript system and core libraries and the generator templates. Versions and branches lists the scope. |
| System | The database and workspace engines, the adapters, the protocols, the metadata and the generators. |
| Core | The foundational domain and the code that goes with it: authorization, authentication, the JSON API and the building blocks of a server. Core names both the domain and its part of the repository, dotnet/Core. |
| Core test server | The server in dotnet/Core/Database/Server, which hosts Core with its test domain for the platform’s tests. It is a test harness, not a production deployment; an application has a server of its own. |
| Application | What a user of the platform builds: a domain that extends Core, with its own programs and user interface. Use downstream application where the direction matters, as in a change that an application has to follow. |
| Base and Apps | The business domains of earlier versions. They are not part of the platform; see Versions and branches. |
Domains
Section titled “Domains”| Term | Definition and usage |
|---|---|
| Domain | See Domains. Inheritance connects domains; do not use domain and application interchangeably. |
| Extend | A domain extends one domain and inherits its model and behaviour. Preserve Extends where it is the attribute. |
Custom | The conventional name of an application’s own domain, and the name of the platform’s test domain in Core’s Custom folders. Say which one is meant; Domains explains why the two do not meet. |
| Repository project | The C# project that declares the model of the domains, such as dotnet/Core/Repository/Domain. Qualify the Git repository as the repository of the platform, or of an application, where the context could be ambiguous. |
| Part of a method | What one domain contributes to a method, in a member named after the domain and the method; see The behaviour. |
The model
Section titled “The model”| Term | Definition and usage |
|---|---|
| Model | The classes, interfaces, relations and methods that the repository projects of an application declare; see The model. |
| Class, interface | The two kinds of composite, a type that has relations. An object is an instance of a class; an interface declares relations and methods for the classes that implement it. |
| Unit | One of the eight types of a value that the platform defines, such as String and Integer; see Types. |
| Multiplicity | How many objects stand at each end of a relation: OneToOne, OneToMany, ManyToOne or ManyToMany, with the association named first; see Multiplicity. |
| Workspace | The engine in which a client works with objects, in sessions; see The workspace. A workspace has a name, and the model says which classes, relations and methods the workspaces of each name can use: [Workspace] on a declaration names them, and Default is the name that it uses when it is given none. Qualify the workspace adapter, which is an implementation of the engine. |
Relations
Section titled “Relations”An Allors relation is bidirectional. A role is the forward, writable end; an association is the inverse, read-only end. Read and change relations through the Allors API so that the platform can maintain both ends.
In prose, use role and association for these specific ends. Preserve identifiers such as
IRoleType and IAssociationType when referring to code. A generic UML association describes a
relationship; it does not by itself identify the Allors inverse end. Label that distinction when
a class diagram uses both meanings. Core’s authorization has a class named Role, which is a set
of permissions: in code formatting Role is always that class, and a role in plain text is the
end of a relation. Security lists the names of authorization.
A unit role holds a value, and a composite role holds an object or several objects. Use
role type, association type and relation type for the metadata of a relation, such as
m.Person.LastName, and role and association for what an object holds.
Objects in the database
Section titled “Objects in the database”| Term | Definition and usage |
|---|---|
| Object | An instance of a class of the model, which the platform creates, stores and deletes; see Objects and relations. |
| Transaction | The unit of work of the database, an ITransaction. Session is the term of the workspace; do not use it for a transaction of the database. |
| Builder | The generated class that creates an object of one class and calls its methods OnBuild and OnPostBuild, such as PersonBuilder. |
| Objects class | The generated class that carries the plural name of a class or an interface, such as People for Person and Users for the interface User. It inherits from ObjectsBase and gives the extent of its type. |
| Extent | The set of the objects of a class or an interface, narrowed by a filter; see Extents. Keep the name: an extent is more specific than a query or a collection. |
| Change set | What changed in a transaction since the previous checkpoint; see Change sets. |
Derivations
Section titled “Derivations”| Term | Definition and usage |
|---|---|
| Derivation | One run that brings the objects of a transaction up to date, started with Derive(); see Derivations. |
| Rule | What an application writes to maintain a derived role or to report an error: patterns and a method Derive. |
| Pattern | The part of a rule that says which change makes which objects match. |
| Cycle | One round of a derivation, on one change set. |
| Validation | The errors that a derivation reports, an IValidation. |
| Derived role | A role that is declared with [Derived]: clients cannot write it, and code in the database maintains it, usually a rule. |
Security
Section titled “Security”The names of Core’s authorization are the names of its types; Security explains how they decide access. Write them in code formatting when the text means the type or its objects.
| Term | Definition and usage |
|---|---|
User | Core’s interface for someone who signs in. An application declares a class that implements it. A user in plain text is the person. |
UserGroup | A named group of users. |
Role | A named set of permissions. Write it in code formatting: a role in plain text is the end of a relation. |
Permission | The permission for one operation on the objects of one class: to create them, to read or write one of their roles, or to execute one of their methods. |
Grant | Gives the permissions of one Role to users and user groups. |
SecurityToken | A set of grants for the objects that refer to it. |
Revocation | A set of permissions that it denies to every user, for the objects that refer to it. |
| Access control list | What one user may do with one object, an IAccessControlList. |
The workspace
Section titled “The workspace”The workspace explains how these fit together.
| Term | Definition and usage |
|---|---|
| Connection | The DatabaseConnection of a workspace adapter, which acts for one user and holds the records of the objects that its sessions pulled. |
| Session | The unit of work of a workspace, an ISession, which holds objects and their changes. Transaction is the term of the database; do not use it for a session. |
| Record | What a connection holds of an object of the database: its version, its roles and what the user may do with it. |
| Pull | A request that finds objects in the database and brings them into a session; see Pulls. |
| Push | Sends the new objects and the changes to roles with Origin.Database from a session to the database, which derives and commits them. |
| Invoke | Runs a method of an object in the database, for the user of the workspace. |
| Select, include | The path along roles and associations whose objects a result of a pull holds, and the tree of roles and associations along which a pull brings more objects into the session. |
| Procedure | An IProcedure of the database that a pull runs by its name; see Procedures. |
| Merge error | What a pull reports when the session changed a role that the database changed as well; see Versions and merges. |
Adapters
Section titled “Adapters”Adapter is the established project term. Qualify it as a database adapter or a workspace adapter when the context could be ambiguous.
| Term | Definition and usage |
|---|---|
| Database adapter | An implementation of the database: the Memory, Snapshot, SqlClient and Npgsql adapters; see The database adapters. The setting adapter selects the Snapshot, SqlClient or Npgsql adapter; see Configuration. |
| SQL adapters | The SqlClient adapter for SQL Server and the Npgsql adapter for PostgreSQL, which keep the population in a database of the server. |
| Schema | What the SQL adapters create for a model in one schema of the database, allors by default: the tables, their columns and indexes, and on SQL Server the table types; see The database schema. |
| Objects table | The table allors_o of the SQL adapters, with the id, the class and the version of every object; see The objects table. |
| Workspace adapter | An implementation of the workspace: the Local adapter, and the Remote adapter with its System.Text.Json and Newtonsoft.Json variants; see The adapters. |
Do not substitute codec for an existing adapter. If a separate encoding and decoding responsibility needs a name, discuss that distinction and its scope before adopting one. A choice of serializer does not by itself establish a new name for the surrounding adapter.
Populations and configuration
Section titled “Populations and configuration”| Term | Definition and usage |
|---|---|
| Population | The objects and relations that a database holds. save writes a population to a file and load reads one; see Populations. |
| Setup | The run that builds a new population, Setup.Apply(); see A new population. |
| Upgrade | Loading a population that an earlier version saved and bringing it up to date with the new version; see Upgrade a population. |
| Command-line tool | The program of an application that creates, fills, saves, loads and upgrades its database; see The command-line tool. |
| Configuration root | The folder that ALLORS_CONFIG_ROOT names; see Configuration. |
| Template | A configuration root that the repository provides under config/, for development and testing. |
| Admin connection | A connection in ALLORS_SQLCLIENT or ALLORS_NPGSQL that serves database management only; see Configuration. |