KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Data.Tests.Mock.TestRolesFactory Class Reference

The roles data factory More...

Inheritance diagram for KlusterKite.Data.Tests.Mock.TestRolesFactory:
KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, Role, Guid >

Public Member Functions

 TestRolesFactory (TestDataContext context)
 
override Guid GetId (Role obj)
 
override Expression< Func< Role, bool > > GetIdValidationExpression (Guid id)
 
- Public Member Functions inherited from KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, Role, Guid >
override async Task< Maybe< TObject > > Delete (TId id)
 Deletes object from data source More...
 
override 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 Task< CollectionResponse< TObject > > GetList (Expression< Func< TObject, bool >> filter, List< SortingCondition > sort, int? skip, int? count, ApiRequest apiRequest)
 
override Task Insert (TObject obj)
 Adds an object to data source More...
 
override Task Update (TObject newData, TObject oldData)
 Updates an object in data source More...
 

Protected Member Functions

override DbSet< RoleGetDbSet ()
 Gets the data set from current context More...
 
- Protected Member Functions inherited from KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, Role, Guid >
 EntityDataFactorySync (TContext context)
 Initializes a new instance of the EntityDataFactorySync<TContext,TObject,TId> class. More...
 

Detailed Description

The roles data factory

Definition at line 23 of file TestRolesFactory.cs.

Constructor & Destructor Documentation

◆ TestRolesFactory()

KlusterKite.Data.Tests.Mock.TestRolesFactory.TestRolesFactory ( TestDataContext  context)

Definition at line 26 of file TestRolesFactory.cs.

Member Function Documentation

◆ GetDbSet()

override DbSet<Role> KlusterKite.Data.Tests.Mock.TestRolesFactory.GetDbSet ( )
protectedvirtual

Gets the data set from current context

Implements KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, Role, Guid >.

Definition at line 38 of file TestRolesFactory.cs.

◆ GetId()

override Guid KlusterKite.Data.Tests.Mock.TestRolesFactory.GetId ( Role  obj)

◆ GetIdValidationExpression()

override Expression<Func<Role, bool> > KlusterKite.Data.Tests.Mock.TestRolesFactory.GetIdValidationExpression ( Guid  id)


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