From 3459c16edce0d43fa5514779691d91fc76b16200 Mon Sep 17 00:00:00 2001 From: Jordi Date: Sun, 12 Jan 2025 01:27:00 +0100 Subject: [PATCH] Updated interface to support DynamicsValue/fake-xrm-easy#172 --- CHANGELOG.md | 6 +++++- src/FakeXrmEasy.Abstractions/IXrmFakedContext.cs | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aa8b283..a8878d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ ## [2.6.0] +### Changed + +- Added extra parameter to definition of CreateEntity to know whether a record is being created from a Create or Upsert message. - https://github.com/DynamicsValue/fake-xrm-easy/issues/172 + ### Added -- + - Add new method to Initialize Files to support InMemory File Db - https://github.com/DynamicsValue/fake-xrm-easy/issues/157 ## [2.5.0] diff --git a/src/FakeXrmEasy.Abstractions/IXrmFakedContext.cs b/src/FakeXrmEasy.Abstractions/IXrmFakedContext.cs index ef9150f..74bc45d 100644 --- a/src/FakeXrmEasy.Abstractions/IXrmFakedContext.cs +++ b/src/FakeXrmEasy.Abstractions/IXrmFakedContext.cs @@ -82,8 +82,9 @@ public interface IXrmFakedContext: IXrmBaseContext /// Create Entity /// /// + /// To know if the record is being created as part of an upsert operation /// - Guid CreateEntity(Entity e); + Guid CreateEntity(Entity e, bool isUpsert = false); /// /// Update Entity