You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Data Entity Framework Core package provides a collection of helpers, extensions, and converters for applications taking advantage of the `Microsoft.EntityFrameworkCore` library.
67
+
68
+
It includes features such as:
69
+
70
+
- DbContextExtensions, for additional helpers to EF data contexts such as asynchronous update & save.
71
+
- EntityBase, for providing a base definition for entities including a GUID identifier, created, and updated dates.
72
+
- UtcDateTimeConverter, to help with the storing of entity model dates in a UTC format.
73
+
74
+
<spanclass="button">
75
+
76
+
[Discover Data.EFCore](features/data-efcore.md)
77
+
78
+
</span>
79
+
63
80
## Data.Validation
64
81
65
82
The Data Validation package is designed to provide out-of-the-box data validation to applications built with C#.
title: Using the Data Converters package | MADE.NET
4
+
---
5
+
6
+
# Using the Data Entity Framework Core package
7
+
8
+
The Data Entity Framework Core package provides a collection of helpers, extensions, and converters for applications taking advantage of the `Microsoft.EntityFrameworkCore` library.
9
+
10
+
## Standardizing your entities with EntityBase
11
+
12
+
When setting up your entities, there are some common standard properties you'll usually want to include in most circumstances.
13
+
14
+
These are:
15
+
16
+
- An identifier
17
+
- A date the entity was created
18
+
- A date the entity was last updated
19
+
20
+
This is what the `MADE.Data.EFCore.EntityBase` type provides for you. It even goes as far as to initialize your created and last updated date values for you when you create your object.
21
+
22
+
To use it for your own entities, it's as simple as inheriting from the `EntityBase` type.
0 commit comments