KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory Class Reference

Data factory to work with Configuration More...

Inheritance diagram for KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory:
KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Configuration, int >

Public Member Functions

 ConfigurationDataFactory (ConfigurationContext context)
 Initializes a new instance of the ConfigurationDataFactory class. More...
 
override int GetId (Configuration obj)
 Gets the object's identification from object More...
 
override Expression< Func< Configuration, bool > > GetIdValidationExpression (int id)
 Gets the expression to check an object's identification More...
 
- Public Member Functions inherited from KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Configuration, int >
override async Task< Maybe< TObject > > Delete (TId id)
 Deletes object from data source More...
 
override async Task< Maybe< TObject > > Get (TId id)
 Gets an object from data source using it's identification More...
 
abstract Expression< Func< TObject, bool > > GetIdValidationExpression (TId id)
 Gets the expression to check an object's identification More...
 
override async Task< CollectionResponse< TObject > > GetList (Expression< Func< TObject, bool >> filter, List< SortingCondition > sort, int? skip, int? count, ApiRequest apiRequest)
 
override async Task Insert (TObject obj)
 Adds an object to data source More...
 
override async Task Update (TObject newData, TObject oldData)
 Updates an object in data source More...
 

Protected Member Functions

override DbSet< ConfigurationGetDbSet ()
 Gets the data set from current context More...
 
- Protected Member Functions inherited from KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Configuration, int >
 EntityDataFactory (TContext context)
 Initializes a new instance of the EntityDataFactory<TContext,TObject,TId> class. More...
 

Detailed Description

Data factory to work with Configuration

Definition at line 23 of file ConfigurationDataFactory.cs.

Constructor & Destructor Documentation

◆ ConfigurationDataFactory()

KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.ConfigurationDataFactory ( ConfigurationContext  context)

Initializes a new instance of the ConfigurationDataFactory class.

Parameters
contextThe current data source context

Definition at line 31 of file ConfigurationDataFactory.cs.

Member Function Documentation

◆ GetDbSet()

override DbSet<Configuration> KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.GetDbSet ( )
protectedvirtual

Gets the data set from current context

Returns
The data set

Implements KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Configuration, int >.

◆ GetId()

override int KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.GetId ( Configuration  obj)

Gets the object's identification from object

Parameters
objThe data object
Returns
The object's identification

◆ GetIdValidationExpression()

override Expression<Func<Configuration, bool> > KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.GetIdValidationExpression ( int  id)

Gets the expression to check an object's identification

Parameters
idThe identification to check
Returns
The expression

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