C# Класс Automobile.Registrar.SQLiteClient

Наследование: IMobileDb
Показать файл Открыть проект

Открытые методы

Метод Описание
Dispose ( ) : void

Closes the shared connection if one exists

GetFirstMatch ( DeviceInfo device ) : DeviceInfo
GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match

Register ( DeviceInfo info ) : void
SQLiteClient ( string dbName ) : System

Creates tables, if needed.

SQLiteClient ( string dbName, bool shared ) : System

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).

SetAvailibility ( DeviceInfo device, bool availible ) : void

Описание методов

Dispose() публичный Метод

Closes the shared connection if one exists
public Dispose ( ) : void
Результат void

GetFirstMatch() публичный Метод

public GetFirstMatch ( DeviceInfo device ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
Результат Automobile.Mobile.Framework.Data.DeviceInfo

GetFirstMatch() публичный Метод

Returns the IP of the first registered device which matches all the info. Null values are ignored in the match
public GetFirstMatch ( DeviceInfo device, bool filterByAvailible ) : DeviceInfo
device Automobile.Mobile.Framework.Data.DeviceInfo
filterByAvailible bool
Результат Automobile.Mobile.Framework.Data.DeviceInfo

Register() публичный Метод

public Register ( DeviceInfo info ) : void
info Automobile.Mobile.Framework.Data.DeviceInfo
Результат void

SQLiteClient() публичный Метод

Creates tables, if needed.
public SQLiteClient ( string dbName ) : System
dbName string Name of the file to use
Результат System

SQLiteClient() публичный Метод

Creates tables, if needed. Optionally creates a shared connection (for in-memory or temporary file db).
public SQLiteClient ( string dbName, bool shared ) : System
dbName string Name of the file to use, or :memory: for in memory db
shared bool To share a connection object between all calls to this class
Результат System

SetAvailibility() публичный Метод

public SetAvailibility ( DeviceInfo device, bool availible ) : void
device Automobile.Mobile.Framework.Data.DeviceInfo
availible bool
Результат void