Skip to content

Commit 32c078c

Browse files
author
Chris Young
committed
Added bsonignore
1 parent fbeb960 commit 32c078c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/ArchitectNow.Mongo/Db/GuidBaseRepository.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ protected override FilterDefinition<TModel> AreIdsEqual(Guid id)
2424

2525
protected override Guid CreateNewId() => Guid.NewGuid();
2626
}
27-
}
27+
}

src/ArchitectNow.Mongo/Models/BaseDocument.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ protected BaseDocument()
1313
ValidationErrors = new List<ValidationResult>();
1414
}
1515

16+
[BsonIgnore]
1617
public abstract TId Id { get; set; }
1718

1819
/// <summary>

0 commit comments

Comments
 (0)