Skip to content

easyextensionsentityframeworkcoreabstractions BaseEntity

BigMakCode edited this page Aug 5, 2024 · 1 revision

BaseEntity Public class

Description

Base entity.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph EasyExtensions.EntityFrameworkCore.Abstractions
  EasyExtensions.EntityFrameworkCore.Abstractions.BaseEntity[[BaseEntity]]
  class EasyExtensions.EntityFrameworkCore.Abstractions.BaseEntity abstractStyle;
  end
Loading

Members

Properties

Public properties

Type Name Methods
DateTime CreatedAtUtc
Created at UTC.
get, set
int Id
Entity identifier.
get, set
DateTime UpdatedAtUtc
Updated at UTC.
get, set

Methods

Public methods

Returns Name
void Update(BaseEntity entity)
Update entity method is calling in BaseRepository<TItem>.UpdateAsync(`0) .
Do not call this method from overriden method.

Details

Summary

Base entity.

Constructors

BaseEntity

protected BaseEntity()

Methods

Update

public virtual void Update(BaseEntity entity)
Arguments
Type Name Description
BaseEntity entity Entity to update.
Summary

Update entity method is calling in BaseRepository<TItem>.UpdateAsync(`0) . Do not call this method from overriden method.

Exceptions
Name Description
NotImplementedException Update method is not overriden in inherited class.

Properties

Id

public int Id { get; set; }
Summary

Entity identifier.

CreatedAtUtc

public DateTime CreatedAtUtc { get; set; }
Summary

Created at UTC.

UpdatedAtUtc

public DateTime UpdatedAtUtc { get; set; }
Summary

Updated at UTC.

Generated with ModularDoc

Clone this wiki locally