Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions src/Microsoft.OData.Client/DataServiceContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ private void ValidateSaveChangesOptions(SaveChangesOptions options)
/// </summary>
/// <typeparam name="TElement">element type. See Execute method for more details.</typeparam>
/// <param name="requestUri">request to execute</param>
/// <param name="httpMethod">HttpMethod to use. Only GET and POST are supported if operation parameters are not empty.</param>
/// <param name="httpMethod">HttpMethod to use</param>
/// <param name="singleResult">If set to true, indicates that a single result is expected as a response.</param>
/// <param name="bodyOperationParameters">The list of body operation parameters to be returned.</param>
/// <param name="uriOperationParameters">The list of uri operation parameters to be returned.</param>
Expand All @@ -3849,13 +3849,6 @@ private void ValidateExecuteParameters<TElement>(
out List<UriOperationParameter> uriOperationParameters,
params OperationParameter[] operationParameters)
{
if (string.CompareOrdinal(XmlConstants.HttpMethodGet, httpMethod) != 0 &&
string.CompareOrdinal(XmlConstants.HttpMethodPost, httpMethod) != 0 &&
string.CompareOrdinal(XmlConstants.HttpMethodDelete, httpMethod) != 0)
{
throw new ArgumentException(Strings.Context_ExecuteExpectsGetOrPostOrDelete, nameof(httpMethod));
}

if (ClientTypeUtil.TypeOrElementTypeIsStructured(typeof(TElement)))
{
singleResult = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Context_MissingOperationParameterName=The Name property of an OperationParameter
Context_DuplicateUriOperationParameterName=Multiple uri operation parameters were found with the same name. Uri operation parameter names must be unique.
Context_DuplicateBodyOperationParameterName=Multiple body operation parameters were found with the same name. Body operation parameter names must be unique.
Context_NullKeysAreNotSupported=The serialized resource has a null value in key member '{0}'. Null values are not supported in key members.
Context_ExecuteExpectsGetOrPostOrDelete=The HttpMethod must be GET, POST or DELETE.
Context_EndExecuteExpectedVoidResponse=EndExecute overload for void service operations and actions received a non-void response from the server.
Context_NullElementInOperationParameterArray=The operation parameters array contains a null element which is not allowed.
Context_EntityMetadataBuilderIsRequired=An implementation of ODataEntityMetadataBuilder is required, but a null value was returned from GetEntityMetadataBuilder.
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.OData.Client/Microsoft.OData.Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ internal sealed class TextRes {
internal const string Context_DuplicateUriOperationParameterName = "Context_DuplicateUriOperationParameterName";
internal const string Context_DuplicateBodyOperationParameterName = "Context_DuplicateBodyOperationParameterName";
internal const string Context_NullKeysAreNotSupported = "Context_NullKeysAreNotSupported";
internal const string Context_ExecuteExpectsGetOrPostOrDelete = "Context_ExecuteExpectsGetOrPostOrDelete";
internal const string Context_EndExecuteExpectedVoidResponse = "Context_EndExecuteExpectedVoidResponse";
internal const string Context_NullElementInOperationParameterArray = "Context_NullElementInOperationParameterArray";
internal const string Context_EntityMetadataBuilderIsRequired = "Context_EntityMetadataBuilderIsRequired";
Expand Down
1 change: 0 additions & 1 deletion src/Microsoft.OData.Client/Microsoft.OData.Client.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Context_MissingOperationParameterName=The Name property of an OperationParameter
Context_DuplicateUriOperationParameterName=Multiple uri operation parameters were found with the same name. Uri operation parameter names must be unique.
Context_DuplicateBodyOperationParameterName=Multiple body operation parameters were found with the same name. Body operation parameter names must be unique.
Context_NullKeysAreNotSupported=The serialized resource has a null value in key member '{0}'. Null values are not supported in key members.
Context_ExecuteExpectsGetOrPostOrDelete=The HttpMethod must be GET, POST or DELETE.
Context_EndExecuteExpectedVoidResponse=EndExecute overload for void service operations and actions received a non-void response from the server.
Context_NullElementInOperationParameterArray=The operation parameters array contains a null element which is not allowed.
Context_EntityMetadataBuilderIsRequired=An implementation of ODataEntityMetadataBuilder is required, but a null value was returned from GetEntityMetadataBuilder.
Expand Down
11 changes: 0 additions & 11 deletions src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -645,17 +645,6 @@ internal static string Context_NullKeysAreNotSupported(object p0)
return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NullKeysAreNotSupported, p0);
}

/// <summary>
/// A string like "The HttpMethod must be GET, POST or DELETE."
/// </summary>
internal static string Context_ExecuteExpectsGetOrPostOrDelete
{
get
{
return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ExecuteExpectsGetOrPostOrDelete);
}
}

/// <summary>
/// A string like "EndExecute overload for void service operations and actions received a non-void response from the server."
/// </summary>
Expand Down