Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
128 lines (124 sloc) 7.17 KB
<Type Name="SaveChangesOptions" FullName="System.Data.Services.Client.SaveChangesOptions">
<TypeSignature Language="C#" Value="public enum SaveChangesOptions" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed SaveChangesOptions extends System.Enum" />
<TypeSignature Language="DocId" Value="T:System.Data.Services.Client.SaveChangesOptions" />
<TypeSignature Language="VB.NET" Value="Public Enum SaveChangesOptions" />
<TypeSignature Language="C++ CLI" Value="public enum class SaveChangesOptions" />
<TypeSignature Language="F#" Value="type SaveChangesOptions = " />
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Attributes>
<Attribute FrameworkAlternate="netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;xamarinandroid-7.1;xamarinios-10.8;xamarinmac-3.0;netframework-4.8">
<AttributeName>System.Flags</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Indicates change options when <see cref="M:System.Data.Services.Client.DataServiceContext.SaveChanges" /> is called.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
When the `ContinueOnError` option is set, subsequent operations are still tried even after an error occurs.
When batching is not used, the <xref:System.Data.Services.Client.DataServiceResponse.BatchHeaders%2A?displayProperty=nameWithType> property returns an empty collection, and the <xref:System.Data.Services.Client.DataServiceResponse.BatchStatusCode%2A?displayProperty=nameWithType> property is zero.
You cannot set both `Batch` and `ContinueOnError` at the same time.
]]></format>
</remarks>
<related type="Article" href="https://msdn.microsoft.com/library/00d993be-ffed-4dea-baf7-6eea982cdb54">Updating the Data Service (WCF Data Services)</related>
</Docs>
<Members>
<Member MemberName="Batch">
<MemberSignature Language="C#" Value="Batch" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.Services.Client.SaveChangesOptions Batch = int32(1)" />
<MemberSignature Language="DocId" Value="F:System.Data.Services.Client.SaveChangesOptions.Batch" />
<MemberSignature Language="VB.NET" Value="Batch" />
<MemberSignature Language="C++ CLI" Value="Batch" />
<MemberSignature Language="F#" Value="Batch = 1" Usage="System.Data.Services.Client.SaveChangesOptions.Batch" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.Services.Client.SaveChangesOptions</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>All pending changes are saved in a single batch request.</summary>
</Docs>
</Member>
<Member MemberName="ContinueOnError">
<MemberSignature Language="C#" Value="ContinueOnError" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.Services.Client.SaveChangesOptions ContinueOnError = int32(2)" />
<MemberSignature Language="DocId" Value="F:System.Data.Services.Client.SaveChangesOptions.ContinueOnError" />
<MemberSignature Language="VB.NET" Value="ContinueOnError" />
<MemberSignature Language="C++ CLI" Value="ContinueOnError" />
<MemberSignature Language="F#" Value="ContinueOnError = 2" Usage="System.Data.Services.Client.SaveChangesOptions.ContinueOnError" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.Services.Client.SaveChangesOptions</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>Pending changes are saved by using multiple requests to the server, and the operation continues after an error occurs.</summary>
</Docs>
</Member>
<Member MemberName="None">
<MemberSignature Language="C#" Value="None" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.Services.Client.SaveChangesOptions None = int32(0)" />
<MemberSignature Language="DocId" Value="F:System.Data.Services.Client.SaveChangesOptions.None" />
<MemberSignature Language="VB.NET" Value="None" />
<MemberSignature Language="C++ CLI" Value="None" />
<MemberSignature Language="F#" Value="None = 0" Usage="System.Data.Services.Client.SaveChangesOptions.None" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.Services.Client.SaveChangesOptions</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>Pending changes are saved by using multiple requests to the server, but the operation stops on the first failure (default).</summary>
</Docs>
</Member>
<Member MemberName="ReplaceOnUpdate">
<MemberSignature Language="C#" Value="ReplaceOnUpdate" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype System.Data.Services.Client.SaveChangesOptions ReplaceOnUpdate = int32(4)" />
<MemberSignature Language="DocId" Value="F:System.Data.Services.Client.SaveChangesOptions.ReplaceOnUpdate" />
<MemberSignature Language="VB.NET" Value="ReplaceOnUpdate" />
<MemberSignature Language="C++ CLI" Value="ReplaceOnUpdate" />
<MemberSignature Language="F#" Value="ReplaceOnUpdate = 4" Usage="System.Data.Services.Client.SaveChangesOptions.ReplaceOnUpdate" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Data.Services.Client</AssemblyName>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Data.Services.Client.SaveChangesOptions</ReturnType>
</ReturnValue>
<MemberValue>4</MemberValue>
<Docs>
<summary>Pending updates are made by replacing all values of the entity in the data source with values from the updated entity (HTTP PUT) instead of just updating changed values (HTTP MERGE), which is the default behavior.</summary>
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.