Skip to content

Commit be9dc28

Browse files
committed
adding soft delete
1 parent 083fff6 commit be9dc28

File tree

6 files changed

+6
-3
lines changed

6 files changed

+6
-3
lines changed

src/CodeChavez.Repository.Pattern.MongoDB/CodeChavez.Repository.Pattern.MongoDB.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern MongoDB Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern.MongoDB</Product>
12-
<Version>9.0.1</Version>
12+
<Version>9.0.2</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/CodeChavez.Repository.Pattern.Postgres/CodeChavez.Repository.Pattern.Postgres.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern Postgres Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern.Postgres</Product>
12-
<Version>9.0.1</Version>
12+
<Version>9.0.2</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/CodeChavez.Repository.Pattern/CodeChavez.Repository.Pattern.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Title>CodeChavez Repository Pattern Library</Title>
1010
<Authors>Victor A Chavez</Authors>
1111
<Product>CodeChavez.Repository.Pattern</Product>
12-
<Version>9.0.1</Version>
12+
<Version>9.0.2</Version>
1313
<Copyright>2020-2025</Copyright>
1414
<Description>Has some useful extension and utilities that allow for every day development</Description>
1515
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>

src/CodeChavez.Repository.Pattern/Document.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public record class Document : IAudit
1010
public ObjectId Id { get; set; }
1111

1212
public bool IsActive { get; set; } = true;
13+
public bool IsDeleted { get; set; } = false;
1314
public DateTime CreatedDate { get; set; } = DateTime.UtcNow;
1415
public string? CreatedBy { get; set; }
1516
public DateTime? ModifiedDate { get; set; } = DateTime.UtcNow;

src/CodeChavez.Repository.Pattern/Entity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public record class Entity : IAudit
99
public Guid Id { get; set; }
1010

1111
public bool IsActive { get; set; } = true;
12+
public bool IsDeleted { get; set; } = false;
1213
public DateTime CreatedDate { get; set; } = DateTime.UtcNow;
1314
public string? CreatedBy { get; set; }
1415
public DateTime? ModifiedDate { get; set; } = DateTime.UtcNow;

src/CodeChavez.Repository.Pattern/Interfaces/IAudit.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
public interface IAudit
44
{
55
bool IsActive { get; set; }
6+
bool IsDeleted { get; set; }
67
DateTime CreatedDate { get; set; }
78
string? CreatedBy { get; set; }
89
DateTime? ModifiedDate { get; set; }

0 commit comments

Comments
 (0)