Table of Contents

Interface IServices

Namespace
The
Assembly
Instagile.dll

An ORM instance with stateful authentication and the ability to create IEntityContext units of work.

public interface IServices

Properties

AppName

string AppName { get; }

Property Value

string

AppVersion

string AppVersion { get; }

Property Value

string

Choices

IChoicePolicy Choices { get; }

Property Value

IChoicePolicy

Components

Functions to access built-in entity types added by model features.

ComponentService Components { get; }

Property Value

ComponentService

Documents

Functions to load and store files or images.

DocumentService Documents { get; }

Property Value

DocumentService

Environment

string Environment { get; }

Property Value

string

Export

Functions for exporting data to tabular formats.

ExportService Export { get; }

Property Value

ExportService

Import

Functions for copying schema and data from external sources.

ImportService Import { get; }

Property Value

ImportService

Licensing

Functions for checking licence information.

LicenseService Licensing { get; }

Property Value

LicenseService

Logging

Functions for creating loggers.

LogService Logging { get; }

Property Value

LogService

Mail

Functions to send email.

MailService Mail { get; }

Property Value

MailService

Metadata

Runtime description of the active entity model.

EntityMetadataDictionary Metadata { get; }

Property Value

EntityMetadataDictionary

Persistence

Functions to load and store entities.

PersistenceService Persistence { get; }

Property Value

PersistenceService

RPC

Functions to execute registered procedures, either locally or via a remote IEndpoint.

RPCService RPC { get; }

Property Value

RPCService

ReplaceSmartPunctuation

bool ReplaceSmartPunctuation { get; }

Property Value

bool

Security

Functions to log in and out or otherwise manipulate security IPrincipals.

SecurityService Security { get; }

Property Value

SecurityService

Version

string Version { get; }

Property Value

string

Methods

CreateContext()

Create an entity context, the unit of work for data access, with the current identity.

IEntityContext CreateContext()

Returns

IEntityContext

CreateContext(IPrincipal)

Create an entity context, the unit of work for data access.

IEntityContext CreateContext(IPrincipal principal)

Parameters

principal IPrincipal

User identity for the created context.

Returns

IEntityContext