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

Data factory to work with Migration More...

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

Public Member Functions

 MigrationDataFactory (ConfigurationContext context)
 Initializes a new instance of the MigrationDataFactory class. More...
 
override int GetId (Migration obj)
 
override Expression< Func< Migration, bool > > GetIdValidationExpression (int id)
 
- Public Member Functions inherited from KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Migration, 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< MigrationGetDbSet ()
 Gets the data set from current context More...
 
- Protected Member Functions inherited from KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Migration, int >
 EntityDataFactory (TContext context)
 Initializes a new instance of the EntityDataFactory<TContext,TObject,TId> class. More...
 

Detailed Description

Data factory to work with Migration

Definition at line 23 of file MigrationDataFactory.cs.

Constructor & Destructor Documentation

◆ MigrationDataFactory()

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

Initializes a new instance of the MigrationDataFactory class.

Parameters
contextThe context.

Definition at line 31 of file MigrationDataFactory.cs.

Member Function Documentation

◆ GetDbSet()

override DbSet<Migration> KlusterKite.NodeManager.ConfigurationSource.MigrationDataFactory.GetDbSet ( )
protectedvirtual

Gets the data set from current context

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

Definition at line 49 of file MigrationDataFactory.cs.

◆ GetId()

override int KlusterKite.NodeManager.ConfigurationSource.MigrationDataFactory.GetId ( Migration  obj)

Definition at line 37 of file MigrationDataFactory.cs.

◆ GetIdValidationExpression()

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

Definition at line 43 of file MigrationDataFactory.cs.


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