NTP Analyzer
0.8.2
Analyze the operation of time servers
|
Base class for OR/M mappers. Can be used for mapping objects stored in SQL databases. More...
Public Member Functions | |
void | CheckTable () |
override IEnumerator< T > | GetEnumerator () |
Read all data from table in a sequential manner. More... | |
void | Save (T item) |
Protected Member Functions | |
SqlDatabaseMapper (LogBase log) | |
void | AddItem (T item) |
void | Close () |
IDbDataParameter | CreateParameter (string name, object value) |
virtual T | FetchExternal (int id) |
abstract void | Insert (T item) |
void | Open () |
string | PrepareInsertSql (string sql) |
virtual string | PrepareSql (string sql) |
abstract void | ReadContent () |
void | RemoveItem (T item) |
abstract void | Update (T item) |
Protected Member Functions inherited from Ntp.Data.DataMapper< T > | |
DataMapper (LogBase log) | |
Protected Attributes | |
IEnumerable< T > | Content => items.Values |
readonly object | MapperLocker = new object() |
IDataReader | Reader |
Properties | |
IDbCommand | Command [get, private set] |
abstract string | CreateSql [get] |
abstract string | TableName [get] |
T | this[int id] [get] |
abstract bool | UseCache [get] |
Properties inherited from Ntp.Data.DataMapper< T > | |
LogBase | Log [get] |
Private Member Functions | |
void | FetchTable () |
Private Attributes | |
IDbConnection | connection |
readonly Dictionary< int, T > | items = new Dictionary<int, T>() |
bool | tableFetched |
Static Private Attributes | |
static readonly AutoResetEvent | InsertEvent = new AutoResetEvent(true) |
Base class for OR/M mappers. Can be used for mapping objects stored in SQL databases.
T | : | PersistentObject |
Definition at line 40 of file SqlDatabaseMapper.cs.
|
inlineprotected |
Definition at line 43 of file SqlDatabaseMapper.cs.
|
inlineprotected |
Definition at line 150 of file SqlDatabaseMapper.cs.
|
inline |
Implements Ntp.Data.ITableInitializer.
Definition at line 87 of file SqlDatabaseMapper.cs.
Referenced by Ntp.Analyzer.Data.DatabaseInitializer.CreateTables().
|
inlineprotected |
Definition at line 158 of file SqlDatabaseMapper.cs.
|
inlineprotected |
Definition at line 165 of file SqlDatabaseMapper.cs.
|
inlineprotectedvirtual |
Reimplemented in Ntp.Analyzer.Data.Sql.TimeServerDatabaseMapper.
Definition at line 170 of file SqlDatabaseMapper.cs.
|
inlineprivate |
Definition at line 224 of file SqlDatabaseMapper.cs.
|
inlinevirtual |
Read all data from table in a sequential manner.
Implements Ntp.Data.DataMapper< T >.
Definition at line 127 of file SqlDatabaseMapper.cs.
|
protectedpure virtual |
|
inlineprotected |
Definition at line 177 of file SqlDatabaseMapper.cs.
|
inlineprotected |
Definition at line 202 of file SqlDatabaseMapper.cs.
|
inlineprotectedvirtual |
Reimplemented in Ntp.Analyzer.Data.Sql.FilteredSqlDatabaseMapper< T >.
Definition at line 207 of file SqlDatabaseMapper.cs.
|
protectedpure virtual |
|
inlineprotected |
Definition at line 214 of file SqlDatabaseMapper.cs.
|
inline |
Definition at line 133 of file SqlDatabaseMapper.cs.
|
protectedpure virtual |
|
private |
Definition at line 52 of file SqlDatabaseMapper.cs.
|
protected |
Definition at line 56 of file SqlDatabaseMapper.cs.
|
staticprivate |
Definition at line 49 of file SqlDatabaseMapper.cs.
|
private |
Definition at line 50 of file SqlDatabaseMapper.cs.
|
protected |
Definition at line 51 of file SqlDatabaseMapper.cs.
|
protected |
Definition at line 53 of file SqlDatabaseMapper.cs.
|
private |
Definition at line 54 of file SqlDatabaseMapper.cs.
|
getprivate setprotected |
Definition at line 58 of file SqlDatabaseMapper.cs.
|
getprotected |
Definition at line 62 of file SqlDatabaseMapper.cs.
|
getprotected |
Definition at line 60 of file SqlDatabaseMapper.cs.
|
get |
Definition at line 67 of file SqlDatabaseMapper.cs.
|
getprotected |
Definition at line 64 of file SqlDatabaseMapper.cs.