Defines the repository pattern for an Entity.
- Namespace
- Songhay
.Abstractions
graph BT
Type["IRepository"]
class Type type-node
Syntax
public interface IRepository
Remarks
Based on the NBlog repository by Chris Fulstow
[https://github.com/ChrisFulstow/NBlog/blob/master/NBlog.Web/Application/Storage/IRepository.cs]
Methods
Name | Return Value | Summary |
---|---|---|
DeleteEntity |
void |
Deletes the entity.
|
HasEntity |
bool |
Determines whether the specified key has entity.
|
LoadAll |
IEnumerable |
Loads all.
|
LoadSingle |
TEntity |
Loads the single.
|
SaveEntity |
void |
Saves the entity.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Is |
bool |
Determines whether the specified type
can be assigned to
System.Runtime.Serialization.ISerializable .
From NullableExtensions
|
ToObjectOrDbNull |
object |
Boxes the nullable in
object
or returns DBNull .
From NullableExtensions
|
To |
T |
Returns the non-null value of the specified, nullable reference type
or throws an
ArgumentNullException
when the value is null.
From NullableExtensions
|