Class DatabaseDriverManifest
Everything one StructuredPersistence backend needs on disk before its scripting define may be set: the assemblies, the native binaries, and the define itself.
Inherited Members
Namespace: Serenity.StructuredPersistence.Infrastructure.Editor.Drivers
Assembly: Serenity.UnityStructuredPersistence.Infrastructure.Editor.dll
Syntax
public sealed class DatabaseDriverManifest
Remarks
The define belongs here because setting it is the dangerous half of the transaction. With the
define set and the driver absent, the provider asmdef's overrideReferences cannot resolve
and the whole project stops compiling with no obvious cause; with the driver present and the
define absent, the backend factory logs a warning and falls back. So the manifest exists to make
"install, then verify, then define" checkable in that order, and the define is one of the facts
being checked rather than something a caller has to know separately.
Constructors
DatabaseDriverManifest(string, string, IReadOnlyList<DriverPackage>, IReadOnlyList<DriverNativeBinary>)
Describes one backend's driver requirements.
Declaration
public DatabaseDriverManifest(string backendName, string scriptingDefine, IReadOnlyList<DriverPackage> packages, IReadOnlyList<DriverNativeBinary> nativeBinaries)
Parameters
| Type | Name | Description |
|---|---|---|
| string | backendName | |
| string | scriptingDefine | |
| IReadOnlyList<DriverPackage> | packages | |
| IReadOnlyList<DriverNativeBinary> | nativeBinaries |
Properties
BackendName
Declaration
public string BackendName { get; }
Property Value
| Type | Description |
|---|---|
| string | Backend name as the reader sees it in the inspector, e.g. |
NativeBinaries
Declaration
public IReadOnlyList<DriverNativeBinary> NativeBinaries { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<DriverNativeBinary> | Native binaries that must be present, empty for backends that need none. |
Packages
Declaration
public IReadOnlyList<DriverPackage> Packages { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<DriverPackage> | Managed assemblies that must be present. |
ScriptingDefine
Declaration
public string ScriptingDefine { get; }
Property Value
| Type | Description |
|---|---|
| string | Scripting define that enables this backend's provider assembly. |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |