33 references to SaveChangesOptions
System.Data.Services.Client (33)
System\Data\Services\Client\DataServiceContext.cs (33)
86private SaveChangesOptions saveChangesDefaultOptions;
422public SaveChangesOptions SaveChangesDefaultOptions
968SaveResult result = new SaveResult(this, "ExecuteBatch", queries, SaveChangesOptions.Batch, callback, state, true);
994SaveResult result = new SaveResult(this, "ExecuteBatch", queries, SaveChangesOptions.Batch, null, null, false);
1108public IAsyncResult BeginSaveChanges(SaveChangesOptions options, AsyncCallback callback, object state)
1112bool replaceOnUpdate = IsFlagSet(options, SaveChangesOptions.ReplaceOnUpdate);
1113if (IsFlagSet(options, SaveChangesOptions.Batch))
1171public DataServiceResponse SaveChanges(SaveChangesOptions options)
1177bool replaceOnUpdate = IsFlagSet(options, SaveChangesOptions.ReplaceOnUpdate);
1178if (IsFlagSet(options, SaveChangesOptions.Batch))
2547private static void ValidateSaveChangesOptions(SaveChangesOptions options)
2549const SaveChangesOptions All =
2550SaveChangesOptions.ContinueOnError |
2551SaveChangesOptions.Batch |
2552SaveChangesOptions.ReplaceOnUpdate;
2561if (IsFlagSet(options, SaveChangesOptions.Batch | SaveChangesOptions.ContinueOnError))
2573private static bool IsFlagSet(SaveChangesOptions options, SaveChangesOptions flag)
4059private readonly SaveChangesOptions options;
4132internal SaveResult(DataServiceContext context, string method, DataServiceRequest[] queries, SaveChangesOptions options, AsyncCallback callback, object state, bool async)
4179if (IsFlagSet(options, SaveChangesOptions.Batch))
4450Debug.Assert(!IsFlagSet(this.options, SaveChangesOptions.Batch), "should be non-batch");
4502if (IsFlagSet(this.options, SaveChangesOptions.Batch))
4906if (!IsFlagSet(this.options, SaveChangesOptions.ContinueOnError))
5279if (IsFlagSet(this.options, SaveChangesOptions.Batch))
5325if (IsFlagSet(this.options, SaveChangesOptions.Batch) && (null != this.Queries))
5367this.DataServiceResponse = new DataServiceResponse(headers, statusCode, null, IsFlagSet(this.options, SaveChangesOptions.Batch));
5409if ((IsFlagSet(this.options, SaveChangesOptions.Batch) && (0 != changesetIndex)) ||
5662(!IsFlagSet(this.options, SaveChangesOptions.Batch) || null == this.ChangedEntries.FirstOrDefault(o => null != o.SaveError)))) ||
5932if (!IsFlagSet(this.options, SaveChangesOptions.Batch))
6056if (IsFlagSet(this.options, SaveChangesOptions.Batch))
6082this.BeginNextChange(IsFlagSet(this.options, SaveChangesOptions.ReplaceOnUpdate));