@@ -24,13 +24,15 @@ abstract class DistributedWriteTransaction : DistributedTransaction
2424 /// <param name="database">The name of the database containing the container.</param>
2525 /// <param name="collection">The name of the container where the item will be created.</param>
2626 /// <param name="partitionKey">The partition key for the item.</param>
27+ /// <param name="id">The unique identifier of the item to create.</param>
2728 /// <param name="resource">The resource to create.</param>
2829 /// <param name="requestOptions">Options for the create operation.</param>
2930 /// <returns>The current <see cref="DistributedWriteTransaction"/> instance for method chaining.</returns>
3031 public abstract DistributedWriteTransaction CreateItem < T > (
3132 string database ,
3233 string collection ,
3334 PartitionKey partitionKey ,
35+ string id ,
3436 T resource ,
3537 DistributedTransactionRequestOptions requestOptions = null ) ;
3638
@@ -40,13 +42,15 @@ public abstract DistributedWriteTransaction CreateItem<T>(
4042 /// <param name="database">The name of the database containing the container.</param>
4143 /// <param name="collection">The name of the container where the item will be created.</param>
4244 /// <param name="partitionKey">The partition key for the item.</param>
45+ /// <param name="id">The unique identifier of the item to create.</param>
4346 /// <param name="streamPayload">A <see cref="Stream"/> containing the JSON serialization of the item.</param>
4447 /// <param name="requestOptions">Options for the create operation.</param>
4548 /// <returns>The current <see cref="DistributedWriteTransaction"/> instance for method chaining.</returns>
4649 public abstract DistributedWriteTransaction CreateItemStream (
4750 string database ,
4851 string collection ,
4952 PartitionKey partitionKey ,
53+ string id ,
5054 Stream streamPayload ,
5155 DistributedTransactionRequestOptions requestOptions = null ) ;
5256
@@ -147,13 +151,15 @@ public abstract DistributedWriteTransaction PatchItemStream(
147151 /// <param name="database">The name of the database containing the container.</param>
148152 /// <param name="collection">The name of the container where the item will be upserted.</param>
149153 /// <param name="partitionKey">The partition key for the item.</param>
154+ /// <param name="id">The unique identifier of the item to upsert.</param>
150155 /// <param name="resource">The resource to upsert.</param>
151156 /// <param name="requestOptions">Options for the upsert operation.</param>
152157 /// <returns>The current <see cref="DistributedWriteTransaction"/> instance for method chaining.</returns>
153158 public abstract DistributedWriteTransaction UpsertItem < T > (
154159 string database ,
155160 string collection ,
156161 PartitionKey partitionKey ,
162+ string id ,
157163 T resource ,
158164 DistributedTransactionRequestOptions requestOptions = null ) ;
159165
@@ -164,13 +170,15 @@ public abstract DistributedWriteTransaction UpsertItem<T>(
164170 /// <param name="database">The name of the database containing the container.</param>
165171 /// <param name="collection">The name of the container where the item will be upserted.</param>
166172 /// <param name="partitionKey">The partition key for the item.</param>
173+ /// <param name="id">The unique identifier of the item to upsert.</param>
167174 /// <param name="streamPayload">A <see cref="Stream"/> containing the JSON serialization of the item.</param>
168175 /// <param name="requestOptions">Options for the upsert operation.</param>
169176 /// <returns>The current <see cref="DistributedWriteTransaction"/> instance for method chaining.</returns>
170177 public abstract DistributedWriteTransaction UpsertItemStream (
171178 string database ,
172179 string collection ,
173180 PartitionKey partitionKey ,
181+ string id ,
174182 Stream streamPayload ,
175183 DistributedTransactionRequestOptions requestOptions = null ) ;
176184 }
0 commit comments