Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class DomainModel<T>

    Represents a domain model containing a collection of value objects.

    Inheritance
    object
    ValueObject
    DomainModel<T>
    Gender
    Inherited Members
    ValueObject.Id
    ValueObject.Equals(object)
    ValueObject.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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 Source

    AddModel(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.

    | Edit this page View Source

    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.

    | Edit this page View Source

    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.

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX