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

The users data factory More...

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

Public Member Functions

 TestUserFactory (TestDataContext context)
 
override Guid GetId (User obj)
 
override Expression< Func< User, bool > > GetIdValidationExpression (Guid id)
 
- Public Member Functions inherited from KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, User, 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< UserGetDbSet ()
 Gets the data set from current context More...
 
- Protected Member Functions inherited from KlusterKite.Data.EF.EntityDataFactorySync< TestDataContext, User, Guid >
 EntityDataFactorySync (TContext context)
 Initializes a new instance of the EntityDataFactorySync<TContext,TObject,TId> class. More...
 

Detailed Description

The users data factory

Definition at line 23 of file TestUserFactory.cs.

Constructor & Destructor Documentation

◆ TestUserFactory()

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

Definition at line 26 of file TestUserFactory.cs.

Member Function Documentation

◆ GetDbSet()

override DbSet<User> KlusterKite.Data.Tests.Mock.TestUserFactory.GetDbSet ( )
protectedvirtual

Gets the data set from current context

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

Definition at line 38 of file TestUserFactory.cs.

◆ GetId()

override Guid KlusterKite.Data.Tests.Mock.TestUserFactory.GetId ( User  obj)

◆ GetIdValidationExpression()

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


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