Class DriverNativeBinary
One native binary a backend needs, for one runtime identifier.
Inherited Members
Namespace: Serenity.StructuredPersistence.Infrastructure.Editor.Drivers
Assembly: Serenity.UnityStructuredPersistence.Infrastructure.Editor.dll
Syntax
public sealed class DriverNativeBinary
Remarks
Modelled separately from DriverPackage because a native binary fails differently
and later: a missing managed assembly is refused at compile time with the type named, while a
missing native leaves a project that compiles and then throws at the first real call. Sqlite is
the case that forces this — without e_sqlite3 beside the managed assemblies it fails at
schema creation, and no amount of checking managed DLLs would have caught it.
NuGet lays these out as runtimes/<rid>/native/; where they must land in a Unity
project is a different layout, so ProjectRelativeFolder records the destination
rather than the source.
Constructors
DriverNativeBinary(string, string, string, string, string)
Describes a native binary and where it has to land.
Declaration
public DriverNativeBinary(string packageId, string version, string runtimeIdentifier, string fileName, string projectRelativeFolder)
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageId | |
| string | version | |
| string | runtimeIdentifier | |
| string | fileName | |
| string | projectRelativeFolder |
Properties
FileName
Declaration
public string FileName { get; }
Property Value
| Type | Description |
|---|---|
| string | File that must be present, e.g. |
PackageId
Declaration
public string PackageId { get; }
Property Value
| Type | Description |
|---|---|
| string | NuGet package that carries the binary, e.g. |
ProjectRelativeFolder
Declaration
public string ProjectRelativeFolder { get; }
Property Value
| Type | Description |
|---|---|
| string | Folder the file must sit in, relative to the drivers folder, e.g. |
RuntimeIdentifier
Declaration
public string RuntimeIdentifier { get; }
Property Value
| Type | Description |
|---|---|
| string | Runtime identifier the binary is built for, e.g. |
Version
Declaration
public string Version { get; }
Property Value
| Type | Description |
|---|---|
| string | The exact version verified against this repository. |
Methods
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |