From fc3abb9a44700bcec51fe8fbf48ff332ce36ed8e Mon Sep 17 00:00:00 2001 From: Dachary Date: Tue, 30 Jul 2024 15:21:37 -0400 Subject: [PATCH] (DOCSP-41466): Create: Use third-party libraries for some C# operations (#3343) ## Pull Request Info - SDK Docs Consolidation Jira ticket: https://jira.mongodb.org/browse/DOCSP-41466 *Staged Page* - [Create](https://preview-mongodbdacharyc.gatsbyjs.io/realm/DOCSP-41466/sdk/crud/create/): New C# API descriptions for "Create an unmanaged copy of an object" and "Copy an object to another database" advising developers to use third-party libraries for this functionality. --- .../create-copy-object-to-another-database-not-supported.rst | 4 ++++ .../crud/create-unmanaged-copy-of-object-not-supported.rst | 3 +++ source/sdk/crud/create.txt | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 source/includes/api-details/csharp/crud/create-copy-object-to-another-database-not-supported.rst create mode 100644 source/includes/api-details/csharp/crud/create-unmanaged-copy-of-object-not-supported.rst diff --git a/source/includes/api-details/csharp/crud/create-copy-object-to-another-database-not-supported.rst b/source/includes/api-details/csharp/crud/create-copy-object-to-another-database-not-supported.rst new file mode 100644 index 0000000000..31fa4e8830 --- /dev/null +++ b/source/includes/api-details/csharp/crud/create-copy-object-to-another-database-not-supported.rst @@ -0,0 +1,4 @@ +The SDK does not provide a C# API to directly copy an object to another +database instance. Instead, you can use a third-party library such as +`AutoMapper `__ to create unmanaged objects and +then copy them into another database instance. diff --git a/source/includes/api-details/csharp/crud/create-unmanaged-copy-of-object-not-supported.rst b/source/includes/api-details/csharp/crud/create-unmanaged-copy-of-object-not-supported.rst new file mode 100644 index 0000000000..981f8268b8 --- /dev/null +++ b/source/includes/api-details/csharp/crud/create-unmanaged-copy-of-object-not-supported.rst @@ -0,0 +1,3 @@ +The SDK does not provide a C# API to directly create an unmanaged copy of +an object. Instead, you can use a third-party library such as +`AutoMapper `__ to create unmanaged objects. diff --git a/source/sdk/crud/create.txt b/source/sdk/crud/create.txt index 444109eb7f..185f66ada1 100644 --- a/source/sdk/crud/create.txt +++ b/source/sdk/crud/create.txt @@ -466,7 +466,7 @@ currently implemented. .. tab:: :tabid: csharp - .. include:: /includes/api-details/generic/crud/create-unmanaged-copy-not-supported.rst + .. include:: /includes/api-details/csharp/crud/create-unmanaged-copy-of-object-not-supported.rst .. tab:: :tabid: dart @@ -528,7 +528,7 @@ database instance. .. tab:: :tabid: csharp - .. include:: /includes/api-details/generic/crud/create-copy-object-to-another-database-no-example.rst + .. include:: /includes/api-details/csharp/crud/create-copy-object-to-another-database-not-supported.rst .. tab:: :tabid: dart