Interface ITrackingRepository
Contains the signatures of database methods
Namespace: Simplic.Tracking
Assembly: Simplic.Tracking.dll
Syntax
public interface ITrackingRepository
Methods
| Improve this Doc View SourceGetNewTrackingId()
Gets the next free tracking id
Declaration
long GetNewTrackingId()
Returns
Type | Description |
---|---|
System.Int64 | a new id of the tracking table |
GetTracking(Int64)
Gets the tracking with the given id
Declaration
Tracking GetTracking(long trackingId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | trackingId | the id of the tracking |
Returns
Type | Description |
---|---|
Tracking | the tracking with the given id |
GetTrackingEntriesByTrackingId(Int64)
Gets all tracking entries with the given tracking id
Declaration
IEnumerable<TrackingEntry> GetTrackingEntriesByTrackingId(long trackingId)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | trackingId | the id of the tracking |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TrackingEntry> | enumerable of tracking entries |
SaveEntries(IList<TrackingEntry>)
Writes a tracking entry to the database
Declaration
bool SaveEntries(IList<TrackingEntry> newEntries)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<TrackingEntry> | newEntries | the tracking entries to save |
Returns
Type | Description |
---|---|
System.Boolean |
SaveTracking(Tracking)
Writes a tracking to the database
Declaration
bool SaveTracking(Tracking tracking)
Parameters
Type | Name | Description |
---|---|---|
Tracking | tracking | the tracking to save |
Returns
Type | Description |
---|---|
System.Boolean |