KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Data factory to work with Configuration More...
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< Configuration > | GetDbSet () |
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... | |
Data factory to work with Configuration
Definition at line 23 of file ConfigurationDataFactory.cs.
KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.ConfigurationDataFactory | ( | ConfigurationContext | context | ) |
Initializes a new instance of the ConfigurationDataFactory class.
context | The current data source context |
Definition at line 31 of file ConfigurationDataFactory.cs.
|
protectedvirtual |
Gets the data set from current context
Implements KlusterKite.Data.EF.EntityDataFactory< ConfigurationContext, Configuration, int >.
override int KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.GetId | ( | Configuration | obj | ) |
Gets the object's identification from object
obj | The data object |
override Expression<Func<Configuration, bool> > KlusterKite.NodeManager.ConfigurationSource.ConfigurationDataFactory.GetIdValidationExpression | ( | int | id | ) |
Gets the expression to check an object's identification
id | The identification to check |