Skip to content

Commit

Permalink
Make EntityHelper public.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsagara committed Nov 16, 2023
1 parent f712a06 commit f17663c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<LangVersion>12.0</LangVersion>

<!-- NuGet -->
<Version>2.0.5</Version>
<Version>2.0.6</Version>
<AssemblyVersion>2.0.0</AssemblyVersion>
<FileVersion>2.0.0</FileVersion>
<Authors>Jon Sagara</Authors>
Expand Down
4 changes: 3 additions & 1 deletion src/Sagara.Core.Data/Models/EntityHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// Methods to help with <see cref="Entity"/> objects.
/// </summary>
internal static class EntityHelper
public static class EntityHelper
{
/// <summary>
/// Common method to initialize the CreateUtc and UpdateUtc properties on classes that
Expand All @@ -12,6 +12,8 @@ internal static class EntityHelper
/// <param name="entity">The instance to update.</param>
public static void InitializeDates(IEntity entity)
{
Check.NotNull(entity);

var utcNow = DateTime.UtcNow;

entity.CreateUtc = utcNow;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Methods to help with [Entity](Sagara.Core.Data.Models.Entity.md 'Sagara.Core.Data.Models.Entity') objects.

```csharp
internal static class EntityHelper
public static class EntityHelper
```

Inheritance [System.Object](https://docs.microsoft.com/en-us/dotnet/api/System.Object 'System.Object') &#129106; EntityHelper
Expand Down

0 comments on commit f17663c

Please sign in to comment.