Class InMemoryRepository<T>
Provides in memory data repository.
important
The data in this repository persist only during the run of the application.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TcOpen.Inxton.Data.InMemory
Assembly: TcOpen.Inxton.Data.InMemory.dll
Syntax
public class InMemoryRepository<T> : RepositoryBase<T>, IRepository<T>, IRepository where T : IBrowsableDataObject
Type Parameters
| Name | Description |
|---|---|
| T | POCO twin type |
Constructors
| Improve this Doc View SourceInMemoryRepository()
Creates new instance of InMemoryRepository<T>
Declaration
public InMemoryRepository()
InMemoryRepository(InMemoryRepositorySettings<T>)
Creates new instance of InMemoryRepository<T>
Declaration
public InMemoryRepository(InMemoryRepositorySettings<T> parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| InMemoryRepositorySettings<T> | parameters | Repository settings |
Fields
| Improve this Doc View Source_repository
Declaration
readonly Dictionary<string, T> _repository
Field Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, T> |
Properties
| Improve this Doc View SourceCountNvi
Declaration
protected override long CountNvi { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.CountNvi
|
Improve this Doc
View Source
Queryable
Declaration
public override IQueryable<T> Queryable { get; }
Property Value
| Type | Description |
|---|---|
| System.Linq.IQueryable<T> |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.Queryable
|
Improve this Doc
View Source
Records
Declaration
Dictionary<string, T> Records { }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.String, T> |
Methods
| Improve this Doc View SourceCreateNvi(String, T)
Declaration
protected override void CreateNvi(string identifier, T data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier | |
| T | data |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.CreateNvi(System.String, T)
|
Improve this Doc
View Source
DeleteNvi(String)
Declaration
protected override void DeleteNvi(string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.DeleteNvi(System.String)
|
Improve this Doc
View Source
ExistsNvi(String)
Declaration
protected override bool ExistsNvi(string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.ExistsNvi(System.String)
|
Improve this Doc
View Source
FilteredCountNvi(String, eSearchMode)
Declaration
protected override long FilteredCountNvi(string id, eSearchMode searchMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | |
| eSearchMode | searchMode |
Returns
| Type | Description |
|---|---|
| System.Int64 |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.FilteredCountNvi(System.String, TcOpen.Inxton.Data.eSearchMode)
|
Improve this Doc
View Source
GetRecordsNvi(String, Int32, Int32, eSearchMode)
Declaration
protected override IEnumerable<T> GetRecordsNvi(string identifier, int limit, int skip, eSearchMode searchMode)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier | |
| System.Int32 | limit | |
| System.Int32 | skip | |
| eSearchMode | searchMode |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<T> |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.GetRecordsNvi(System.String, System.Int32, System.Int32, TcOpen.Inxton.Data.eSearchMode)
|
Improve this Doc
View Source
ReadNvi(String)
Declaration
protected override T ReadNvi(string identifier)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier |
Returns
| Type | Description |
|---|---|
| T |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.ReadNvi(System.String)
|
Improve this Doc
View Source
UpdateNvi(String, T)
Declaration
protected override void UpdateNvi(string identifier, T data)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | identifier | |
| T | data |
Overrides
TcOpen.Inxton.Data.RepositoryBase<T>.UpdateNvi(System.String, T)