Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 4.81 KB

index.md

File metadata and controls

36 lines (31 loc) · 4.81 KB

Sagara.Core.Data Assembly

Namespaces

Sagara.Core.Data.Models Namespace

  • Entity Class

    Abstract base class for all EF Core entities. It contains common audit properties and the
    timestamp property.

    Derive from this class and add an Id property with the desired Id type.

    • Entity() Constructor Default .ctor. Initializes the Id and sets CreateUtc and UpdateUtc
      to the current UTC date/time.
    • CreateUserId Property UserId of the person who created the entity.
    • CreateUtc Property UTC date/time when the entity was created.
    • Timestamp Property SQL Server timestamp field, used for concurrency checking.
    • UpdateUserId Property UserId of the person who last updated the entity.
    • UpdateUtc Property UTC date/time when the entity was last updated.
  • EntityHelper Class Methods to help with Entity objects.

  • GuidIdEntity Class Abstract base class for all EF Core entities. It contains common audit properties and the
    timestamp property.

    • GuidIdEntity() Constructor Default .ctor. Initializes the Id and sets CreateUtc and UpdateUtc
      to the current UTC date/time.
    • Id Property The Entity's unique id (primary key). Must be assigned by the client.
  • IEntity Interface Implemented by Entity, from which all non-Identity entities derive, and also by
    any IdentityUser-derived classes.

    • CreateUserId Property UserId of the person who created the entity.
    • CreateUtc Property UTC date/time when the entity was created.
    • Timestamp Property SQL Server timestamp field, used for concurrency checking.
    • UpdateUserId Property UserId of the person who last updated the entity.
    • UpdateUtc Property UTC date/time when the entity was last updated.