Class DomainModel<T>
Represents a domain model containing a collection of value objects.
Inherited Members
Namespace: Innovt.Domain.Core.Model
Assembly: Innovt.Domain.Core.dll
Syntax
public class DomainModel<T> : ValueObject where T : ValueObject
Type Parameters
Name | Description |
---|---|
T | The type of value object. |
Methods
| Edit this page View SourceAddModel(T)
Adds a value object to the domain model.
Declaration
protected void AddModel(T model)
Parameters
Type | Name | Description |
---|---|---|
T | model | The value object to be added. |
FindAll()
Retrieves a list of all value objects in the domain model.
Declaration
public List<T> FindAll()
Returns
Type | Description |
---|---|
List<T> | A list of value objects. |
GetByPk(int)
Retrieves a value object by its primary key.
Declaration
public T GetByPk(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | The primary key to search for. |
Returns
Type | Description |
---|---|
T | The value object found, or null if not found. |