NTP Analyzer  0.8.2
Analyze the operation of time servers
Ntp.Analyzer.Data.Sql.ReadingBulkMapper Class Reference

OR/M mapper for ReadingBulk objects. Reading bulks are not persisted. More...

Inheritance diagram for Ntp.Analyzer.Data.Sql.ReadingBulkMapper:
Collaboration diagram for Ntp.Analyzer.Data.Sql.ReadingBulkMapper:

Public Member Functions

 ReadingBulkMapper (LogBase log)
 
override IEnumerator< ReadingBulkGetEnumerator ()
 
- Public Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< ReadingBulk >
void CheckTable ()
 
override IEnumerator< T > GetEnumerator ()
 Read all data from table in a sequential manner. More...
 
void Save (T item)
 

Protected Member Functions

override void Insert (ReadingBulk item)
 
override void ReadContent ()
 
override void Update (ReadingBulk item)
 
- Protected Member Functions inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< ReadingBulk >
 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)
 
void RemoveItem (T item)
 
abstract void Update (T item)
 

Protected Attributes

override string CreateSql => null
 
override string TableName => null
 
override bool UseCache => true
 
- Protected Attributes inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< ReadingBulk >
IEnumerable< T > Content
 
readonly object MapperLocker
 
IDataReader Reader
 

Additional Inherited Members

- Properties inherited from Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< ReadingBulk >
IDbCommand Command [get, private set]
 
abstract string CreateSql [get]
 
abstract string TableName [get]
 
this[int id] [get]
 
abstract bool UseCache [get]
 

Detailed Description

OR/M mapper for ReadingBulk objects. Reading bulks are not persisted.

Definition at line 32 of file ReadingBulkMapper.cs.

Constructor & Destructor Documentation

Ntp.Analyzer.Data.Sql.ReadingBulkMapper.ReadingBulkMapper ( LogBase  log)
inline

Definition at line 34 of file ReadingBulkMapper.cs.

35  : base(log)
36  {
37  }

Member Function Documentation

override IEnumerator<ReadingBulk> Ntp.Analyzer.Data.Sql.ReadingBulkMapper.GetEnumerator ( )
inline

Definition at line 45 of file ReadingBulkMapper.cs.

46  {
47  return Content.GetEnumerator();
48  }
override void Ntp.Analyzer.Data.Sql.ReadingBulkMapper.Insert ( ReadingBulk  item)
inlineprotected

Definition at line 50 of file ReadingBulkMapper.cs.

References Ntp.Analyzer.Objects.ReadingBulk.Name.

51  {
52  // Remove current bulk reading object
53  var current = Content.SingleOrDefault(i => i.Name == item.Name);
54  if (current != null)
55  RemoveItem(current);
56  }
override void Ntp.Analyzer.Data.Sql.ReadingBulkMapper.ReadContent ( )
inlineprotectedvirtual

Implements Ntp.Analyzer.Data.Sql.SqlDatabaseMapper< ReadingBulk >.

Definition at line 58 of file ReadingBulkMapper.cs.

59  {
60  // Reading bulks are not persisted
61  }
override void Ntp.Analyzer.Data.Sql.ReadingBulkMapper.Update ( ReadingBulk  item)
inlineprotected

Definition at line 63 of file ReadingBulkMapper.cs.

64  {
65  // Reading bulks are not persisted
66  }

Member Data Documentation

override string Ntp.Analyzer.Data.Sql.ReadingBulkMapper.CreateSql => null
protected

Definition at line 43 of file ReadingBulkMapper.cs.

override string Ntp.Analyzer.Data.Sql.ReadingBulkMapper.TableName => null
protected

Definition at line 41 of file ReadingBulkMapper.cs.

override bool Ntp.Analyzer.Data.Sql.ReadingBulkMapper.UseCache => true
protected

Definition at line 39 of file ReadingBulkMapper.cs.


The documentation for this class was generated from the following file: