Click or drag to resize
RepositoryE, K Class
Provides implementation of basic Repository.
Inheritance Hierarchy
SystemObject
  LiteRepositoryRepositoryE, K

Namespace: LiteRepository
Assembly: LiteRepository (in LiteRepository.dll) Version: 2.0.4
Syntax
C#
public class Repository<E, K>
where E : class, K
where K : class

Type Parameters

E
Type of the Entity.
K
Type of the Primary Key for Entity.

The RepositoryE, K type exposes the following members.

Constructors
  NameDescription
Public methodRepositoryE, K
Initializes a new instance of the RepositoryE, K class.
Top
Properties
  NameDescription
Public propertyDb
Gets a Db instance.
Top
Methods
  NameDescription
Public methodCode exampleDeleteAsync
Deletes the entity with a key from the database.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodCode exampleGetAllAsync
Gets all entities from database.
Public methodCode exampleGetAsync
Gets a entity with key from the database.
Public methodCode exampleGetCountAsync
Gets a count of all entities in the database.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodCode exampleInsertAsync
Inserts the entity into the database.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodCode exampleUpdateAsync
Updates the entity in the database.
Top
See Also