From b26a12d6a590c77ab9e7de5ad2c852e482c05105 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 22:33:22 +0200 Subject: [PATCH 01/27] Fix CA1200: replace cref="\w with cref=". --- .../Attribute/EntitySetAttribute.cs | 2 +- .../Attribute/EntityTypeAttribute.cs | 2 +- .../Attribute/KeyAttribute.cs | 4 +- .../Attribute/NamedStreamAttribute.cs | 2 +- .../Attribute/OriginalNameAttribute.cs | 2 +- src/Microsoft.OData.Client/BaseEntityType.cs | 2 +- .../Binding/DataServiceCollectionOfT.cs | 64 ++-- .../Binding/EntityChangedParams.cs | 2 +- .../Binding/EntityCollectionChangedParams.cs | 8 +- .../Binding/LoadCompletedEventArgs.cs | 4 +- .../ChangesetResponse.cs | 6 +- .../DataServiceActionQuery.cs | 4 +- .../DataServiceActionQueryOfT.cs | 12 +- .../DataServiceActionQuerySingleOfT.cs | 12 +- .../DataServiceClientException.cs | 12 +- .../DataServiceContext.cs | 358 +++++++++--------- .../DataServiceQuery.cs | 20 +- .../DataServiceQueryException.cs | 14 +- .../DataServiceQueryOfT.cs | 42 +- .../DataServiceQuerySingleOfT.cs | 14 +- .../DataServiceRequestArgs.cs | 2 +- .../DataServiceRequestException.cs | 14 +- .../DataServiceRequestOfT.cs | 6 +- .../DataServiceResponse.cs | 6 +- .../DataServiceStreamResponse.cs | 6 +- src/Microsoft.OData.Client/Descriptor.cs | 4 +- .../EntityDescriptor.cs | 10 +- src/Microsoft.OData.Client/LinkDescriptor.cs | 10 +- .../ODataCollectionMaterializer.cs | 8 +- .../MediaEntryAttribute.cs | 2 +- .../OperationParameter.cs | 2 +- .../OperationResponse.cs | 4 +- .../QueryOperationResponse.cs | 20 +- .../QueryOperationResponseOfT.cs | 6 +- .../ReadingWritingEntityEventArgs.cs | 10 +- .../SaveChangesOptions.cs | 2 +- .../SendingRequestEventArgs.cs | 4 +- .../StreamDescriptor.cs | 8 +- src/Microsoft.OData.Client/Utility.cs | 2 +- .../ODataBatchOperationResponseMessage.cs | 2 +- .../Batch/ODataBatchReader.cs | 8 +- .../Batch/ODataBatchWriter.cs | 10 +- .../JsonLight/ODataJsonLightDeltaReader.cs | 8 +- .../ODataCollectionWriter.cs | 4 +- .../ODataContentTypeException.cs | 8 +- src/Microsoft.OData.Core/ODataDeltaReader.cs | 8 +- .../ODataEntityReferenceLinks.cs | 4 +- .../ODataErrorException.cs | 22 +- src/Microsoft.OData.Core/ODataException.cs | 12 +- src/Microsoft.OData.Core/ODataInnerError.cs | 8 +- .../ODataMessageQuotas.cs | 4 +- .../ODataMessageReader.cs | 48 +-- .../ODataMessageReaderSettings.cs | 6 +- .../ODataMessageWriter.cs | 42 +- .../ODataMessageWriterSettings.cs | 6 +- src/Microsoft.OData.Core/ODataOperation.cs | 12 +- .../ODataParameterReader.cs | 4 +- .../ODataParameterReaderState.cs | 2 +- .../ODataParameterWriter.cs | 20 +- .../ODataParameterWriterCore.cs | 12 +- src/Microsoft.OData.Core/ODataReader.cs | 8 +- src/Microsoft.OData.Core/ODataUtils.cs | 2 +- .../ODataUnrecognizedPathException.cs | 2 +- .../Parsers/UriLiteralParsingException.cs | 6 +- src/Microsoft.Spatial/CompositeKey.cs | 2 +- src/Microsoft.Spatial/CoordinateSystem.cs | 4 +- .../Geography/GeoJsonObjectFormatter.cs | 4 +- src/Microsoft.Spatial/Geography/Geography.cs | 2 +- .../Geography/GeographyCollection.cs | 2 +- .../Geography/GeographyCurve.cs | 2 +- .../Geography/GeographyFullGlobe.cs | 2 +- .../Geography/GeographyLineString.cs | 2 +- .../Geography/GeographyMultiCurve.cs | 2 +- .../Geography/GeographyMultiLineString.cs | 2 +- .../Geography/GeographyMultiPoint.cs | 2 +- .../Geography/GeographyMultiPolygon.cs | 2 +- .../Geography/GeographyMultiSurface.cs | 2 +- .../Geography/GeographyPoint.cs | 2 +- .../Geography/GeographyPolygon.cs | 2 +- .../Geography/GeographyPosition.cs | 4 +- .../Geography/GeographySurface.cs | 2 +- src/Microsoft.Spatial/Geometry/Geometry.cs | 2 +- .../Geometry/GeometryCollection.cs | 2 +- .../Geometry/GeometryCurve.cs | 2 +- .../Geometry/GeometryLineString.cs | 2 +- .../Geometry/GeometryMultiCurve.cs | 2 +- .../Geometry/GeometryMultiLineString.cs | 2 +- .../Geometry/GeometryMultiPoint.cs | 2 +- .../Geometry/GeometryMultiPolygon.cs | 2 +- .../Geometry/GeometryPoint.cs | 2 +- .../Geometry/GeometryPolygon.cs | 2 +- .../Geometry/GeometryPosition.cs | 4 +- src/Microsoft.Spatial/Gml/GmlFormatter.cs | 2 +- src/Microsoft.Spatial/ParseErrorException.cs | 6 +- .../Spatial/SpatialBuilder.cs | 2 +- .../Spatial/SpatialFormatter.cs | 2 +- .../Spatial/SpatialPipeline.cs | 4 +- .../WellKnown/WellKnownTextSqlFormatter.cs | 2 +- 98 files changed, 531 insertions(+), 531 deletions(-) diff --git a/src/Microsoft.OData.Client/Attribute/EntitySetAttribute.cs b/src/Microsoft.OData.Client/Attribute/EntitySetAttribute.cs index 3c74dbe069..b8c915d0cc 100644 --- a/src/Microsoft.OData.Client/Attribute/EntitySetAttribute.cs +++ b/src/Microsoft.OData.Client/Attribute/EntitySetAttribute.cs @@ -22,7 +22,7 @@ public sealed class EntitySetAttribute : System.Attribute /// private readonly string entitySet; - /// Creates a new instance of the . + /// Creates a new instance of the . /// The entity set to which the class belongs. public EntitySetAttribute(string entitySet) { diff --git a/src/Microsoft.OData.Client/Attribute/EntityTypeAttribute.cs b/src/Microsoft.OData.Client/Attribute/EntityTypeAttribute.cs index ffc90014c9..2968495f62 100644 --- a/src/Microsoft.OData.Client/Attribute/EntityTypeAttribute.cs +++ b/src/Microsoft.OData.Client/Attribute/EntityTypeAttribute.cs @@ -12,7 +12,7 @@ namespace Microsoft.OData.Client [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)] public sealed class EntityTypeAttribute : System.Attribute { - /// Creates a new instance of the class. + /// Creates a new instance of the class. public EntityTypeAttribute() { } diff --git a/src/Microsoft.OData.Client/Attribute/KeyAttribute.cs b/src/Microsoft.OData.Client/Attribute/KeyAttribute.cs index 74df6de533..264c90b39a 100644 --- a/src/Microsoft.OData.Client/Attribute/KeyAttribute.cs +++ b/src/Microsoft.OData.Client/Attribute/KeyAttribute.cs @@ -18,7 +18,7 @@ public sealed class KeyAttribute : System.Attribute /// Name of the properties that form the key. private readonly ReadOnlyCollection keyNames; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The string that contains name of the key attribute. public KeyAttribute(string keyName) { @@ -27,7 +27,7 @@ public KeyAttribute(string keyName) this.keyNames = new ReadOnlyCollection(new string[1] { keyName }); } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// An array of string values that contain key attribute names. public KeyAttribute(params string[] keyNames) { diff --git a/src/Microsoft.OData.Client/Attribute/NamedStreamAttribute.cs b/src/Microsoft.OData.Client/Attribute/NamedStreamAttribute.cs index b32995ec91..864d0a7149 100644 --- a/src/Microsoft.OData.Client/Attribute/NamedStreamAttribute.cs +++ b/src/Microsoft.OData.Client/Attribute/NamedStreamAttribute.cs @@ -12,7 +12,7 @@ namespace Microsoft.OData.Client [AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = true)] public sealed class NamedStreamAttribute : Attribute { - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// The name of a binary stream that belongs to the attributed entity. public NamedStreamAttribute(string name) { diff --git a/src/Microsoft.OData.Client/Attribute/OriginalNameAttribute.cs b/src/Microsoft.OData.Client/Attribute/OriginalNameAttribute.cs index 20bdcaf4a2..3178981e7f 100644 --- a/src/Microsoft.OData.Client/Attribute/OriginalNameAttribute.cs +++ b/src/Microsoft.OData.Client/Attribute/OriginalNameAttribute.cs @@ -15,7 +15,7 @@ public sealed class OriginalNameAttribute : Attribute /// The original name. private readonly string originalName; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The string that contains original name of the variable. public OriginalNameAttribute(string originalName) { diff --git a/src/Microsoft.OData.Client/BaseEntityType.cs b/src/Microsoft.OData.Client/BaseEntityType.cs index 3f01183e56..092177f830 100644 --- a/src/Microsoft.OData.Client/BaseEntityType.cs +++ b/src/Microsoft.OData.Client/BaseEntityType.cs @@ -7,7 +7,7 @@ namespace Microsoft.OData.Client { /// - /// Base type of entity type to include for function and action invocation + /// Base type of entity type to include for function and action invocation /// public class BaseEntityType { diff --git a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs index 5649d073c5..f06db67e5e 100644 --- a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs +++ b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs @@ -18,7 +18,7 @@ namespace Microsoft.OData.Client #endregion Namespaces - /// Determines whether changes that are made to a are tracked. + /// Determines whether changes that are made to a are tracked. public enum TrackingMode { /// The collection should not track changes. @@ -62,52 +62,52 @@ public class DataServiceCollection : ObservableCollection #endregion Private fields - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Creates a default data service collection, with auto-change tracking enabled as soon as data is loaded into it. public DataServiceCollection() : this(null, null, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution. - /// A or LINQ query that returns an object that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution. + /// A or LINQ query that returns an object that are used to initialize the collection. public DataServiceCollection(DataServiceQuerySingle item) : this(null, item.Query, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. public DataServiceCollection(IEnumerable items) : this(null, items, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution and with the specified tracking mode. - /// A value that indicated whether or not changes made to items in the collection are automatically tracked. - /// A or LINQ query that returns an object that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution and with the specified tracking mode. + /// A value that indicated whether or not changes made to items in the collection are automatically tracked. + /// A or LINQ query that returns an object that are used to initialize the collection. public DataServiceCollection(TrackingMode trackingMode, DataServiceQuerySingle item) : this(null, item.Query, trackingMode, null, null, null) { } - /// Initializes a new instance of the class based on query execution and with the specified tracking mode. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. - /// A value that indicated whether or not changes made to items in the collection are automatically tracked. + /// Initializes a new instance of the class based on query execution and with the specified tracking mode. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// A value that indicated whether or not changes made to items in the collection are automatically tracked. public DataServiceCollection(IEnumerable items, TrackingMode trackingMode) : this(null, items, trackingMode, null, null, null) { } - /// Initializes a new instance of the class that uses the specified . - /// The used to track changes to objects in the collection. + /// Initializes a new instance of the class that uses the specified . + /// The used to track changes to objects in the collection. public DataServiceCollection(DataServiceContext context) : this(context, null, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class with the supplied change method delegates and that uses the specified . - /// The used to track items in the collection. + /// Initializes a new instance of the class with the supplied change method delegates and that uses the specified . + /// The used to track items in the collection. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. /// A delegate that encapsulates a method that is called when the collection of entities changes. @@ -120,9 +120,9 @@ public DataServiceCollection( { } - /// Initializes a new instance of the class based on query execution and with the supplied change method delegates. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. - /// A value that indicated whether or not changes made to items in the collection are automatically tracked. + /// Initializes a new instance of the class based on query execution and with the supplied change method delegates. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// A value that indicated whether or not changes made to items in the collection are automatically tracked. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. /// A delegate that encapsulates a method that is called when the collection of entities changes. @@ -136,10 +136,10 @@ public DataServiceCollection( { } - /// Initializes a new instance of the class based on query execution, with the supplied change method delegates, and that uses the supplied . - /// The used to track items in the collection. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. - /// A value that indicated whether or not changes made to items in the collection are automatically tracked. + /// Initializes a new instance of the class based on query execution, with the supplied change method delegates, and that uses the supplied . + /// The used to track items in the collection. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// A value that indicated whether or not changes made to items in the collection are automatically tracked. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. /// A delegate that encapsulates a method that is called when the collection of entities changes. @@ -232,7 +232,7 @@ internal DataServiceCollection( public event EventHandler LoadCompleted; /// Gets a continuation object that is used to return the next set of paged results. - /// A object that contains the URI to return the next set of paged results. + /// A object that contains the URI to return the next set of paged results. public DataServiceQueryContinuation Continuation { get { return this.continuation; } @@ -265,7 +265,7 @@ internal bool IsTracking #endregion Properties /// Loads a collection of entity objects into the collection. - /// Collection of entity objects to be added to the . + /// Collection of entity objects to be added to the . /// /// When tracking is enabled, the behavior of Load would be to attach all those entities that are not already tracked by the context /// associated with the collection. The operation will go deep into the input entities so that all related @@ -301,10 +301,10 @@ public void Load(IEnumerable items) } } - /// Asynchronously loads the collection by executing a .Supported only by the WCF Data Services 5.0 client for Silverlight. - /// The that, when executed, returns the entities to load into the collection. - /// When query is null or not a . - /// When a previous call to is not yet complete. + /// Asynchronously loads the collection by executing a .Supported only by the WCF Data Services 5.0 client for Silverlight. + /// The that, when executed, returns the entities to load into the collection. + /// When query is null or not a . + /// When a previous call to is not yet complete. /// This method uses the event-based async pattern. /// The method returns immediately without waiting for the query to complete. Then it calls the handler of the /// event exactly once on the UI thread. The event will be raised regardless @@ -380,7 +380,7 @@ public void LoadAsync(Uri requestUri) } /// Asynchronously loads items into the collection, when it represents the navigation property of an entity.Supported only by the WCF Data Services 5.0 client for Silverlight. - /// When the collection does not belong to a parent entity.-or-When the parent entity is not tracked by the .-or-When a previous call to is not yet complete. + /// When the collection does not belong to a parent entity.-or-When the parent entity is not tracked by the .-or-When a previous call to is not yet complete. /// This method loads the content of a property represented by this DataServiceCollection. /// If this instance is not associated with any property and entity the method will fail. /// This method uses the event-based async pattern. @@ -413,7 +413,7 @@ public void LoadAsync() } /// Loads the next page of data into the collection.Supported only by the WCF Data Services 5.0 client for Silverlight. - /// A value that is true when the Microsoft.OData.Client.DataServiceCollection has a continuation token; otherwise false. + /// A value that is true when the Microsoft.OData.Client.DataServiceCollection has a continuation token; otherwise false. /// This method is the same as except that it runs the query as defined /// by the continuation token of this collection. /// The method returns immediately without waiting for the query to complete. Then it calls the handler of the @@ -527,7 +527,7 @@ public void Clear(bool stopTracking) } } - /// Disables the tracking of all items in the collection. + /// Disables the tracking of all items in the collection. /// /// All the entitities in the root collection and all it's related objects will be untracked at the /// end of this operation. diff --git a/src/Microsoft.OData.Client/Binding/EntityChangedParams.cs b/src/Microsoft.OData.Client/Binding/EntityChangedParams.cs index 6d8e7de11b..673fb9179a 100644 --- a/src/Microsoft.OData.Client/Binding/EntityChangedParams.cs +++ b/src/Microsoft.OData.Client/Binding/EntityChangedParams.cs @@ -6,7 +6,7 @@ namespace Microsoft.OData.Client { - /// Encapsulates the arguments of a delegate + /// Encapsulates the arguments of a delegate [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704", Justification = "Name gets too long with Parameters")] public sealed class EntityChangedParams { diff --git a/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs b/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs index 0c3dcbe411..9e08abb650 100644 --- a/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs +++ b/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs @@ -11,7 +11,7 @@ namespace Microsoft.OData.Client using System.Collections.Specialized; #endregion - /// Encapsulates the arguments of a delegate. + /// Encapsulates the arguments of a delegate. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704", Justification = "Name gets too long with Parameters")] public sealed class EntityCollectionChangedParams { @@ -84,7 +84,7 @@ internal EntityCollectionChangedParams( #region Properties - /// The associated with the that has changed. + /// The associated with the that has changed. /// The context associated with the collection that has changed public DataServiceContext Context { @@ -126,14 +126,14 @@ public string TargetEntitySet get { return this.targetEntitySet; } } - /// The that has changed. + /// The that has changed. /// A reference to the collection that has changed. public ICollection Collection { get { return this.collection; } } - /// A value that indicates how the collection was changed. + /// A value that indicates how the collection was changed. /// A value that indicates how the collection was changed. public NotifyCollectionChangedAction Action { diff --git a/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs b/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs index 9dea797296..a7b909822e 100644 --- a/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs +++ b/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs @@ -11,7 +11,7 @@ namespace Microsoft.OData.Client using System.ComponentModel; #endregion Namespaces. - /// Used as the class for the event.Supported only by the WCF Data Services 5.0 client for Silverlight. + /// Used as the class for the event.Supported only by the WCF Data Services 5.0 client for Silverlight. public sealed class LoadCompletedEventArgs : AsyncCompletedEventArgs { /// The which represents @@ -46,7 +46,7 @@ internal LoadCompletedEventArgs( } /// Gets the response to an asynchronous load operation.Supported only by the WCF Data Services 5.0 client for Silverlight. - /// A that represents the response to a load operation. + /// A that represents the response to a load operation. /// Accessing this property will throw exception if the Load operation failed /// or it was canceled. public QueryOperationResponse QueryOperationResponse diff --git a/src/Microsoft.OData.Client/ChangesetResponse.cs b/src/Microsoft.OData.Client/ChangesetResponse.cs index 7b94799586..dbc39fd567 100644 --- a/src/Microsoft.OData.Client/ChangesetResponse.cs +++ b/src/Microsoft.OData.Client/ChangesetResponse.cs @@ -17,7 +17,7 @@ public sealed class ChangeOperationResponse : OperationResponse /// Descriptor containing the response object. private Descriptor descriptor; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// HTTP headers /// response object containing information about resources that got changed. internal ChangeOperationResponse(HeaderCollection headers, Descriptor descriptor) @@ -27,8 +27,8 @@ internal ChangeOperationResponse(HeaderCollection headers, Descriptor descriptor this.descriptor = descriptor; } - /// Gets the or modified by a change operation. - /// An or modified by a change operation. + /// Gets the or modified by a change operation. + /// An or modified by a change operation. public Descriptor Descriptor { get { return this.descriptor; } diff --git a/src/Microsoft.OData.Client/DataServiceActionQuery.cs b/src/Microsoft.OData.Client/DataServiceActionQuery.cs index ae4c3ba1b1..f49906a5bc 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQuery.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQuery.cs @@ -70,9 +70,9 @@ public Task ExecuteAsync() return Context.ExecuteAsync(this.RequestUri, XmlConstants.HttpMethodPost, Parameters); } - /// Called to complete the . + /// Called to complete the . /// The result of the operation. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. /// This method should be used in combination with the BeginExecute overload which /// expects the request uri to end with an action that returns void. public OperationResponse EndExecute(IAsyncResult asyncResult) diff --git a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs index a7d8eaad47..a539b72420 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs @@ -73,14 +73,14 @@ public Task> ExecuteAsync() return Context.ExecuteAsync(this.RequestUri, XmlConstants.HttpMethodPost, false, Parameters); } - /// Called to complete the . + /// Called to complete the . /// The results returned by the query operation. /// - /// object. - /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. - /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// object. + /// When is null. + /// When did not originate from this instance. -or- When the method was previously called. + /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. + /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] public IEnumerable EndExecute(IAsyncResult asyncResult) { diff --git a/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs b/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs index a36ed9c056..8f5fad9565 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs @@ -73,14 +73,14 @@ public Task GetValueAsync() return Task.Factory.FromAsync(this.BeginGetValue, this.EndGetValue, null); } - /// Called to complete the . + /// Called to complete the . /// The results returned by the query operation. /// - /// object. - /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. - /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// object. + /// When is null. + /// When did not originate from this instance. -or- When the method was previously called. + /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. + /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] public T EndGetValue(IAsyncResult asyncResult) { diff --git a/src/Microsoft.OData.Client/DataServiceClientException.cs b/src/Microsoft.OData.Client/DataServiceClientException.cs index 93cc75b2f7..769a47d4e4 100644 --- a/src/Microsoft.OData.Client/DataServiceClientException.cs +++ b/src/Microsoft.OData.Client/DataServiceClientException.cs @@ -30,20 +30,20 @@ public sealed class DataServiceClientException : InvalidOperationException #region Constructors - /// Initializes a new instance of the class with a system-supplied message that describes the error. + /// Initializes a new instance of the class with a system-supplied message that describes the error. public DataServiceClientException() : this(Strings.DataServiceException_GeneralError) { } - /// Initializes a new instance of the class with a specified message that describes the error. + /// Initializes a new instance of the class with a specified message that describes the error. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. public DataServiceClientException(string message) : this(message, null) { } - /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. + /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. public DataServiceClientException(string message, Exception innerException) @@ -51,7 +51,7 @@ public DataServiceClientException(string message, Exception innerException) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The string value that contains the error message. /// The integer value that contains status code. public DataServiceClientException(string message, int statusCode) @@ -59,7 +59,7 @@ public DataServiceClientException(string message, int statusCode) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The string value that contains the error message. /// The System.Exception object that contains the inner exception. /// The integer value that contains status code. @@ -77,7 +77,7 @@ public DataServiceClientException(string message, Exception innerException, int #region Public properties - /// Gets the HTTP error status code returned after . + /// Gets the HTTP error status code returned after . /// An integer value that represents the exception. public int StatusCode { diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index 94d6b1f684..32d52cbf1c 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -47,7 +47,7 @@ internal enum UndeclaredPropertyBehavior } /// - /// The represents the runtime context of the data service. + /// The represents the runtime context of the data service. /// [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506", Justification = "Central class of the API, likely to have many cross-references")] public class DataServiceContext @@ -178,17 +178,17 @@ public class DataServiceContext #region ctor - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// It is expected that the BaseUri or ResolveEntitySet properties will be set before using the newly created context. public DataServiceContext() : this(null) { } - /// Initializes a new instance of the class with the specified . + /// Initializes a new instance of the class with the specified . /// An absolute URI that identifies the root of a data service. - /// When the is null. - /// If the is not an absolute URI -or-If the is a well formed URI without a query or query fragment. + /// When the is null. + /// If the is not an absolute URI -or-If the is a well formed URI without a query or query fragment. /// /// The library expects the Uri to point to the root of a data service, /// but does not issue a request to validate it does indeed identify the root of a service. @@ -202,9 +202,9 @@ public DataServiceContext(Uri serviceRoot) { } - /// Initializes a new instance of the class with the specified and targeting the specific . + /// Initializes a new instance of the class with the specified and targeting the specific . /// An absolute URI that identifies the root of a data service. - /// A value that is the maximum protocol version that the client understands. + /// A value that is the maximum protocol version that the client understands. /// /// The library expects the Uri to point to the root of a data service, /// but does not issue a request to validate it does indeed identify the root of a service. @@ -330,7 +330,7 @@ public virtual event EventHandler BuildingRequest #region BaseUri, Credentials, MergeOption, Timeout, Links, Entities, Prefer header /// Gets or sets the delegate method that is used to resolve the entity set URI when the value cannot be determined from an edit-link or self-link URI. - /// A delegate that takes a and returns a value. + /// A delegate that takes a and returns a value. public virtual Func ResolveEntitySet { get @@ -371,7 +371,7 @@ public virtual Uri BaseUri } /// Gets or sets whether the client requests that the data service return entity data in the response message to a change request. - /// A object that determines whether to request a response form the data service. + /// A object that determines whether to request a response form the data service. /// Whether POST/PUT/PATCH requests will process response from the server. Corresponds to Prefer header in HTTP POST/PUT/PATCH request. public virtual DataServiceResponsePreference AddAndUpdateResponsePreference { @@ -408,7 +408,7 @@ internal set } } - /// Gets or sets the authentication information that is used by each query created by using the object. + /// Gets or sets the authentication information that is used by each query created by using the object. /// The base authentication interface for retrieving credentials for Web client authentication. public virtual System.Net.ICredentials Credentials { @@ -417,7 +417,7 @@ public virtual System.Net.ICredentials Credentials } /// Gets or sets the option for sending entity parameters to service. - /// One of the members of the enumeration. + /// One of the members of the enumeration. public virtual EntityParameterSendOption EntityParameterSendOption { get { return this.entityParameterSendOption; } @@ -425,7 +425,7 @@ public virtual EntityParameterSendOption EntityParameterSendOption } /// Gets or sets the synchronization option for receiving entities from a data service. - /// One of the members of the enumeration. + /// One of the members of the enumeration. /// /// Used to specify a synchronization strategy when sending/receiving entities to/from a data service. /// This value is read by the deserialization component of the client prior to materializing objects. @@ -439,7 +439,7 @@ public virtual MergeOption MergeOption set { this.mergeOption = Util.CheckEnumerationValue(value, "MergeOption"); } } - /// Gets a value that indicates whether the is currently applying changes to tracked objects. + /// Gets a value that indicates whether the is currently applying changes to tracked objects. /// Returns true when changes are currently being applied; otherwise returns false. public virtual bool ApplyingChanges { @@ -448,7 +448,7 @@ public virtual bool ApplyingChanges } /// Gets or sets a function to override the default type resolution strategy used by the client library when you send entities to a data service. - /// Returns a string that contains the name of the . + /// Returns a string that contains the name of the . /// /// Enables one to override the default type resolution strategy used by the client library. /// Set this property to a delegate which identifies a function that resolves @@ -543,8 +543,8 @@ public virtual bool UsePostTunneling set { this.postTunneling = value; } } - /// Gets the collection of all associations or links currently being tracked by the object. - /// A collection of objects that represent all associations or links current being tracked by the current being tracked by the object. + /// Gets the collection of all associations or links currently being tracked by the object. + /// A collection of objects that represent all associations or links current being tracked by the current being tracked by the object. /// If no links are being tracked, a collection with 0 elements is returned. public virtual ReadOnlyCollection Links { @@ -554,8 +554,8 @@ public virtual ReadOnlyCollection Links } } - /// Gets a list of all the resources currently being tracked by the . - /// A list of objects that represent all the resources currently being tracked by the . + /// Gets a list of all the resources currently being tracked by the . + /// A list of objects that represent all the resources currently being tracked by the . /// If no resources are being tracked, a collection with 0 elements is returned. public virtual ReadOnlyCollection Entities { @@ -575,7 +575,7 @@ public virtual ReadOnlyCollection Entities } } - /// Gets or sets the values that are used by the method. + /// Gets or sets the values that are used by the method. /// The current options for the save changes operation. public virtual SaveChangesOptions SaveChangesDefaultOptions { @@ -594,7 +594,7 @@ public virtual SaveChangesOptions SaveChangesDefaultOptions #endregion /// Gets or sets whether an exception is raised when a 404 error (resource not found) is returned by the data service. - /// When set to true, the client library returns an empty set instead of raising a when the data service returns an HTTP 404: Resource Not Found error. + /// When set to true, the client library returns an empty set instead of raising a when the data service returns an HTTP 404: Resource Not Found error. public virtual bool IgnoreResourceNotFoundException { get { return this.ignoreResourceNotFoundException; } @@ -671,7 +671,7 @@ internal UndeclaredPropertyBehavior UndeclaredPropertyBehavior internal bool UseDefaultCredentials { get; set; } /// Gets a value that indicates the type of HTTP implementation to use when accessing the data service in Silverlight. - /// A value that indicates the HTTP implementation to use when accessing the data service. + /// A value that indicates the HTTP implementation to use when accessing the data service. /// Default value is HttpStack.Auto internal HttpStack HttpStack { @@ -733,7 +733,7 @@ internal ClientEdmModel Model /// - /// Indicates whether user is using to track changes. + /// Indicates whether user is using to track changes. /// internal bool UsingDataServiceCollection { get; set; } @@ -925,8 +925,8 @@ public virtual bool TryGetAnnotation(Expression expressio #region Entity and Link Tracking - /// Gets the for the supplied entity object. - /// The instance for the , or null if an does not exist for the object. + /// Gets the for the supplied entity object. + /// The instance for the , or null if an does not exist for the object. /// The object for which to return the entity descriptor. public virtual EntityDescriptor GetEntityDescriptor(object entity) { @@ -934,8 +934,8 @@ public virtual EntityDescriptor GetEntityDescriptor(object entity) return this.entityTracker.TryGetEntityDescriptor(entity); } - /// Gets the for a specific link that defines the relationship between two entities. - /// The instance for the specified relationship, or null if a does not exist for the relationship. + /// Gets the for a specific link that defines the relationship between two entities. + /// The instance for the specified relationship, or null if a does not exist for the relationship. /// Source object in the link /// The name of the navigation property on the object that returns the related object. /// The related entity. @@ -951,8 +951,8 @@ public virtual LinkDescriptor GetLinkDescriptor(object source, string sourceProp #endregion #region CancelRequest - /// Attempts to cancel the operation that is associated with the supplied object. - /// The object from the operation being canceled. + /// Attempts to cancel the operation that is associated with the supplied object. + /// The object from the operation being canceled. /// DataServiceContext is not safe to use until asyncResult.IsCompleted is true. public virtual void CancelRequest(IAsyncResult asyncResult) { @@ -1002,7 +1002,7 @@ public virtual void CancelRequest(IAsyncResult asyncResult) #region CreateQuery /// Creates a data service query for data of a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string that resolves to a URI. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) @@ -1018,7 +1018,7 @@ public virtual DataServiceQuery CreateQuery(string entitySetName) } /// Creates a data service query for a function with return type in a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string ends with function invocation that resolves to a URI. /// Whether this function query is composable /// The type returned by the query @@ -1036,7 +1036,7 @@ public virtual DataServiceQuery CreateQuery(string resourcePath, bool isCo } /// Creates a data service query for a function invocation that returns a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) public virtual DataServiceQuery CreateFunctionQuery() @@ -1051,7 +1051,7 @@ public virtual DataServiceQuery CreateFunctionQuery() /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string path, string functionName, bool isComposable, params UriOperationParameter[] parameters) { this.CreateRequestArgsAndFireBuildingRequest(null, null, new HeaderCollection(), this.HttpStack, null /*descriptor*/); @@ -1066,7 +1066,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string path, string fu /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string path, string functionName, bool isComposable, params UriOperationParameter[] parameters) { this.CreateRequestArgsAndFireBuildingRequest(null, null, new HeaderCollection(), this.HttpStack, null /*descriptor*/); @@ -1076,7 +1076,7 @@ public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string pat } /// Creates a data service query for singleton data of a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string that resolves to a URI. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) @@ -1129,7 +1129,7 @@ public virtual Task LoadPropertyAsync(object entity, str } /// Asynchronously loads a page of related entities from the data service by using the supplied next link URI. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. /// The URI used to load the next results page. @@ -1153,10 +1153,10 @@ public virtual Task LoadPropertyAsync(object entity, str } /// Asynchronously loads the next page of related entities from the data service by using the supplied query continuation object. - /// An that represents the status of the operation. + /// An that represents the status of the operation. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entity data to return from the data service. + /// A object that represents the next page of related entity data to return from the data service. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. public virtual IAsyncResult BeginLoadProperty(object entity, string propertyName, DataServiceQueryContinuation continuation, AsyncCallback callback, object state) @@ -1171,15 +1171,15 @@ public virtual IAsyncResult BeginLoadProperty(object entity, string propertyName /// A Task that represents the response to the load operation. /// The entity that contains the property to load. /// The name of the property on the specified entity to load. - /// A object that represents the next page of related entity data to return from the data service. + /// A object that represents the next page of related entity data to return from the data service. public virtual Task LoadPropertyAsync(object entity, string propertyName, DataServiceQueryContinuation continuation) { return Task.Factory.FromAsync(this.BeginLoadProperty, this.EndLoadProperty, entity, propertyName, continuation, null); } - /// Called to complete the operation. + /// Called to complete the operation. /// The response to the load operation. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. public virtual QueryOperationResponse EndLoadProperty(IAsyncResult asyncResult) { LoadPropertyResult response = BaseAsyncResult.EndExecute(this, Util.LoadPropertyMethodName, asyncResult); @@ -1207,11 +1207,11 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert } /// Loads a page of related entities by using the supplied next link URI. - /// An instance of that contains the results of the request. + /// An instance of that contains the results of the request. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. /// The URI that is used to load the next results page. - /// When is in a or state. + /// When is in a or state. /// /// If is in in detached or added state, this method will throw an InvalidOperationException /// since there is nothing it can load from the server. @@ -1233,8 +1233,8 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert /// The response that contains the next page of related entity data. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entities to load from the data service. - /// When is in the or state. + /// A object that represents the next page of related entities to load from the data service. + /// When is in the or state. /// /// If is in in detached or added state, this method will throw an InvalidOperationException /// since there is nothing it can load from the server. @@ -1256,9 +1256,9 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert /// The response that contains the next page of related entity data. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entities to load from the data service. + /// A object that represents the next page of related entities to load from the data service. /// Element type of collection to load. - /// When is in the or state. + /// When is in the or state. /// /// If is in in detached or added state, this method will throw an InvalidOperationException /// since there is nothing it can load from the server. @@ -1286,8 +1286,8 @@ public virtual QueryOperationResponse LoadProperty(object entity, string p /// Gets the URI that is used to return a binary data stream. /// The read URI of the binary data stream. /// The entity that has a related binary stream to retrieve. - /// If the entity specified is null. - /// The is not tracked by this . + /// If the entity specified is null. + /// The is not tracked by this . /// If the specified entity is a Media Link Entry, this method will return an URI which can be used to access the content of the Media Resource. This URI should only be used to GET/Read the content of the MR. It may not respond to POST/PUT/DELETE requests. public virtual Uri GetReadStreamUri(object entity) { @@ -1355,13 +1355,13 @@ public virtual Uri GetReadStreamUri(object entity, string name) #region GetReadStream, BeginGetReadStream, EndGetReadStream /// Asynchronously gets the binary data stream that belongs to the specified entity, by using the specified message headers. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// The entity that has a the binary data stream to retrieve. - /// Instance of the class that contains settings for the HTTP request message. + /// Instance of the class that contains settings for the HTTP request message. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. - /// Any of the parameters supplied to the method is null. - /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary data stream. + /// Any of the parameters supplied to the method is null. + /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary data stream. public virtual IAsyncResult BeginGetReadStream(object entity, DataServiceRequestArgs args, AsyncCallback callback, object state) { GetReadStreamResult result = this.CreateGetReadStreamResult(entity, args, callback, state, null /*name*/); @@ -1370,21 +1370,21 @@ public virtual IAsyncResult BeginGetReadStream(object entity, DataServiceRequest } /// Asynchronously gets the binary data stream that belongs to the specified entity, by using the specified message headers. - /// A Task that represents an instance of which contains the response stream along with its metadata. + /// A Task that represents an instance of which contains the response stream along with its metadata. /// The entity that has a the binary data stream to retrieve. - /// Instance of the class that contains settings for the HTTP request message. - /// Any of the parameters supplied to the method is null. - /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary data stream. + /// Instance of the class that contains settings for the HTTP request message. + /// Any of the parameters supplied to the method is null. + /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary data stream. public virtual Task GetReadStreamAsync(object entity, DataServiceRequestArgs args) { return Task.Factory.FromAsync(this.BeginGetReadStream, this.EndGetReadStream, entity, args, null); } /// Asynchronously gets a named binary data stream that belongs to the specified entity, by using the specified message headers. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// The entity that has the binary data stream to retrieve. /// The name of the binary stream to request. - /// Instance of the class that contains settings for the HTTP request message. + /// Instance of the class that contains settings for the HTTP request message. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. public virtual IAsyncResult BeginGetReadStream(object entity, string name, DataServiceRequestArgs args, AsyncCallback callback, object state) @@ -1397,18 +1397,18 @@ public virtual IAsyncResult BeginGetReadStream(object entity, string name, DataS } /// Asynchronously gets the binary data stream that belongs to the specified entity, by using the specified message headers. - /// A task that represents an instance of which contains the response stream along with its metadata. + /// A task that represents an instance of which contains the response stream along with its metadata. /// The entity that has a the binary data stream to retrieve. /// The name of the binary stream to request. - /// Instance of the class that contains settings for the HTTP request message. + /// Instance of the class that contains settings for the HTTP request message. public virtual Task GetReadStreamAsync(object entity, string name, DataServiceRequestArgs args) { return Task.Factory.FromAsync(this.BeginGetReadStream, this.EndGetReadStream, entity, name, args, null); } /// Called to complete the asynchronous operation of retrieving a binary data stream. - /// An instance of which contains the response stream along with its metadata. - /// The result from the operation that contains the binary data stream. + /// An instance of which contains the response stream along with its metadata. + /// The result from the operation that contains the binary data stream. /// The method will block if the request have not finished yet. public virtual DataServiceStreamResponse EndGetReadStream(IAsyncResult asyncResult) { @@ -1418,10 +1418,10 @@ public virtual DataServiceStreamResponse EndGetReadStream(IAsyncResult asyncResu #if !PORTABLELIB /// Gets the binary data stream that belongs to the specified entity. - /// An instance of that represents the response. + /// An instance of that represents the response. /// The entity that has the binary stream to retrieve. - /// The is null. - /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary stream. + /// The is null. + /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary stream. public virtual DataServiceStreamResponse GetReadStream(object entity) { DataServiceRequestArgs args = new DataServiceRequestArgs(); @@ -1429,12 +1429,12 @@ public virtual DataServiceStreamResponse GetReadStream(object entity) } /// Gets the binary data stream that belongs to the specified entity, by using the specified Content-Type message header. - /// An instance of that represents the response. + /// An instance of that represents the response. /// The entity that has the binary data stream to retrieve. /// The Content-Type of the binary data stream requested from the data service, specified in the Accept header. - /// + /// /// is null.-or- is null. - /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related stream. + /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related stream. public virtual DataServiceStreamResponse GetReadStream(object entity, string acceptContentType) { Util.CheckArgumentNullAndEmpty(acceptContentType, "acceptContentType"); @@ -1444,12 +1444,12 @@ public virtual DataServiceStreamResponse GetReadStream(object entity, string acc } /// Gets binary data stream for the specified entity by using the specified message headers. - /// An instance of that represents the response. + /// An instance of that represents the response. /// The entity that has the binary stream to retrieve. - /// Instance of class that contains settings for the HTTP request message. - /// + /// Instance of class that contains settings for the HTTP request message. + /// /// is null.-or- is null. - /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary stream. + /// The is not tracked by this .-or-The is in the state.-or-The is not a Media Link Entry and does not have a related binary stream. public virtual DataServiceStreamResponse GetReadStream(object entity, DataServiceRequestArgs args) { GetReadStreamResult result = this.CreateGetReadStreamResult(entity, args, null, null, null); @@ -1457,10 +1457,10 @@ public virtual DataServiceStreamResponse GetReadStream(object entity, DataServic } /// Gets a named binary data stream that belongs to the specified entity, by using the specified Content-Type message header. - /// An instance of that represents the response. + /// An instance of that represents the response. /// The entity that has the binary data stream to retrieve. /// The name of the binary stream to request. - /// Instance of class that contains settings for the HTTP request message. + /// Instance of class that contains settings for the HTTP request message. /// Either entity or args parameters are null. /// The specified entity is either not tracked, is in the added state. public virtual DataServiceStreamResponse GetReadStream(object entity, string name, DataServiceRequestArgs args) @@ -1478,12 +1478,12 @@ public virtual DataServiceStreamResponse GetReadStream(object entity, string nam /// Sets a binary data stream that belongs to the specified entity, with the specified Content-Type and Slug headers in the request message. /// The entity to which the data stream belongs. - /// The from which to read the binary data. - /// A value that determines whether the data stream is closed when the method is completed. + /// The from which to read the binary data. + /// A value that determines whether the data stream is closed when the method is completed. /// The Content-Type header value for the request message. /// The Slug header value for the request message. - /// Any of the parameters supplied to the method are null. - /// The is not being tracked by this instance. -or-The entity has the applied. + /// Any of the parameters supplied to the method are null. + /// The is not being tracked by this instance. -or-The entity has the applied. /// Calling this method marks the entity as media link resource (MLE). It also marks the entity as modified /// so that it will participate in the next call to SaveChanges. public virtual void SetSaveStream(object entity, Stream stream, bool closeStream, string contentType, string slug) @@ -1499,11 +1499,11 @@ public virtual void SetSaveStream(object entity, Stream stream, bool closeStream /// Sets a binary data stream for the specified entity, with the specified headers in the request message. /// The entity to which the binary stream belongs. - /// The from which to read the binary data. - /// A value that determines whether the data stream is closed when the method is completed. - /// An instance of the class that contains settings for the HTTP request message. - /// Any of the parameters supplied to the method are null. - /// The is not being tracked by this instance. -or-The has the applied. + /// The from which to read the binary data. + /// A value that determines whether the data stream is closed when the method is completed. + /// An instance of the class that contains settings for the HTTP request message. + /// Any of the parameters supplied to the method are null. + /// The is not being tracked by this instance. -or-The has the applied. /// Calling this method marks the entity as media link resource (MLE). It also marks the entity as modified /// so that it will participate in the next call to SaveChanges. public virtual void SetSaveStream(object entity, Stream stream, bool closeStream, DataServiceRequestArgs args) @@ -1548,8 +1548,8 @@ public virtual void SetSaveStream(object entity, Stream stream, bool closeStream /// Sets a binary data stream for the specified entity. /// The entity to which the binary stream belongs. /// The name of the binary stream to save. - /// The from which to read the binary data. - /// A value that determines whether the data stream is closed when the method is completed. + /// The from which to read the binary data. + /// A value that determines whether the data stream is closed when the method is completed. /// The Content-Type header value for the request message. /// The entity is not being tracked or name is an empty string. /// Any of the arguments is null. @@ -1564,9 +1564,9 @@ public virtual void SetSaveStream(object entity, string name, Stream stream, boo /// Sets a named binary data stream that belongs to the specified entity, with the specified headers in the request message. /// The entity to which the binary stream belongs. /// The name of the binary stream to save. - /// The from which to read the binary data. - /// A value that determines whether the data stream is closed when the method is completed. - /// An instance of the class that contains settings for the HTTP request message. + /// The from which to read the binary data. + /// A value that determines whether the data stream is closed when the method is completed. + /// An instance of the class that contains settings for the HTTP request message. /// Calling this method marks the entity as media link resource (MLE). It also marks the entity as modified /// so that it will participate in the next call to SaveChanges. /// The entity is not being tracked. The entity has the MediaEntry attribute @@ -1603,7 +1603,7 @@ public virtual void SetSaveStream(object entity, string name, Stream stream, boo #region ExecuteBatch, BeginExecuteBatch, EndExecuteBatch /// Asynchronously submits a group of queries as a batch to the data service. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// The delegate that is called when a response to the batch request is received. /// User-defined state object that is used to pass context data to the callback method. /// The array of query requests to include in the batch request. @@ -1613,10 +1613,10 @@ public virtual IAsyncResult BeginExecuteBatch(AsyncCallback callback, object sta } /// Asynchronously submits a group of queries as a batch to the data service. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// The delegate that is called when a response to the batch request is received. /// User-defined state object that is used to pass context data to the callback method. - /// A member of the enumeration for how the client can save the pending set of changes. + /// A member of the enumeration for how the client can save the pending set of changes. /// The array of query requests to include in the batch request. public virtual IAsyncResult BeginExecuteBatch(AsyncCallback callback, object state, SaveChangesOptions options, params DataServiceRequest[] queries) { @@ -1636,7 +1636,7 @@ public virtual Task ExecuteBatchAsync(params DataServiceReq /// Asynchronously submits a group of queries as a batch to the data service. /// An Task that represents the DataServiceResult object that indicates the result of the batch operation. - /// A member of the enumeration for how the client can save the pending set of changes. + /// A member of the enumeration for how the client can save the pending set of changes. /// The array of query requests to include in the batch request. public virtual Task ExecuteBatchAsync(SaveChangesOptions options, params DataServiceRequest[] queries) { @@ -1648,9 +1648,9 @@ public virtual Task ExecuteBatchAsync(SaveChangesOptions op return Task.Factory.FromAsync((callback, state) => this.BeginExecuteBatch(callback, state, options, queries), this.EndExecuteBatch, null); } - /// Called to complete the . + /// Called to complete the . /// The DataServiceResult object that indicates the result of the batch operation. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. public virtual DataServiceResponse EndExecuteBatch(IAsyncResult asyncResult) { BatchSaveResult result = BaseAsyncResult.EndExecute(this, "ExecuteBatch", asyncResult); @@ -1660,7 +1660,7 @@ public virtual DataServiceResponse EndExecuteBatch(IAsyncResult asyncResult) #if !PORTABLELIB // Synchronous methods not available /// Synchronously submits a group of queries as a batch to the data service. /// The response to the batch operation. - /// Array of objects that make up the queries. + /// Array of objects that make up the queries. public virtual DataServiceResponse ExecuteBatch(params DataServiceRequest[] queries) { Util.CheckArgumentNotEmpty(queries, "queries"); @@ -1669,8 +1669,8 @@ public virtual DataServiceResponse ExecuteBatch(params DataServiceRequest[] quer /// Synchronously submits a group of queries as a batch to the data service. /// The response to the batch operation. - /// A member of the enumeration for how the client can save the pending set of changes. - /// Array of objects that make up the queries. + /// A member of the enumeration for how the client can save the pending set of changes. + /// Array of objects that make up the queries. public virtual DataServiceResponse ExecuteBatch(SaveChangesOptions options, params DataServiceRequest[] queries) { Util.CheckArgumentNotEmpty(queries, "queries"); @@ -1790,8 +1790,8 @@ public virtual Task> ExecuteAsync(Uri requestUri } /// Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. - /// An that represents the status of the operation. - /// A object that represents the next page of data to return from the data service. + /// An that represents the status of the operation. + /// A object that represents the next page of data to return from the data service. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. /// The type returned by the query. @@ -1806,22 +1806,22 @@ public virtual IAsyncResult BeginExecute(DataServiceQueryContinuation cont /// Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. /// A task that represents the results returned by the query operation. - /// A object that represents the next page of data to return from the data service. + /// A object that represents the next page of data to return from the data service. /// The type returned by the query. public virtual Task> ExecuteAsync(DataServiceQueryContinuation continuation) { return Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, continuation, null); } - /// Called to complete the . + /// Called to complete the . /// The results returned by the query operation. /// - /// object. + /// object. /// The type returned by the query. - /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. - /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// When is null. + /// When did not originate from this instance. -or- When the method was previously called. + /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. + /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] public virtual IEnumerable EndExecute(IAsyncResult asyncResult) { @@ -1829,9 +1829,9 @@ public virtual IEnumerable EndExecute(IAsyncResult asyncResu return DataServiceRequest.EndExecute(this, this, Util.ExecuteMethodName, asyncResult); } - /// Called to complete the . + /// Called to complete the . /// The result of the operation. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. /// This method should be used in combination with the BeginExecute overload which /// expects the request uri to end with a service operation or service action that returns void. public virtual OperationResponse EndExecute(IAsyncResult asyncResult) @@ -1851,11 +1851,11 @@ public virtual OperationResponse EndExecute(IAsyncResult asyncResult) /// The results of the query operation. /// The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters. /// The type that the query returns. - /// When a response is not received from a request to the . - /// When is null. - /// When is not a valid URI for the data service. - /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// When a response is not received from a request to the . + /// When is null. + /// When is not a valid URI for the data service. + /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. + /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] public virtual IEnumerable Execute(Uri requestUri) { @@ -1867,7 +1867,7 @@ public virtual IEnumerable Execute(Uri requestUri) /// Sends a request to the data service to retrieve the next page of data in a paged query result. /// The response that contains the next page of data in the query result. - /// A object that represents the next page of data to return from the data service. + /// A object that represents the next page of data to return from the data service. /// The type returned by the query. public virtual QueryOperationResponse Execute(DataServiceQueryContinuation continuation) { @@ -1903,7 +1903,7 @@ public virtual OperationResponse Execute(Uri requestUri, string httpMethod, para } /// Sends a request to the data service to execute a specific URI by using a specific HTTP method. - /// Returns . + /// Returns . /// The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters. /// The HTTP data transfer method used by the client. /// Attribute used on service operations to specify that they return a single instance of their return element. @@ -1921,7 +1921,7 @@ public virtual IEnumerable Execute(Uri requestUri, string ht } /// Sends a request to the data service to execute a specific URI by using a specific HTTP method. - /// Returns . + /// Returns . /// The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters. /// The HTTP data transfer method used by the client. /// The operation parameters used. @@ -1943,7 +1943,7 @@ public virtual IEnumerable Execute(Uri requestUri, string ht #region SaveChanges, BeginSaveChanges, EndSaveChanges - /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. + /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. /// An IAsyncResult that represents the status of the asynchronous operation. /// The delegate to call when the operation is completed. /// The user-defined state object that is used to pass context data to the callback method. @@ -1952,16 +1952,16 @@ public virtual IAsyncResult BeginSaveChanges(AsyncCallback callback, object stat return this.BeginSaveChanges(this.SaveChangesDefaultOptions, callback, state); } - /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. - /// A task that represents a object that indicates the result of the batch operation. + /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. + /// A task that represents a object that indicates the result of the batch operation. public virtual Task SaveChangesAsync() { return SaveChangesAsync(this.SaveChangesDefaultOptions); } - /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. - /// A task that represents a object that indicates the result of the batch operation. - /// A member of the enumeration for how the client can save the pending set of changes. + /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. + /// A task that represents a object that indicates the result of the batch operation. + /// A member of the enumeration for how the client can save the pending set of changes. /// The delegate to call when the operation is completed. /// The user-defined state object that is used to pass context data to the callback method. /// @@ -1984,17 +1984,17 @@ public virtual IAsyncResult BeginSaveChanges(SaveChangesOptions options, AsyncCa return result; } - /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. - /// A task that represents a object that indicates the result of the batch operation. - /// A member of the enumeration for how the client can save the pending set of changes. + /// Asynchronously submits the pending changes to the data service collected by the since the last time changes were saved. + /// A task that represents a object that indicates the result of the batch operation. + /// A member of the enumeration for how the client can save the pending set of changes. public virtual Task SaveChangesAsync(SaveChangesOptions options) { return Task.Factory.FromAsync(this.BeginSaveChanges, this.EndSaveChanges, options, null); } - /// Called to complete the operation. - /// A object that indicates the result of the batch operation. - /// An that represents the status of the asynchronous operation. + /// Called to complete the operation. + /// A object that indicates the result of the batch operation. + /// An that represents the status of the asynchronous operation. public virtual DataServiceResponse EndSaveChanges(IAsyncResult asyncResult) { BaseSaveResult result = BaseAsyncResult.EndExecute(this, Util.SaveChangesMethodName, asyncResult); @@ -2010,16 +2010,16 @@ public virtual DataServiceResponse EndSaveChanges(IAsyncResult asyncResult) } #if !PORTABLELIB // Synchronous methods not available - /// Saves the changes that the is tracking to storage. - /// A that contains status, headers, and errors that result from the call to . + /// Saves the changes that the is tracking to storage. + /// A that contains status, headers, and errors that result from the call to . public virtual DataServiceResponse SaveChanges() { return this.SaveChanges(this.SaveChangesDefaultOptions); } - /// Saves the changes that the is tracking to storage. - /// A that contains status, headers, and errors that result from the call to . - /// A member of the enumeration for how the client can save the pending set of changes. + /// Saves the changes that the is tracking to storage. + /// A that contains status, headers, and errors that result from the call to . + /// A member of the enumeration for how the client can save the pending set of changes. public virtual DataServiceResponse SaveChanges(SaveChangesOptions options) { DataServiceResponse errors = null; @@ -2051,12 +2051,12 @@ public virtual DataServiceResponse SaveChanges(SaveChangesOptions options) #region Add, Attach, Delete, Detach, Update, TryGetEntity, TryGetUri - /// Adds the specified link to the set of objects the is tracking. + /// Adds the specified link to the set of objects the is tracking. /// The source object for the new link. /// The name of the navigation property on the source object that returns the related object. /// The object related to the source object by the new link. - /// When , , or are null. - /// If a link already exists.-or-If either the or objects are in a or state.-or-If is not a collection. + /// When , , or are null. + /// If a link already exists.-or-If either the or objects are in a or state.-or-If is not a collection. /// /// Notifies the context that a new link exists between the and objects /// and that the link is represented via the source. which is a collection. @@ -2075,24 +2075,24 @@ public virtual void AddLink(object source, string sourceProperty, object target) this.entityTracker.IncrementChange(descriptor); } - /// Notifies the to start tracking the specified link that defines a relationship between entity objects. + /// Notifies the to start tracking the specified link that defines a relationship between entity objects. /// The source object in the new link. /// The name of the property on the source object that represents the link between the source and target object. /// The target object in the link that is bound to the source object specified in this call. The target object must be of the type identified by the source property or a subtype. - /// When , , or is null. - /// When the link between the two entities already exists.-or-When or is in an or state. + /// When , , or is null. + /// When the link between the two entities already exists.-or-When or is in an or state. public virtual void AttachLink(object source, string sourceProperty, object target) { this.AttachLink(source, sourceProperty, target, MergeOption.NoTracking); } - /// Removes the specified link from the list of links being tracked by the . + /// Removes the specified link from the list of links being tracked by the . /// Returns true if the specified entity was detached; otherwise false. /// The source object participating in the link to be marked for deletion. /// The name of the property on the source object that represents the source in the link between the source and the target. /// The target object involved in the link that is bound to the source object. The target object must be of the type identified by the source property or a subtype. - /// When or are null. - /// When is an empty string. + /// When or are null. + /// When is an empty string. /// Any link being tracked by the context, regardless of its current state, can be detached. public virtual bool DetachLink(object source, string sourceProperty, object target) { @@ -2109,12 +2109,12 @@ public virtual bool DetachLink(object source, string sourceProperty, object targ return true; } - /// Changes the state of the link to deleted in the list of links being tracked by the . + /// Changes the state of the link to deleted in the list of links being tracked by the . /// The source object in the link to be marked for deletion. /// The name of the navigation property on the source object that is used to access the target object. /// The target object involved in the link that is bound to the source object. The target object must be of the type identified by the source property or a subtype. - /// When , , or is null. - /// When or is in a or state.-or-When is not a collection. + /// When , , or is null. + /// When or is in a or state.-or-When is not a collection. /// /// Notifies the context that a link exists between the and object /// and that the link is represented via the source. which is a collection. @@ -2156,12 +2156,12 @@ public virtual void DeleteLink(object source, string sourceProperty, object targ } } - /// Notifies the that a new link exists between the objects specified and that the link is represented by the property specified by the parameter. + /// Notifies the that a new link exists between the objects specified and that the link is represented by the property specified by the parameter. /// The source object for the new link. /// The property on the source object that identifies the target object of the new link. /// The child object involved in the new link that is to be initialized by calling this method. The target object must be a subtype of the type identified by the parameter. If is set to null, the call represents a delete link operation. - /// When , or are null. - /// When the specified link already exists.-or-When the objects supplied as or are in the or state.-or-When is not a navigation property that defines a reference to a single related object. + /// When , or are null. + /// When the specified link already exists.-or-When the objects supplied as or are in the or state.-or-When is not a navigation property that defines a reference to a single related object. /// /// Notifies the context that a modified link exists between the and objects /// and that the link is represented via the source. which is a reference. @@ -2196,12 +2196,12 @@ public virtual void SetLink(object source, string sourceProperty, object target) #endregion #region AddObject, AttachTo, DeleteObject, Detach, TryGetEntity, TryGetUri - /// Adds the specified object to the set of objects that the is tracking. + /// Adds the specified object to the set of objects that the is tracking. /// The name of the entity set to which the resource will be added. - /// The object to be tracked by the . - /// When or is null. - /// When is empty.-or-When does not have a key property defined. - /// When the entity is already being tracked by the context. + /// The object to be tracked by the . + /// When or is null. + /// When is empty.-or-When does not have a key property defined. + /// When the entity is already being tracked by the context. /// /// It does not follow the object graph and add related objects. /// Any leading or trailing forward slashes will automatically be trimmed from entitySetName. @@ -2283,25 +2283,25 @@ public virtual void AddRelatedObject(object source, string sourceProperty, objec this.entityTracker.IncrementChange(targetResource); } - /// Notifies the to start tracking the specified resource and supplies the location of the resource within the specified resource set. + /// Notifies the to start tracking the specified resource and supplies the location of the resource within the specified resource set. /// The name of the set that contains the resource. - /// The resource to be tracked by the . The resource is attached in the Unchanged state. - /// When or is null. - /// When is an empty string.-or-When the does not have a key property defined. - /// When the is already being tracked by the context. + /// The resource to be tracked by the . The resource is attached in the Unchanged state. + /// When or is null. + /// When is an empty string.-or-When the does not have a key property defined. + /// When the is already being tracked by the context. /// It does not follow the object graph and attach related objects. public virtual void AttachTo(string entitySetName, object entity) { this.AttachTo(entitySetName, entity, null); } - /// Notifies the to start tracking the specified resource and supplies the location of the resource in the specified resource set. + /// Notifies the to start tracking the specified resource and supplies the location of the resource in the specified resource set. /// The string value that contains the name of the entity set to which to the entity is attached. /// The entity to add. /// An etag value that represents the state of the entity the last time it was retrieved from the data service. This value is treated as an opaque string; no validation is performed on it by the client library. - /// When is null.-or-When is null. - /// When is an empty string.-or-When the supplied object does not have a key property. - /// When the supplied object is already being tracked by the context + /// When is null.-or-When is null. + /// When is an empty string.-or-When the supplied object does not have a key property. + /// When the supplied object is already being tracked by the context /// It does not follow the object graph and attach related objects. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704", MessageId = "etag", Justification = "represents ETag in request")] public virtual void AttachTo(string entitySetName, object entity, string etag) @@ -2325,10 +2325,10 @@ public virtual void AttachTo(string entitySetName, object entity, string etag) this.entityTracker.InternalAttachEntityDescriptor(descriptor, true /*failIfDuplicated*/); } - /// Changes the state of the specified object to be deleted in the . + /// Changes the state of the specified object to be deleted in the . /// The tracked entity to be changed to the deleted state. - /// When is null. - /// When the object is not being tracked by the . + /// When is null. + /// When the object is not being tracked by the . /// /// Existing objects in the Added state become detached. /// @@ -2337,10 +2337,10 @@ public virtual void DeleteObject(object entity) this.DeleteObjectInternal(entity, false /*failIfInAddedState*/); } - /// Removes the entity from the list of entities that the is tracking. + /// Removes the entity from the list of entities that the is tracking. /// Returns true if the specified entity was detached; otherwise false. - /// The tracked entity to be detached from the . - /// When is null. + /// The tracked entity to be detached from the . + /// When is null. public virtual bool Detach(object entity) { Util.CheckArgumentNull(entity, "entity"); @@ -2354,10 +2354,10 @@ public virtual bool Detach(object entity) return false; } - /// Changes the state of the specified object in the to . - /// The tracked entity to be assigned to the state. - /// When is null. - /// When is in the state. + /// Changes the state of the specified object in the to . + /// The tracked entity to be assigned to the state. + /// When is null. + /// When is in the state. public virtual void UpdateObject(object entity) { this.UpdateObjectInternal(entity, false /*failIfNotUnchanged*/); @@ -2478,12 +2478,12 @@ public virtual void ChangeState(object entity, EntityStates state) #endif } - /// Test retrieval of an entity being tracked by the by reference to the URI of the entity. + /// Test retrieval of an entity being tracked by the by reference to the URI of the entity. /// If an entity is found at , the entity is returned in the out parameter and true is returned. If no entity is found, false is returned. /// The URI of the tracked entity to be retrieved. /// The entity to be retrieved. /// The type of the entity. - /// When is null. + /// When is null. /// entities in added state are not likely to have a identity public virtual bool TryGetEntity(Uri identity, out TEntity entity) where TEntity : class { @@ -2498,10 +2498,10 @@ public virtual bool TryGetEntity(Uri identity, out TEntity entity) wher } /// Retrieves the canonical URI associated with the specified entity, if available. - /// Returns true if the canonical URI is returned in the out parameter. If the specified entity is not tracked by the or is in the added state, no URI is available and false is returned. + /// Returns true if the canonical URI is returned in the out parameter. If the specified entity is not tracked by the or is in the added state, no URI is available and false is returned. /// The entity identified by the . /// The URI of the entity. - /// When is null. + /// When is null. /// Entities in added state are not likely to have an identity. Though the identity might use a dereferencable scheme, you MUST NOT assume it can be dereferenced. public virtual bool TryGetUri(object entity, out Uri identity) { @@ -2544,7 +2544,7 @@ internal virtual IEdmVocabularyAnnotatable GetEdmOperationOrOperationImport(Meth /// /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the last page request. + /// An instance of that contains the results of the last page request. internal Task LoadPropertyAllPagesAsync(object entity, string propertyName) { var currentTask = Task.Factory.FromAsync(this.BeginLoadProperty, this.EndLoadProperty, entity, propertyName, null); @@ -2559,7 +2559,7 @@ internal Task LoadPropertyAllPagesAsync(object entity, s /// /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the last page request. + /// An instance of that contains the results of the last page request. internal QueryOperationResponse LoadPropertyAllPages(object entity, string propertyName) { DataServiceQueryContinuation continuation = null; @@ -2923,7 +2923,7 @@ protected internal Type DefaultResolveType(string typeName, string fullNamespace /// The response of previous page /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the request. + /// An instance of that contains the results of the request. private QueryOperationResponse ContinuePage(QueryOperationResponse response, object entity, string propertyName) { var continuation = response.GetContinuation(); diff --git a/src/Microsoft.OData.Client/DataServiceQuery.cs b/src/Microsoft.OData.Client/DataServiceQuery.cs index 2ef4219207..184f63a568 100644 --- a/src/Microsoft.OData.Client/DataServiceQuery.cs +++ b/src/Microsoft.OData.Client/DataServiceQuery.cs @@ -23,20 +23,20 @@ internal DataServiceQuery() } /// Represents an expression that contains the query to the data service. - /// An object that represents the query. + /// An object that represents the query. public abstract Expression Expression { get; } /// Represents the query provider instance. - /// An representing the data source provider. + /// An representing the data source provider. public abstract IQueryProvider Provider { get; } - /// Gets the object that can be used to iterate through the collection returned by the query. + /// Gets the object that can be used to iterate through the collection returned by the query. /// An enumerator over the query results. /// Expect derived class to override this with an explicit interface implementation [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1033", Justification = "required for this feature")] @@ -47,8 +47,8 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() #if !PORTABLELIB /// Executes the query against the data service. - /// An that contains the results of the query operation. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// An that contains the results of the query operation. + /// When the data service returns an HTTP 404: Resource Not Found error. public virtual IEnumerable Execute() { return this.ExecuteInternal(); @@ -56,7 +56,7 @@ public virtual IEnumerable Execute() #endif /// Asynchronously sends a request to execute the data service query. - /// An object that is used to track the status of the asynchronous operation. + /// An object that is used to track the status of the asynchronous operation. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. public virtual IAsyncResult BeginExecute(AsyncCallback callback, object state) @@ -65,16 +65,16 @@ public virtual IAsyncResult BeginExecute(AsyncCallback callback, object state) } /// Asynchronously sends a request to execute the data service query. - /// A task represents An that contains the results of the query operation. + /// A task represents An that contains the results of the query operation. public virtual Task ExecuteAsync() { return Task.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); } /// Called to complete the asynchronous operation of executing a data service query. - /// An that contains the results of the query operation. - /// The result from the operation that contains the query results. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// An that contains the results of the query operation. + /// The result from the operation that contains the query results. + /// When the data service returns an HTTP 404: Resource Not Found error. public virtual IEnumerable EndExecute(IAsyncResult asyncResult) { return this.EndExecuteInternal(asyncResult); diff --git a/src/Microsoft.OData.Client/DataServiceQueryException.cs b/src/Microsoft.OData.Client/DataServiceQueryException.cs index 93f1ea960b..c86978225b 100644 --- a/src/Microsoft.OData.Client/DataServiceQueryException.cs +++ b/src/Microsoft.OData.Client/DataServiceQueryException.cs @@ -27,20 +27,20 @@ public sealed class DataServiceQueryException : InvalidOperationException #region Constructors - /// Initializes a new instance of the class with a system-supplied message that describes the error. + /// Initializes a new instance of the class with a system-supplied message that describes the error. public DataServiceQueryException() : base(Strings.DataServiceException_GeneralError) { } - /// Initializes a new instance of the class with a specified message that describes the error. + /// Initializes a new instance of the class with a specified message that describes the error. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.The string value that the contains error message. public DataServiceQueryException(string message) : base(message) { } - /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. + /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. The string value that contains the error message. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. The inner exception object. public DataServiceQueryException(string message, Exception innerException) @@ -48,10 +48,10 @@ public DataServiceQueryException(string message, Exception innerException) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The string value that contains the error message. /// The inner exception object. - /// The object. + /// The object. public DataServiceQueryException(string message, Exception innerException, QueryOperationResponse response) : base(message, innerException) { @@ -83,8 +83,8 @@ protected DataServiceQueryException(System.Runtime.Serialization.SerializationIn #region Public properties - /// Gets the that indicates the exception results. - /// A object that indicates the exception results. + /// Gets the that indicates the exception results. + /// A object that indicates the exception results. public QueryOperationResponse Response { get { return this.response; } diff --git a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs index f6a22dd546..1e57c20c12 100644 --- a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs @@ -75,22 +75,22 @@ public DataServiceQuery(Expression expression, DataServiceQueryProvider provider } #region IQueryable implementation - /// Returns the type of the object used in the template to create the instance. - /// Returns representing the type used in the template when the query is created. + /// Returns the type of the object used in the template to create the instance. + /// Returns representing the type used in the template when the query is created. public override Type ElementType { get { return typeof(TElement); } } /// Represents an expression containing the query to the data service. - /// A object representing the query. + /// A object representing the query. public override Expression Expression { get { return this.queryExpression; } } /// Represents the query provider instance. - /// A representing the data source provider. + /// A representing the data source provider. public override IQueryProvider Provider { get { return this.queryProvider; } @@ -158,7 +158,7 @@ public virtual string GetKeyPath(string keyString) /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string functionName, bool isComposable, params UriOperationParameter[] parameters) { Dictionary operationParameters = this.Context.SerializeOperationParameters(parameters); @@ -171,7 +171,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string functionName, b /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return new DataServiceQuerySingle(CreateFunctionQuery(functionName, isComposable, parameters), isComposable); @@ -200,7 +200,7 @@ public virtual string GetPath(string nextSegment) } /// Starts an asynchronous network operation that executes the query represented by this object instance. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. /// The delegate to invoke when the operation completes. /// User defined object used to transfer state between the start of the operation and the callback defined by . public virtual new IAsyncResult BeginExecute(AsyncCallback callback, object state) @@ -216,16 +216,16 @@ public virtual string GetPath(string nextSegment) } /// Starts an asynchronous network operation that executes the query represented by this object instance. - /// A task that represents an that contains the results of the query operation. + /// A task that represents an that contains the results of the query operation. public virtual new Task> ExecuteAsync() { return Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); } /// Ends an asynchronous query request to a data service. - /// Returns an that contains the results of the query operation. + /// Returns an that contains the results of the query operation. /// The pending asynchronous query request. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// When the data service returns an HTTP 404: Resource Not Found error. public virtual new IEnumerable EndExecute(IAsyncResult asyncResult) { if (this.IsFunction) @@ -241,7 +241,7 @@ public virtual string GetPath(string nextSegment) /// /// Asynchronously sends a request to get all items by auto iterating all pages /// - /// A task that represents an that contains the results of the query operation. + /// A task that represents an that contains the results of the query operation. public virtual Task> GetAllPagesAsync() { var currentTask = Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); @@ -251,9 +251,9 @@ public virtual Task> GetAllPagesAsync() #if !PORTABLELIB // Synchronous methods not available /// Executes the query and returns the results as a collection that implements IEnumerable. - /// An in which TElement represents the type of the query results. - /// When the data service returns an HTTP 404: Resource Not Found error. - /// When during materialization an object is encountered in the input stream that cannot be deserialized to an instance of TElement. + /// An in which TElement represents the type of the query results. + /// When the data service returns an HTTP 404: Resource Not Found error. + /// When during materialization an object is encountered in the input stream that cannot be deserialized to an instance of TElement. public virtual new IEnumerable Execute() { if (this.IsFunction) @@ -293,7 +293,7 @@ public virtual DataServiceQuery Expand(string path) } /// Expands a query to include entities from a related entity set in the query response, where the related entity is of a specific type in a type hierarchy. - /// Returns a that with the expand option included. + /// Returns a that with the expand option included. /// A lambda expression that indicates the navigation property that returns the entity set to include in the expanded query. /// Target type of the last property on the expand path. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "By design")] @@ -311,7 +311,7 @@ public virtual DataServiceQuery Expand(ExpressionRequests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. [Obsolete("Please use IncludeCount()")] public virtual DataServiceQuery IncludeTotalCount() { @@ -319,7 +319,7 @@ public virtual DataServiceQuery IncludeTotalCount() } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. /// Whether to include total count. [Obsolete("Please use IncludeCount(bool countQuery)")] public virtual DataServiceQuery IncludeTotalCount(bool countQuery) @@ -328,14 +328,14 @@ public virtual DataServiceQuery IncludeTotalCount(bool countQuery) } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. public virtual DataServiceQuery IncludeCount() { return this.IncludeCount(true); } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. /// Whether to include count. public virtual DataServiceQuery IncludeCount(bool countQuery) { @@ -349,7 +349,7 @@ public virtual DataServiceQuery IncludeCount(bool countQuery) new Expression[] { Expression.Constant(countQuery, typeof(bool)) })); } - /// Creates a new with the query option set in the URI generated by the returned query. + /// Creates a new with the query option set in the URI generated by the returned query. /// A new query that includes the requested query option appended to the URI of the supplied query /// The string value that contains the name of the query string option to add. /// The object that contains the value of the query string option. @@ -380,7 +380,7 @@ public IEnumerator GetEnumerator() #endif /// Represents the URI of the query to the data service. - /// A URI as string that represents the query to the data service for this instance. + /// A URI as string that represents the query to the data service for this instance. public override string ToString() { try diff --git a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs index 2ad2e351a4..a47e6e345d 100644 --- a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs @@ -108,7 +108,7 @@ public virtual Uri RequestUri /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return this.Query.CreateFunctionQuery(functionName, isComposable, parameters); @@ -119,7 +119,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string functionName, b /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return new DataServiceQuerySingle(this.CreateFunctionQuery(functionName, isComposable, parameters), isComposable); @@ -143,7 +143,7 @@ public virtual TElement GetValue() #endif /// Starts an asynchronous network operation that executes the query represented by this object instance. - /// An that represents the status of the asynchronous operation. + /// An that represents the status of the asynchronous operation. /// The delegate to invoke when the operation completes. /// User defined object used to transfer state between the start of the operation and the callback defined by . public virtual IAsyncResult BeginGetValue(AsyncCallback callback, object state) @@ -166,7 +166,7 @@ public virtual Task GetValueAsync() /// Ends an asynchronous query request to a data service. /// Returns the results of the query operation. /// The pending asynchronous query request. - /// When the data service returns an HTTP 404: Resource Not Found error. + /// When the data service returns an HTTP 404: Resource Not Found error. public virtual TElement EndGetValue(IAsyncResult asyncResult) { Util.CheckArgumentNull(asyncResult, "asyncResult"); @@ -206,7 +206,7 @@ public virtual string AppendRequestUri(string nextSegment) /// /// The type of the value returned by selector. /// A lambda expression that indicates the property returns. - /// A whose element is the result of invoking the transform function on the element of source. + /// A whose element is the result of invoking the transform function on the element of source. public DataServiceQuerySingle Select(Expression> selector) { if (this.Query == null) @@ -222,7 +222,7 @@ public DataServiceQuerySingle Select(Expression /// Target type of the last property on the expand path. /// A lambda expression that indicates the navigation property that returns the entity set to include in the expanded query. - /// Returns a that with the expand option included. + /// Returns a that with the expand option included. public DataServiceQuerySingle Expand(Expression> navigationPropertyAccessor) { return new DataServiceQuerySingle(this.Query.Expand(navigationPropertyAccessor), true); @@ -240,7 +240,7 @@ public virtual DataServiceQuerySingle Expand(string path) /// Cast this query type into its derived type. /// /// Derived type of TElement to be casted to. - /// Returns a of TResult type. + /// Returns a of TResult type. public virtual DataServiceQuerySingle CastTo() { return new DataServiceQuerySingle((DataServiceQuery)this.Query.OfType(), true); diff --git a/src/Microsoft.OData.Client/DataServiceRequestArgs.cs b/src/Microsoft.OData.Client/DataServiceRequestArgs.cs index 8aecf82be9..0788b956cc 100644 --- a/src/Microsoft.OData.Client/DataServiceRequestArgs.cs +++ b/src/Microsoft.OData.Client/DataServiceRequestArgs.cs @@ -11,7 +11,7 @@ namespace Microsoft.OData.Client /// Represents additional metadata that is included in a request message to WCF Data Services. public class DataServiceRequestArgs { - /// Creates a new instance of the class. + /// Creates a new instance of the class. public DataServiceRequestArgs() { this.HeaderCollection = new HeaderCollection(); diff --git a/src/Microsoft.OData.Client/DataServiceRequestException.cs b/src/Microsoft.OData.Client/DataServiceRequestException.cs index f6edfd936d..2b045af6f5 100644 --- a/src/Microsoft.OData.Client/DataServiceRequestException.cs +++ b/src/Microsoft.OData.Client/DataServiceRequestException.cs @@ -23,20 +23,20 @@ public sealed class DataServiceRequestException : InvalidOperationException #region Constructors - /// Initializes a new instance of the class with a system-supplied message that describes the error. + /// Initializes a new instance of the class with a system-supplied message that describes the error. public DataServiceRequestException() : base(Strings.DataServiceException_GeneralError) { } - /// Initializes a new instance of the class with a specified message that describes the error. + /// Initializes a new instance of the class with a specified message that describes the error. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.The error message text. public DataServiceRequestException(string message) : base(message) { } - /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. + /// Initializes a new instance of the class with a specified error message and a reference to the inner exception that is the cause of this exception. /// The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture. /// The exception that is the cause of the current exception. If the parameter is not null, the current exception is raised in a catch block that handles the inner exception. public DataServiceRequestException(string message, Exception innerException) @@ -44,10 +44,10 @@ public DataServiceRequestException(string message, Exception innerException) { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Error message text. /// Exception object that contains the inner exception. - /// object. + /// object. public DataServiceRequestException(string message, Exception innerException, DataServiceResponse response) : base(message, innerException) { @@ -79,8 +79,8 @@ protected DataServiceRequestException(System.Runtime.Serialization.Serialization #region Public properties - /// Gets the response as a object. - /// A object. + /// Gets the response as a object. + /// A object. public DataServiceResponse Response { get { return this.response; } diff --git a/src/Microsoft.OData.Client/DataServiceRequestOfT.cs b/src/Microsoft.OData.Client/DataServiceRequestOfT.cs index ea5afe9abc..6f6024feba 100644 --- a/src/Microsoft.OData.Client/DataServiceRequestOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceRequestOfT.cs @@ -34,7 +34,7 @@ public sealed class DataServiceRequest : DataServiceRequest #region Constructors - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The URI object that contains the request string. public DataServiceRequest(Uri requestUri) { @@ -58,7 +58,7 @@ internal DataServiceRequest(Uri requestUri, QueryComponents queryComponents, Pro #endregion Constructors - /// Gets the type of the object used to create the instance. + /// Gets the type of the object used to create the instance. /// A value that indicates the type of data returned. public override Type ElementType { @@ -91,7 +91,7 @@ internal override ProjectionPlan Plan } /// Represents the URI of the query to the data service. - /// The requested URI as a value. + /// The requested URI as a value. public override string ToString() { return this.requestUri.ToString(); diff --git a/src/Microsoft.OData.Client/DataServiceResponse.cs b/src/Microsoft.OData.Client/DataServiceResponse.cs index 3b9f404d27..7b9aa8e137 100644 --- a/src/Microsoft.OData.Client/DataServiceResponse.cs +++ b/src/Microsoft.OData.Client/DataServiceResponse.cs @@ -45,7 +45,7 @@ internal DataServiceResponse(HeaderCollection headers, int statusCode, IEnumerab } /// The headers from an HTTP response associated with a batch request. - /// An object containing the name-value pairs of an HTTP response. + /// An object containing the name-value pairs of an HTTP response. public IDictionary BatchHeaders { get { return this.headers.UnderlyingDictionary; } @@ -65,14 +65,14 @@ public bool IsBatchResponse get { return this.batchResponse; } } - /// Gets an enumerator that enables retrieval of responses to operations being tracked by objects within the . + /// Gets an enumerator that enables retrieval of responses to operations being tracked by objects within the . /// An enumerator over the response received from the service. public IEnumerator GetEnumerator() { return this.response.GetEnumerator(); } - /// Gets an enumerator that enables retrieval of responses to operations being tracked by objects within the . + /// Gets an enumerator that enables retrieval of responses to operations being tracked by objects within the . /// An enumerator over the response received from the service. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { diff --git a/src/Microsoft.OData.Client/DataServiceStreamResponse.cs b/src/Microsoft.OData.Client/DataServiceStreamResponse.cs index 2fe78a3d8f..4a68fc0264 100644 --- a/src/Microsoft.OData.Client/DataServiceStreamResponse.cs +++ b/src/Microsoft.OData.Client/DataServiceStreamResponse.cs @@ -64,7 +64,7 @@ public string ContentDisposition } /// Gets the collection of headers from the response. - /// The headers collection from the response message as a object. + /// The headers collection from the response message as a object. public Dictionary Headers { get @@ -84,7 +84,7 @@ public Dictionary Headers /// Gets the binary property data from the data service as a binary stream. /// The stream that contains the binary property data. - /// When the is already disposed. + /// When the is already disposed. /// /// Returns the stream obtained from the data service. When reading from this stream /// the operations may throw if a network error occurs. This stream is read-only. @@ -109,7 +109,7 @@ public Stream Stream #region IDisposable Members - /// Releases all resources used by the current instance of the class. + /// Releases all resources used by the current instance of the class. public void Dispose() { WebUtil.DisposeMessage(this.responseMessage); diff --git a/src/Microsoft.OData.Client/Descriptor.cs b/src/Microsoft.OData.Client/Descriptor.cs index d65972ad7f..8c0b532e1f 100644 --- a/src/Microsoft.OData.Client/Descriptor.cs +++ b/src/Microsoft.OData.Client/Descriptor.cs @@ -27,7 +27,7 @@ internal enum DescriptorKind OperationDescriptor, } - /// Abstract class from which is derived. + /// Abstract class from which is derived. public abstract class Descriptor { #region Fields @@ -62,7 +62,7 @@ internal Descriptor(EntityStates state) #region Public Properties /// When overridden in a derived class, gets the state of the object at the time this instance was constructed. - /// An of the object returned at the time this instance was constructed. + /// An of the object returned at the time this instance was constructed. public EntityStates State { get { return this.state; } diff --git a/src/Microsoft.OData.Client/EntityDescriptor.cs b/src/Microsoft.OData.Client/EntityDescriptor.cs index 65498b9153..3a1ba688e7 100644 --- a/src/Microsoft.OData.Client/EntityDescriptor.cs +++ b/src/Microsoft.OData.Client/EntityDescriptor.cs @@ -78,7 +78,7 @@ internal EntityDescriptor(ClientEdmModel model) #region Properties /// Gets the URI that is the identity value of the entity. - /// The property corresponds to the identity element of the entry that represents the entity in the Atom response. + /// The property corresponds to the identity element of the entry that represents the entity in the Atom response. public Uri Identity { get @@ -155,7 +155,7 @@ internal set } /// Gets the URI that modifies the binary property data of the entity. - /// The property contains the edit-media link URI for the Media Resource that is associated with the entity, which is a Media Link Entry. + /// The property contains the edit-media link URI for the Media Resource that is associated with the entity, which is a Media Link Entry. /// /// If the entity for the box is an MLE this property stores the edit-media link URI. /// That is, it stores the URI to send PUTs for the associated MR. @@ -206,7 +206,7 @@ internal set } } - /// Gets an eTag value that indicates the state of data targeted for update since the last call to . + /// Gets an eTag value that indicates the state of data targeted for update since the last call to . /// The state of data. public string ETag { get; set; } @@ -248,7 +248,7 @@ internal set public String ServerTypeName { get; internal set; } /// Returns a collection of links that are the relationships in which the entity participates. - /// A of objects that represents links in which the entity participates. + /// A of objects that represents links in which the entity participates. [SuppressMessage("Microsoft.Naming", "CA1704", Justification = "LinkInfoCollection is cumbersome and Links isn't expressive enough")] public ReadOnlyCollection LinkInfos { @@ -259,7 +259,7 @@ public ReadOnlyCollection LinkInfos } /// Returns a collection of named binary data streams that belong to the entity. - /// A of objects that are the named binary data streams that belong to the entity. + /// A of objects that are the named binary data streams that belong to the entity. public ReadOnlyCollection StreamDescriptors { get diff --git a/src/Microsoft.OData.Client/LinkDescriptor.cs b/src/Microsoft.OData.Client/LinkDescriptor.cs index 923c6e75bc..3625a8a5d9 100644 --- a/src/Microsoft.OData.Client/LinkDescriptor.cs +++ b/src/Microsoft.OData.Client/LinkDescriptor.cs @@ -65,8 +65,8 @@ internal LinkDescriptor(object source, string sourceProperty, object target, Ent #region Public Properties - /// The source entity in a link returned by a . - /// . + /// The source entity in a link returned by a . + /// . [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811", Justification = "The setter is called during de-serialization")] public object Target { @@ -81,8 +81,8 @@ internal set } } - /// A source entity in a link returned by a . - /// . + /// A source entity in a link returned by a . + /// . [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811", Justification = "The setter is called during de-serialization")] public object Source { @@ -97,7 +97,7 @@ internal set } } - /// The identifier property of the source entity in a link returned by a . + /// The identifier property of the source entity in a link returned by a . /// The string identifier of an identity property in a source entity. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811", Justification = "The setter is called during de-serialization")] public string SourceProperty diff --git a/src/Microsoft.OData.Client/Materialization/ODataCollectionMaterializer.cs b/src/Microsoft.OData.Client/Materialization/ODataCollectionMaterializer.cs index 501c716240..7f9b99ee12 100644 --- a/src/Microsoft.OData.Client/Materialization/ODataCollectionMaterializer.cs +++ b/src/Microsoft.OData.Client/Materialization/ODataCollectionMaterializer.cs @@ -120,7 +120,7 @@ internal NonEntityItemsEnumerable(ODataCollectionReader collectionReader) /// Gets the current element in the collection. /// /// The current element in the collection. - /// The enumerator is positioned before the first element of the collection or after the last element.-or- The collection was modified after the enumerator was created. + /// The enumerator is positioned before the first element of the collection or after the last element.-or- The collection was modified after the enumerator was created. public object Current { get { return this.collectionReader.Item; } @@ -130,7 +130,7 @@ public object Current /// Returns an enumerator that iterates through a collection. /// /// - /// An object that can be used to iterate through the collection. + /// An object that can be used to iterate through the collection. /// public IEnumerator GetEnumerator() { @@ -143,7 +143,7 @@ public IEnumerator GetEnumerator() /// /// true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. /// - /// The collection was modified after the enumerator was created. + /// The collection was modified after the enumerator was created. public bool MoveNext() { // Move to the next value @@ -159,7 +159,7 @@ public bool MoveNext() /// /// Sets the enumerator to its initial position, which is before the first element in the collection. /// - /// The collection was modified after the enumerator was created. + /// The collection was modified after the enumerator was created. public void Reset() { throw new InvalidOperationException(DSClient.Strings.AtomMaterializer_ResetAfterEnumeratorCreationError); diff --git a/src/Microsoft.OData.Client/MediaEntryAttribute.cs b/src/Microsoft.OData.Client/MediaEntryAttribute.cs index 0d5e9808a7..53d4b31c17 100644 --- a/src/Microsoft.OData.Client/MediaEntryAttribute.cs +++ b/src/Microsoft.OData.Client/MediaEntryAttribute.cs @@ -19,7 +19,7 @@ public sealed class MediaEntryAttribute : Attribute /// Name of the member that contains the data for the media entry private readonly string mediaMemberName; - /// Creates a new instance of . + /// Creates a new instance of . /// A string value that identifies the property that holds media data. /// /// Creates a new MediaEntryAttribute attribute and sets the name diff --git a/src/Microsoft.OData.Client/OperationParameter.cs b/src/Microsoft.OData.Client/OperationParameter.cs index ea2b1cc7f1..6c92af3276 100644 --- a/src/Microsoft.OData.Client/OperationParameter.cs +++ b/src/Microsoft.OData.Client/OperationParameter.cs @@ -17,7 +17,7 @@ public abstract class OperationParameter /// The value of the operation parameter. private readonly Object parameterValue; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The name of the operation parameter. /// The value of the operation parameter. protected OperationParameter(string name, Object value) diff --git a/src/Microsoft.OData.Client/OperationResponse.cs b/src/Microsoft.OData.Client/OperationResponse.cs index 107626bedd..3255123801 100644 --- a/src/Microsoft.OData.Client/OperationResponse.cs +++ b/src/Microsoft.OData.Client/OperationResponse.cs @@ -35,7 +35,7 @@ internal OperationResponse(HeaderCollection headers) } /// When overridden in a derived class, contains the HTTP response headers associated with a single operation. - /// object that contains name value pairs of headers and values. + /// object that contains name value pairs of headers and values. public IDictionary Headers { get { return this.headers.UnderlyingDictionary; } @@ -50,7 +50,7 @@ public int StatusCode } /// Gets error thrown by the operation. - /// An object that contains the error. + /// An object that contains the error. public Exception Error { get diff --git a/src/Microsoft.OData.Client/QueryOperationResponse.cs b/src/Microsoft.OData.Client/QueryOperationResponse.cs index 38540a5bfd..df7fda60b3 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponse.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponse.cs @@ -47,8 +47,8 @@ internal QueryOperationResponse(HeaderCollection headers, DataServiceRequest que this.results = results; } - /// Gets the that generates the items. - /// A object. + /// Gets the that generates the items. + /// A object. public DataServiceRequest Query { get { return this.query; } @@ -56,7 +56,7 @@ public DataServiceRequest Query /// Gets the server result set count value from a query, if the query has requested the value. /// The return value can be either a zero or positive value equal to the number of entities in the set on the server. - /// Thrown when the count tag is not found in the response stream. + /// Thrown when the count tag is not found in the response stream. [Obsolete("Please use Count")] public virtual long TotalCount { @@ -68,7 +68,7 @@ public virtual long TotalCount /// Gets the server result set count value from a query, if the query has requested the value. /// The return value can be either a zero or positive value equal to the number of entities in the set on the server. - /// Thrown when the count tag is not found in the response stream. + /// Thrown when the count tag is not found in the response stream. public virtual long Count { get @@ -91,8 +91,8 @@ internal MaterializeAtom Results } } - /// Executes the and returns items. - /// The enumerator to a collection of items. + /// Executes the and returns items. + /// The enumerator to a collection of items. /// In the case of Collection(primitive) or Collection(complex), the entire collection is /// materialized when this is called. public IEnumerator GetEnumerator() @@ -100,14 +100,14 @@ public IEnumerator GetEnumerator() return this.GetEnumeratorHelper(() => this.Results.GetEnumerator()); } - /// Gets a object containing the URI that is used to retrieve the next results page. + /// Gets a object containing the URI that is used to retrieve the next results page. /// An object containing the URI that is used to return the next results page. public DataServiceQueryContinuation GetContinuation() { return this.results.GetContinuation(null); } - /// Gets a object containing the URI that is used to retrieve the next page of related entities in the specified collection. + /// Gets a object containing the URI that is used to retrieve the next page of related entities in the specified collection. /// A continuation object that points to the next page for the collection. /// The collection of related objects being loaded. public DataServiceQueryContinuation GetContinuation(IEnumerable collection) @@ -115,7 +115,7 @@ public DataServiceQueryContinuation GetContinuation(IEnumerable collection) return this.results.GetContinuation(collection); } - /// Gets a object that contains the URI that is used to retrieve the next page of related entities in the specified collection. + /// Gets a object that contains the URI that is used to retrieve the next page of related entities in the specified collection. /// A continuation object that points to the next page for the collection. /// The collection of related objects being loaded. /// The type of the items in the collection. @@ -149,7 +149,7 @@ internal static QueryOperationResponse GetInstance(Type elementType, HeaderColle #endif } - /// Gets the enumeration helper for the . + /// Gets the enumeration helper for the . /// The enumerator. /// The generic type. /// An enumerator to enumerator through the results. diff --git a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs index ea66157ee2..e9b8e78fd2 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs @@ -72,7 +72,7 @@ public override long Count #region Public methods - /// Gets a object that contains the URI that is used to retrieve the next results page. + /// Gets a object that contains the URI that is used to retrieve the next results page. /// An object that contains the URI that is used to return the next results page. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "required for this feature")] public new DataServiceQueryContinuation GetContinuation() @@ -80,8 +80,8 @@ public override long Count return (DataServiceQueryContinuation)base.GetContinuation(); } - /// Executes the and gets items. - /// An enumerator to a collection of items. + /// Executes the and gets items. + /// An enumerator to a collection of items. /// In the case of Collection(primitive) or Collection(complex), the entire collection is /// materialized when this is called. public new IEnumerator GetEnumerator() diff --git a/src/Microsoft.OData.Client/ReadingWritingEntityEventArgs.cs b/src/Microsoft.OData.Client/ReadingWritingEntityEventArgs.cs index ac21ebcf35..4713e9b7e1 100644 --- a/src/Microsoft.OData.Client/ReadingWritingEntityEventArgs.cs +++ b/src/Microsoft.OData.Client/ReadingWritingEntityEventArgs.cs @@ -42,16 +42,16 @@ internal ReadingWritingEntityEventArgs(object entity, XElement data, Uri baseUri this.baseUri = baseUri; } - /// Gets the object representation of data returned from the property. - /// representation of the property. + /// Gets the object representation of data returned from the property. + /// representation of the property. public object Entity { get { return this.entity; } } - /// Gets an entry or feed data represented as an . + /// Gets an entry or feed data represented as an . /// - /// + /// /// public XElement Data { @@ -60,7 +60,7 @@ public XElement Data } /// Gets the base URI base of the entry or feed. - /// Returns . + /// Returns . public Uri BaseUri { [DebuggerStepThrough] diff --git a/src/Microsoft.OData.Client/SaveChangesOptions.cs b/src/Microsoft.OData.Client/SaveChangesOptions.cs index 488f3e0fbf..4d56f98f78 100644 --- a/src/Microsoft.OData.Client/SaveChangesOptions.cs +++ b/src/Microsoft.OData.Client/SaveChangesOptions.cs @@ -31,7 +31,7 @@ public enum SaveChangesOptions /// /// Use partial payload when doing post. - /// Note it can only be used when using + /// Note it can only be used when using /// PostOnlySetProperties = 8, diff --git a/src/Microsoft.OData.Client/SendingRequestEventArgs.cs b/src/Microsoft.OData.Client/SendingRequestEventArgs.cs index a6c8490047..9af651c182 100644 --- a/src/Microsoft.OData.Client/SendingRequestEventArgs.cs +++ b/src/Microsoft.OData.Client/SendingRequestEventArgs.cs @@ -35,8 +35,8 @@ internal SendingRequestEventArgs(System.Net.WebRequest request, System.Net.WebHe this.requestHeaders = requestHeaders; } - /// Gets or sets the instance about to be sent by the client library to the data service. - /// . + /// Gets or sets the instance about to be sent by the client library to the data service. + /// . public System.Net.WebRequest Request { get diff --git a/src/Microsoft.OData.Client/StreamDescriptor.cs b/src/Microsoft.OData.Client/StreamDescriptor.cs index 7b43bd39c2..0f55e7c857 100644 --- a/src/Microsoft.OData.Client/StreamDescriptor.cs +++ b/src/Microsoft.OData.Client/StreamDescriptor.cs @@ -56,15 +56,15 @@ internal StreamDescriptor(EntityDescriptor entityDescriptor) this.entityDescriptor = entityDescriptor; } - /// The that represents the binary resource stream. - /// Returns . + /// The that represents the binary resource stream. + /// Returns . public DataServiceStreamLink StreamLink { get { return this.streamLink; } } - /// The that represents the entity to which the named resource stream belongs. - /// The of the entity. + /// The that represents the entity to which the named resource stream belongs. + /// The of the entity. public EntityDescriptor EntityDescriptor { get diff --git a/src/Microsoft.OData.Client/Utility.cs b/src/Microsoft.OData.Client/Utility.cs index 66d0904617..b8695e79f6 100644 --- a/src/Microsoft.OData.Client/Utility.cs +++ b/src/Microsoft.OData.Client/Utility.cs @@ -31,7 +31,7 @@ public static class Utility /// false. This parameter is ignored for properties and events; see Remarks. /// /// - /// An of custom attributes applied to this member, or an array with zero + /// An of custom attributes applied to this member, or an array with zero /// elements if no attributes assignable to attributeType have been applied. /// public static IEnumerable GetCustomAttributes(Type type, Type attributeType, bool inherit) diff --git a/src/Microsoft.OData.Core/Batch/ODataBatchOperationResponseMessage.cs b/src/Microsoft.OData.Core/Batch/ODataBatchOperationResponseMessage.cs index 0bfbba0231..b2bd5b17f8 100644 --- a/src/Microsoft.OData.Core/Batch/ODataBatchOperationResponseMessage.cs +++ b/src/Microsoft.OData.Core/Batch/ODataBatchOperationResponseMessage.cs @@ -138,7 +138,7 @@ public Task GetStreamAsync() } /// Method to implement a custom URL resolution scheme. This method returns null if not custom resolution is desired. If the method returns a non-null URL that value will be used without further validation. - /// A instance that reflects the custom resolution of the method arguments into a URL or null if no custom resolution is desired; in that case the default resolution is used. + /// A instance that reflects the custom resolution of the method arguments into a URL or null if no custom resolution is desired; in that case the default resolution is used. /// The (optional) base URI to use for the resolution. /// The URI read from the payload. Uri IODataPayloadUriConverter.ConvertPayloadUri(Uri baseUri, Uri payloadUri) diff --git a/src/Microsoft.OData.Core/Batch/ODataBatchReader.cs b/src/Microsoft.OData.Core/Batch/ODataBatchReader.cs index 79ced536bf..43eeb3b260 100644 --- a/src/Microsoft.OData.Core/Batch/ODataBatchReader.cs +++ b/src/Microsoft.OData.Core/Batch/ODataBatchReader.cs @@ -146,7 +146,7 @@ public Task ReadAsync() return this.ReadAsynchronously().FollowOnFaultWith(t => this.State = ODataBatchReaderState.Exception); } - /// Returns an for reading the content of a batch operation. + /// Returns an for reading the content of a batch operation. /// A request message for reading the content of a batch operation. public ODataBatchOperationRequestMessage CreateOperationRequestMessage() { @@ -158,7 +158,7 @@ public ODataBatchOperationRequestMessage CreateOperationRequestMessage() return result; } - /// Asynchronously returns an for reading the content of a batch operation. + /// Asynchronously returns an for reading the content of a batch operation. /// A task that when completed returns a request message for reading the content of a batch operation. public Task CreateOperationRequestMessageAsync() { @@ -175,7 +175,7 @@ public Task CreateOperationRequestMessageAsyn .FollowOnFaultWith(t => this.State = ODataBatchReaderState.Exception); } - /// Returns an for reading the content of a batch operation. + /// Returns an for reading the content of a batch operation. /// A response message for reading the content of a batch operation. public ODataBatchOperationResponseMessage CreateOperationResponseMessage() { @@ -186,7 +186,7 @@ public ODataBatchOperationResponseMessage CreateOperationResponseMessage() return result; } - /// Asynchronously returns an for reading the content of a batch operation. + /// Asynchronously returns an for reading the content of a batch operation. /// A task that when completed returns a response message for reading the content of a batch operation. public Task CreateOperationResponseMessageAsync() { diff --git a/src/Microsoft.OData.Core/Batch/ODataBatchWriter.cs b/src/Microsoft.OData.Core/Batch/ODataBatchWriter.cs index f144039cea..14ae694aef 100644 --- a/src/Microsoft.OData.Core/Batch/ODataBatchWriter.cs +++ b/src/Microsoft.OData.Core/Batch/ODataBatchWriter.cs @@ -257,7 +257,7 @@ public Task WriteEndChangesetAsync() .FollowOnSuccessWith(t => this.FinishWriteEndChangeset()); } - /// Creates an for writing an operation of a batch request. + /// Creates an for writing an operation of a batch request. /// The Http method to be used for this request operation. /// The Uri to be used for this request operation. /// The Content-ID value to write in ChangeSet header, would be ignored if is "GET". @@ -267,7 +267,7 @@ public ODataBatchOperationRequestMessage CreateOperationRequestMessage(string me return CreateOperationRequestMessage(method, uri, contentId, BatchPayloadUriOption.AbsoluteUri); } - /// Creates an for writing an operation of a batch request. + /// Creates an for writing an operation of a batch request. /// The Http method to be used for this request operation. /// The Uri to be used for this request operation. /// The Content-ID value to write in ChangeSet header, would be ignored if is "GET". @@ -281,7 +281,7 @@ public ODataBatchOperationRequestMessage CreateOperationRequestMessage(string me } /// - /// Creates an for writing an operation of a batch request. + /// Creates an for writing an operation of a batch request. /// /// The Http method to be used for this request operation. /// The Uri to be used for this request operation. @@ -354,7 +354,7 @@ public ODataBatchOperationResponseMessage CreateOperationResponseMessage(string return this.CreateOperationResponseMessageImplementation(contentId); } - /// Asynchronously creates an for writing an operation of a batch response. + /// Asynchronously creates an for writing an operation of a batch response. /// The Content-ID value to write in ChangeSet head. /// A task that when completed returns the newly created operation response message. public Task CreateOperationResponseMessageAsync(string contentId) @@ -592,7 +592,7 @@ private void ThrowODataException(string errorMessage) } /// - /// Internal method to create an for writing + /// Internal method to create an for writing /// an operation of a batch request. /// /// The Http method to be used for this request operation. diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightDeltaReader.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightDeltaReader.cs index aa2997d1a2..da43c332bb 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightDeltaReader.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightDeltaReader.cs @@ -123,8 +123,8 @@ public override ODataReaderState SubState } } - /// Gets the most recent that has been read. - /// The most recent that has been read. + /// Gets the most recent that has been read. + /// The most recent that has been read. public override ODataItem Item { get @@ -145,7 +145,7 @@ public override ODataItem Item #region Public Methods - /// Reads the next from the message payload. + /// Reads the next from the message payload. /// true if more items were read; otherwise false. public override bool Read() { @@ -165,7 +165,7 @@ public override bool Read() return response; } - /// Asynchronously reads the next from the message payload. + /// Asynchronously reads the next from the message payload. /// A task that when completed indicates whether more items were read. public override Task ReadAsync() { diff --git a/src/Microsoft.OData.Core/ODataCollectionWriter.cs b/src/Microsoft.OData.Core/ODataCollectionWriter.cs index e35fc91df7..1f732f7ed6 100644 --- a/src/Microsoft.OData.Core/ODataCollectionWriter.cs +++ b/src/Microsoft.OData.Core/ODataCollectionWriter.cs @@ -17,12 +17,12 @@ namespace Microsoft.OData public abstract class ODataCollectionWriter { /// Start writing a collection. - /// The representing the collection. + /// The representing the collection. public abstract void WriteStart(ODataCollectionStart collectionStart); /// Asynchronously start writing a collection. /// A task instance that represents the asynchronous write operation. - /// The representing the collection. + /// The representing the collection. public abstract Task WriteStartAsync(ODataCollectionStart collectionStart); /// Write a collection item. diff --git a/src/Microsoft.OData.Core/ODataContentTypeException.cs b/src/Microsoft.OData.Core/ODataContentTypeException.cs index afe21f9b79..b3144e90ba 100644 --- a/src/Microsoft.OData.Core/ODataContentTypeException.cs +++ b/src/Microsoft.OData.Core/ODataContentTypeException.cs @@ -13,7 +13,7 @@ namespace Microsoft.OData [DebuggerDisplay("{Message}")] public class ODataContentTypeException : ODataException { - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// /// The Message property is initialized to a system-supplied message /// that describes the error. This message takes into account the @@ -24,14 +24,14 @@ public ODataContentTypeException() { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// Plain text error message for this exception. public ODataContentTypeException(string message) : this(message, null) { } - /// Creates a new instance of the class. + /// Creates a new instance of the class. /// Plain text error message for this exception. /// Exception that caused this exception to be thrown. public ODataContentTypeException(string message, Exception innerException) @@ -40,7 +40,7 @@ public ODataContentTypeException(string message, Exception innerException) } #if ORCAS - /// Creates a new instance of the class from the specified SerializationInfo and StreamingContext instances. + /// Creates a new instance of the class from the specified SerializationInfo and StreamingContext instances. /// A SerializationInfo containing the information required to serialize the new ODataException. /// A StreamingContext containing the source of the serialized stream associated with the new ODataException. [SuppressMessage("Microsoft.Design", "CA1047", Justification = "Follows serialization info pattern.")] diff --git a/src/Microsoft.OData.Core/ODataDeltaReader.cs b/src/Microsoft.OData.Core/ODataDeltaReader.cs index 69b3aa683d..3347535ce7 100644 --- a/src/Microsoft.OData.Core/ODataDeltaReader.cs +++ b/src/Microsoft.OData.Core/ODataDeltaReader.cs @@ -29,15 +29,15 @@ public abstract class ODataDeltaReader /// public abstract ODataReaderState SubState { get; } - /// Gets the most recent that has been read. - /// The most recent that has been read. + /// Gets the most recent that has been read. + /// The most recent that has been read. public abstract ODataItem Item { get; } - /// Reads the next from the message payload. + /// Reads the next from the message payload. /// true if more items were read; otherwise false. public abstract bool Read(); - /// Asynchronously reads the next from the message payload. + /// Asynchronously reads the next from the message payload. /// A task that when completed indicates whether more items were read. public abstract Task ReadAsync(); } diff --git a/src/Microsoft.OData.Core/ODataEntityReferenceLinks.cs b/src/Microsoft.OData.Core/ODataEntityReferenceLinks.cs index 3531b650bf..fef3af737d 100644 --- a/src/Microsoft.OData.Core/ODataEntityReferenceLinks.cs +++ b/src/Microsoft.OData.Core/ODataEntityReferenceLinks.cs @@ -34,8 +34,8 @@ public Uri NextPageLink set; } - /// Gets or sets the enumerable of instances representing the links of the referenced entities. - /// The enumerable of instances. + /// Gets or sets the enumerable of instances representing the links of the referenced entities. + /// The enumerable of instances. /// These links should be usable to retrieve or modify the referenced entities. public IEnumerable Links { diff --git a/src/Microsoft.OData.Core/ODataErrorException.cs b/src/Microsoft.OData.Core/ODataErrorException.cs index 3c25958846..3d0ac9880f 100644 --- a/src/Microsoft.OData.Core/ODataErrorException.cs +++ b/src/Microsoft.OData.Core/ODataErrorException.cs @@ -34,7 +34,7 @@ public sealed class ODataErrorException : ODataException #endif private ODataErrorExceptionSafeSerializationState state; - /// Creates a new instance of the class with default values. + /// Creates a new instance of the class with default values. /// /// The Message property is initialized to a system-supplied message /// that describes the error. This message takes into account the @@ -45,7 +45,7 @@ public ODataErrorException() { } - /// Creates a new instance of the class with an error message. + /// Creates a new instance of the class with an error message. /// The plain text error message for this exception. /// /// The Error property will be initialized with an empty instance. @@ -55,7 +55,7 @@ public ODataErrorException(string message) { } - /// Creates a new instance of the class with an error message and an inner exception. + /// Creates a new instance of the class with an error message and an inner exception. /// The plain text error message for this exception. /// The inner exception that is the cause of this exception to be thrown. /// @@ -66,8 +66,8 @@ public ODataErrorException(string message, Exception innerException) { } - /// Creates a new instance of the class with an object. - /// The instance representing the error read from the payload. + /// Creates a new instance of the class with an object. + /// The instance representing the error read from the payload. /// /// The Message property is initialized to a system-supplied message /// that describes the error. This message takes into account the @@ -78,18 +78,18 @@ public ODataErrorException(ODataError error) { } - /// Creates a new instance of the class with an error message and an object. + /// Creates a new instance of the class with an error message and an object. /// The plain text error message for this exception. - /// The instance representing the error read from the payload. + /// The instance representing the error read from the payload. public ODataErrorException(string message, ODataError error) : this(message, null, error) { } - /// Creates a new instance of the class with an error message, an inner exception, and an object. + /// Creates a new instance of the class with an error message, an inner exception, and an object. /// The plain text error message for this exception. /// The inner exception that is the cause of this exception to be thrown. - /// The instance representing the error read from the payload. + /// The instance representing the error read from the payload. public ODataErrorException(string message, Exception innerException, ODataError error) : base(message, innerException) { @@ -128,8 +128,8 @@ protected ODataErrorException(SerializationInfo info, StreamingContext context) #pragma warning restore 0628 #endif - /// Gets the instance representing the error read from the payload. - /// The instance representing the error read from the payload. + /// Gets the instance representing the error read from the payload. + /// The instance representing the error read from the payload. public ODataError Error { get diff --git a/src/Microsoft.OData.Core/ODataException.cs b/src/Microsoft.OData.Core/ODataException.cs index 266408d05d..f9de2b2ac2 100644 --- a/src/Microsoft.OData.Core/ODataException.cs +++ b/src/Microsoft.OData.Core/ODataException.cs @@ -22,7 +22,7 @@ namespace Microsoft.OData [DebuggerDisplay("{Message}")] public class ODataException : InvalidOperationException { - /// Creates a new instance of the class with default values. + /// Creates a new instance of the class with default values. /// /// The Message property is initialized to a system-supplied message /// that describes the error. This message takes into account the @@ -33,14 +33,14 @@ public ODataException() { } - /// Creates a new instance of the class with an error message. + /// Creates a new instance of the class with an error message. /// The plain text error message for this exception. public ODataException(string message) : this(message, null) { } - /// Creates a new instance of the class with an error message and an inner exception. + /// Creates a new instance of the class with an error message and an inner exception. /// The plain text error message for this exception. /// The inner exception that is the cause of this exception to be thrown. public ODataException(string message, Exception innerException) @@ -49,9 +49,9 @@ public ODataException(string message, Exception innerException) } #if ORCAS - /// Creates a new instance of the class from the specified and instances. - /// A containing the information required to serialize the new . - /// A containing the source of the serialized stream associated with the new . + /// Creates a new instance of the class from the specified and instances. + /// A containing the information required to serialize the new . + /// A containing the source of the serialized stream associated with the new . [SuppressMessage("Microsoft.Design", "CA1047", Justification = "Follows serialization info pattern.")] [SuppressMessage("Microsoft.Design", "CA1032", Justification = "Follows serialization info pattern.")] protected ODataException(SerializationInfo info, StreamingContext context) diff --git a/src/Microsoft.OData.Core/ODataInnerError.cs b/src/Microsoft.OData.Core/ODataInnerError.cs index 536f4c8249..ec6902afc6 100644 --- a/src/Microsoft.OData.Core/ODataInnerError.cs +++ b/src/Microsoft.OData.Core/ODataInnerError.cs @@ -24,7 +24,7 @@ namespace Microsoft.OData #endif public sealed class ODataInnerError { - /// Initializes a new instance of the class with default values. + /// Initializes a new instance of the class with default values. public ODataInnerError() { Properties = new Dictionary(); @@ -36,8 +36,8 @@ public ODataInnerError() Properties.Add(JsonConstants.ODataErrorInnerErrorStackTraceName, new ODataNullValue()); } - /// Initializes a new instance of the class with exception object. - /// The used to create the inner error. + /// Initializes a new instance of the class with exception object. + /// The used to create the inner error. public ODataInnerError(Exception exception) { ExceptionUtils.CheckArgumentNotNull(exception, "exception"); @@ -57,7 +57,7 @@ public ODataInnerError(Exception exception) } /// - /// Initializes a new instance of the class with a dictionary of property names and corresponding ODataValues. + /// Initializes a new instance of the class with a dictionary of property names and corresponding ODataValues. /// /// Dictionary of string keys with ODataValue as value. Key string indicates the property name where as the value of the property is encapsulated in ODataValue. public ODataInnerError(IDictionary properties) diff --git a/src/Microsoft.OData.Core/ODataMessageQuotas.cs b/src/Microsoft.OData.Core/ODataMessageQuotas.cs index 0c6e25983f..eb5577d844 100644 --- a/src/Microsoft.OData.Core/ODataMessageQuotas.cs +++ b/src/Microsoft.OData.Core/ODataMessageQuotas.cs @@ -25,7 +25,7 @@ public sealed class ODataMessageQuotas /// The maximum number of bytes that should be read from the message. private long maxReceivedMessageSize; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. public ODataMessageQuotas() { this.maxPartsPerBatch = ODataConstants.DefaultMaxPartsPerBatch; @@ -34,7 +34,7 @@ public ODataMessageQuotas() this.maxReceivedMessageSize = ODataConstants.DefaultMaxReadMessageSize; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The instance to copy. public ODataMessageQuotas(ODataMessageQuotas other) { diff --git a/src/Microsoft.OData.Core/ODataMessageReader.cs b/src/Microsoft.OData.Core/ODataMessageReader.cs index 5889b5916c..ad71347dd1 100644 --- a/src/Microsoft.OData.Core/ODataMessageReader.cs +++ b/src/Microsoft.OData.Core/ODataMessageReader.cs @@ -78,14 +78,14 @@ public sealed class ODataMessageReader : IDisposable /// The context information for the message. private ODataMessageInfo messageInfo; - /// Creates a new for the given request message. + /// Creates a new for the given request message. /// The request message for which to create the reader. public ODataMessageReader(IODataRequestMessage requestMessage) : this(requestMessage, null) { } - /// Creates a new for the given request message and message reader settings. + /// Creates a new for the given request message and message reader settings. /// The request message for which to create the reader. /// The message reader settings to use for reading the message payload. public ODataMessageReader(IODataRequestMessage requestMessage, ODataMessageReaderSettings settings) @@ -123,14 +123,14 @@ public ODataMessageReader(IODataRequestMessage requestMessage, ODataMessageReade this.edmTypeResolver = new EdmTypeReaderResolver(this.model, this.settings.ClientCustomTypeResolver); } - /// Creates a new for the given response message. + /// Creates a new for the given response message. /// The response message for which to create the reader. public ODataMessageReader(IODataResponseMessage responseMessage) : this(responseMessage, null) { } - /// Creates a new for the given response message and message reader settings. + /// Creates a new for the given response message and message reader settings. /// The response message for which to create the reader. /// The message reader settings to use for reading the message payload. public ODataMessageReader(IODataResponseMessage responseMessage, ODataMessageReaderSettings settings) @@ -285,7 +285,7 @@ public Task> DetectPayloadKindAsync }); } - /// Creates an to read an async response. + /// Creates an to read an async response. /// The created async reader. public ODataAsynchronousReader CreateODataAsynchronousReader() { @@ -295,7 +295,7 @@ public ODataAsynchronousReader CreateODataAsynchronousReader() ODataPayloadKind.Asynchronous); } - /// Asynchronously creates an to read an async response. + /// Asynchronously creates an to read an async response. /// A running task for the created async reader. public Task CreateODataAsynchronousReaderAsync() { @@ -305,7 +305,7 @@ public Task CreateODataAsynchronousReaderAsync() ODataPayloadKind.Asynchronous); } - /// Creates an to read a resource set. + /// Creates an to read a resource set. /// The created reader. public ODataReader CreateODataResourceSetReader() { @@ -337,7 +337,7 @@ public ODataReader CreateODataResourceSetReader(IEdmEntitySetBase entitySet, IEd ODataPayloadKind.ResourceSet); } - /// Asynchronously creates an to read a resource set. + /// Asynchronously creates an to read a resource set. /// A running task for the created reader. public Task CreateODataResourceSetReaderAsync() { @@ -369,7 +369,7 @@ public Task CreateODataResourceSetReaderAsync(IEdmEntitySetBase ent ODataPayloadKind.ResourceSet); } - /// Creates an to read a delta resource set. + /// Creates an to read a delta resource set. /// The created reader. public ODataReader CreateODataDeltaResourceSetReader() { @@ -401,7 +401,7 @@ public ODataReader CreateODataDeltaResourceSetReader(IEdmEntitySetBase entitySet ODataPayloadKind.ResourceSet); } - /// Asynchronously creates an to read a delta resource set. + /// Asynchronously creates an to read a delta resource set. /// A running task for the created reader. public Task CreateODataDeltaResourceSetReaderAsync() { @@ -465,7 +465,7 @@ public Task CreateODataDeltaReaderAsync(IEdmEntitySetBase enti ODataPayloadKind.ResourceSet); } - /// Creates an to read a resource. + /// Creates an to read a resource. /// The created reader. public ODataReader CreateODataResourceReader() { @@ -497,7 +497,7 @@ public ODataReader CreateODataResourceReader(IEdmNavigationSource navigationSour ODataPayloadKind.Resource); } - /// Asynchronously creates an to read a resource. + /// Asynchronously creates an to read a resource. /// A running task for the created reader. public Task CreateODataResourceReaderAsync() { @@ -529,7 +529,7 @@ public Task CreateODataResourceReaderAsync(IEdmNavigationSource nav ODataPayloadKind.Resource); } - /// Creates an to read a collection of primitive or complex values (as result of a service operation invocation). + /// Creates an to read a collection of primitive or complex values (as result of a service operation invocation). /// The created collection reader. public ODataCollectionReader CreateODataCollectionReader() { @@ -549,7 +549,7 @@ public ODataCollectionReader CreateODataCollectionReader(IEdmTypeReference expec ODataPayloadKind.Collection); } - /// Asynchronously creates an to read a collection of primitive or complex values (as result of a service operation invocation). + /// Asynchronously creates an to read a collection of primitive or complex values (as result of a service operation invocation). /// A running task for the created collection reader. public Task CreateODataCollectionReaderAsync() { @@ -570,7 +570,7 @@ public Task CreateODataCollectionReaderAsync(IEdmTypeRefe } - /// Creates an to read a batch of requests or responses. + /// Creates an to read a batch of requests or responses. /// The created batch reader. public ODataBatchReader CreateODataBatchReader() { @@ -580,7 +580,7 @@ public ODataBatchReader CreateODataBatchReader() ODataPayloadKind.Batch); } - /// Asynchronously creates an to read a batch of requests or responses. + /// Asynchronously creates an to read a batch of requests or responses. /// A running task for the created batch reader. public Task CreateODataBatchReaderAsync() { @@ -696,7 +696,7 @@ public Task ReadServiceDocumentAsync() ODataPayloadKind.ServiceDocument); } - /// Reads an as message payload. + /// Reads an as message payload. /// The property read from the payload. public ODataProperty ReadProperty() { @@ -730,7 +730,7 @@ public ODataProperty ReadProperty(IEdmStructuralProperty property) } - /// Asynchronously reads an as message payload. + /// Asynchronously reads an as message payload. /// A task representing the asynchronous operation of reading the property. public Task ReadPropertyAsync() { @@ -764,8 +764,8 @@ public Task ReadPropertyAsync(IEdmStructuralProperty property) } - /// Reads an as the message payload. - /// The read from the message payload. + /// Reads an as the message payload. + /// The read from the message payload. public ODataError ReadError() { this.VerifyCanReadError(); @@ -775,7 +775,7 @@ public ODataError ReadError() } - /// Asynchronously reads an as the message payload. + /// Asynchronously reads an as the message payload. /// A task representing the asynchronous operation of reading the error. public Task ReadErrorAsync() { @@ -857,7 +857,7 @@ public Task ReadValueAsync(IEdmTypeReference expectedTypeReference) } /// Reads the message body as metadata document. - /// Returns . + /// Returns . public IEdmModel ReadMetadataDocument() { this.VerifyCanReadMetadataDocument(); @@ -868,7 +868,7 @@ public IEdmModel ReadMetadataDocument() /// Reads the message body as metadata document. /// The function to load referenced model xml. If null, will stop loading the referenced models. Normally it should throw no exception. - /// Returns . + /// Returns . /// /// User should handle the disposal of XmlReader created by getReferencedModelReaderFunc. /// @@ -880,7 +880,7 @@ public IEdmModel ReadMetadataDocument(Func getReferencedModelRea ODataPayloadKind.MetadataDocument); } - /// implementation to cleanup unmanaged resources of the reader. + /// implementation to cleanup unmanaged resources of the reader. public void Dispose() { this.Dispose(true); diff --git a/src/Microsoft.OData.Core/ODataMessageReaderSettings.cs b/src/Microsoft.OData.Core/ODataMessageReaderSettings.cs index 60148c1383..b6ceb86cb6 100644 --- a/src/Microsoft.OData.Core/ODataMessageReaderSettings.cs +++ b/src/Microsoft.OData.Core/ODataMessageReaderSettings.cs @@ -28,13 +28,13 @@ public sealed class ODataMessageReaderSettings /// private ValidationKinds validations; - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// with default values for OData 4.0. public ODataMessageReaderSettings() : this(ODataConstants.ODataDefaultProtocolVersion) { } - /// Initializes a new instance of the class + /// Initializes a new instance of the class /// with default values for the specified OData version. /// OData Version for which to create default settings. public ODataMessageReaderSettings(ODataVersion odataVersion) @@ -63,7 +63,7 @@ public ODataMessageReaderSettings(ODataVersion odataVersion) } /// - /// Gets or sets library compatibility version. Default value is , + /// Gets or sets library compatibility version. Default value is , /// public ODataLibraryCompatibility LibraryCompatibility { get; set; } diff --git a/src/Microsoft.OData.Core/ODataMessageWriter.cs b/src/Microsoft.OData.Core/ODataMessageWriter.cs index 3575e4ae41..7b0aebc918 100644 --- a/src/Microsoft.OData.Core/ODataMessageWriter.cs +++ b/src/Microsoft.OData.Core/ODataMessageWriter.cs @@ -76,14 +76,14 @@ public sealed class ODataMessageWriter : IDisposable /// The context information for the message. private ODataMessageInfo messageInfo; - /// Creates a new for the given request message. + /// Creates a new for the given request message. /// The request message for which to create the writer. public ODataMessageWriter(IODataRequestMessage requestMessage) : this(requestMessage, null) { } - /// Creates a new for the given request message and message writer settings. + /// Creates a new for the given request message and message writer settings. /// The request message for which to create the writer. /// The message writer settings to use for writing the message payload. public ODataMessageWriter(IODataRequestMessage requestMessage, ODataMessageWriterSettings settings) @@ -115,14 +115,14 @@ public ODataMessageWriter(IODataRequestMessage requestMessage, ODataMessageWrite this.settings.ShouldIncludeAnnotation = AnnotationFilter.CreateIncludeAllFilter().Matches; } - /// Creates a new for the given response message. + /// Creates a new for the given response message. /// The response message for which to create the writer. public ODataMessageWriter(IODataResponseMessage responseMessage) : this(responseMessage, null) { } - /// Creates a new for the given response message and message writer settings. + /// Creates a new for the given response message and message writer settings. /// The response message for which to create the writer. /// The message writer settings to use for writing the message payload. public ODataMessageWriter(IODataResponseMessage responseMessage, ODataMessageWriterSettings settings) @@ -169,7 +169,7 @@ internal ODataMessageWriterSettings Settings } } - /// Creates an to write an async response. + /// Creates an to write an async response. /// The created writer. public ODataAsynchronousWriter CreateODataAsynchronousWriter() { @@ -179,7 +179,7 @@ public ODataAsynchronousWriter CreateODataAsynchronousWriter() context => context.CreateODataAsynchronousWriter()); } - /// Creates an to write a resource set. + /// Creates an to write a resource set. /// The created writer. public ODataWriter CreateODataResourceSetWriter() { @@ -211,7 +211,7 @@ public ODataWriter CreateODataResourceSetWriter(IEdmEntitySetBase entitySet, IEd } - /// Asynchronously creates an to write an async response. + /// Asynchronously creates an to write an async response. /// A running task for the created writer. public Task CreateODataAsynchronousWriterAsync() { @@ -221,7 +221,7 @@ public Task CreateODataAsynchronousWriterAsync() (context) => context.CreateODataAsynchronousWriterAsync()); } - /// Asynchronously creates an to write a resource set. + /// Asynchronously creates an to write a resource set. /// A running task for the created writer. public Task CreateODataResourceSetWriterAsync() { @@ -252,7 +252,7 @@ public Task CreateODataResourceSetWriterAsync(IEdmEntitySetBase ent (context) => context.CreateODataResourceSetWriterAsync(entitySet, structuredType)); } - /// Creates an to write a delta resource set. + /// Creates an to write a delta resource set. /// The created writer. public ODataWriter CreateODataDeltaResourceSetWriter() { @@ -285,7 +285,7 @@ public ODataWriter CreateODataDeltaResourceSetWriter(IEdmEntitySetBase entitySet - /// Asynchronously creates an to write a delta resource set. + /// Asynchronously creates an to write a delta resource set. /// A running task for the created writer. public Task CreateODataDeltaResourceSetWriterAsync() { @@ -347,7 +347,7 @@ public Task CreateODataDeltaWriterAsync(IEdmEntitySetBase enti (context) => context.CreateODataDeltaWriterAsync(entitySet, entityType)); } - /// Creates an to write a resource. + /// Creates an to write a resource. /// The created writer. public ODataWriter CreateODataResourceWriter() { @@ -379,7 +379,7 @@ public ODataWriter CreateODataResourceWriter(IEdmNavigationSource navigationSour } - /// Asynchronously creates an to write a resource. + /// Asynchronously creates an to write a resource. /// A running task for the created writer. public Task CreateODataResourceWriterAsync() { @@ -468,7 +468,7 @@ public Task CreateODataUriParameterResourceSetWriterAsync(IEdmEntit (context) => context.CreateODataUriParameterResourceSetWriterAsync(entitySetBase, resourceType)); } - /// Creates an to write a collection of primitive or complex values (as result of a service operation invocation). + /// Creates an to write a collection of primitive or complex values (as result of a service operation invocation). /// The created collection writer. public ODataCollectionWriter CreateODataCollectionWriter() { @@ -489,7 +489,7 @@ public ODataCollectionWriter CreateODataCollectionWriter(IEdmTypeReference itemT } - /// Asynchronously creates an to write a collection of primitive or complex values (as result of a service operation invocation). + /// Asynchronously creates an to write a collection of primitive or complex values (as result of a service operation invocation). /// A running task for the created collection writer. public Task CreateODataCollectionWriterAsync() { @@ -509,7 +509,7 @@ public Task CreateODataCollectionWriterAsync(IEdmTypeRefe (context) => context.CreateODataCollectionWriterAsync(itemTypeReference)); } - /// Creates an to write a batch of requests or responses. + /// Creates an to write a batch of requests or responses. /// The created batch writer. public ODataBatchWriter CreateODataBatchWriter() { @@ -520,7 +520,7 @@ public ODataBatchWriter CreateODataBatchWriter() } - /// Asynchronously creates an to write a batch of requests or responses. + /// Asynchronously creates an to write a batch of requests or responses. /// A running task for the created batch writer. public Task CreateODataBatchWriterAsync() { @@ -579,7 +579,7 @@ public Task WriteServiceDocumentAsync(ODataServiceDocument serviceDocument) (context) => context.WriteServiceDocumentAsync(serviceDocument)); } - /// Writes an as the message payload. + /// Writes an as the message payload. /// The property to write. public void WriteProperty(ODataProperty property) { @@ -590,7 +590,7 @@ public void WriteProperty(ODataProperty property) } - /// Asynchronously writes an as the message payload. + /// Asynchronously writes an as the message payload. /// A task representing the asynchronous operation of writing the property. /// The property to write public Task WritePropertyAsync(ODataProperty property) @@ -601,7 +601,7 @@ public Task WritePropertyAsync(ODataProperty property) (context) => context.WritePropertyAsync(property)); } - /// Writes an as the message payload. + /// Writes an as the message payload. /// The error to write. /// A flag indicating whether debug information (for example, the inner error from the ) should be included in the payload. This should only be used in debug scenarios. public void WriteError(ODataError error, bool includeDebugInformation) @@ -626,7 +626,7 @@ public void WriteError(ODataError error, bool includeDebugInformation) } - /// Asynchronously writes an as the message payload. + /// Asynchronously writes an as the message payload. /// A task representing the asynchronous operation of writing the error. /// The error to write. /// A flag indicating whether debug information (for example, the inner error from the ) should be included in the payload. This should only be used in debug scenarios. @@ -725,7 +725,7 @@ public void WriteMetadataDocument() (context) => context.WriteMetadataDocument()); } - /// implementation to cleanup unmanaged resources of the writer. + /// implementation to cleanup unmanaged resources of the writer. public void Dispose() { this.Dispose(true); diff --git a/src/Microsoft.OData.Core/ODataMessageWriterSettings.cs b/src/Microsoft.OData.Core/ODataMessageWriterSettings.cs index 0aa2ee633f..973c7a0cc9 100644 --- a/src/Microsoft.OData.Core/ODataMessageWriterSettings.cs +++ b/src/Microsoft.OData.Core/ODataMessageWriterSettings.cs @@ -69,7 +69,7 @@ public sealed class ODataMessageWriterSettings /// private ValidationKinds validations; - /// Initializes a new instance of the class with default settings. + /// Initializes a new instance of the class with default settings. public ODataMessageWriterSettings() { this.EnableMessageStreamDisposal = true; @@ -80,12 +80,12 @@ public ODataMessageWriterSettings() } /// - /// Gets or sets library compatibility version. Default value is , + /// Gets or sets library compatibility version. Default value is , /// public ODataLibraryCompatibility LibraryCompatibility { get; set; } /// - /// Gets or sets validations to perform. Default value is , + /// Gets or sets validations to perform. Default value is , /// public ValidationKinds Validations { diff --git a/src/Microsoft.OData.Core/ODataOperation.cs b/src/Microsoft.OData.Core/ODataOperation.cs index 5239d68113..d2eb563220 100644 --- a/src/Microsoft.OData.Core/ODataOperation.cs +++ b/src/Microsoft.OData.Core/ODataOperation.cs @@ -45,12 +45,12 @@ public abstract class ODataOperation : ODataAnnotatable /// The parameter names for this operation. private string parameterNames; - /// Gets or sets the URI to get metadata for the . - /// The URI to get metadata for the . + /// Gets or sets the URI to get metadata for the . + /// The URI to get metadata for the . public Uri Metadata { get; set; } - /// Gets or sets a human-readable description of the . - /// A human-readable description of the . + /// Gets or sets a human-readable description of the . + /// A human-readable description of the . public string Title { get @@ -67,8 +67,8 @@ public string Title } } - /// Gets or sets the URI to invoke the . - /// The URI to invoke the . + /// Gets or sets the URI to invoke the . + /// The URI to invoke the . public Uri Target { get diff --git a/src/Microsoft.OData.Core/ODataParameterReader.cs b/src/Microsoft.OData.Core/ODataParameterReader.cs index 0851b76b99..3d3e824083 100644 --- a/src/Microsoft.OData.Core/ODataParameterReader.cs +++ b/src/Microsoft.OData.Core/ODataParameterReader.cs @@ -60,8 +60,8 @@ public abstract object Value /// Returns an to read the resource set value when the state is ODataParameterReaderState.ResourceSet. public abstract ODataReader CreateResourceSetReader(); - /// Creates an to read the collection value when the state is ODataParameterReaderState.Collection. - /// An to read the collection value when the state is ODataParameterReaderState.Collection. + /// Creates an to read the collection value when the state is ODataParameterReaderState.Collection. + /// An to read the collection value when the state is ODataParameterReaderState.Collection. /// /// When the state is ODataParameterReaderState.Collection, the Name property of the returns the name of the parameter /// and the Value property of the returns null. Calling this method in any other state will cause an ODataException to be thrown. diff --git a/src/Microsoft.OData.Core/ODataParameterReaderState.cs b/src/Microsoft.OData.Core/ODataParameterReaderState.cs index d8c7e39a23..813d9bdb7e 100644 --- a/src/Microsoft.OData.Core/ODataParameterReaderState.cs +++ b/src/Microsoft.OData.Core/ODataParameterReaderState.cs @@ -6,7 +6,7 @@ namespace Microsoft.OData { - /// Enumeration of all possible states of an . + /// Enumeration of all possible states of an . public enum ODataParameterReaderState { /// The reader is at the start; nothing has been read yet. diff --git a/src/Microsoft.OData.Core/ODataParameterWriter.cs b/src/Microsoft.OData.Core/ODataParameterWriter.cs index 7e8a40c976..6f18301608 100644 --- a/src/Microsoft.OData.Core/ODataParameterWriter.cs +++ b/src/Microsoft.OData.Core/ODataParameterWriter.cs @@ -33,34 +33,34 @@ public abstract class ODataParameterWriter /// The value of the parameter to write. public abstract Task WriteValueAsync(string parameterName, object parameterValue); - /// Creates an to write the value of a collection parameter. - /// The newly created . + /// Creates an to write the value of a collection parameter. + /// The newly created . /// The name of the collection parameter to write. public abstract ODataCollectionWriter CreateCollectionWriter(string parameterName); - /// Asynchronously creates an to write the value of a collection parameter. - /// The asynchronously created . + /// Asynchronously creates an to write the value of a collection parameter. + /// The asynchronously created . /// The name of the collection parameter to write. public abstract Task CreateCollectionWriterAsync(string parameterName); - /// Creates an to write a resource. + /// Creates an to write a resource. /// The name of the parameter to write. /// The created writer. public abstract ODataWriter CreateResourceWriter(string parameterName); - /// Asynchronously creates an to write a resource. + /// Asynchronously creates an to write a resource. /// The name of the parameter to write. - /// The asynchronously created . + /// The asynchronously created . public abstract Task CreateResourceWriterAsync(string parameterName); - /// Creates an to write a resource set. + /// Creates an to write a resource set. /// The name of the parameter to write. /// The created writer. public abstract ODataWriter CreateResourceSetWriter(string parameterName); - /// Asynchronously creates an to write a resource set. + /// Asynchronously creates an to write a resource set. /// The name of the parameter to write. - /// The asynchronously created . + /// The asynchronously created . public abstract Task CreateResourceSetWriterAsync(string parameterName); /// Finish writing a parameter payload. diff --git a/src/Microsoft.OData.Core/ODataParameterWriterCore.cs b/src/Microsoft.OData.Core/ODataParameterWriterCore.cs index 50fdc6239c..c19dceeb8b 100644 --- a/src/Microsoft.OData.Core/ODataParameterWriterCore.cs +++ b/src/Microsoft.OData.Core/ODataParameterWriterCore.cs @@ -192,7 +192,7 @@ public sealed override Task CreateCollectionWriterAsync(s () => this.InterceptException(() => this.CreateCollectionWriterImplementation(parameterName, itemTypeReference))); } - /// Creates an to write a resource. + /// Creates an to write a resource. /// The name of the parameter to write. /// The created writer. public sealed override ODataWriter CreateResourceWriter(string parameterName) @@ -203,9 +203,9 @@ public sealed override ODataWriter CreateResourceWriter(string parameterName) } - /// Asynchronously creates an to write a resource. + /// Asynchronously creates an to write a resource. /// The name of the parameter to write. - /// The asynchronously created . + /// The asynchronously created . public sealed override Task CreateResourceWriterAsync(string parameterName) { ExceptionUtils.CheckArgumentStringNotNullOrEmpty(parameterName, "parameterName"); @@ -214,7 +214,7 @@ public sealed override Task CreateResourceWriterAsync(string parame () => this.InterceptException(() => this.CreateResourceWriterImplementation(parameterName, itemTypeReference))); } - /// Creates an to write a resource set. + /// Creates an to write a resource set. /// The name of the parameter to write. /// The created writer. public sealed override ODataWriter CreateResourceSetWriter(string parameterName) @@ -225,9 +225,9 @@ public sealed override ODataWriter CreateResourceSetWriter(string parameterName) } - /// Asynchronously creates an to write a resource set. + /// Asynchronously creates an to write a resource set. /// The name of the parameter to write. - /// The asynchronously created . + /// The asynchronously created . public sealed override Task CreateResourceSetWriterAsync(string parameterName) { ExceptionUtils.CheckArgumentStringNotNullOrEmpty(parameterName, "parameterName"); diff --git a/src/Microsoft.OData.Core/ODataReader.cs b/src/Microsoft.OData.Core/ODataReader.cs index 78785f5c06..93c6fc23a7 100644 --- a/src/Microsoft.OData.Core/ODataReader.cs +++ b/src/Microsoft.OData.Core/ODataReader.cs @@ -23,11 +23,11 @@ public abstract class ODataReader /// The current state of the reader. public abstract ODataReaderState State { get; } - /// Gets the most recent that has been read. - /// The most recent that has been read. + /// Gets the most recent that has been read. + /// The most recent that has been read. public abstract ODataItem Item { get; } - /// Reads the next from the message payload. + /// Reads the next from the message payload. /// true if more items were read; otherwise false. public abstract bool Read(); @@ -45,7 +45,7 @@ public virtual TextReader CreateTextReader() throw new NotImplementedException(); } - /// Asynchronously reads the next from the message payload. + /// Asynchronously reads the next from the message payload. /// A task that when completed indicates whether more items were read. public abstract Task ReadAsync(); diff --git a/src/Microsoft.OData.Core/ODataUtils.cs b/src/Microsoft.OData.Core/ODataUtils.cs index ada7b4e743..4ed851d88b 100644 --- a/src/Microsoft.OData.Core/ODataUtils.cs +++ b/src/Microsoft.OData.Core/ODataUtils.cs @@ -48,7 +48,7 @@ public static ODataFormat SetHeadersForPayload(ODataMessageWriter messageWriter, /// Returns the format used by the message reader for reading the payload. /// The format used by the messageReader for reading the payload. - /// The to get the read format from. + /// The to get the read format from. /// This method must only be called once reading has started. /// This means that a read method has been called on the or that a reader (for entries, resource sets, collections, etc.) has been created. /// If the method is called prior to that it will throw. diff --git a/src/Microsoft.OData.Core/UriParser/ODataUnrecognizedPathException.cs b/src/Microsoft.OData.Core/UriParser/ODataUnrecognizedPathException.cs index 4a21e4b6c3..77864a6bb3 100644 --- a/src/Microsoft.OData.Core/UriParser/ODataUnrecognizedPathException.cs +++ b/src/Microsoft.OData.Core/UriParser/ODataUnrecognizedPathException.cs @@ -57,7 +57,7 @@ public ODataUnrecognizedPathException(string message, Exception innerException) } #if ORCAS - /// Creates a new instance of the class from the specified SerializationInfo and StreamingContext instances. + /// Creates a new instance of the class from the specified SerializationInfo and StreamingContext instances. /// A SerializationInfo containing the information required to serialize the new ODataUnrecognizedPathException. /// A StreamingContext containing the source of the serialized stream associated with the new ODataUnrecognizedPathException. [SuppressMessage("Microsoft.Design", "CA1047", Justification = "Follows serialization info pattern.")] diff --git a/src/Microsoft.OData.Core/UriParser/Parsers/UriLiteralParsingException.cs b/src/Microsoft.OData.Core/UriParser/Parsers/UriLiteralParsingException.cs index f5150b2cd3..0daa4cd491 100644 --- a/src/Microsoft.OData.Core/UriParser/Parsers/UriLiteralParsingException.cs +++ b/src/Microsoft.OData.Core/UriParser/Parsers/UriLiteralParsingException.cs @@ -20,7 +20,7 @@ namespace Microsoft.OData.UriParser [DebuggerDisplay("{Message}")] public sealed class UriLiteralParsingException : ODataException { - /// Creates a new instance of the class with default values. + /// Creates a new instance of the class with default values. /// /// The Message property is initialized to a system-supplied message /// that describes the error. This message takes into account the @@ -31,14 +31,14 @@ public UriLiteralParsingException() { } - /// Creates a new instance of the class with an error message. + /// Creates a new instance of the class with an error message. /// The plain text error message for this exception. public UriLiteralParsingException(string message) : base(message) { } - /// Creates a new instance of the class with an error message and an inner exception. + /// Creates a new instance of the class with an error message and an inner exception. /// The plain text error message for this exception. /// The inner exception that is the cause of this exception to be thrown. public UriLiteralParsingException(string message, Exception innerException) diff --git a/src/Microsoft.Spatial/CompositeKey.cs b/src/Microsoft.Spatial/CompositeKey.cs index 98543d8a06..846ba03322 100644 --- a/src/Microsoft.Spatial/CompositeKey.cs +++ b/src/Microsoft.Spatial/CompositeKey.cs @@ -91,7 +91,7 @@ public bool Equals(CompositeKey other) /// /// true if the specified is equal to this instance; otherwise, false. /// - /// The parameter is null. + /// The parameter is null. public override bool Equals(object obj) { return Equals(obj as CompositeKey); diff --git a/src/Microsoft.Spatial/CoordinateSystem.cs b/src/Microsoft.Spatial/CoordinateSystem.cs index 44a1ea7ff3..51b0bd9aee 100644 --- a/src/Microsoft.Spatial/CoordinateSystem.cs +++ b/src/Microsoft.Spatial/CoordinateSystem.cs @@ -40,7 +40,7 @@ public class CoordinateSystem /// private Topology topology; - /// Initializes a static instance of the class. + /// Initializes a static instance of the class. [SuppressMessage("Microsoft.Performance", "CA1810", Justification = "Static Constructor required")] static CoordinateSystem() { @@ -49,7 +49,7 @@ static CoordinateSystem() AddRef(DefaultGeography); } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system ID, according to the EPSG /// The Name of the system /// The topology of this coordinate system diff --git a/src/Microsoft.Spatial/Geography/GeoJsonObjectFormatter.cs b/src/Microsoft.Spatial/Geography/GeoJsonObjectFormatter.cs index 5ad80578f8..872089b883 100644 --- a/src/Microsoft.Spatial/Geography/GeoJsonObjectFormatter.cs +++ b/src/Microsoft.Spatial/Geography/GeoJsonObjectFormatter.cs @@ -13,14 +13,14 @@ namespace Microsoft.Spatial public abstract class GeoJsonObjectFormatter { /// Creates the implementation of the formatter. - /// The created implementation. + /// The created implementation. public static GeoJsonObjectFormatter Create() { return SpatialImplementation.CurrentImplementation.CreateGeoJsonObjectFormatter(); } /// Reads from the source. - /// The object that was read. + /// The object that was read. /// The source json object. /// The spatial type to read. public abstract T Read(IDictionary source) where T : class, ISpatial; diff --git a/src/Microsoft.Spatial/Geography/Geography.cs b/src/Microsoft.Spatial/Geography/Geography.cs index 3a2917561d..bb4896cf12 100644 --- a/src/Microsoft.Spatial/Geography/Geography.cs +++ b/src/Microsoft.Spatial/Geography/Geography.cs @@ -22,7 +22,7 @@ public abstract class Geography : ISpatial /// private CoordinateSystem coordinateSystem; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this geography. /// The implementation that created this instance. protected Geography(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyCollection.cs b/src/Microsoft.Spatial/Geography/GeographyCollection.cs index 6c2796ea88..0e0d5eef82 100644 --- a/src/Microsoft.Spatial/Geography/GeographyCollection.cs +++ b/src/Microsoft.Spatial/Geography/GeographyCollection.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the collection of geographies. public abstract class GeographyCollection : Geography { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this geography collection. /// The implementation that created this instance. protected GeographyCollection(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyCurve.cs b/src/Microsoft.Spatial/Geography/GeographyCurve.cs index 6ae50cc1c7..c69cc1400b 100644 --- a/src/Microsoft.Spatial/Geography/GeographyCurve.cs +++ b/src/Microsoft.Spatial/Geography/GeographyCurve.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the curve of geography. public abstract class GeographyCurve : Geography { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this geography curve. /// The implementation that created this instance. protected GeographyCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyFullGlobe.cs b/src/Microsoft.Spatial/Geography/GeographyFullGlobe.cs index 7227d58228..f0765149df 100644 --- a/src/Microsoft.Spatial/Geography/GeographyFullGlobe.cs +++ b/src/Microsoft.Spatial/Geography/GeographyFullGlobe.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the full globe of geography. public abstract class GeographyFullGlobe : GeographySurface { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyFullGlobe(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyLineString.cs b/src/Microsoft.Spatial/Geography/GeographyLineString.cs index 84c28ccb30..6f2afbb208 100644 --- a/src/Microsoft.Spatial/Geography/GeographyLineString.cs +++ b/src/Microsoft.Spatial/Geography/GeographyLineString.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents a geography line string consist of an array of geo points. public abstract class GeographyLineString : GeographyCurve { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyMultiCurve.cs b/src/Microsoft.Spatial/Geography/GeographyMultiCurve.cs index 285f6630f8..a398211c5d 100644 --- a/src/Microsoft.Spatial/Geography/GeographyMultiCurve.cs +++ b/src/Microsoft.Spatial/Geography/GeographyMultiCurve.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the multi-curve of geography. public abstract class GeographyMultiCurve : GeographyCollection { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyMultiCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyMultiLineString.cs b/src/Microsoft.Spatial/Geography/GeographyMultiLineString.cs index 1fcdeab2dd..34ee63ab98 100644 --- a/src/Microsoft.Spatial/Geography/GeographyMultiLineString.cs +++ b/src/Microsoft.Spatial/Geography/GeographyMultiLineString.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the multi-line string of geography. public abstract class GeographyMultiLineString : GeographyMultiCurve { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyMultiLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyMultiPoint.cs b/src/Microsoft.Spatial/Geography/GeographyMultiPoint.cs index 97426d9672..6c7bab80f9 100644 --- a/src/Microsoft.Spatial/Geography/GeographyMultiPoint.cs +++ b/src/Microsoft.Spatial/Geography/GeographyMultiPoint.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the multi-point of geography. public abstract class GeographyMultiPoint : GeographyCollection { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyMultiPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyMultiPolygon.cs b/src/Microsoft.Spatial/Geography/GeographyMultiPolygon.cs index 9a0a752cd3..1ee83fa6f3 100644 --- a/src/Microsoft.Spatial/Geography/GeographyMultiPolygon.cs +++ b/src/Microsoft.Spatial/Geography/GeographyMultiPolygon.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the multi-polygon of geography. public abstract class GeographyMultiPolygon : GeographyMultiSurface { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyMultiPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyMultiSurface.cs b/src/Microsoft.Spatial/Geography/GeographyMultiSurface.cs index de21f6fa30..a347f59c19 100644 --- a/src/Microsoft.Spatial/Geography/GeographyMultiSurface.cs +++ b/src/Microsoft.Spatial/Geography/GeographyMultiSurface.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the multi-surface of geography. public abstract class GeographyMultiSurface : GeographyCollection { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyMultiSurface(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyPoint.cs b/src/Microsoft.Spatial/Geography/GeographyPoint.cs index 3fa0fc7589..40c3281303 100644 --- a/src/Microsoft.Spatial/Geography/GeographyPoint.cs +++ b/src/Microsoft.Spatial/Geography/GeographyPoint.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents a geography point. public abstract class GeographyPoint : Geography { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyPolygon.cs b/src/Microsoft.Spatial/Geography/GeographyPolygon.cs index 0ddcd53eb2..d3181a4d89 100644 --- a/src/Microsoft.Spatial/Geography/GeographyPolygon.cs +++ b/src/Microsoft.Spatial/Geography/GeographyPolygon.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geography polygon. public abstract class GeographyPolygon : GeographySurface { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographyPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geography/GeographyPosition.cs b/src/Microsoft.Spatial/Geography/GeographyPosition.cs index dd0c55fb1f..0bc1163cb0 100644 --- a/src/Microsoft.Spatial/Geography/GeographyPosition.cs +++ b/src/Microsoft.Spatial/Geography/GeographyPosition.cs @@ -29,7 +29,7 @@ public class GeographyPosition : IEquatable /// altitude portion of position private readonly double? z; - /// Creates a new instance of the class from components. + /// Creates a new instance of the class from components. /// The latitude portion of a position. /// The longitude portion of a position. /// The altitude portion of a position. @@ -43,7 +43,7 @@ public GeographyPosition(double latitude, double longitude, double? z, double? m this.m = m; } - /// Creates a new instance of the class from components. + /// Creates a new instance of the class from components. /// The latitude portion of a position. /// The longitude portion of a position. public GeographyPosition(double latitude, double longitude) diff --git a/src/Microsoft.Spatial/Geography/GeographySurface.cs b/src/Microsoft.Spatial/Geography/GeographySurface.cs index d9fcdb5bb7..1527a07df8 100644 --- a/src/Microsoft.Spatial/Geography/GeographySurface.cs +++ b/src/Microsoft.Spatial/Geography/GeographySurface.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the geography surface. public abstract class GeographySurface : Geography { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeographySurface(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/Geometry.cs b/src/Microsoft.Spatial/Geometry/Geometry.cs index 8183747250..bf5be53c42 100644 --- a/src/Microsoft.Spatial/Geometry/Geometry.cs +++ b/src/Microsoft.Spatial/Geometry/Geometry.cs @@ -19,7 +19,7 @@ public abstract class Geometry : ISpatial /// private CoordinateSystem coordinateSystem; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected Geometry(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryCollection.cs b/src/Microsoft.Spatial/Geometry/GeometryCollection.cs index b2edfcc507..762063f5b9 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryCollection.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryCollection.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geometry collection. public abstract class GeometryCollection : Geometry { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryCollection(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryCurve.cs b/src/Microsoft.Spatial/Geometry/GeometryCurve.cs index 76bea4cda6..5c57f787c6 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryCurve.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryCurve.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the geometry curve. public abstract class GeometryCurve : Geometry { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryLineString.cs b/src/Microsoft.Spatial/Geometry/GeometryLineString.cs index 2e56cb3a14..2e4b39c4a6 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryLineString.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryLineString.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geometry line string. public abstract class GeometryLineString : GeometryCurve { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryMultiCurve.cs b/src/Microsoft.Spatial/Geometry/GeometryMultiCurve.cs index c64c9677e6..9c5616ec40 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryMultiCurve.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryMultiCurve.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the geometry multi-curve. public abstract class GeometryMultiCurve : GeometryCollection { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryMultiCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryMultiLineString.cs b/src/Microsoft.Spatial/Geometry/GeometryMultiLineString.cs index c3600a427d..f83e703e81 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryMultiLineString.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryMultiLineString.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geometry multi-line string. public abstract class GeometryMultiLineString : GeometryMultiCurve { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryMultiLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryMultiPoint.cs b/src/Microsoft.Spatial/Geometry/GeometryMultiPoint.cs index 4f373d9829..e9598dc096 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryMultiPoint.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryMultiPoint.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geometry multi-point. public abstract class GeometryMultiPoint : GeometryCollection { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryMultiPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryMultiPolygon.cs b/src/Microsoft.Spatial/Geometry/GeometryMultiPolygon.cs index a01d371220..59c0fb1935 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryMultiPolygon.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryMultiPolygon.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the geometry multi-polygon. public abstract class GeometryMultiPolygon : GeometryMultiSurface { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The coordinate system of this instance. /// The implementation that created this instance. protected GeometryMultiPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryPoint.cs b/src/Microsoft.Spatial/Geometry/GeometryPoint.cs index 76790ed2a0..5ffce00da0 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryPoint.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryPoint.cs @@ -9,7 +9,7 @@ namespace Microsoft.Spatial /// Represents the Geometry Point. public abstract class GeometryPoint : Geometry { - /// Initializes a new instance of the class. Empty Point constructor. + /// Initializes a new instance of the class. Empty Point constructor. /// The CoordinateSystem. /// The implementation that created this instance. protected GeometryPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryPolygon.cs b/src/Microsoft.Spatial/Geometry/GeometryPolygon.cs index 57b1864909..37c8e296c0 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryPolygon.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryPolygon.cs @@ -12,7 +12,7 @@ namespace Microsoft.Spatial /// Represents the Geometry polygon. public abstract class GeometryPolygon : GeometrySurface { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The CoordinateSystem. /// The implementation that created this instance. protected GeometryPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) diff --git a/src/Microsoft.Spatial/Geometry/GeometryPosition.cs b/src/Microsoft.Spatial/Geometry/GeometryPosition.cs index ce06442f80..d67d00e4da 100644 --- a/src/Microsoft.Spatial/Geometry/GeometryPosition.cs +++ b/src/Microsoft.Spatial/Geometry/GeometryPosition.cs @@ -26,7 +26,7 @@ public class GeometryPosition : IEquatable /// altitude portion of position private readonly double? z; - /// Creates a new instance of the from components. + /// Creates a new instance of the from components. /// The X portion of position. /// The Y portion of position. /// The altitude portion of position. @@ -40,7 +40,7 @@ public GeometryPosition(double x, double y, double? z, double? m) this.m = m; } - /// Creates a new instance of the from components. + /// Creates a new instance of the from components. /// The X portion of position. /// The Y portion of position. [SuppressMessage("Microsoft.Naming", "CA1704", Justification = "x, y make sense in context")] diff --git a/src/Microsoft.Spatial/Gml/GmlFormatter.cs b/src/Microsoft.Spatial/Gml/GmlFormatter.cs index 7674f3a987..46887cfdd2 100644 --- a/src/Microsoft.Spatial/Gml/GmlFormatter.cs +++ b/src/Microsoft.Spatial/Gml/GmlFormatter.cs @@ -14,7 +14,7 @@ namespace Microsoft.Spatial [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Gml", Justification = "Gml is the accepted name in the industry")] public abstract class GmlFormatter : SpatialFormatter { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The implementation that created this instance. protected GmlFormatter(SpatialImplementation creator) : base(creator) { diff --git a/src/Microsoft.Spatial/ParseErrorException.cs b/src/Microsoft.Spatial/ParseErrorException.cs index 9e390d6bd8..0cd7a40f29 100644 --- a/src/Microsoft.Spatial/ParseErrorException.cs +++ b/src/Microsoft.Spatial/ParseErrorException.cs @@ -11,12 +11,12 @@ namespace Microsoft.Spatial /// The exception that is thrown on an unsuccessful parsing of the serialized format. public class ParseErrorException : Exception { - /// Creates a new instance of the class. + /// Creates a new instance of the class. public ParseErrorException() { } - /// Creates a new instance of the class from a message and previous exception. + /// Creates a new instance of the class from a message and previous exception. /// The message about the exception. /// The exception that preceded this one. public ParseErrorException(string message, Exception innerException) @@ -24,7 +24,7 @@ public ParseErrorException(string message, Exception innerException) { } - /// Creates a new instance of the class from a message. + /// Creates a new instance of the class from a message. /// The message about the exception. public ParseErrorException(string message) : base(message) diff --git a/src/Microsoft.Spatial/Spatial/SpatialBuilder.cs b/src/Microsoft.Spatial/Spatial/SpatialBuilder.cs index cc001fdc51..a458d0666b 100644 --- a/src/Microsoft.Spatial/Spatial/SpatialBuilder.cs +++ b/src/Microsoft.Spatial/Spatial/SpatialBuilder.cs @@ -22,7 +22,7 @@ public class SpatialBuilder : SpatialPipeline, IShapeProvider /// private readonly IGeometryProvider geometryOutput; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The geography input. /// The geometry input. /// The geography output. diff --git a/src/Microsoft.Spatial/Spatial/SpatialFormatter.cs b/src/Microsoft.Spatial/Spatial/SpatialFormatter.cs index 31ec85d6fc..28983f8a74 100644 --- a/src/Microsoft.Spatial/Spatial/SpatialFormatter.cs +++ b/src/Microsoft.Spatial/Spatial/SpatialFormatter.cs @@ -19,7 +19,7 @@ public abstract class SpatialFormatter /// private readonly SpatialImplementation creator; - /// Initializes a new instance of the <see cref="T:Microsoft.Spatial.SpatialFormatter`2" /> class. + /// Initializes a new instance of the <see cref="Microsoft.Spatial.SpatialFormatter`2" /> class. /// The implementation that created this instance. protected SpatialFormatter(SpatialImplementation creator) { diff --git a/src/Microsoft.Spatial/Spatial/SpatialPipeline.cs b/src/Microsoft.Spatial/Spatial/SpatialPipeline.cs index d1e5d12c93..a51c4349e5 100644 --- a/src/Microsoft.Spatial/Spatial/SpatialPipeline.cs +++ b/src/Microsoft.Spatial/Spatial/SpatialPipeline.cs @@ -31,13 +31,13 @@ public class SpatialPipeline /// private SpatialPipeline startingLink; - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. public SpatialPipeline() { this.startingLink = this; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The geography chain. /// The geometry chain. public SpatialPipeline(GeographyPipeline geographyPipeline, GeometryPipeline geometryPipeline) diff --git a/src/Microsoft.Spatial/WellKnown/WellKnownTextSqlFormatter.cs b/src/Microsoft.Spatial/WellKnown/WellKnownTextSqlFormatter.cs index 3f0a4f0f9c..72b1b2f192 100644 --- a/src/Microsoft.Spatial/WellKnown/WellKnownTextSqlFormatter.cs +++ b/src/Microsoft.Spatial/WellKnown/WellKnownTextSqlFormatter.cs @@ -13,7 +13,7 @@ namespace Microsoft.Spatial /// public abstract class WellKnownTextSqlFormatter : SpatialFormatter { - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The implementation that created this instance. protected WellKnownTextSqlFormatter(SpatialImplementation creator) : base(creator) { From b4f3f46c1eb4074946bfa21ecf175f8bc9be367b Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 22:35:18 +0200 Subject: [PATCH 02/27] Fix xUnit2017: replace Assert.IsTrue(Contains) with Assert.Contains. --- .../Vocabularies/AuthorizationVocabularyTests.cs | 4 ++-- .../Vocabularies/CapabilitiesVocabularyTests.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/AuthorizationVocabularyTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/AuthorizationVocabularyTests.cs index 10b1a1a4b7..3114693d09 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/AuthorizationVocabularyTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/AuthorizationVocabularyTests.cs @@ -166,8 +166,8 @@ public void TestAuthorizationVocabularyDependsOnCoreVocabulary() Assert.Equal(2, referencedModels.Count()); - Assert.True(referencedModels.Contains(EdmCoreModel.Instance)); - Assert.True(referencedModels.Contains(CoreVocabularyModel.Instance)); + Assert.Contains(EdmCoreModel.Instance, referencedModels); + Assert.Contains(CoreVocabularyModel.Instance, referencedModels); } [Fact] diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs index f692b0d06a..e65de2326b 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs @@ -764,10 +764,10 @@ public void TestCapabilitiesVocabularyDependsOnCoreAuthorizationValidationVocabu Assert.Equal(4, referencedModels.Count()); - Assert.True(referencedModels.Contains(EdmCoreModel.Instance)); - Assert.True(referencedModels.Contains(CoreVocabularyModel.Instance)); - Assert.True(referencedModels.Contains(ValidationVocabularyModel.Instance)); - Assert.True(referencedModels.Contains(AuthorizationVocabularyModel.Instance)); + Assert.Contains(EdmCoreModel.Instance, referencedModels); + Assert.Contains(CoreVocabularyModel.Instance, referencedModels); + Assert.Contains(ValidationVocabularyModel.Instance, referencedModels); + Assert.Contains(AuthorizationVocabularyModel.Instance, referencedModels); } [Theory] From aaef400e28e6f86dba051e97d86870f642fa45de Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 22:49:47 +0200 Subject: [PATCH 03/27] Fix CA1063: implement Dispose correctly. --- src/Microsoft.OData.Core/ODataInputContext.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.OData.Core/ODataInputContext.cs b/src/Microsoft.OData.Core/ODataInputContext.cs index 1164e90d4c..78ff3a6bad 100644 --- a/src/Microsoft.OData.Core/ODataInputContext.cs +++ b/src/Microsoft.OData.Core/ODataInputContext.cs @@ -189,14 +189,8 @@ internal ODataSimplifiedOptions ODataSimplifiedOptions /// public void Dispose() { - if (this.disposed) - { - return; - } - this.Dispose(true); GC.SuppressFinalize(this); - this.disposed = true; } /// @@ -619,6 +613,12 @@ internal Uri ResolveUri(Uri baseUri, Uri payloadUri) /// If 'true' this method is called from user code; if 'false' it is called by the runtime. protected virtual void Dispose(bool disposing) { + if (this.disposed) + { + return; + } + + this.disposed = true; } /// From 2ba095c023d04bd128b414f83103b65cd032a116 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 22:56:35 +0200 Subject: [PATCH 04/27] Fix CA1309: use StringComparison.Ordinal. --- src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs | 2 +- src/Microsoft.OData.Client/ALinq/ResourceBinder.cs | 4 ++-- src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs | 2 +- src/Microsoft.OData.Client/DataServiceClientFormat.cs | 2 +- .../JsonLight/ODataJsonLightBatchAtomicGroupCache.cs | 2 +- .../JsonLight/ODataJsonLightBatchBodyContentReaderStream.cs | 4 ++-- .../ODataJsonLightBatchPayloadItemPropertiesCache.cs | 2 +- .../JsonLight/ODataJsonLightBatchReader.cs | 6 +++--- .../JsonLight/ODataJsonLightBatchWriter.cs | 4 ++-- .../JsonLight/ODataJsonLightContextUriParser.cs | 6 +++--- src/Microsoft.OData.Core/ODataPreferenceHeader.cs | 4 ++-- src/Microsoft.OData.Core/SelectedPropertiesNode.cs | 2 +- .../UriParser/Aggregation/ApplyBinder.cs | 2 +- src/Microsoft.OData.Core/UriParser/Binders/EndPathBinder.cs | 2 +- .../UriParser/Parsers/SelectExpandOptionParser.cs | 2 +- .../UriParser/SyntacticAst/PathToken.cs | 2 +- .../UriParser/SyntacticAst/RangeVariableToken.cs | 2 +- src/Microsoft.OData.Edm/ExtensionMethods/EnumHelper.cs | 2 +- src/Microsoft.Spatial/Gml/GmlReader.cs | 2 +- 19 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs b/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs index e3779961cd..ed1b49b07c 100644 --- a/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs +++ b/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs @@ -463,7 +463,7 @@ internal override Expression VisitMemberAccess(MemberExpression m) var parentType = m.Member.DeclaringType; Type collectionType = ClientTypeUtil.GetImplementationType(parentType, typeof(ICollection<>)); if (!PrimitiveType.IsKnownNullableType(parentType) && collectionType != null && - m.Member.Name.Equals(ReflectionUtil.COUNTPROPNAME)) + m.Member.Name.Equals(ReflectionUtil.COUNTPROPNAME, StringComparison.Ordinal)) { this.builder.Append(UriHelper.DOLLARSIGN).Append(UriHelper.COUNT); } diff --git a/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs b/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs index 0735a930a2..f3f1ee1bf2 100644 --- a/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs +++ b/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs @@ -2772,7 +2772,7 @@ internal override Expression VisitMemberAccess(MemberExpression m) PropertyInfo pi = (PropertyInfo)m.Member; // For member like "c.Trips.Count", when Count is visited, no future visit if declare type is a Collection - if (pi.Name.Equals(ReflectionUtil.COUNTPROPNAME)) + if (pi.Name.Equals(ReflectionUtil.COUNTPROPNAME, StringComparison.Ordinal)) { MemberExpression me = StripTo(m.Expression); if (me != null && !PrimitiveType.IsKnownNullableType(me.Type)) @@ -2951,7 +2951,7 @@ public bool Equals(PropertyInfo left, PropertyInfo right) // If the declaring type and the name of the property are the same, // both the property infos refer to the same property. - return object.ReferenceEquals(left.DeclaringType, right.DeclaringType) && left.Name.Equals(right.Name); + return object.ReferenceEquals(left.DeclaringType, right.DeclaringType) && left.Name.Equals(right.Name, StringComparison.Ordinal); } /// diff --git a/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs b/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs index 051677feb4..2182cfb282 100644 --- a/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs +++ b/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs @@ -409,7 +409,7 @@ private static IEdmVocabularyAnnotation GetCachedMetadataAnnotation(DataServiceC if (key != null && context.MetadataAnnotationsDictionary.ContainsKey(key)) { var annotations = context.MetadataAnnotationsDictionary[key] - .Where(a => a.Term.FullName().Equals(term) && a.Qualifier == qualifier); + .Where(a => a.Term.FullName().Equals(term, StringComparison.Ordinal) && a.Qualifier == qualifier); // If there are more than one annotation per term and qualifier returned, we will return null if (annotations.Count() == 1) diff --git a/src/Microsoft.OData.Client/DataServiceClientFormat.cs b/src/Microsoft.OData.Client/DataServiceClientFormat.cs index a30f585a3f..f5010069c5 100644 --- a/src/Microsoft.OData.Client/DataServiceClientFormat.cs +++ b/src/Microsoft.OData.Client/DataServiceClientFormat.cs @@ -173,7 +173,7 @@ internal void SetRequestAcceptHeaderForCount(HeaderCollection headers) /// The headers to modify. internal void SetRequestAcceptHeaderForBatch(HeaderCollection headers) { - bool useJsonBatch = headers.GetHeader(XmlConstants.HttpContentType).Equals(MimeApplicationJson); + bool useJsonBatch = headers.GetHeader(XmlConstants.HttpContentType).Equals(MimeApplicationJson, StringComparison.Ordinal); this.SetAcceptHeaderAndCharset(headers, useJsonBatch? MimeApplicationJson : MimeMultiPartMixed); } diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchAtomicGroupCache.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchAtomicGroupCache.cs index b297127d9e..3998874fb9 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchAtomicGroupCache.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchAtomicGroupCache.cs @@ -61,7 +61,7 @@ internal bool IsChangesetEnd(string groupId) "!(isWithinAtomicGroup && precedingMessageGroupId == null)"); if (!isWithinAtomicGroup - || ((precedingMessageGroupId != null) && precedingMessageGroupId.Equals(groupId)) + || ((precedingMessageGroupId != null) && precedingMessageGroupId.Equals(groupId, StringComparison.Ordinal)) /*groupId is member of existing atomic group scope*/) { return false; diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchBodyContentReaderStream.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchBodyContentReaderStream.cs index 55fa67fd8c..145eba7d18 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchBodyContentReaderStream.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchBodyContentReaderStream.cs @@ -135,7 +135,7 @@ internal void PopulateCachedBodyContent(string contentTypeHeader) ODataMediaType mediaType = GetMediaType(contentTypeHeader); // Content-Type can be either textual or binary, since json content is not cached. - if (mediaType != null && mediaType.Type.Equals(MimeConstants.MimeTextType)) + if (mediaType != null && mediaType.Type.Equals(MimeConstants.MimeTextType, StringComparison.Ordinal)) { // Explicit check for matching of textual content-type. string bodyContent = string.Format(CultureInfo.InvariantCulture, @@ -192,7 +192,7 @@ protected override void Dispose(bool disposing) { // We have processed the content-type header and should determine batch operation request // content type now. - if (mediaType != null && mediaType.Type.Equals(MimeConstants.MimeTextType)) + if (mediaType != null && mediaType.Type.Equals(MimeConstants.MimeTextType, StringComparison.Ordinal)) { // Explicit check for matching of textual content-type. result = BatchPayloadBodyContentType.Textual; diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchPayloadItemPropertiesCache.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchPayloadItemPropertiesCache.cs index 01f964f7fa..ab9baa230a 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchPayloadItemPropertiesCache.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchPayloadItemPropertiesCache.cs @@ -227,7 +227,7 @@ private void ScanJsonProperties() string headerValue = this.jsonReader.ReadPrimitiveValue().ToString(); // Remember the Content-Type header value. - if (headerName.Equals(ODataConstants.ContentTypeHeader, StringComparison.CurrentCultureIgnoreCase)) + if (headerName.Equals(ODataConstants.ContentTypeHeader, StringComparison.OrdinalIgnoreCase)) { contentTypeHeader = headerValue; } diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchReader.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchReader.cs index b33be2bc8a..574d0aa268 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchReader.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchReader.cs @@ -358,7 +358,7 @@ private void ValidateDependsOnId(IEnumerable dependsOnIds, string atomic Debug.Assert(dependsOnId != null, "dependsOnId != null"); // Self reference to atomicityGroup is not allowed. - if (dependsOnId.Equals(atomicityGroupId)) + if (dependsOnId.Equals(atomicityGroupId, StringComparison.Ordinal)) { throw new ODataException(Strings.ODataBatchReader_SameRequestIdAsAtomicityGroupIdNotAllowed( dependsOnId, @@ -366,7 +366,7 @@ private void ValidateDependsOnId(IEnumerable dependsOnIds, string atomic } // Self reference is not allowed. - if (dependsOnId.Equals(requestId)) + if (dependsOnId.Equals(requestId, StringComparison.Ordinal)) { throw new ODataException(Strings.ODataBatchReader_SelfReferenceDependsOnRequestIdNotAllowed( dependsOnId, @@ -376,7 +376,7 @@ private void ValidateDependsOnId(IEnumerable dependsOnIds, string atomic // For request Id referred to by dependsOn attribute, check that it is not part of any atomic group // other than the dependent request's atomic group (if dependent request belongs to an atomic group). string groupId = this.atomicGroups.GetGroupId(dependsOnId); - if (groupId != null && !groupId.Equals(this.atomicGroups.GetGroupId(requestId))) + if (groupId != null && !groupId.Equals(this.atomicGroups.GetGroupId(requestId), StringComparison.Ordinal)) { throw new ODataException(Strings.ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed( dependsOnId, diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchWriter.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchWriter.cs index 643a6fdd33..a94319b7fb 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchWriter.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightBatchWriter.cs @@ -427,7 +427,7 @@ private void ValidateDependsOnId(string requestId, string dependsOnId) string currentGroupId; this.requestIdToAtomicGroupId.TryGetValue(requestId, out currentGroupId); - if (dependsOnId.Equals(currentGroupId)) + if (dependsOnId.Equals(currentGroupId, StringComparison.Ordinal)) { throw new ODataException( Strings.ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed(requestId, dependsOnId)); @@ -449,7 +449,7 @@ private void ValidateDependsOnId(string requestId, string dependsOnId) string currentGroupId; this.requestIdToAtomicGroupId.TryGetValue(requestId, out currentGroupId); - if (!groupId.Equals(currentGroupId)) + if (!groupId.Equals(currentGroupId, StringComparison.Ordinal)) { throw new ODataException( Strings.ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed(requestId, groupId)); diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightContextUriParser.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightContextUriParser.cs index 1e4d7d8c60..10720bc578 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightContextUriParser.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightContextUriParser.cs @@ -301,7 +301,7 @@ private ODataPayloadKind ParseContextUriFragment(string fragment, Func n.Key.Equals(navigationPropertyName) && n.Value.isExpandedNavigationProperty))) + (this.children == null || !this.children.Any(n => n.Key.Equals(navigationPropertyName, StringComparison.Ordinal) && n.Value.isExpandedNavigationProperty))) { return new SelectedPropertiesNode(SelectionType.EntireSubtree); } diff --git a/src/Microsoft.OData.Core/UriParser/Aggregation/ApplyBinder.cs b/src/Microsoft.OData.Core/UriParser/Aggregation/ApplyBinder.cs index 9f3cac18d3..eb527e2640 100644 --- a/src/Microsoft.OData.Core/UriParser/Aggregation/ApplyBinder.cs +++ b/src/Microsoft.OData.Core/UriParser/Aggregation/ApplyBinder.cs @@ -211,7 +211,7 @@ private IEdmTypeReference GetTypeReferenceByPropertyName(string name) if (aggregateExpressionsCache != null) { AggregateExpression expression = aggregateExpressionsCache.OfType() - .FirstOrDefault(statement => statement.AggregateKind == AggregateExpressionKind.PropertyAggregate && statement.Alias.Equals(name)); + .FirstOrDefault(statement => statement.AggregateKind == AggregateExpressionKind.PropertyAggregate && statement.Alias.Equals(name, StringComparison.Ordinal)); if (expression != null) { return expression.TypeReference; diff --git a/src/Microsoft.OData.Core/UriParser/Binders/EndPathBinder.cs b/src/Microsoft.OData.Core/UriParser/Binders/EndPathBinder.cs index 19ddac3ee7..306d11ee7e 100644 --- a/src/Microsoft.OData.Core/UriParser/Binders/EndPathBinder.cs +++ b/src/Microsoft.OData.Core/UriParser/Binders/EndPathBinder.cs @@ -176,7 +176,7 @@ internal QueryNode BindEndPath(EndPathToken endPathToken) // Collection with any or all expression is already supported and handled separately. // Add support of collection with $count segment. CollectionNode colNode = parent as CollectionNode; - if (colNode != null && endPathToken.Identifier.Equals(UriQueryConstants.CountSegment)) + if (colNode != null && endPathToken.Identifier.Equals(UriQueryConstants.CountSegment, System.StringComparison.Ordinal)) { // create a collection count node for collection node property. return new CountNode(colNode); diff --git a/src/Microsoft.OData.Core/UriParser/Parsers/SelectExpandOptionParser.cs b/src/Microsoft.OData.Core/UriParser/Parsers/SelectExpandOptionParser.cs index 5a9a55db6b..d7ad4ff6c7 100644 --- a/src/Microsoft.OData.Core/UriParser/Parsers/SelectExpandOptionParser.cs +++ b/src/Microsoft.OData.Core/UriParser/Parsers/SelectExpandOptionParser.cs @@ -412,7 +412,7 @@ private List BuildStarExpandTermToken(PathSegmentToken pathToke var tmpPathToken = default(PathSegmentToken); // create path token for each navigation properties. - if (pathToken.Identifier.Equals(UriQueryConstants.RefSegment)) + if (pathToken.Identifier.Equals(UriQueryConstants.RefSegment, StringComparison.Ordinal)) { tmpPathToken = new NonSystemToken(navigationProperty.Name, null, pathToken.NextToken.NextToken); tmpPathToken = new NonSystemToken(UriQueryConstants.RefSegment, null, tmpPathToken); diff --git a/src/Microsoft.OData.Core/UriParser/SyntacticAst/PathToken.cs b/src/Microsoft.OData.Core/UriParser/SyntacticAst/PathToken.cs index 5364fe2765..54c6494597 100644 --- a/src/Microsoft.OData.Core/UriParser/SyntacticAst/PathToken.cs +++ b/src/Microsoft.OData.Core/UriParser/SyntacticAst/PathToken.cs @@ -39,7 +39,7 @@ public override bool Equals(object obj) return false; } - return this.Identifier.Equals(otherPath.Identifier) + return this.Identifier.Equals(otherPath.Identifier, System.StringComparison.Ordinal) && (this.NextToken == null && otherPath.NextToken == null || this.NextToken.Equals(otherPath.NextToken)); } diff --git a/src/Microsoft.OData.Core/UriParser/SyntacticAst/RangeVariableToken.cs b/src/Microsoft.OData.Core/UriParser/SyntacticAst/RangeVariableToken.cs index cf8232bba3..edae2600d3 100644 --- a/src/Microsoft.OData.Core/UriParser/SyntacticAst/RangeVariableToken.cs +++ b/src/Microsoft.OData.Core/UriParser/SyntacticAst/RangeVariableToken.cs @@ -69,7 +69,7 @@ public override bool Equals(object obj) return false; } - return this.Name.Equals(otherPath.Name); + return this.Name.Equals(otherPath.Name, System.StringComparison.Ordinal); } /// Returns a hash code for this instance. diff --git a/src/Microsoft.OData.Edm/ExtensionMethods/EnumHelper.cs b/src/Microsoft.OData.Edm/ExtensionMethods/EnumHelper.cs index ab50eae57e..938c2a2c82 100644 --- a/src/Microsoft.OData.Edm/ExtensionMethods/EnumHelper.cs +++ b/src/Microsoft.OData.Edm/ExtensionMethods/EnumHelper.cs @@ -103,7 +103,7 @@ public static bool TryParseEnum(this IEdmEnumType enumType, string value, bool i } else { - if (!enumNames[j].Equals(values[i])) + if (!enumNames[j].Equals(values[i], StringComparison.Ordinal)) { continue; } diff --git a/src/Microsoft.Spatial/Gml/GmlReader.cs b/src/Microsoft.Spatial/Gml/GmlReader.cs index 84fa48f872..00f783cbaa 100644 --- a/src/Microsoft.Spatial/Gml/GmlReader.cs +++ b/src/Microsoft.Spatial/Gml/GmlReader.cs @@ -161,7 +161,7 @@ private void ParseGmlGeometry(bool readCoordinateSystem) throw new FormatException(Strings.GmlReader_InvalidSpatialType(this.reader.LocalName)); } } - else if (object.ReferenceEquals(this.reader.NamespaceURI, this.fullGlobeNamespace) && this.reader.LocalName.Equals(GmlConstants.FullGlobe)) + else if (object.ReferenceEquals(this.reader.NamespaceURI, this.fullGlobeNamespace) && this.reader.LocalName.Equals(GmlConstants.FullGlobe, StringComparison.Ordinal)) { this.ReadAttributes(readCoordinateSystem); this.ParseGmlFullGlobeElement(); From df6d5f909ef55dd960617844e843782d39218a8d Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 22:58:50 +0200 Subject: [PATCH 05/27] Fix CA1507: use nameof instead of string literal. --- .../Binding/DataServiceCollectionOfT.cs | 4 +-- .../DataServiceContext.cs | 18 ++++++------- .../DataServiceStreamLink.cs | 8 +++--- .../QueryOperationResponse.cs | 2 +- src/Microsoft.OData.Client/WeakDictionary.cs | 4 +-- .../JsonLight/ODataJsonLightInputContext.cs | 2 +- .../Metadata/BufferingXmlReader.cs | 2 +- .../ODataInstanceAnnotation.cs | 2 +- .../ODataMessageReader.cs | 26 +++++++++---------- src/Microsoft.OData.Core/ODataUtils.cs | 2 +- .../UriParser/SemanticAst/ODataPath.cs | 2 +- src/Microsoft.OData.Edm/EdmUtil.cs | 2 +- src/Microsoft.OData.Edm/Schema/Date.cs | 6 ++--- .../Schema/EdmNavigationProperty.cs | 8 +++--- .../Geography/GeographyFactoryOfT.cs | 2 +- 15 files changed, 45 insertions(+), 45 deletions(-) diff --git a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs index f06db67e5e..4f8ccee5db 100644 --- a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs +++ b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs @@ -316,7 +316,7 @@ public void LoadAsync(System.Linq.IQueryable query) DataServiceQuery dsq = query as DataServiceQuery; if (dsq == null) { - throw new ArgumentException(Strings.DataServiceCollection_LoadAsyncRequiresDataServiceQuery, "query"); + throw new ArgumentException(Strings.DataServiceCollection_LoadAsyncRequiresDataServiceQuery, nameof(query)); } if (this.ongoingAsyncOperation != null) @@ -481,7 +481,7 @@ public void Load(T item) // When loading a single item, if (item == null) { - throw Error.ArgumentNull("item"); + throw Error.ArgumentNull(nameof(item)); } this.StartLoading(); diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index 32d52cbf1c..b61163135f 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1518,7 +1518,7 @@ public virtual void SetSaveStream(object entity, Stream stream, bool closeStream { throw new ArgumentException( Strings.Context_SetSaveStreamOnMediaEntryProperty(clientType.ElementTypeName), - "entity"); + nameof(entity)); } box.SaveStream = new DataServiceSaveStream(stream, closeStream, args); @@ -3090,25 +3090,25 @@ private void ValidateSaveChangesOptions(SaveChangesOptions options) // Make sure no higher order bits are set. if ((options | All) != All) { - throw Error.ArgumentOutOfRange("options"); + throw Error.ArgumentOutOfRange(nameof(options)); } // SaveChangesOptions.BatchWithSingleChangeset and SaveChangesOptions.BatchWithIndependentOperations can't be set together. if (Util.IsFlagSet(options, SaveChangesOptions.BatchWithSingleChangeset | SaveChangesOptions.BatchWithIndependentOperations)) { - throw Error.ArgumentOutOfRange("options"); + throw Error.ArgumentOutOfRange(nameof(options)); } // BatchWithSingleChangeset and continueOnError can't be set together if (Util.IsFlagSet(options, SaveChangesOptions.BatchWithSingleChangeset | SaveChangesOptions.ContinueOnError)) { - throw Error.ArgumentOutOfRange("options"); + throw Error.ArgumentOutOfRange(nameof(options)); } // BatchWithIndependentOperations and continueOnError can't be set together if (Util.IsFlagSet(options, SaveChangesOptions.BatchWithIndependentOperations | SaveChangesOptions.ContinueOnError)) { - throw Error.ArgumentOutOfRange("options"); + throw Error.ArgumentOutOfRange(nameof(options)); } // OnlyPostExplicitProperties cannot be used without DataServiceCollection to track properties change @@ -3154,7 +3154,7 @@ private void ValidateExecuteParameters( string.CompareOrdinal(XmlConstants.HttpMethodPost, httpMethod) != 0 && string.CompareOrdinal(XmlConstants.HttpMethodDelete, httpMethod) != 0) { - throw new ArgumentException(Strings.Context_ExecuteExpectsGetOrPostOrDelete, "httpMethod"); + throw new ArgumentException(Strings.Context_ExecuteExpectsGetOrPostOrDelete, nameof(httpMethod)); } if (ClientTypeUtil.TypeOrElementTypeIsStructured(typeof(TElement))) @@ -3389,7 +3389,7 @@ private GetReadStreamResult CreateGetReadStreamResult( requestUri = entityDescriptor.ReadStreamUri; if (requestUri == null) { - throw new ArgumentException(Strings.Context_EntityNotMediaLinkEntry, "entity"); + throw new ArgumentException(Strings.Context_EntityNotMediaLinkEntry, nameof(entity)); } streamDescriptor = entityDescriptor.DefaultStreamDescriptor; @@ -3399,14 +3399,14 @@ private GetReadStreamResult CreateGetReadStreamResult( version = Util.ODataVersion4; if (!entityDescriptor.TryGetNamedStreamInfo(name, out streamDescriptor)) { - throw new ArgumentException(Strings.Context_EntityDoesNotContainNamedStream(name), "name"); + throw new ArgumentException(Strings.Context_EntityDoesNotContainNamedStream(name), nameof(name)); } // use the edit link, if self link is not specified. requestUri = streamDescriptor.SelfLink ?? streamDescriptor.EditLink; if (requestUri == null) { - throw new ArgumentException(Strings.Context_MissingSelfAndEditLinkForNamedStream(name), "name"); + throw new ArgumentException(Strings.Context_MissingSelfAndEditLinkForNamedStream(name), nameof(name)); } } diff --git a/src/Microsoft.OData.Client/DataServiceStreamLink.cs b/src/Microsoft.OData.Client/DataServiceStreamLink.cs index 8b9dbe54aa..adb07362f4 100644 --- a/src/Microsoft.OData.Client/DataServiceStreamLink.cs +++ b/src/Microsoft.OData.Client/DataServiceStreamLink.cs @@ -71,7 +71,7 @@ internal set { Debug.Assert(value == null || value.IsAbsoluteUri, "self link must be an absolute uri"); this.selfLink = value; - this.OnPropertyChanged("SelfLink"); + this.OnPropertyChanged(nameof(SelfLink)); } } @@ -88,7 +88,7 @@ internal set { Debug.Assert(value.IsAbsoluteUri, "edit link must be an absolute uri"); this.editLink = value; - this.OnPropertyChanged("EditLink"); + this.OnPropertyChanged(nameof(EditLink)); } } @@ -104,7 +104,7 @@ public string ContentType internal set { this.contentType = value; - this.OnPropertyChanged("ContentType"); + this.OnPropertyChanged(nameof(ContentType)); } } @@ -120,7 +120,7 @@ public string ETag internal set { this.etag = value; - this.OnPropertyChanged("ETag"); + this.OnPropertyChanged(nameof(ETag)); } } diff --git a/src/Microsoft.OData.Client/QueryOperationResponse.cs b/src/Microsoft.OData.Client/QueryOperationResponse.cs index df7fda60b3..2e4a52fe92 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponse.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponse.cs @@ -157,7 +157,7 @@ protected T GetEnumeratorHelper(Func getEnumerator) where T : IEnumerator { if (getEnumerator == null) { - throw new ArgumentNullException("getEnumerator"); + throw new ArgumentNullException(nameof(getEnumerator)); } if (this.Results.Context != null) diff --git a/src/Microsoft.OData.Client/WeakDictionary.cs b/src/Microsoft.OData.Client/WeakDictionary.cs index 73a3e0f49a..0a54071785 100644 --- a/src/Microsoft.OData.Client/WeakDictionary.cs +++ b/src/Microsoft.OData.Client/WeakDictionary.cs @@ -131,7 +131,7 @@ public void Add(TKey key, TValue value) { if (key == null) { - throw new ArgumentNullException("key"); + throw new ArgumentNullException(nameof(key)); } if (countForRefresh >= countLimitForRefresh) @@ -242,7 +242,7 @@ public WeakKeyReference(T target, WeakKeyComparer comparer) { if (target == null) { - throw new ArgumentNullException("target"); + throw new ArgumentNullException(nameof(target)); } // retain the object's hash code immediately so that even diff --git a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightInputContext.cs b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightInputContext.cs index 4a92a058b9..80df728754 100644 --- a/src/Microsoft.OData.Core/JsonLight/ODataJsonLightInputContext.cs +++ b/src/Microsoft.OData.Core/JsonLight/ODataJsonLightInputContext.cs @@ -646,7 +646,7 @@ private void VerifyCanCreateParameterReader(IEdmOperation operation) if (operation == null) { - throw new ArgumentNullException("operation", ODataErrorStrings.ODataJsonLightInputContext_OperationCannotBeNullForCreateParameterReader("operation")); + throw new ArgumentNullException(nameof(operation), ODataErrorStrings.ODataJsonLightInputContext_OperationCannotBeNullForCreateParameterReader("operation")); } } diff --git a/src/Microsoft.OData.Core/Metadata/BufferingXmlReader.cs b/src/Microsoft.OData.Core/Metadata/BufferingXmlReader.cs index 81694fa875..769bde7bf2 100644 --- a/src/Microsoft.OData.Core/Metadata/BufferingXmlReader.cs +++ b/src/Microsoft.OData.Core/Metadata/BufferingXmlReader.cs @@ -657,7 +657,7 @@ public override string GetAttribute(int i) { if (i < 0 || i >= this.AttributeCount) { - throw new ArgumentOutOfRangeException("i"); + throw new ArgumentOutOfRangeException(nameof(i)); } LinkedListNode attributeNode = this.FindAttributeBufferedNode(i); diff --git a/src/Microsoft.OData.Core/ODataInstanceAnnotation.cs b/src/Microsoft.OData.Core/ODataInstanceAnnotation.cs index ebd445ca89..a20cc3faf8 100644 --- a/src/Microsoft.OData.Core/ODataInstanceAnnotation.cs +++ b/src/Microsoft.OData.Core/ODataInstanceAnnotation.cs @@ -87,7 +87,7 @@ internal static void ValidateValue(ODataValue value) if (value is ODataStreamReferenceValue) { - throw new ArgumentException(Strings.ODataInstanceAnnotation_ValueCannotBeODataStreamReferenceValue, "value"); + throw new ArgumentException(Strings.ODataInstanceAnnotation_ValueCannotBeODataStreamReferenceValue, nameof(value)); } } } diff --git a/src/Microsoft.OData.Core/ODataMessageReader.cs b/src/Microsoft.OData.Core/ODataMessageReader.cs index ad71347dd1..b58b6ef388 100644 --- a/src/Microsoft.OData.Core/ODataMessageReader.cs +++ b/src/Microsoft.OData.Core/ODataMessageReader.cs @@ -1020,7 +1020,7 @@ private void VerifyCanCreateODataResourceSetReader(IEdmEntitySetBase entitySet, { if (entitySet != null) { - throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("entitySet"), "entitySet"); + throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("entitySet"), nameof(entitySet)); } if (expectedBaseResourceType != null) @@ -1048,12 +1048,12 @@ private void VerifyCanCreateODataDeltaReader(IEdmEntitySetBase entitySet, IEdmEn { if (entitySet != null) { - throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("entitySet"), "entitySet"); + throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("entitySet"), nameof(entitySet)); } if (expectedBaseEntityType != null) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedBaseEntityType"), "expectedBaseEntityType"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedBaseEntityType"), nameof(expectedBaseEntityType)); } } } @@ -1071,12 +1071,12 @@ private void VerifyCanCreateODataResourceReader(IEdmNavigationSource navigationS { if (navigationSource != null) { - throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("navigationSource"), "navigationSource"); + throw new ArgumentException(Strings.ODataMessageReader_EntitySetSpecifiedWithoutMetadata("navigationSource"), nameof(navigationSource)); } if (resourceType != null) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("resourceType"), "resourceType"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("resourceType"), nameof(resourceType)); } } } @@ -1094,7 +1094,7 @@ private void VerifyCanCreateODataCollectionReader(IEdmTypeReference expectedItem { if (!this.model.IsUserModel()) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedItemTypeReference"), "expectedItemTypeReference"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedItemTypeReference"), nameof(expectedItemTypeReference)); } if (!expectedItemTypeReference.IsODataPrimitiveTypeKind() @@ -1103,7 +1103,7 @@ private void VerifyCanCreateODataCollectionReader(IEdmTypeReference expectedItem { throw new ArgumentException( Strings.ODataMessageReader_ExpectedCollectionTypeWrongKind(expectedItemTypeReference.TypeKind().ToString()), - "expectedItemTypeReference"); + nameof(expectedItemTypeReference)); } } } @@ -1139,7 +1139,7 @@ private void VerifyCanCreateODataParameterReader(IEdmOperation operation) if (operation != null && !this.model.IsUserModel()) { - throw new ArgumentException(Strings.ODataMessageReader_OperationSpecifiedWithoutMetadata("operation"), "operation"); + throw new ArgumentException(Strings.ODataMessageReader_OperationSpecifiedWithoutMetadata("operation"), nameof(operation)); } } @@ -1195,22 +1195,22 @@ private void VerifyCanReadProperty(IEdmTypeReference expectedPropertyTypeReferen { if (!this.model.IsUserModel()) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedPropertyTypeReference"), "expectedPropertyTypeReference"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata("expectedPropertyTypeReference"), nameof(expectedPropertyTypeReference)); } IEdmCollectionType collectionType = expectedPropertyTypeReference.Definition as IEdmCollectionType; if (collectionType != null && collectionType.ElementType.IsODataEntityTypeKind()) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeEntityCollectionKind, "expectedPropertyTypeReference"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeEntityCollectionKind, nameof(expectedPropertyTypeReference)); } if (expectedPropertyTypeReference.IsODataEntityTypeKind()) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeEntityKind, "expectedPropertyTypeReference"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeEntityKind, nameof(expectedPropertyTypeReference)); } else if (expectedPropertyTypeReference.IsStream()) { - throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeStream, "expectedPropertyTypeReference"); + throw new ArgumentException(Strings.ODataMessageReader_ExpectedPropertyTypeStream, nameof(expectedPropertyTypeReference)); } } } @@ -1261,7 +1261,7 @@ private ODataPayloadKind[] VerifyCanReadValue(IEdmTypeReference expectedTypeRefe { throw new ArgumentException( Strings.ODataMessageReader_ExpectedValueTypeWrongKind(expectedTypeReference.TypeKind().ToString()), - "expectedTypeReference"); + nameof(expectedTypeReference)); } if (expectedTypeReference.IsBinary()) diff --git a/src/Microsoft.OData.Core/ODataUtils.cs b/src/Microsoft.OData.Core/ODataUtils.cs index 4ed851d88b..f52b077b22 100644 --- a/src/Microsoft.OData.Core/ODataUtils.cs +++ b/src/Microsoft.OData.Core/ODataUtils.cs @@ -40,7 +40,7 @@ public static ODataFormat SetHeadersForPayload(ODataMessageWriter messageWriter, if (payloadKind == ODataPayloadKind.Unsupported) { - throw new ArgumentException(Strings.ODataMessageWriter_CannotSetHeadersWithInvalidPayloadKind(payloadKind), "payloadKind"); + throw new ArgumentException(Strings.ODataMessageWriter_CannotSetHeadersWithInvalidPayloadKind(payloadKind), nameof(payloadKind)); } return messageWriter.SetHeaders(payloadKind); diff --git a/src/Microsoft.OData.Core/UriParser/SemanticAst/ODataPath.cs b/src/Microsoft.OData.Core/UriParser/SemanticAst/ODataPath.cs index 996aae7813..9caca7d9bd 100644 --- a/src/Microsoft.OData.Core/UriParser/SemanticAst/ODataPath.cs +++ b/src/Microsoft.OData.Core/UriParser/SemanticAst/ODataPath.cs @@ -38,7 +38,7 @@ public ODataPath(IEnumerable segments) this.segments = segments.ToList(); if (this.segments.Any(s => s == null)) { - throw Error.ArgumentNull("segments"); + throw Error.ArgumentNull(nameof(segments)); } } diff --git a/src/Microsoft.OData.Edm/EdmUtil.cs b/src/Microsoft.OData.Edm/EdmUtil.cs index 4db280b96a..1a52ccff79 100644 --- a/src/Microsoft.OData.Edm/EdmUtil.cs +++ b/src/Microsoft.OData.Edm/EdmUtil.cs @@ -245,7 +245,7 @@ internal static String JoinInternal(String separator, IEnumerable values) { if (values == null) { - throw new ArgumentNullException("values"); + throw new ArgumentNullException(nameof(values)); } if (separator == null) diff --git a/src/Microsoft.OData.Edm/Schema/Date.cs b/src/Microsoft.OData.Edm/Schema/Date.cs index 6cfb5eff6e..158e93d9b4 100644 --- a/src/Microsoft.OData.Edm/Schema/Date.cs +++ b/src/Microsoft.OData.Edm/Schema/Date.cs @@ -172,7 +172,7 @@ public Date AddYears(int value) } catch (System.ArgumentOutOfRangeException) { - throw new ArgumentOutOfRangeException("value", Strings.Date_InvalidAddedOrSubtractedResults); + throw new ArgumentOutOfRangeException(nameof(value), Strings.Date_InvalidAddedOrSubtractedResults); } } @@ -189,7 +189,7 @@ public Date AddMonths(int value) } catch (System.ArgumentOutOfRangeException) { - throw new ArgumentOutOfRangeException("value", Strings.Date_InvalidAddedOrSubtractedResults); + throw new ArgumentOutOfRangeException(nameof(value), Strings.Date_InvalidAddedOrSubtractedResults); } } @@ -206,7 +206,7 @@ public Date AddDays(int value) } catch (System.ArgumentOutOfRangeException) { - throw new ArgumentOutOfRangeException("value", Strings.Date_InvalidAddedOrSubtractedResults); + throw new ArgumentOutOfRangeException(nameof(value), Strings.Date_InvalidAddedOrSubtractedResults); } } diff --git a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs index d71570a0a3..614485e0df 100644 --- a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs +++ b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs @@ -187,7 +187,7 @@ public static EdmNavigationProperty CreateNavigationPropertyWithPartner( declaringType = GetEntityType(partnerPropertyType) as IEdmEntityType; if (declaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, "partnerPropertyType"); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); } } else if (partnerPropertyType.Definition.TypeKind == EdmTypeKind.Complex) @@ -195,18 +195,18 @@ public static EdmNavigationProperty CreateNavigationPropertyWithPartner( declaringType = GetComplexType(partnerPropertyType) as IEdmComplexType; if (declaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, "partnerPropertyType"); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); } } else { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, "partnerPropertyType"); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); } IEdmEntityType partnerDeclaringType = GetEntityType(propertyType); if (partnerDeclaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, "propertyType"); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(propertyType)); } EdmNavigationProperty end1 = new EdmNavigationProperty( diff --git a/src/Microsoft.Spatial/Geography/GeographyFactoryOfT.cs b/src/Microsoft.Spatial/Geography/GeographyFactoryOfT.cs index a8179b4fff..bf54795ce7 100644 --- a/src/Microsoft.Spatial/Geography/GeographyFactoryOfT.cs +++ b/src/Microsoft.Spatial/Geography/GeographyFactoryOfT.cs @@ -47,7 +47,7 @@ public static implicit operator T(GeographyFactory factory) { if (factory == null) { - throw new ArgumentNullException("factory"); + throw new ArgumentNullException(nameof(factory)); } return factory.Build(); From 934a8c98a95724c9f5d1a95fe08f27a869d0b920 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 23:03:01 +0200 Subject: [PATCH 06/27] Fix CS1658: replace `1 with generic parameter in comments. --- .../Binding/DataServiceCollectionOfT.cs | 44 +++++++++---------- .../Binding/EntityCollectionChangedParams.cs | 4 +- .../Binding/LoadCompletedEventArgs.cs | 2 +- .../DataServiceContext.cs | 30 ++++++------- .../DataServiceQuery.cs | 6 +-- .../DataServiceQueryOfT.cs | 26 +++++------ .../DataServiceQuerySingleOfT.cs | 2 +- .../QueryOperationResponse.cs | 2 +- .../QueryOperationResponseOfT.cs | 4 +- .../SaveChangesOptions.cs | 2 +- src/Microsoft.OData.Client/Utility.cs | 2 +- 11 files changed, 62 insertions(+), 62 deletions(-) diff --git a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs index 4f8ccee5db..cd8fc08485 100644 --- a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs +++ b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs @@ -18,7 +18,7 @@ namespace Microsoft.OData.Client #endregion Namespaces - /// Determines whether changes that are made to a are tracked. + /// Determines whether changes that are made to a are tracked. public enum TrackingMode { /// The collection should not track changes. @@ -62,28 +62,28 @@ public class DataServiceCollection : ObservableCollection #endregion Private fields - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// Creates a default data service collection, with auto-change tracking enabled as soon as data is loaded into it. public DataServiceCollection() : this(null, null, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution. - /// A or LINQ query that returns an object that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution. + /// A or LINQ query that returns an object that are used to initialize the collection. public DataServiceCollection(DataServiceQuerySingle item) : this(null, item.Query, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. public DataServiceCollection(IEnumerable items) : this(null, items, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class based on query execution and with the specified tracking mode. + /// Initializes a new instance of the class based on query execution and with the specified tracking mode. /// A value that indicated whether or not changes made to items in the collection are automatically tracked. /// A or LINQ query that returns an object that are used to initialize the collection. public DataServiceCollection(TrackingMode trackingMode, DataServiceQuerySingle item) @@ -91,22 +91,22 @@ public DataServiceCollection(TrackingMode trackingMode, DataServiceQuerySingleInitializes a new instance of the class based on query execution and with the specified tracking mode. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution and with the specified tracking mode. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. /// A value that indicated whether or not changes made to items in the collection are automatically tracked. public DataServiceCollection(IEnumerable items, TrackingMode trackingMode) : this(null, items, trackingMode, null, null, null) { } - /// Initializes a new instance of the class that uses the specified . + /// Initializes a new instance of the class that uses the specified . /// The used to track changes to objects in the collection. public DataServiceCollection(DataServiceContext context) : this(context, null, TrackingMode.AutoChangeTracking, null, null, null) { } - /// Initializes a new instance of the class with the supplied change method delegates and that uses the specified . + /// Initializes a new instance of the class with the supplied change method delegates and that uses the specified . /// The used to track items in the collection. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. @@ -120,8 +120,8 @@ public DataServiceCollection( { } - /// Initializes a new instance of the class based on query execution and with the supplied change method delegates. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// Initializes a new instance of the class based on query execution and with the supplied change method delegates. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. /// A value that indicated whether or not changes made to items in the collection are automatically tracked. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. @@ -136,9 +136,9 @@ public DataServiceCollection( { } - /// Initializes a new instance of the class based on query execution, with the supplied change method delegates, and that uses the supplied . + /// Initializes a new instance of the class based on query execution, with the supplied change method delegates, and that uses the supplied . /// The used to track items in the collection. - /// A or LINQ query that returns an collection of objects that are used to initialize the collection. + /// A or LINQ query that returns an collection of objects that are used to initialize the collection. /// A value that indicated whether or not changes made to items in the collection are automatically tracked. /// The entity set of the objects in the collection. /// A delegate that encapsulates a method that is called when an entity changes. @@ -232,7 +232,7 @@ internal DataServiceCollection( public event EventHandler LoadCompleted; /// Gets a continuation object that is used to return the next set of paged results. - /// A object that contains the URI to return the next set of paged results. + /// A object that contains the URI to return the next set of paged results. public DataServiceQueryContinuation Continuation { get { return this.continuation; } @@ -265,7 +265,7 @@ internal bool IsTracking #endregion Properties /// Loads a collection of entity objects into the collection. - /// Collection of entity objects to be added to the . + /// Collection of entity objects to be added to the . /// /// When tracking is enabled, the behavior of Load would be to attach all those entities that are not already tracked by the context /// associated with the collection. The operation will go deep into the input entities so that all related @@ -301,10 +301,10 @@ public void Load(IEnumerable items) } } - /// Asynchronously loads the collection by executing a .Supported only by the WCF Data Services 5.0 client for Silverlight. - /// The that, when executed, returns the entities to load into the collection. - /// When query is null or not a . - /// When a previous call to is not yet complete. + /// Asynchronously loads the collection by executing a .Supported only by the WCF Data Services 5.0 client for Silverlight. + /// The that, when executed, returns the entities to load into the collection. + /// When query is null or not a . + /// When a previous call to is not yet complete. /// This method uses the event-based async pattern. /// The method returns immediately without waiting for the query to complete. Then it calls the handler of the /// event exactly once on the UI thread. The event will be raised regardless @@ -380,7 +380,7 @@ public void LoadAsync(Uri requestUri) } /// Asynchronously loads items into the collection, when it represents the navigation property of an entity.Supported only by the WCF Data Services 5.0 client for Silverlight. - /// When the collection does not belong to a parent entity.-or-When the parent entity is not tracked by the .-or-When a previous call to is not yet complete. + /// When the collection does not belong to a parent entity.-or-When the parent entity is not tracked by the .-or-When a previous call to is not yet complete. /// This method loads the content of a property represented by this DataServiceCollection. /// If this instance is not associated with any property and entity the method will fail. /// This method uses the event-based async pattern. diff --git a/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs b/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs index 9e08abb650..1931fdf469 100644 --- a/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs +++ b/src/Microsoft.OData.Client/Binding/EntityCollectionChangedParams.cs @@ -84,7 +84,7 @@ internal EntityCollectionChangedParams( #region Properties - /// The associated with the that has changed. + /// The associated with the that has changed. /// The context associated with the collection that has changed public DataServiceContext Context { @@ -126,7 +126,7 @@ public string TargetEntitySet get { return this.targetEntitySet; } } - /// The that has changed. + /// The that has changed. /// A reference to the collection that has changed. public ICollection Collection { diff --git a/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs b/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs index a7b909822e..4e9aa0c4b7 100644 --- a/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs +++ b/src/Microsoft.OData.Client/Binding/LoadCompletedEventArgs.cs @@ -11,7 +11,7 @@ namespace Microsoft.OData.Client using System.ComponentModel; #endregion Namespaces. - /// Used as the class for the event.Supported only by the WCF Data Services 5.0 client for Silverlight. + /// Used as the class for the event.Supported only by the WCF Data Services 5.0 client for Silverlight. public sealed class LoadCompletedEventArgs : AsyncCompletedEventArgs { /// The which represents diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index b61163135f..f2c212e822 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -733,7 +733,7 @@ internal ClientEdmModel Model /// - /// Indicates whether user is using to track changes. + /// Indicates whether user is using to track changes. /// internal bool UsingDataServiceCollection { get; set; } @@ -1002,7 +1002,7 @@ public virtual void CancelRequest(IAsyncResult asyncResult) #region CreateQuery /// Creates a data service query for data of a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string that resolves to a URI. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) @@ -1018,7 +1018,7 @@ public virtual DataServiceQuery CreateQuery(string entitySetName) } /// Creates a data service query for a function with return type in a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string ends with function invocation that resolves to a URI. /// Whether this function query is composable /// The type returned by the query @@ -1036,7 +1036,7 @@ public virtual DataServiceQuery CreateQuery(string resourcePath, bool isCo } /// Creates a data service query for a function invocation that returns a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) public virtual DataServiceQuery CreateFunctionQuery() @@ -1051,7 +1051,7 @@ public virtual DataServiceQuery CreateFunctionQuery() /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string path, string functionName, bool isComposable, params UriOperationParameter[] parameters) { this.CreateRequestArgsAndFireBuildingRequest(null, null, new HeaderCollection(), this.HttpStack, null /*descriptor*/); @@ -1076,7 +1076,7 @@ public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string pat } /// Creates a data service query for singleton data of a specified generic type. - /// A new instance that represents a data service query. + /// A new instance that represents a data service query. /// A string that resolves to a URI. /// The type returned by the query /// create a query based on (BaseUri + relativeUri) @@ -1156,7 +1156,7 @@ public virtual Task LoadPropertyAsync(object entity, str /// An that represents the status of the operation. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entity data to return from the data service. + /// A object that represents the next page of related entity data to return from the data service. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. public virtual IAsyncResult BeginLoadProperty(object entity, string propertyName, DataServiceQueryContinuation continuation, AsyncCallback callback, object state) @@ -1171,7 +1171,7 @@ public virtual IAsyncResult BeginLoadProperty(object entity, string propertyName /// A Task that represents the response to the load operation. /// The entity that contains the property to load. /// The name of the property on the specified entity to load. - /// A object that represents the next page of related entity data to return from the data service. + /// A object that represents the next page of related entity data to return from the data service. public virtual Task LoadPropertyAsync(object entity, string propertyName, DataServiceQueryContinuation continuation) { return Task.Factory.FromAsync(this.BeginLoadProperty, this.EndLoadProperty, entity, propertyName, continuation, null); @@ -1233,7 +1233,7 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert /// The response that contains the next page of related entity data. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entities to load from the data service. + /// A object that represents the next page of related entities to load from the data service. /// When is in the or state. /// /// If is in in detached or added state, this method will throw an InvalidOperationException @@ -1256,7 +1256,7 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert /// The response that contains the next page of related entity data. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// A object that represents the next page of related entities to load from the data service. + /// A object that represents the next page of related entities to load from the data service. /// Element type of collection to load. /// When is in the or state. /// @@ -1791,7 +1791,7 @@ public virtual Task> ExecuteAsync(Uri requestUri /// Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. /// An that represents the status of the operation. - /// A object that represents the next page of data to return from the data service. + /// A object that represents the next page of data to return from the data service. /// Delegate to invoke when results are available for client consumption. /// User-defined state object passed to the callback. /// The type returned by the query. @@ -1806,7 +1806,7 @@ public virtual IAsyncResult BeginExecute(DataServiceQueryContinuation cont /// Asynchronously sends a request to the data service to retrieve the next page of data in a paged query result. /// A task that represents the results returned by the query operation. - /// A object that represents the next page of data to return from the data service. + /// A object that represents the next page of data to return from the data service. /// The type returned by the query. public virtual Task> ExecuteAsync(DataServiceQueryContinuation continuation) { @@ -1867,7 +1867,7 @@ public virtual IEnumerable Execute(Uri requestUri) /// Sends a request to the data service to retrieve the next page of data in a paged query result. /// The response that contains the next page of data in the query result. - /// A object that represents the next page of data to return from the data service. + /// A object that represents the next page of data to return from the data service. /// The type returned by the query. public virtual QueryOperationResponse Execute(DataServiceQueryContinuation continuation) { @@ -1903,7 +1903,7 @@ public virtual OperationResponse Execute(Uri requestUri, string httpMethod, para } /// Sends a request to the data service to execute a specific URI by using a specific HTTP method. - /// Returns . + /// Returns . /// The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters. /// The HTTP data transfer method used by the client. /// Attribute used on service operations to specify that they return a single instance of their return element. @@ -1921,7 +1921,7 @@ public virtual IEnumerable Execute(Uri requestUri, string ht } /// Sends a request to the data service to execute a specific URI by using a specific HTTP method. - /// Returns . + /// Returns . /// The URI to which the query request will be sent. The URI may be any valid data service URI. Can contain $ query parameters. /// The HTTP data transfer method used by the client. /// The operation parameters used. diff --git a/src/Microsoft.OData.Client/DataServiceQuery.cs b/src/Microsoft.OData.Client/DataServiceQuery.cs index 184f63a568..ecc2a914c7 100644 --- a/src/Microsoft.OData.Client/DataServiceQuery.cs +++ b/src/Microsoft.OData.Client/DataServiceQuery.cs @@ -47,7 +47,7 @@ System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() #if !PORTABLELIB /// Executes the query against the data service. - /// An that contains the results of the query operation. + /// An that contains the results of the query operation. /// When the data service returns an HTTP 404: Resource Not Found error. public virtual IEnumerable Execute() { @@ -65,14 +65,14 @@ public virtual IAsyncResult BeginExecute(AsyncCallback callback, object state) } /// Asynchronously sends a request to execute the data service query. - /// A task represents An that contains the results of the query operation. + /// A task represents An that contains the results of the query operation. public virtual Task ExecuteAsync() { return Task.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); } /// Called to complete the asynchronous operation of executing a data service query. - /// An that contains the results of the query operation. + /// An that contains the results of the query operation. /// The result from the operation that contains the query results. /// When the data service returns an HTTP 404: Resource Not Found error. public virtual IEnumerable EndExecute(IAsyncResult asyncResult) diff --git a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs index 1e57c20c12..ab4686f318 100644 --- a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs @@ -75,7 +75,7 @@ public DataServiceQuery(Expression expression, DataServiceQueryProvider provider } #region IQueryable implementation - /// Returns the type of the object used in the template to create the instance. + /// Returns the type of the object used in the template to create the instance. /// Returns representing the type used in the template when the query is created. public override Type ElementType { @@ -158,7 +158,7 @@ public virtual string GetKeyPath(string keyString) /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string functionName, bool isComposable, params UriOperationParameter[] parameters) { Dictionary operationParameters = this.Context.SerializeOperationParameters(parameters); @@ -216,14 +216,14 @@ public virtual string GetPath(string nextSegment) } /// Starts an asynchronous network operation that executes the query represented by this object instance. - /// A task that represents an that contains the results of the query operation. + /// A task that represents an that contains the results of the query operation. public virtual new Task> ExecuteAsync() { return Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); } /// Ends an asynchronous query request to a data service. - /// Returns an that contains the results of the query operation. + /// Returns an that contains the results of the query operation. /// The pending asynchronous query request. /// When the data service returns an HTTP 404: Resource Not Found error. public virtual new IEnumerable EndExecute(IAsyncResult asyncResult) @@ -241,7 +241,7 @@ public virtual string GetPath(string nextSegment) /// /// Asynchronously sends a request to get all items by auto iterating all pages /// - /// A task that represents an that contains the results of the query operation. + /// A task that represents an that contains the results of the query operation. public virtual Task> GetAllPagesAsync() { var currentTask = Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, null); @@ -251,7 +251,7 @@ public virtual Task> GetAllPagesAsync() #if !PORTABLELIB // Synchronous methods not available /// Executes the query and returns the results as a collection that implements IEnumerable. - /// An in which TElement represents the type of the query results. + /// An in which TElement represents the type of the query results. /// When the data service returns an HTTP 404: Resource Not Found error. /// When during materialization an object is encountered in the input stream that cannot be deserialized to an instance of TElement. public virtual new IEnumerable Execute() @@ -293,7 +293,7 @@ public virtual DataServiceQuery Expand(string path) } /// Expands a query to include entities from a related entity set in the query response, where the related entity is of a specific type in a type hierarchy. - /// Returns a that with the expand option included. + /// Returns a that with the expand option included. /// A lambda expression that indicates the navigation property that returns the entity set to include in the expanded query. /// Target type of the last property on the expand path. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Justification = "By design")] @@ -311,7 +311,7 @@ public virtual DataServiceQuery Expand(ExpressionRequests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. [Obsolete("Please use IncludeCount()")] public virtual DataServiceQuery IncludeTotalCount() { @@ -319,7 +319,7 @@ public virtual DataServiceQuery IncludeTotalCount() } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. /// Whether to include total count. [Obsolete("Please use IncludeCount(bool countQuery)")] public virtual DataServiceQuery IncludeTotalCount(bool countQuery) @@ -328,14 +328,14 @@ public virtual DataServiceQuery IncludeTotalCount(bool countQuery) } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. public virtual DataServiceQuery IncludeCount() { return this.IncludeCount(true); } /// Requests that the count of all entities in the entity set be returned inline with the query results. - /// A new object that has the inline count option set. + /// A new object that has the inline count option set. /// Whether to include count. public virtual DataServiceQuery IncludeCount(bool countQuery) { @@ -349,7 +349,7 @@ public virtual DataServiceQuery IncludeCount(bool countQuery) new Expression[] { Expression.Constant(countQuery, typeof(bool)) })); } - /// Creates a new with the query option set in the URI generated by the returned query. + /// Creates a new with the query option set in the URI generated by the returned query. /// A new query that includes the requested query option appended to the URI of the supplied query /// The string value that contains the name of the query string option to add. /// The object that contains the value of the query string option. @@ -380,7 +380,7 @@ public IEnumerator GetEnumerator() #endif /// Represents the URI of the query to the data service. - /// A URI as string that represents the query to the data service for this instance. + /// A URI as string that represents the query to the data service for this instance. public override string ToString() { try diff --git a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs index a47e6e345d..ad80364d11 100644 --- a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs @@ -108,7 +108,7 @@ public virtual Uri RequestUri /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuery CreateFunctionQuery(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return this.Query.CreateFunctionQuery(functionName, isComposable, parameters); diff --git a/src/Microsoft.OData.Client/QueryOperationResponse.cs b/src/Microsoft.OData.Client/QueryOperationResponse.cs index 2e4a52fe92..db959ec103 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponse.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponse.cs @@ -115,7 +115,7 @@ public DataServiceQueryContinuation GetContinuation(IEnumerable collection) return this.results.GetContinuation(collection); } - /// Gets a object that contains the URI that is used to retrieve the next page of related entities in the specified collection. + /// Gets a object that contains the URI that is used to retrieve the next page of related entities in the specified collection. /// A continuation object that points to the next page for the collection. /// The collection of related objects being loaded. /// The type of the items in the collection. diff --git a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs index e9b8e78fd2..908813e49f 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs @@ -72,7 +72,7 @@ public override long Count #region Public methods - /// Gets a object that contains the URI that is used to retrieve the next results page. + /// Gets a object that contains the URI that is used to retrieve the next results page. /// An object that contains the URI that is used to return the next results page. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate", Justification = "required for this feature")] public new DataServiceQueryContinuation GetContinuation() @@ -80,7 +80,7 @@ public override long Count return (DataServiceQueryContinuation)base.GetContinuation(); } - /// Executes the and gets items. + /// Executes the and gets items. /// An enumerator to a collection of items. /// In the case of Collection(primitive) or Collection(complex), the entire collection is /// materialized when this is called. diff --git a/src/Microsoft.OData.Client/SaveChangesOptions.cs b/src/Microsoft.OData.Client/SaveChangesOptions.cs index 4d56f98f78..3a487ab66a 100644 --- a/src/Microsoft.OData.Client/SaveChangesOptions.cs +++ b/src/Microsoft.OData.Client/SaveChangesOptions.cs @@ -31,7 +31,7 @@ public enum SaveChangesOptions /// /// Use partial payload when doing post. - /// Note it can only be used when using + /// Note it can only be used when using /// PostOnlySetProperties = 8, diff --git a/src/Microsoft.OData.Client/Utility.cs b/src/Microsoft.OData.Client/Utility.cs index b8695e79f6..455eb17972 100644 --- a/src/Microsoft.OData.Client/Utility.cs +++ b/src/Microsoft.OData.Client/Utility.cs @@ -31,7 +31,7 @@ public static class Utility /// false. This parameter is ignored for properties and events; see Remarks. /// /// - /// An of custom attributes applied to this member, or an array with zero + /// An of custom attributes applied to this member, or an array with zero /// elements if no attributes assignable to attributeType have been applied. /// public static IEnumerable GetCustomAttributes(Type type, Type attributeType, bool inherit) From 5b2255002a538d3770a95a6a79257acacff97e19 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Sat, 13 Jun 2020 23:17:50 +0200 Subject: [PATCH 07/27] Fix SA1500: adjust StringsClassGenerator.ttinclude to span multiple lines. --- .../Parameterized.Microsoft.OData.Client.cs | 1118 ++++-- .../Parameterized.Microsoft.OData.Core.cs | 3210 +++++++++++------ .../Microsoft.OData.Edm.cs | 4 +- .../Parameterized.Microsoft.OData.Edm.cs | 1060 ++++-- .../Schema/EdmNavigationProperty.cs | 8 +- .../StringsClassGenerator.ttinclude | 9 +- 6 files changed, 3603 insertions(+), 1806 deletions(-) diff --git a/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs b/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs index ad522f5f6b..10f8213efb 100644 --- a/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs +++ b/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs @@ -18,22 +18,26 @@ internal static class Strings { /// /// A string like "The expected content type for a batch requests is "multipart/mixed;boundary=batch" not "{0}"." /// - internal static string Batch_ExpectedContentType(object p0) { + internal static string Batch_ExpectedContentType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Batch_ExpectedContentType, p0); } /// /// A string like "The POST request expected a response with content. ID={0}" /// - internal static string Batch_ExpectedResponse(object p0) { + internal static string Batch_ExpectedResponse(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Batch_ExpectedResponse, p0); } /// /// A string like "Not all requests in the batch had a response." /// - internal static string Batch_IncompleteResponseCount { - get { + internal static string Batch_IncompleteResponseCount + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Batch_IncompleteResponseCount); } } @@ -41,15 +45,18 @@ internal static string Batch_IncompleteResponseCount { /// /// A string like "The web response contained unexpected sections. ID={0}" /// - internal static string Batch_UnexpectedContent(object p0) { + internal static string Batch_UnexpectedContent(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Batch_UnexpectedContent, p0); } /// /// A string like "Expected an absolute, well formed http URL without a query or fragment." /// - internal static string Context_BaseUri { - get { + internal static string Context_BaseUri + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BaseUri); } } @@ -57,8 +64,10 @@ internal static string Context_BaseUri { /// /// A string like "You must set the BaseUri property before you perform this operation." /// - internal static string Context_BaseUriRequired { - get { + internal static string Context_BaseUriRequired + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BaseUriRequired); } } @@ -66,8 +75,10 @@ internal static string Context_BaseUriRequired { /// /// A string like "The Uri that is returned by the ResolveEntitySet function must be an absolute, well-formed URL with an "http" or "https" scheme name and without any query strings or fragment identifiers." /// - internal static string Context_ResolveReturnedInvalidUri { - get { + internal static string Context_ResolveReturnedInvalidUri + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ResolveReturnedInvalidUri); } } @@ -75,8 +86,10 @@ internal static string Context_ResolveReturnedInvalidUri { /// /// A string like "Because the requestUri is a relative Uri, you must set the BaseUri property on the DataServiceContext." /// - internal static string Context_RequestUriIsRelativeBaseUriRequired { - get { + internal static string Context_RequestUriIsRelativeBaseUriRequired + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_RequestUriIsRelativeBaseUriRequired); } } @@ -84,22 +97,26 @@ internal static string Context_RequestUriIsRelativeBaseUriRequired { /// /// A string like "The ResolveEntitySet function must return a non-null Uri for the EntitySet '{0}', otherwise you must set the BaseUri property." /// - internal static string Context_ResolveEntitySetOrBaseUriRequired(object p0) { + internal static string Context_ResolveEntitySetOrBaseUriRequired(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ResolveEntitySetOrBaseUriRequired, p0); } /// /// A string like "Unable to convert value '{0}' into a key string for a URI." /// - internal static string Context_CannotConvertKey(object p0) { + internal static string Context_CannotConvertKey(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_CannotConvertKey, p0); } /// /// A string like "The identity value specified by either the Atom id element or the OData-EntityId header must be an absolute URI." /// - internal static string Context_TrackingExpectsAbsoluteUri { - get { + internal static string Context_TrackingExpectsAbsoluteUri + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_TrackingExpectsAbsoluteUri); } } @@ -107,8 +124,10 @@ internal static string Context_TrackingExpectsAbsoluteUri { /// /// A string like "The 'Location' header value specified in the response must be an absolute URI." /// - internal static string Context_LocationHeaderExpectsAbsoluteUri { - get { + internal static string Context_LocationHeaderExpectsAbsoluteUri + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_LocationHeaderExpectsAbsoluteUri); } } @@ -116,8 +135,10 @@ internal static string Context_LocationHeaderExpectsAbsoluteUri { /// /// A string like "One of the link's resources failed to insert." /// - internal static string Context_LinkResourceInsertFailure { - get { + internal static string Context_LinkResourceInsertFailure + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_LinkResourceInsertFailure); } } @@ -125,15 +146,18 @@ internal static string Context_LinkResourceInsertFailure { /// /// A string like "Microsoft.OData.Client internal error {0}." /// - internal static string Context_InternalError(object p0) { + internal static string Context_InternalError(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_InternalError, p0); } /// /// A string like "An error occurred for this query during batch execution. See the inner exception for details." /// - internal static string Context_BatchExecuteError { - get { + internal static string Context_BatchExecuteError + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BatchExecuteError); } } @@ -141,8 +165,10 @@ internal static string Context_BatchExecuteError { /// /// A string like "Expected a relative URL path without query or fragment." /// - internal static string Context_EntitySetName { - get { + internal static string Context_EntitySetName + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntitySetName); } } @@ -150,8 +176,10 @@ internal static string Context_EntitySetName { /// /// A string like "Changes cannot be saved as a batch when an entity has one or more streams associated with it. Retry the SaveChanges operation without enabling the SaveChangesOptions.BatchWithSingleChangeset and the SaveChangesOptions.BatchWithIndependentOperations options." /// - internal static string Context_BatchNotSupportedForNamedStreams { - get { + internal static string Context_BatchNotSupportedForNamedStreams + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BatchNotSupportedForNamedStreams); } } @@ -159,15 +187,18 @@ internal static string Context_BatchNotSupportedForNamedStreams { /// /// A string like "The stream named '{0}' cannot be modified because it does not have an edit-media link. Make sure that the stream name is correct and that an edit-media link for this stream is included in the entry element in the response." /// - internal static string Context_SetSaveStreamWithoutNamedStreamEditLink(object p0) { + internal static string Context_SetSaveStreamWithoutNamedStreamEditLink(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SetSaveStreamWithoutNamedStreamEditLink, p0); } /// /// A string like "This operation requires the entity be of an Entity Type, and has at least one key property." /// - internal static string Content_EntityWithoutKey { - get { + internal static string Content_EntityWithoutKey + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Content_EntityWithoutKey); } } @@ -175,8 +206,10 @@ internal static string Content_EntityWithoutKey { /// /// A string like "This operation requires the entity to be of an Entity Type, either mark its key properties, or attribute the class with DataServiceEntityAttribute" /// - internal static string Content_EntityIsNotEntityType { - get { + internal static string Content_EntityIsNotEntityType + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Content_EntityIsNotEntityType); } } @@ -184,8 +217,10 @@ internal static string Content_EntityIsNotEntityType { /// /// A string like "The context is not currently tracking the entity." /// - internal static string Context_EntityNotContained { - get { + internal static string Context_EntityNotContained + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityNotContained); } } @@ -193,8 +228,10 @@ internal static string Context_EntityNotContained { /// /// A string like "The context is already tracking the entity." /// - internal static string Context_EntityAlreadyContained { - get { + internal static string Context_EntityAlreadyContained + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityAlreadyContained); } } @@ -202,8 +239,10 @@ internal static string Context_EntityAlreadyContained { /// /// A string like "The context is already tracking a different entity with the same resource Uri." /// - internal static string Context_DifferentEntityAlreadyContained { - get { + internal static string Context_DifferentEntityAlreadyContained + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_DifferentEntityAlreadyContained); } } @@ -211,8 +250,10 @@ internal static string Context_DifferentEntityAlreadyContained { /// /// A string like "The current object did not originate the async result." /// - internal static string Context_DidNotOriginateAsync { - get { + internal static string Context_DidNotOriginateAsync + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_DidNotOriginateAsync); } } @@ -220,8 +261,10 @@ internal static string Context_DidNotOriginateAsync { /// /// A string like "The asynchronous result has already been completed." /// - internal static string Context_AsyncAlreadyDone { - get { + internal static string Context_AsyncAlreadyDone + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_AsyncAlreadyDone); } } @@ -229,8 +272,10 @@ internal static string Context_AsyncAlreadyDone { /// /// A string like "The operation has been canceled." /// - internal static string Context_OperationCanceled { - get { + internal static string Context_OperationCanceled + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_OperationCanceled); } } @@ -238,15 +283,18 @@ internal static string Context_OperationCanceled { /// /// A string like "The property '{0}' is not supported when MaxProtocolVersion is greater than '{1}'." /// - internal static string Context_PropertyNotSupportedForMaxDataServiceVersionGreaterThanX(object p0, object p1) { + internal static string Context_PropertyNotSupportedForMaxDataServiceVersionGreaterThanX(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_PropertyNotSupportedForMaxDataServiceVersionGreaterThanX, p0, p1); } /// /// A string like "The context can not load the related collection or reference for objects in the added state." /// - internal static string Context_NoLoadWithInsertEnd { - get { + internal static string Context_NoLoadWithInsertEnd + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NoLoadWithInsertEnd); } } @@ -254,8 +302,10 @@ internal static string Context_NoLoadWithInsertEnd { /// /// A string like "One or both of the ends of the relationship is in the added state." /// - internal static string Context_NoRelationWithInsertEnd { - get { + internal static string Context_NoRelationWithInsertEnd + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NoRelationWithInsertEnd); } } @@ -263,8 +313,10 @@ internal static string Context_NoRelationWithInsertEnd { /// /// A string like "One or both of the ends of the relationship is in the deleted state." /// - internal static string Context_NoRelationWithDeleteEnd { - get { + internal static string Context_NoRelationWithDeleteEnd + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NoRelationWithDeleteEnd); } } @@ -272,8 +324,10 @@ internal static string Context_NoRelationWithDeleteEnd { /// /// A string like "The context is already tracking the relationship." /// - internal static string Context_RelationAlreadyContained { - get { + internal static string Context_RelationAlreadyContained + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_RelationAlreadyContained); } } @@ -281,8 +335,10 @@ internal static string Context_RelationAlreadyContained { /// /// A string like "The sourceProperty is not a reference or collection of the target's object type." /// - internal static string Context_RelationNotRefOrCollection { - get { + internal static string Context_RelationNotRefOrCollection + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_RelationNotRefOrCollection); } } @@ -290,8 +346,10 @@ internal static string Context_RelationNotRefOrCollection { /// /// A string like "AddLink and DeleteLink methods only work when the sourceProperty is a collection." /// - internal static string Context_AddLinkCollectionOnly { - get { + internal static string Context_AddLinkCollectionOnly + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_AddLinkCollectionOnly); } } @@ -299,8 +357,10 @@ internal static string Context_AddLinkCollectionOnly { /// /// A string like "AddRelatedObject method only works when the sourceProperty is a collection." /// - internal static string Context_AddRelatedObjectCollectionOnly { - get { + internal static string Context_AddRelatedObjectCollectionOnly + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_AddRelatedObjectCollectionOnly); } } @@ -308,8 +368,10 @@ internal static string Context_AddRelatedObjectCollectionOnly { /// /// A string like "AddRelatedObject method only works if the source entity is in a non-deleted state." /// - internal static string Context_AddRelatedObjectSourceDeleted { - get { + internal static string Context_AddRelatedObjectSourceDeleted + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_AddRelatedObjectSourceDeleted); } } @@ -317,8 +379,10 @@ internal static string Context_AddRelatedObjectSourceDeleted { /// /// A string like "UpdateRelatedObject method only works when the sourceProperty is not collection." /// - internal static string Context_UpdateRelatedObjectNonCollectionOnly { - get { + internal static string Context_UpdateRelatedObjectNonCollectionOnly + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_UpdateRelatedObjectNonCollectionOnly); } } @@ -326,8 +390,10 @@ internal static string Context_UpdateRelatedObjectNonCollectionOnly { /// /// A string like "SetLink method only works when the sourceProperty is not a collection." /// - internal static string Context_SetLinkReferenceOnly { - get { + internal static string Context_SetLinkReferenceOnly + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SetLinkReferenceOnly); } } @@ -335,15 +401,18 @@ internal static string Context_SetLinkReferenceOnly { /// /// A string like "Media link object of type '{0}' is configured to use the MIME type specified in the property '{1}'. However, that property's value is null or empty." /// - internal static string Context_NoContentTypeForMediaLink(object p0, object p1) { + internal static string Context_NoContentTypeForMediaLink(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NoContentTypeForMediaLink, p0, p1); } /// /// A string like "Saving entities with the [MediaEntry] attribute is not currently supported in batch mode. Use non-batched mode instead." /// - internal static string Context_BatchNotSupportedForMediaLink { - get { + internal static string Context_BatchNotSupportedForMediaLink + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BatchNotSupportedForMediaLink); } } @@ -351,8 +420,10 @@ internal static string Context_BatchNotSupportedForMediaLink { /// /// A string like "Unexpected result (<= 0) from stream.Read() while reading raw data for this property." /// - internal static string Context_UnexpectedZeroRawRead { - get { + internal static string Context_UnexpectedZeroRawRead + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_UnexpectedZeroRawRead); } } @@ -360,29 +431,34 @@ internal static string Context_UnexpectedZeroRawRead { /// /// A string like "Response version '{0}' is not supported. The only supported versions are: {1}." /// - internal static string Context_VersionNotSupported(object p0, object p1) { + internal static string Context_VersionNotSupported(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_VersionNotSupported, p0, p1); } /// /// A string like "The response version is {0}, but the MaxProtocolVersion of the data service context is set to {1}. Set the MaxProtocolVersion to the version required by the response, and then retry the request. If the client does not support the required protocol version, then upgrade the client." /// - internal static string Context_ResponseVersionIsBiggerThanProtocolVersion(object p0, object p1) { + internal static string Context_ResponseVersionIsBiggerThanProtocolVersion(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ResponseVersionIsBiggerThanProtocolVersion, p0, p1); } /// /// A string like "The request requires that version {0} of the protocol be used, but the MaxProtocolVersion of the data service context is set to {1}. Set the MaxProtocolVersion to the higher version, and then retry the operation." /// - internal static string Context_RequestVersionIsBiggerThanProtocolVersion(object p0, object p1) { + internal static string Context_RequestVersionIsBiggerThanProtocolVersion(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_RequestVersionIsBiggerThanProtocolVersion, p0, p1); } /// /// A string like "Attempt to delete a link between two objects failed because the identity of the target object of the link depends on the source object of the link." /// - internal static string Context_ChildResourceExists { - get { + internal static string Context_ChildResourceExists + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ChildResourceExists); } } @@ -390,8 +466,10 @@ internal static string Context_ChildResourceExists { /// /// A string like "The ContentType value for a named stream cannot be null or an empty string." /// - internal static string Context_ContentTypeRequiredForNamedStream { - get { + internal static string Context_ContentTypeRequiredForNamedStream + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ContentTypeRequiredForNamedStream); } } @@ -399,8 +477,10 @@ internal static string Context_ContentTypeRequiredForNamedStream { /// /// A string like "This operation requires that the specified entity be a Media Link Entry and that the ReadStreamUri be available. However, the specified entity either is not a Media Link Entry or does not have a valid ReadStreamUri value. If the entity is a Media Link Entry, re-query the data service for this entity to obtain a valid ReadStreamUri value." /// - internal static string Context_EntityNotMediaLinkEntry { - get { + internal static string Context_EntityNotMediaLinkEntry + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityNotMediaLinkEntry); } } @@ -408,22 +488,26 @@ internal static string Context_EntityNotMediaLinkEntry { /// /// A string like "The entity type {0} is marked with MediaEntry attribute but no save stream was set for the entity." /// - internal static string Context_MLEWithoutSaveStream(object p0) { + internal static string Context_MLEWithoutSaveStream(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_MLEWithoutSaveStream, p0); } /// /// A string like "Can't use SetSaveStream on entity with type {0} which has a media entry property defined." /// - internal static string Context_SetSaveStreamOnMediaEntryProperty(object p0) { + internal static string Context_SetSaveStreamOnMediaEntryProperty(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SetSaveStreamOnMediaEntryProperty, p0); } /// /// A string like "There is no edit-media link for the entity's media stream. Make sure that the edit-media link is specified for this stream." /// - internal static string Context_SetSaveStreamWithoutEditMediaLink { - get { + internal static string Context_SetSaveStreamWithoutEditMediaLink + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SetSaveStreamWithoutEditMediaLink); } } @@ -431,29 +515,34 @@ internal static string Context_SetSaveStreamWithoutEditMediaLink { /// /// A string like "Calling SetSaveStream on an entity with state '{0}' is not allowed." /// - internal static string Context_SetSaveStreamOnInvalidEntityState(object p0) { + internal static string Context_SetSaveStreamOnInvalidEntityState(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SetSaveStreamOnInvalidEntityState, p0); } /// /// A string like "The entity does not have a stream named '{0}'. Make sure that the name of the stream is correct." /// - internal static string Context_EntityDoesNotContainNamedStream(object p0) { + internal static string Context_EntityDoesNotContainNamedStream(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityDoesNotContainNamedStream, p0); } /// /// A string like "There is no self-link or edit-media link for the stream named '{0}'. Make sure that either the self-link or edit-media link is specified for this stream." /// - internal static string Context_MissingSelfAndEditLinkForNamedStream(object p0) { + internal static string Context_MissingSelfAndEditLinkForNamedStream(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_MissingSelfAndEditLinkForNamedStream, p0); } /// /// A string like "The response should have both 'Location' and 'OData-EntityId' headers or the response should not have any of these headers." /// - internal static string Context_BothLocationAndIdMustBeSpecified { - get { + internal static string Context_BothLocationAndIdMustBeSpecified + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BothLocationAndIdMustBeSpecified); } } @@ -461,8 +550,10 @@ internal static string Context_BothLocationAndIdMustBeSpecified { /// /// A string like "OperationParameter of type BodyOperationParameter cannot be specified when the HttpMethod is set to GET." /// - internal static string Context_BodyOperationParametersNotAllowedWithGet { - get { + internal static string Context_BodyOperationParametersNotAllowedWithGet + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_BodyOperationParametersNotAllowedWithGet); } } @@ -470,8 +561,10 @@ internal static string Context_BodyOperationParametersNotAllowedWithGet { /// /// A string like "The Name property of an OperationParameter must be set to a non-null, non-empty string." /// - internal static string Context_MissingOperationParameterName { - get { + internal static string Context_MissingOperationParameterName + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_MissingOperationParameterName); } } @@ -479,8 +572,10 @@ internal static string Context_MissingOperationParameterName { /// /// A string like "Multiple uri operation parameters were found with the same name. Uri operation parameter names must be unique." /// - internal static string Context_DuplicateUriOperationParameterName { - get { + internal static string Context_DuplicateUriOperationParameterName + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_DuplicateUriOperationParameterName); } } @@ -488,8 +583,10 @@ internal static string Context_DuplicateUriOperationParameterName { /// /// A string like "Multiple body operation parameters were found with the same name. Body operation parameter names must be unique." /// - internal static string Context_DuplicateBodyOperationParameterName { - get { + internal static string Context_DuplicateBodyOperationParameterName + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_DuplicateBodyOperationParameterName); } } @@ -497,15 +594,18 @@ internal static string Context_DuplicateBodyOperationParameterName { /// /// A string like "The serialized resource has a null value in key member '{0}'. Null values are not supported in key members." /// - internal static string Context_NullKeysAreNotSupported(object p0) { + internal static string Context_NullKeysAreNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NullKeysAreNotSupported, p0); } /// /// A string like "The HttpMethod must be GET, POST or DELETE." /// - internal static string Context_ExecuteExpectsGetOrPostOrDelete { - get { + internal static string Context_ExecuteExpectsGetOrPostOrDelete + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ExecuteExpectsGetOrPostOrDelete); } } @@ -513,8 +613,10 @@ internal static string Context_ExecuteExpectsGetOrPostOrDelete { /// /// A string like "EndExecute overload for void service operations and actions received a non-void response from the server." /// - internal static string Context_EndExecuteExpectedVoidResponse { - get { + internal static string Context_EndExecuteExpectedVoidResponse + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EndExecuteExpectedVoidResponse); } } @@ -522,8 +624,10 @@ internal static string Context_EndExecuteExpectedVoidResponse { /// /// A string like "The operation parameters array contains a null element which is not allowed." /// - internal static string Context_NullElementInOperationParameterArray { - get { + internal static string Context_NullElementInOperationParameterArray + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_NullElementInOperationParameterArray); } } @@ -531,8 +635,10 @@ internal static string Context_NullElementInOperationParameterArray { /// /// A string like "An implementation of ODataEntityMetadataBuilder is required, but a null value was returned from GetEntityMetadataBuilder." /// - internal static string Context_EntityMetadataBuilderIsRequired { - get { + internal static string Context_EntityMetadataBuilderIsRequired + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityMetadataBuilderIsRequired); } } @@ -540,8 +646,10 @@ internal static string Context_EntityMetadataBuilderIsRequired { /// /// A string like "The ChangeState method does not support the 'Added' state because additional information is needed for inserts. Use either AddObject or AddRelatedObject instead." /// - internal static string Context_CannotChangeStateToAdded { - get { + internal static string Context_CannotChangeStateToAdded + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_CannotChangeStateToAdded); } } @@ -549,8 +657,10 @@ internal static string Context_CannotChangeStateToAdded { /// /// A string like "The entity's state can only be changed to 'Modified' if it is currently 'Unchanged'." /// - internal static string Context_CannotChangeStateToModifiedIfNotUnchanged { - get { + internal static string Context_CannotChangeStateToModifiedIfNotUnchanged + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_CannotChangeStateToModifiedIfNotUnchanged); } } @@ -558,15 +668,18 @@ internal static string Context_CannotChangeStateToModifiedIfNotUnchanged { /// /// A string like "An entity in the 'Added' state cannot be changed to '{0}', it can only be changed to 'Detached'." /// - internal static string Context_CannotChangeStateIfAdded(object p0) { + internal static string Context_CannotChangeStateIfAdded(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_CannotChangeStateIfAdded, p0); } /// /// A string like "DataServiceContext.Configurations.RequestPipeline.OnMessageCreating property must not return a null value. Please return a non-null value for this property." /// - internal static string Context_OnMessageCreatingReturningNull { - get { + internal static string Context_OnMessageCreatingReturningNull + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_OnMessageCreatingReturningNull); } } @@ -574,8 +687,10 @@ internal static string Context_OnMessageCreatingReturningNull { /// /// A string like "SendingRequest cannot be used in combination with the DataServiceContext.Configurations.RequestPipeline.OnMessageCreating property. Please use SendingRequest2 with DataServiceContext.Configurations.RequestPipeline.OnMessageCreating property instead." /// - internal static string Context_SendingRequest_InvalidWhenUsingOnMessageCreating { - get { + internal static string Context_SendingRequest_InvalidWhenUsingOnMessageCreating + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SendingRequest_InvalidWhenUsingOnMessageCreating); } } @@ -583,15 +698,18 @@ internal static string Context_SendingRequest_InvalidWhenUsingOnMessageCreating /// /// A string like "'{0}' must be used with '{1}'." /// - internal static string Context_MustBeUsedWith(object p0, object p1) { + internal static string Context_MustBeUsedWith(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_MustBeUsedWith, p0, p1); } /// /// A string like "The context is currently in no tracking mode, in order to use streams make sure your entities extend BaseEntityType and query the Item again from the server to populate the read link or enable tracking." /// - internal static string Context_EntityMediaLinksNotTrackedInEntity { - get { + internal static string Context_EntityMediaLinksNotTrackedInEntity + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityMediaLinksNotTrackedInEntity); } } @@ -599,8 +717,10 @@ internal static string Context_EntityMediaLinksNotTrackedInEntity { /// /// A string like "The context is in non tracking mode, The entity does not seem to have the media links populated properly. Please verify server response is correct and that the entity extends BaseEntityType." /// - internal static string Context_EntityInNonTrackedContextLacksMediaLinks { - get { + internal static string Context_EntityInNonTrackedContextLacksMediaLinks + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_EntityInNonTrackedContextLacksMediaLinks); } } @@ -608,8 +728,10 @@ internal static string Context_EntityInNonTrackedContextLacksMediaLinks { /// /// A string like "When you call the UseJson method without a parameter, you must use the LoadServiceModel property to provide a valid IEdmModel instance." /// - internal static string DataServiceClientFormat_LoadServiceModelRequired { - get { + internal static string DataServiceClientFormat_LoadServiceModelRequired + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceClientFormat_LoadServiceModelRequired); } } @@ -617,8 +739,10 @@ internal static string DataServiceClientFormat_LoadServiceModelRequired { /// /// A string like "To use the JSON format, you must first call DataServiceContext.Format.UseJson() and supply a valid service model." /// - internal static string DataServiceClientFormat_ValidServiceModelRequiredForJson { - get { + internal static string DataServiceClientFormat_ValidServiceModelRequiredForJson + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceClientFormat_ValidServiceModelRequiredForJson); } } @@ -626,78 +750,90 @@ internal static string DataServiceClientFormat_ValidServiceModelRequiredForJson /// /// A string like "{0}.{1} must return a non-null open property collection." /// - internal static string Collection_NullCollectionReference(object p0, object p1) { + internal static string Collection_NullCollectionReference(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_NullCollectionReference, p0, p1); } /// /// A string like "The open object property '{0}:{1}' is not defined." /// - internal static string ClientType_MissingOpenProperty(object p0, object p1) { + internal static string ClientType_MissingOpenProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MissingOpenProperty, p0, p1); } /// /// A string like "{0} has multiple definitions for OpenObjectAttribute." /// - internal static string Clienttype_MultipleOpenProperty(object p0) { + internal static string Clienttype_MultipleOpenProperty(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Clienttype_MultipleOpenProperty, p0); } /// /// A string like "The closed type {0} does not have a corresponding {1} settable property." /// - internal static string ClientType_MissingProperty(object p0, object p1) { + internal static string ClientType_MissingProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MissingProperty, p0, p1); } /// /// A string like "The key property '{0}' on for type '{1}' is of type '{2}', which is not a simple type. Only properties of simple type can be key properties." /// - internal static string ClientType_KeysMustBeSimpleTypes(object p0, object p1, object p2) { + internal static string ClientType_KeysMustBeSimpleTypes(object p0, object p1, object p2) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_KeysMustBeSimpleTypes, p0, p1, p2); } /// /// A string like "{0} has key properties declared at different levels within its type hierarchy." /// - internal static string ClientType_KeysOnDifferentDeclaredType(object p0) { + internal static string ClientType_KeysOnDifferentDeclaredType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_KeysOnDifferentDeclaredType, p0); } /// /// A string like "Type '{0}' has a MimeTypeProperty attribute that references the MIME type property '{1}'. However, this type does not have a property '{1}'." /// - internal static string ClientType_MissingMimeTypeProperty(object p0, object p1) { + internal static string ClientType_MissingMimeTypeProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MissingMimeTypeProperty, p0, p1); } /// /// A string like "Type '{0}' has a MimeTypeProperty attribute that references the data property '{1}'. However, this type does not have a property '{1}'." /// - internal static string ClientType_MissingMimeTypeDataProperty(object p0, object p1) { + internal static string ClientType_MissingMimeTypeDataProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MissingMimeTypeDataProperty, p0, p1); } /// /// A string like "Type '{0}' has a MediaEntry attribute that references a property called '{1}'. However, this type does not have a property '{1}'." /// - internal static string ClientType_MissingMediaEntryProperty(object p0, object p1) { + internal static string ClientType_MissingMediaEntryProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MissingMediaEntryProperty, p0, p1); } /// /// A string like "The complex type '{0}' has no settable properties." /// - internal static string ClientType_NoSettableFields(object p0) { + internal static string ClientType_NoSettableFields(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_NoSettableFields, p0); } /// /// A string like "Multiple implementations of ICollection<T> is not supported." /// - internal static string ClientType_MultipleImplementationNotSupported { - get { + internal static string ClientType_MultipleImplementationNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MultipleImplementationNotSupported); } } @@ -705,29 +841,34 @@ internal static string ClientType_MultipleImplementationNotSupported { /// /// A string like "The open type property '{0}' returned a null instance." /// - internal static string ClientType_NullOpenProperties(object p0) { + internal static string ClientType_NullOpenProperties(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_NullOpenProperties, p0); } /// /// A string like "Resolving type from '{0}' that inherits from '{1}' is ambiguous." /// - internal static string ClientType_Ambiguous(object p0, object p1) { + internal static string ClientType_Ambiguous(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_Ambiguous, p0, p1); } /// /// A string like "The type '{0}' is not supported by the client library." /// - internal static string ClientType_UnsupportedType(object p0) { + internal static string ClientType_UnsupportedType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_UnsupportedType, p0); } /// /// A string like "Collection properties of a collection type are not supported." /// - internal static string ClientType_CollectionOfCollectionNotSupported { - get { + internal static string ClientType_CollectionOfCollectionNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_CollectionOfCollectionNotSupported); } } @@ -735,36 +876,42 @@ internal static string ClientType_CollectionOfCollectionNotSupported { /// /// A string like "Multiple types were found with the same name '{0}'. Type names must be unique." /// - internal static string ClientType_MultipleTypesWithSameName(object p0) { + internal static string ClientType_MultipleTypesWithSameName(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientType_MultipleTypesWithSameName, p0); } /// /// A string like "An item in the collection property '{0}' is not of the correct type. All items in the collection property must be of the collection item type." /// - internal static string WebUtil_TypeMismatchInCollection(object p0) { + internal static string WebUtil_TypeMismatchInCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.WebUtil_TypeMismatchInCollection, p0); } /// /// A string like "A collection of item type '{0}' has an item which is not of the correct type. All items in the collection must be of the collection item type." /// - internal static string WebUtil_TypeMismatchInNonPropertyCollection(object p0) { + internal static string WebUtil_TypeMismatchInNonPropertyCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.WebUtil_TypeMismatchInNonPropertyCollection, p0); } /// - /// A string like "The property '{0}' is of entity type and it cannot be a property of the type '{1}', which is not of entity type or complex type. Only entity types and complex types can contain navigation properties." + /// A string like "The property '{0}' is of entity type and it cannot be a property of the type '{1}', which is not of entity type. Only entity types can contain navigation properties." /// - internal static string ClientTypeCache_NonEntityTypeOrNonComplexTypeCannotContainEntityProperties(object p0, object p1) { + internal static string ClientTypeCache_NonEntityTypeOrNonComplexTypeCannotContainEntityProperties(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ClientTypeCache_NonEntityTypeOrNonComplexTypeCannotContainEntityProperties, p0, p1); } /// /// A string like "An error occurred while processing this request." /// - internal static string DataServiceException_GeneralError { - get { + internal static string DataServiceException_GeneralError + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceException_GeneralError); } } @@ -772,8 +919,10 @@ internal static string DataServiceException_GeneralError { /// /// A string like "Only a single enumeration is supported by this IEnumerable." /// - internal static string Deserialize_GetEnumerator { - get { + internal static string Deserialize_GetEnumerator + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_GetEnumerator); } } @@ -781,15 +930,18 @@ internal static string Deserialize_GetEnumerator { /// /// A string like "The current value '{1}' type is not compatible with the expected '{0}' type." /// - internal static string Deserialize_Current(object p0, object p1) { + internal static string Deserialize_Current(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_Current, p0, p1); } /// /// A string like "Error processing response stream. Element value interspersed with a comment is not supported." /// - internal static string Deserialize_MixedTextWithComment { - get { + internal static string Deserialize_MixedTextWithComment + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_MixedTextWithComment); } } @@ -797,8 +949,10 @@ internal static string Deserialize_MixedTextWithComment { /// /// A string like "Error processing response stream. The XML element contains mixed content." /// - internal static string Deserialize_ExpectingSimpleValue { - get { + internal static string Deserialize_ExpectingSimpleValue + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_ExpectingSimpleValue); } } @@ -806,8 +960,10 @@ internal static string Deserialize_ExpectingSimpleValue { /// /// A string like "Error processing response stream. Atom payload has a link, local object has a simple value." /// - internal static string Deserialize_MismatchAtomLinkLocalSimple { - get { + internal static string Deserialize_MismatchAtomLinkLocalSimple + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_MismatchAtomLinkLocalSimple); } } @@ -815,22 +971,26 @@ internal static string Deserialize_MismatchAtomLinkLocalSimple { /// /// A string like "Error processing response stream. Atom payload has a feed and the property '{0}' is not a collection." /// - internal static string Deserialize_MismatchAtomLinkFeedPropertyNotCollection(object p0) { + internal static string Deserialize_MismatchAtomLinkFeedPropertyNotCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_MismatchAtomLinkFeedPropertyNotCollection, p0); } /// /// A string like "Error processing response stream. Atom payload has an entry and the property '{0}' is a collection." /// - internal static string Deserialize_MismatchAtomLinkEntryPropertyIsCollection(object p0) { + internal static string Deserialize_MismatchAtomLinkEntryPropertyIsCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_MismatchAtomLinkEntryPropertyIsCollection, p0); } /// /// A string like "The response to this POST request did not contain a 'location' header. That is not supported by this client." /// - internal static string Deserialize_NoLocationHeader { - get { + internal static string Deserialize_NoLocationHeader + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_NoLocationHeader); } } @@ -838,15 +998,18 @@ internal static string Deserialize_NoLocationHeader { /// /// A string like "Error processing response stream. Server failed with following message:\r\n{0}" /// - internal static string Deserialize_ServerException(object p0) { + internal static string Deserialize_ServerException(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_ServerException, p0); } /// /// A string like "Error processing response stream. Missing id element in the response." /// - internal static string Deserialize_MissingIdElement { - get { + internal static string Deserialize_MissingIdElement + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Deserialize_MissingIdElement); } } @@ -854,22 +1017,26 @@ internal static string Deserialize_MissingIdElement { /// /// A string like "The value of the property '{0}' is null. Properties that are a collection type of primitive or complex types cannot be null." /// - internal static string Collection_NullCollectionNotSupported(object p0) { + internal static string Collection_NullCollectionNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_NullCollectionNotSupported, p0); } /// /// A string like "The value of the collection of item type '{0}' is null. A collection cannot have a null value." /// - internal static string Collection_NullNonPropertyCollectionNotSupported(object p0) { + internal static string Collection_NullNonPropertyCollectionNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_NullNonPropertyCollectionNotSupported, p0); } /// /// A string like "An item in the collection property has a null value. Collection properties that contain items with null values are not supported." /// - internal static string Collection_NullCollectionItemsNotSupported { - get { + internal static string Collection_NullCollectionItemsNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_NullCollectionItemsNotSupported); } } @@ -877,8 +1044,10 @@ internal static string Collection_NullCollectionItemsNotSupported { /// /// A string like "A collection property of primitive types cannot contain an item of a collection type." /// - internal static string Collection_CollectionTypesInCollectionOfPrimitiveTypesNotAllowed { - get { + internal static string Collection_CollectionTypesInCollectionOfPrimitiveTypesNotAllowed + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_CollectionTypesInCollectionOfPrimitiveTypesNotAllowed); } } @@ -886,8 +1055,10 @@ internal static string Collection_CollectionTypesInCollectionOfPrimitiveTypesNot /// /// A string like "A collection property of complex types cannot contain an item of a primitive type." /// - internal static string Collection_PrimitiveTypesInCollectionOfComplexTypesNotAllowed { - get { + internal static string Collection_PrimitiveTypesInCollectionOfComplexTypesNotAllowed + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Collection_PrimitiveTypesInCollectionOfComplexTypesNotAllowed); } } @@ -895,15 +1066,18 @@ internal static string Collection_PrimitiveTypesInCollectionOfComplexTypesNotAll /// /// A string like "The entity with identity '{0}' does not have a self-link or an edit-link associated with it. Please make sure that the entity has either a self-link or an edit-link associated with it." /// - internal static string EntityDescriptor_MissingSelfEditLink(object p0) { + internal static string EntityDescriptor_MissingSelfEditLink(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.EntityDescriptor_MissingSelfEditLink, p0); } /// /// A string like "Content-Type header value missing." /// - internal static string HttpProcessUtility_ContentTypeMissing { - get { + internal static string HttpProcessUtility_ContentTypeMissing + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_ContentTypeMissing); } } @@ -911,8 +1085,10 @@ internal static string HttpProcessUtility_ContentTypeMissing { /// /// A string like "Media type is missing a parameter value." /// - internal static string HttpProcessUtility_MediaTypeMissingValue { - get { + internal static string HttpProcessUtility_MediaTypeMissingValue + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_MediaTypeMissingValue); } } @@ -920,8 +1096,10 @@ internal static string HttpProcessUtility_MediaTypeMissingValue { /// /// A string like "Media type requires a ';' character before a parameter definition." /// - internal static string HttpProcessUtility_MediaTypeRequiresSemicolonBeforeParameter { - get { + internal static string HttpProcessUtility_MediaTypeRequiresSemicolonBeforeParameter + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_MediaTypeRequiresSemicolonBeforeParameter); } } @@ -929,8 +1107,10 @@ internal static string HttpProcessUtility_MediaTypeRequiresSemicolonBeforeParame /// /// A string like "Media type requires a '/' character." /// - internal static string HttpProcessUtility_MediaTypeRequiresSlash { - get { + internal static string HttpProcessUtility_MediaTypeRequiresSlash + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_MediaTypeRequiresSlash); } } @@ -938,8 +1118,10 @@ internal static string HttpProcessUtility_MediaTypeRequiresSlash { /// /// A string like "Media type requires a subtype definition." /// - internal static string HttpProcessUtility_MediaTypeRequiresSubType { - get { + internal static string HttpProcessUtility_MediaTypeRequiresSubType + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_MediaTypeRequiresSubType); } } @@ -947,8 +1129,10 @@ internal static string HttpProcessUtility_MediaTypeRequiresSubType { /// /// A string like "Media type is unspecified." /// - internal static string HttpProcessUtility_MediaTypeUnspecified { - get { + internal static string HttpProcessUtility_MediaTypeUnspecified + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_MediaTypeUnspecified); } } @@ -956,36 +1140,42 @@ internal static string HttpProcessUtility_MediaTypeUnspecified { /// /// A string like "Character set '{0}' is not supported." /// - internal static string HttpProcessUtility_EncodingNotSupported(object p0) { + internal static string HttpProcessUtility_EncodingNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_EncodingNotSupported, p0); } /// /// A string like "Value for MIME type parameter '{0}' is incorrect because it contained escape characters even though it was not quoted." /// - internal static string HttpProcessUtility_EscapeCharWithoutQuotes(object p0) { + internal static string HttpProcessUtility_EscapeCharWithoutQuotes(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_EscapeCharWithoutQuotes, p0); } /// /// A string like "Value for MIME type parameter '{0}' is incorrect because it terminated with escape character. Escape characters must always be followed by a character in a parameter value." /// - internal static string HttpProcessUtility_EscapeCharAtEnd(object p0) { + internal static string HttpProcessUtility_EscapeCharAtEnd(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_EscapeCharAtEnd, p0); } /// /// A string like "Value for MIME type parameter '{0}' is incorrect because the closing quote character could not be found while the parameter value started with a quote character." /// - internal static string HttpProcessUtility_ClosingQuoteNotFound(object p0) { + internal static string HttpProcessUtility_ClosingQuoteNotFound(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.HttpProcessUtility_ClosingQuoteNotFound, p0); } /// /// A string like "Count value is not part of the response stream." /// - internal static string MaterializeFromAtom_CountNotPresent { - get { + internal static string MaterializeFromAtom_CountNotPresent + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.MaterializeFromAtom_CountNotPresent); } } @@ -993,8 +1183,10 @@ internal static string MaterializeFromAtom_CountNotPresent { /// /// A string like "The top level link is only available after the response has been enumerated." /// - internal static string MaterializeFromAtom_TopLevelLinkNotAvailable { - get { + internal static string MaterializeFromAtom_TopLevelLinkNotAvailable + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.MaterializeFromAtom_TopLevelLinkNotAvailable); } } @@ -1002,8 +1194,10 @@ internal static string MaterializeFromAtom_TopLevelLinkNotAvailable { /// /// A string like "The collection is not part of the current entry" /// - internal static string MaterializeFromAtom_CollectionKeyNotPresentInLinkTable { - get { + internal static string MaterializeFromAtom_CollectionKeyNotPresentInLinkTable + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.MaterializeFromAtom_CollectionKeyNotPresentInLinkTable); } } @@ -1011,8 +1205,10 @@ internal static string MaterializeFromAtom_CollectionKeyNotPresentInLinkTable { /// /// A string like "This response does not contain any nested collections. Use null as Key instead." /// - internal static string MaterializeFromAtom_GetNestLinkForFlatCollection { - get { + internal static string MaterializeFromAtom_GetNestLinkForFlatCollection + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.MaterializeFromAtom_GetNestLinkForFlatCollection); } } @@ -1020,8 +1216,10 @@ internal static string MaterializeFromAtom_GetNestLinkForFlatCollection { /// /// A string like "GetStream method is not supported." /// - internal static string ODataRequestMessage_GetStreamMethodNotSupported { - get { + internal static string ODataRequestMessage_GetStreamMethodNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ODataRequestMessage_GetStreamMethodNotSupported); } } @@ -1029,8 +1227,10 @@ internal static string ODataRequestMessage_GetStreamMethodNotSupported { /// /// A string like "Empty string." /// - internal static string Util_EmptyString { - get { + internal static string Util_EmptyString + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Util_EmptyString); } } @@ -1038,8 +1238,10 @@ internal static string Util_EmptyString { /// /// A string like "Empty array." /// - internal static string Util_EmptyArray { - get { + internal static string Util_EmptyArray + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Util_EmptyArray); } } @@ -1047,8 +1249,10 @@ internal static string Util_EmptyArray { /// /// A string like "Array contains a null element." /// - internal static string Util_NullArrayElement { - get { + internal static string Util_NullArrayElement + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Util_NullArrayElement); } } @@ -1056,50 +1260,58 @@ internal static string Util_NullArrayElement { /// /// A string like "The expression type {0} is not supported." /// - internal static string ALinq_UnsupportedExpression(object p0) { + internal static string ALinq_UnsupportedExpression(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_UnsupportedExpression, p0); } /// /// A string like "Could not convert constant {0} expression to string." /// - internal static string ALinq_CouldNotConvert(object p0) { + internal static string ALinq_CouldNotConvert(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CouldNotConvert, p0); } /// /// A string like "The method '{0}' is not supported." /// - internal static string ALinq_MethodNotSupported(object p0) { + internal static string ALinq_MethodNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_MethodNotSupported, p0); } /// /// A string like "The unary operator '{0}' is not supported." /// - internal static string ALinq_UnaryNotSupported(object p0) { + internal static string ALinq_UnaryNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_UnaryNotSupported, p0); } /// /// A string like "The binary operator '{0}' is not supported." /// - internal static string ALinq_BinaryNotSupported(object p0) { + internal static string ALinq_BinaryNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_BinaryNotSupported, p0); } /// /// A string like "The constant for '{0}' is not supported." /// - internal static string ALinq_ConstantNotSupported(object p0) { + internal static string ALinq_ConstantNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ConstantNotSupported, p0); } /// /// A string like "An operation between an expression and a type is not supported." /// - internal static string ALinq_TypeBinaryNotSupported { - get { + internal static string ALinq_TypeBinaryNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_TypeBinaryNotSupported); } } @@ -1107,8 +1319,10 @@ internal static string ALinq_TypeBinaryNotSupported { /// /// A string like "The conditional expression is not supported." /// - internal static string ALinq_ConditionalNotSupported { - get { + internal static string ALinq_ConditionalNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ConditionalNotSupported); } } @@ -1116,8 +1330,10 @@ internal static string ALinq_ConditionalNotSupported { /// /// A string like "The parameter expression is not supported." /// - internal static string ALinq_ParameterNotSupported { - get { + internal static string ALinq_ParameterNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ParameterNotSupported); } } @@ -1125,15 +1341,18 @@ internal static string ALinq_ParameterNotSupported { /// /// A string like "The member access of '{0}' is not supported." /// - internal static string ALinq_MemberAccessNotSupported(object p0) { + internal static string ALinq_MemberAccessNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_MemberAccessNotSupported, p0); } /// /// A string like "Lambda Expressions not supported." /// - internal static string ALinq_LambdaNotSupported { - get { + internal static string ALinq_LambdaNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_LambdaNotSupported); } } @@ -1141,8 +1360,10 @@ internal static string ALinq_LambdaNotSupported { /// /// A string like "New Expressions not supported." /// - internal static string ALinq_NewNotSupported { - get { + internal static string ALinq_NewNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_NewNotSupported); } } @@ -1150,8 +1371,10 @@ internal static string ALinq_NewNotSupported { /// /// A string like "Member Init Expressions not supported." /// - internal static string ALinq_MemberInitNotSupported { - get { + internal static string ALinq_MemberInitNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_MemberInitNotSupported); } } @@ -1159,8 +1382,10 @@ internal static string ALinq_MemberInitNotSupported { /// /// A string like "List Init Expressions not supported." /// - internal static string ALinq_ListInitNotSupported { - get { + internal static string ALinq_ListInitNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ListInitNotSupported); } } @@ -1168,8 +1393,10 @@ internal static string ALinq_ListInitNotSupported { /// /// A string like "New Array Expressions not supported." /// - internal static string ALinq_NewArrayNotSupported { - get { + internal static string ALinq_NewArrayNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_NewArrayNotSupported); } } @@ -1177,8 +1404,10 @@ internal static string ALinq_NewArrayNotSupported { /// /// A string like "Invocation Expressions not supported." /// - internal static string ALinq_InvocationNotSupported { - get { + internal static string ALinq_InvocationNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_InvocationNotSupported); } } @@ -1186,8 +1415,10 @@ internal static string ALinq_InvocationNotSupported { /// /// A string like "Can only specify query options (orderby, where, take, skip) after last navigation." /// - internal static string ALinq_QueryOptionsOnlyAllowedOnLeafNodes { - get { + internal static string ALinq_QueryOptionsOnlyAllowedOnLeafNodes + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_QueryOptionsOnlyAllowedOnLeafNodes); } } @@ -1195,8 +1426,10 @@ internal static string ALinq_QueryOptionsOnlyAllowedOnLeafNodes { /// /// A string like "Expand query option not allowed." /// - internal static string ALinq_CantExpand { - get { + internal static string ALinq_CantExpand + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantExpand); } } @@ -1204,15 +1437,18 @@ internal static string ALinq_CantExpand { /// /// A string like "Can't cast to unsupported type '{0}'" /// - internal static string ALinq_CantCastToUnsupportedPrimitive(object p0) { + internal static string ALinq_CantCastToUnsupportedPrimitive(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantCastToUnsupportedPrimitive, p0); } /// /// A string like "Individual properties can only be selected from a single resource or as part of a type. Specify a key predicate to restrict the entity set to a single instance or project the property into a named or anonymous type." /// - internal static string ALinq_CantNavigateWithoutKeyPredicate { - get { + internal static string ALinq_CantNavigateWithoutKeyPredicate + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantNavigateWithoutKeyPredicate); } } @@ -1220,8 +1456,10 @@ internal static string ALinq_CantNavigateWithoutKeyPredicate { /// /// A string like "Multiple key predicates cannot be specified for the same entity set." /// - internal static string ALinq_CanOnlyApplyOneKeyPredicate { - get { + internal static string ALinq_CanOnlyApplyOneKeyPredicate + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CanOnlyApplyOneKeyPredicate); } } @@ -1229,22 +1467,26 @@ internal static string ALinq_CanOnlyApplyOneKeyPredicate { /// /// A string like "The expression {0} is not supported." /// - internal static string ALinq_CantTranslateExpression(object p0) { + internal static string ALinq_CantTranslateExpression(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantTranslateExpression, p0); } /// /// A string like "Error translating Linq expression to URI: {0}" /// - internal static string ALinq_TranslationError(object p0) { + internal static string ALinq_TranslationError(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_TranslationError, p0); } /// /// A string like "Custom query option not allowed." /// - internal static string ALinq_CantAddQueryOption { - get { + internal static string ALinq_CantAddQueryOption + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantAddQueryOption); } } @@ -1252,36 +1494,42 @@ internal static string ALinq_CantAddQueryOption { /// /// A string like "Can't add duplicate query option '{0}'." /// - internal static string ALinq_CantAddDuplicateQueryOption(object p0) { + internal static string ALinq_CantAddDuplicateQueryOption(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantAddDuplicateQueryOption, p0); } /// /// A string like "Can't add query option '{0}' because it would conflict with the query options from the translated Linq expression." /// - internal static string ALinq_CantAddAstoriaQueryOption(object p0) { + internal static string ALinq_CantAddAstoriaQueryOption(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantAddAstoriaQueryOption, p0); } /// /// A string like "The query option '{0}' is not supported or is controlled by the OData service." /// - internal static string ALinq_QueryOptionNotSupported(object p0) { + internal static string ALinq_QueryOptionNotSupported(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_QueryOptionNotSupported, p0); } /// /// A string like "Referencing public field '{0}' not supported in query option expression. Use public property instead." /// - internal static string ALinq_CantReferToPublicField(object p0) { + internal static string ALinq_CantReferToPublicField(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CantReferToPublicField, p0); } /// /// A string like "Cannot specify query options (orderby, where, take, skip, count) on single resource." /// - internal static string ALinq_QueryOptionsOnlyAllowedOnSingletons { - get { + internal static string ALinq_QueryOptionsOnlyAllowedOnSingletons + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_QueryOptionsOnlyAllowedOnSingletons); } } @@ -1289,15 +1537,18 @@ internal static string ALinq_QueryOptionsOnlyAllowedOnSingletons { /// /// A string like "The {0} query option cannot be specified after the {1} query option." /// - internal static string ALinq_QueryOptionOutOfOrder(object p0, object p1) { + internal static string ALinq_QueryOptionOutOfOrder(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_QueryOptionOutOfOrder, p0, p1); } /// /// A string like "Cannot add count option to the resource set." /// - internal static string ALinq_CannotAddCountOption { - get { + internal static string ALinq_CannotAddCountOption + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotAddCountOption); } } @@ -1305,8 +1556,10 @@ internal static string ALinq_CannotAddCountOption { /// /// A string like "Cannot add count option to the resource set because it would conflict with existing count options." /// - internal static string ALinq_CannotAddCountOptionConflict { - get { + internal static string ALinq_CannotAddCountOptionConflict + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotAddCountOptionConflict); } } @@ -1314,8 +1567,10 @@ internal static string ALinq_CannotAddCountOptionConflict { /// /// A string like "Can only specify 'select' query option after last navigation." /// - internal static string ALinq_ProjectionOnlyAllowedOnLeafNodes { - get { + internal static string ALinq_ProjectionOnlyAllowedOnLeafNodes + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ProjectionOnlyAllowedOnLeafNodes); } } @@ -1323,8 +1578,10 @@ internal static string ALinq_ProjectionOnlyAllowedOnLeafNodes { /// /// A string like "Cannot translate multiple Linq Select operations in a single 'select' query option." /// - internal static string ALinq_ProjectionCanOnlyHaveOneProjection { - get { + internal static string ALinq_ProjectionCanOnlyHaveOneProjection + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ProjectionCanOnlyHaveOneProjection); } } @@ -1332,36 +1589,42 @@ internal static string ALinq_ProjectionCanOnlyHaveOneProjection { /// /// A string like "Cannot initialize an instance of entity type '{0}' because '{1}' and '{2}' do not refer to the same source entity." /// - internal static string ALinq_ProjectionMemberAssignmentMismatch(object p0, object p1, object p2) { + internal static string ALinq_ProjectionMemberAssignmentMismatch(object p0, object p1, object p2) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ProjectionMemberAssignmentMismatch, p0, p1, p2); } /// /// A string like "The expression '{0}' is not a valid expression for navigation path. The only supported operations inside the lambda expression body are MemberAccess and TypeAs. The expression must contain at least one MemberAccess and it cannot end with TypeAs." /// - internal static string ALinq_InvalidExpressionInNavigationPath(object p0) { + internal static string ALinq_InvalidExpressionInNavigationPath(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_InvalidExpressionInNavigationPath, p0); } /// /// A string like "Initializing instances of the entity type {0} with the expression {1} is not supported." /// - internal static string ALinq_ExpressionNotSupportedInProjectionToEntity(object p0, object p1) { + internal static string ALinq_ExpressionNotSupportedInProjectionToEntity(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ExpressionNotSupportedInProjectionToEntity, p0, p1); } /// /// A string like "Constructing or initializing instances of the type {0} with the expression {1} is not supported." /// - internal static string ALinq_ExpressionNotSupportedInProjection(object p0, object p1) { + internal static string ALinq_ExpressionNotSupportedInProjection(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ExpressionNotSupportedInProjection, p0, p1); } /// /// A string like "Construction of entity type instances must use object initializer with default constructor." /// - internal static string ALinq_CannotConstructKnownEntityTypes { - get { + internal static string ALinq_CannotConstructKnownEntityTypes + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotConstructKnownEntityTypes); } } @@ -1369,8 +1632,10 @@ internal static string ALinq_CannotConstructKnownEntityTypes { /// /// A string like "Referencing of local entity type instances not supported when projecting results." /// - internal static string ALinq_CannotCreateConstantEntity { - get { + internal static string ALinq_CannotCreateConstantEntity + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotCreateConstantEntity); } } @@ -1378,15 +1643,18 @@ internal static string ALinq_CannotCreateConstantEntity { /// /// A string like "Cannot assign the value from the {0} property to the {1} property. When projecting results into a entity type, the property names of the source type and the target type must match for the properties being projected." /// - internal static string ALinq_PropertyNamesMustMatchInProjections(object p0, object p1) { + internal static string ALinq_PropertyNamesMustMatchInProjections(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_PropertyNamesMustMatchInProjections, p0, p1); } /// /// A string like "Can only project the last entity type in the query being translated." /// - internal static string ALinq_CanOnlyProjectTheLeaf { - get { + internal static string ALinq_CanOnlyProjectTheLeaf + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CanOnlyProjectTheLeaf); } } @@ -1394,8 +1662,10 @@ internal static string ALinq_CanOnlyProjectTheLeaf { /// /// A string like "Cannot create projection while there is an explicit expansion specified on the same query." /// - internal static string ALinq_CannotProjectWithExplicitExpansion { - get { + internal static string ALinq_CannotProjectWithExplicitExpansion + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotProjectWithExplicitExpansion); } } @@ -1403,36 +1673,42 @@ internal static string ALinq_CannotProjectWithExplicitExpansion { /// /// A string like "The collection property '{0}' cannot be used in an 'orderby' query expression. Collection properties are not supported by the 'orderby' query option." /// - internal static string ALinq_CollectionPropertyNotSupportedInOrderBy(object p0) { + internal static string ALinq_CollectionPropertyNotSupportedInOrderBy(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CollectionPropertyNotSupportedInOrderBy, p0); } /// /// A string like "The collection property '{0}' cannot be used in a 'where' query expression. Collection properties are only supported as the source of 'any' or 'all' methods in a 'where' query option." /// - internal static string ALinq_CollectionPropertyNotSupportedInWhere(object p0) { + internal static string ALinq_CollectionPropertyNotSupportedInWhere(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CollectionPropertyNotSupportedInWhere, p0); } /// /// A string like "Navigation to members of the collection property '{0}' in a 'select' query expression is not supported." /// - internal static string ALinq_CollectionMemberAccessNotSupportedInNavigation(object p0) { + internal static string ALinq_CollectionMemberAccessNotSupportedInNavigation(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CollectionMemberAccessNotSupportedInNavigation, p0); } /// /// A string like "The property '{0}' of type 'DataServiceStreamLink' cannot be used in 'where' or 'orderby' query expressions. Properties of type 'DataServiceStreamLink' are not supported by these query options." /// - internal static string ALinq_LinkPropertyNotSupportedInExpression(object p0) { + internal static string ALinq_LinkPropertyNotSupportedInExpression(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_LinkPropertyNotSupportedInExpression, p0); } /// /// A string like "The target type for an OfType filter could not be determined." /// - internal static string ALinq_OfTypeArgumentNotAvailable { - get { + internal static string ALinq_OfTypeArgumentNotAvailable + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_OfTypeArgumentNotAvailable); } } @@ -1440,8 +1716,10 @@ internal static string ALinq_OfTypeArgumentNotAvailable { /// /// A string like "Non-redundant type filters (OfType<T>, C# 'as' and VB 'TryCast') can only be used once per resource set." /// - internal static string ALinq_CannotUseTypeFiltersMultipleTimes { - get { + internal static string ALinq_CannotUseTypeFiltersMultipleTimes + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_CannotUseTypeFiltersMultipleTimes); } } @@ -1449,15 +1727,18 @@ internal static string ALinq_CannotUseTypeFiltersMultipleTimes { /// /// A string like "Unsupported expression '{0}' in '{1}' method. Expression cannot end with TypeAs." /// - internal static string ALinq_ExpressionCannotEndWithTypeAs(object p0, object p1) { + internal static string ALinq_ExpressionCannotEndWithTypeAs(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_ExpressionCannotEndWithTypeAs, p0, p1); } /// /// A string like "The expression 'TypeAs' is not supported when MaxProtocolVersion is less than '3.0'." /// - internal static string ALinq_TypeAsNotSupportedForMaxDataServiceVersionLessThan3 { - get { + internal static string ALinq_TypeAsNotSupportedForMaxDataServiceVersionLessThan3 + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_TypeAsNotSupportedForMaxDataServiceVersionLessThan3); } } @@ -1465,29 +1746,34 @@ internal static string ALinq_TypeAsNotSupportedForMaxDataServiceVersionLessThan3 /// /// A string like "The type '{0}' is not an entity type. The target type for a TypeAs operator must be an entity type." /// - internal static string ALinq_TypeAsArgumentNotEntityType(object p0) { + internal static string ALinq_TypeAsArgumentNotEntityType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_TypeAsArgumentNotEntityType, p0); } /// /// A string like "The source parameter for the '{0}' method has to be either a navigation or a collection property." /// - internal static string ALinq_InvalidSourceForAnyAll(object p0) { + internal static string ALinq_InvalidSourceForAnyAll(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_InvalidSourceForAnyAll, p0); } /// /// A string like "The method '{0}' is not supported by the 'orderby' query option." /// - internal static string ALinq_AnyAllNotSupportedInOrderBy(object p0) { + internal static string ALinq_AnyAllNotSupportedInOrderBy(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_AnyAllNotSupportedInOrderBy, p0); } /// /// A string like "The '$format' query option is not supported. Use the DataServiceContext.Format property to set the desired format." /// - internal static string ALinq_FormatQueryOptionNotSupported { - get { + internal static string ALinq_FormatQueryOptionNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_FormatQueryOptionNotSupported); } } @@ -1495,29 +1781,34 @@ internal static string ALinq_FormatQueryOptionNotSupported { /// /// A string like "Found the following illegal system token while building a projection or expansion path: '{0}'" /// - internal static string ALinq_IllegalSystemQueryOption(object p0) { + internal static string ALinq_IllegalSystemQueryOption(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_IllegalSystemQueryOption, p0); } /// /// A string like "Found a projection as a non-leaf segment in an expand path. Please rephrase your query. The projected property was : '{0}'" /// - internal static string ALinq_IllegalPathStructure(object p0) { + internal static string ALinq_IllegalPathStructure(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_IllegalPathStructure, p0); } /// /// A string like "Found an illegal type token '{0}' without a trailing navigation property." /// - internal static string ALinq_TypeTokenWithNoTrailingNavProp(object p0) { + internal static string ALinq_TypeTokenWithNoTrailingNavProp(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ALinq_TypeTokenWithNoTrailingNavProp, p0); } /// /// A string like "DataServiceKey attribute must specify at least one property name." /// - internal static string DSKAttribute_MustSpecifyAtleastOnePropertyName { - get { + internal static string DSKAttribute_MustSpecifyAtleastOnePropertyName + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DSKAttribute_MustSpecifyAtleastOnePropertyName); } } @@ -1525,8 +1816,10 @@ internal static string DSKAttribute_MustSpecifyAtleastOnePropertyName { /// /// A string like "Target collection for the Load operation must have an associated DataServiceContext." /// - internal static string DataServiceCollection_LoadRequiresTargetCollectionObserved { - get { + internal static string DataServiceCollection_LoadRequiresTargetCollectionObserved + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_LoadRequiresTargetCollectionObserved); } } @@ -1534,8 +1827,10 @@ internal static string DataServiceCollection_LoadRequiresTargetCollectionObserve /// /// A string like "The tracking of DataServiceCollection can not be stopped for child collections." /// - internal static string DataServiceCollection_CannotStopTrackingChildCollection { - get { + internal static string DataServiceCollection_CannotStopTrackingChildCollection + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_CannotStopTrackingChildCollection); } } @@ -1543,8 +1838,10 @@ internal static string DataServiceCollection_CannotStopTrackingChildCollection { /// /// A string like "This operation is only supported on collections that are being tracked." /// - internal static string DataServiceCollection_OperationForTrackedOnly { - get { + internal static string DataServiceCollection_OperationForTrackedOnly + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_OperationForTrackedOnly); } } @@ -1552,8 +1849,10 @@ internal static string DataServiceCollection_OperationForTrackedOnly { /// /// A string like "The DataServiceContext to which the DataServiceCollection instance belongs could not be determined. The DataServiceContext must either be supplied in the DataServiceCollection constructor or be used to create the DataServiceQuery or QueryOperationResponse object that is the source of the items in the DataServiceCollection." /// - internal static string DataServiceCollection_CannotDetermineContextFromItems { - get { + internal static string DataServiceCollection_CannotDetermineContextFromItems + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_CannotDetermineContextFromItems); } } @@ -1561,8 +1860,10 @@ internal static string DataServiceCollection_CannotDetermineContextFromItems { /// /// A string like "An item could not be added to the collection. When items in a DataServiceCollection are tracked by the DataServiceContext, new items cannot be added before items have been loaded into the collection." /// - internal static string DataServiceCollection_InsertIntoTrackedButNotLoadedCollection { - get { + internal static string DataServiceCollection_InsertIntoTrackedButNotLoadedCollection + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_InsertIntoTrackedButNotLoadedCollection); } } @@ -1570,8 +1871,10 @@ internal static string DataServiceCollection_InsertIntoTrackedButNotLoadedCollec /// /// A string like "A previous LoadAsync operation has not yet completed. You cannot call the LoadAsync method on the DataServiceCollection again until the previous operation has completed." /// - internal static string DataServiceCollection_MultipleLoadAsyncOperationsAtTheSameTime { - get { + internal static string DataServiceCollection_MultipleLoadAsyncOperationsAtTheSameTime + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_MultipleLoadAsyncOperationsAtTheSameTime); } } @@ -1579,8 +1882,10 @@ internal static string DataServiceCollection_MultipleLoadAsyncOperationsAtTheSam /// /// A string like "The LoadAsync method cannot be called when the DataServiceCollection is not a child collection of a related entity." /// - internal static string DataServiceCollection_LoadAsyncNoParamsWithoutParentEntity { - get { + internal static string DataServiceCollection_LoadAsyncNoParamsWithoutParentEntity + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_LoadAsyncNoParamsWithoutParentEntity); } } @@ -1588,8 +1893,10 @@ internal static string DataServiceCollection_LoadAsyncNoParamsWithoutParentEntit /// /// A string like "Only a typed DataServiceQuery object can be supplied when calling the LoadAsync method on DataServiceCollection." /// - internal static string DataServiceCollection_LoadAsyncRequiresDataServiceQuery { - get { + internal static string DataServiceCollection_LoadAsyncRequiresDataServiceQuery + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceCollection_LoadAsyncRequiresDataServiceQuery); } } @@ -1597,36 +1904,42 @@ internal static string DataServiceCollection_LoadAsyncRequiresDataServiceQuery { /// /// A string like "The DataServiceCollection to be tracked must contain entity typed elements with at least one key property. The element type '{0}' does not have any key property." /// - internal static string DataBinding_DataServiceCollectionArgumentMustHaveEntityType(object p0) { + internal static string DataBinding_DataServiceCollectionArgumentMustHaveEntityType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_DataServiceCollectionArgumentMustHaveEntityType, p0); } /// /// A string like "Setting an instance of DataServiceCollection to an entity property is disallowed if the instance is already being tracked. Error occurred on property '{0}' for entity type '{1}'." /// - internal static string DataBinding_CollectionPropertySetterValueHasObserver(object p0, object p1) { + internal static string DataBinding_CollectionPropertySetterValueHasObserver(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_CollectionPropertySetterValueHasObserver, p0, p1); } /// /// A string like "Unexpected action '{0}' on the OnCollectionChanged event raised by DataServiceCollection." /// - internal static string DataBinding_DataServiceCollectionChangedUnknownActionCollection(object p0) { + internal static string DataBinding_DataServiceCollectionChangedUnknownActionCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_DataServiceCollectionChangedUnknownActionCollection, p0); } /// /// A string like "Unexpected action '{0}' on the OnCollectionChanged event raised by a collection object of type '{1}'." /// - internal static string DataBinding_CollectionChangedUnknownActionCollection(object p0, object p1) { + internal static string DataBinding_CollectionChangedUnknownActionCollection(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_CollectionChangedUnknownActionCollection, p0, p1); } /// /// A string like "Add/Update/Delete operation cannot be performed on a child entity, if the parent entity is already detached." /// - internal static string DataBinding_BindingOperation_DetachedSource { - get { + internal static string DataBinding_BindingOperation_DetachedSource + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_BindingOperation_DetachedSource); } } @@ -1634,64 +1947,74 @@ internal static string DataBinding_BindingOperation_DetachedSource { /// /// A string like "Null values are disallowed during '{0}' operations on DataServiceCollection." /// - internal static string DataBinding_BindingOperation_ArrayItemNull(object p0) { + internal static string DataBinding_BindingOperation_ArrayItemNull(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_BindingOperation_ArrayItemNull, p0); } /// /// A string like "A value provided during '{0}' operation on DataServiceCollection is not of an entity type with key." /// - internal static string DataBinding_BindingOperation_ArrayItemNotEntity(object p0) { + internal static string DataBinding_BindingOperation_ArrayItemNotEntity(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_BindingOperation_ArrayItemNotEntity, p0); } /// /// A string like "Entity set name has not been provided for an entity of type '{0}'." /// - internal static string DataBinding_Util_UnknownEntitySetName(object p0) { + internal static string DataBinding_Util_UnknownEntitySetName(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_Util_UnknownEntitySetName, p0); } /// /// A string like "An attempt was made to add entity of type '{0}' to a collection in which the same entity already exists." /// - internal static string DataBinding_EntityAlreadyInCollection(object p0) { + internal static string DataBinding_EntityAlreadyInCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_EntityAlreadyInCollection, p0); } /// /// A string like "An attempt to track an entity or complex type failed because the entity or complex type '{0}' does not implement the INotifyPropertyChanged interface." /// - internal static string DataBinding_NotifyPropertyChangedNotImpl(object p0) { + internal static string DataBinding_NotifyPropertyChangedNotImpl(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_NotifyPropertyChangedNotImpl, p0); } /// /// A string like "An attempt to track an entity or complex type failed because the entity or complex type contains a collection property of type '{0}' that does not implement the INotifyCollectionChanged interface." /// - internal static string DataBinding_NotifyCollectionChangedNotImpl(object p0) { + internal static string DataBinding_NotifyCollectionChangedNotImpl(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_NotifyCollectionChangedNotImpl, p0); } /// /// A string like "An attempt to track a complex object of type '{0}' failed because the complex object is already being tracked." /// - internal static string DataBinding_ComplexObjectAssociatedWithMultipleEntities(object p0) { + internal static string DataBinding_ComplexObjectAssociatedWithMultipleEntities(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_ComplexObjectAssociatedWithMultipleEntities, p0); } /// /// A string like "An attempt to track a collection object of type '{0}' failed because the collection object is already being tracked." /// - internal static string DataBinding_CollectionAssociatedWithMultipleEntities(object p0) { + internal static string DataBinding_CollectionAssociatedWithMultipleEntities(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataBinding_CollectionAssociatedWithMultipleEntities, p0); } /// /// A string like "Expected exactly one Atom entry in the response from the server, but none was found." /// - internal static string AtomParser_SingleEntry_NoneFound { - get { + internal static string AtomParser_SingleEntry_NoneFound + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomParser_SingleEntry_NoneFound); } } @@ -1699,8 +2022,10 @@ internal static string AtomParser_SingleEntry_NoneFound { /// /// A string like "Expected exactly one Atom entry in the response from the server, but more than one was found." /// - internal static string AtomParser_SingleEntry_MultipleFound { - get { + internal static string AtomParser_SingleEntry_MultipleFound + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomParser_SingleEntry_MultipleFound); } } @@ -1708,8 +2033,10 @@ internal static string AtomParser_SingleEntry_MultipleFound { /// /// A string like "Expected an Atom feed or entry in the response from the server, but found an unexpected element instead." /// - internal static string AtomParser_SingleEntry_ExpectedFeedOrEntry { - get { + internal static string AtomParser_SingleEntry_ExpectedFeedOrEntry + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomParser_SingleEntry_ExpectedFeedOrEntry); } } @@ -1717,57 +2044,66 @@ internal static string AtomParser_SingleEntry_ExpectedFeedOrEntry { /// /// A string like "The null value from property '{0}' cannot be assigned to a type '{1}'." /// - internal static string AtomMaterializer_CannotAssignNull(object p0, object p1) { + internal static string AtomMaterializer_CannotAssignNull(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_CannotAssignNull, p0, p1); } /// /// A string like "An entry of type '{0}' cannot be added to a collection that contains instances of type '{1}'. This may occur when an existing entry of a different type has the same identity value or when the same entity is projected into two different types in a single query." /// - internal static string AtomMaterializer_EntryIntoCollectionMismatch(object p0, object p1) { + internal static string AtomMaterializer_EntryIntoCollectionMismatch(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_EntryIntoCollectionMismatch, p0, p1); } /// /// A string like "An entry returned by the navigation property '{0}' is null and cannot be initialized. You should check for a null value before accessing this property." /// - internal static string AtomMaterializer_EntryToAccessIsNull(object p0) { + internal static string AtomMaterializer_EntryToAccessIsNull(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_EntryToAccessIsNull, p0); } /// /// A string like "An entry that contains the data required to create an instance of type '{0}' is null and cannot be initialized. You should check for a null value before accessing this entry." /// - internal static string AtomMaterializer_EntryToInitializeIsNull(object p0) { + internal static string AtomMaterializer_EntryToInitializeIsNull(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_EntryToInitializeIsNull, p0); } /// /// A string like "An entity of type '{0}' cannot be projected because there is already an instance of type '{1}' for '{2}'." /// - internal static string AtomMaterializer_ProjectEntityTypeMismatch(object p0, object p1, object p2) { + internal static string AtomMaterializer_ProjectEntityTypeMismatch(object p0, object p1, object p2) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_ProjectEntityTypeMismatch, p0, p1, p2); } /// /// A string like "The expected property '{0}' could not be found while processing an entry. Check for null before accessing this property." /// - internal static string AtomMaterializer_PropertyMissing(object p0) { + internal static string AtomMaterializer_PropertyMissing(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_PropertyMissing, p0); } /// /// A string like "Property '{0}' is not an entity." /// - internal static string AtomMaterializer_PropertyNotExpectedEntry(object p0) { + internal static string AtomMaterializer_PropertyNotExpectedEntry(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_PropertyNotExpectedEntry, p0); } /// /// A string like "A DataServiceCollection can only contain entity types. Primitive and complex types cannot be contained by this kind of collection." /// - internal static string AtomMaterializer_DataServiceCollectionNotSupportedForNonEntities { - get { + internal static string AtomMaterializer_DataServiceCollectionNotSupportedForNonEntities + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_DataServiceCollectionNotSupportedForNonEntities); } } @@ -1775,64 +2111,74 @@ internal static string AtomMaterializer_DataServiceCollectionNotSupportedForNonE /// /// A string like "Collection property '{0}' cannot be created because the type '{1}' does not have a public parameterless constructor." /// - internal static string AtomMaterializer_NoParameterlessCtorForCollectionProperty(object p0, object p1) { + internal static string AtomMaterializer_NoParameterlessCtorForCollectionProperty(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_NoParameterlessCtorForCollectionProperty, p0, p1); } /// /// A string like "The element '{0}' is not a valid collection item. The name of the collection item element must be 'element' and must belong to the 'http://docs.oasis-open.org/odata/ns/data' namespace." /// - internal static string AtomMaterializer_InvalidCollectionItem(object p0) { + internal static string AtomMaterializer_InvalidCollectionItem(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_InvalidCollectionItem, p0); } /// /// A string like "There is a type mismatch between the client and the service. Type '{0}' is an entity type, but the type in the response payload does not represent an entity type. Please ensure that types defined on the client match the data model of the service, or update the service reference on the client." /// - internal static string AtomMaterializer_InvalidEntityType(object p0) { + internal static string AtomMaterializer_InvalidEntityType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_InvalidEntityType, p0); } /// /// A string like "There is a type mismatch between the client and the service. Type '{0}' is not an entity type, but the type in the response payload represents an entity type. Please ensure that types defined on the client match the data model of the service, or update the service reference on the client." /// - internal static string AtomMaterializer_InvalidNonEntityType(object p0) { + internal static string AtomMaterializer_InvalidNonEntityType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_InvalidNonEntityType, p0); } /// /// A string like "Materialization of top level collection expected ICollection<>, but actual type was {0}." /// - internal static string AtomMaterializer_CollectionExpectedCollection(object p0) { + internal static string AtomMaterializer_CollectionExpectedCollection(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_CollectionExpectedCollection, p0); } /// /// A string like "The response payload is a not a valid response payload. Please make sure that the top level element is a valid Atom or JSON element or belongs to '{0}' namespace." /// - internal static string AtomMaterializer_InvalidResponsePayload(object p0) { + internal static string AtomMaterializer_InvalidResponsePayload(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_InvalidResponsePayload, p0); } /// /// A string like "The response content type '{0}' is not currently supported." /// - internal static string AtomMaterializer_InvalidContentTypeEncountered(object p0) { + internal static string AtomMaterializer_InvalidContentTypeEncountered(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_InvalidContentTypeEncountered, p0); } /// /// A string like "Cannot materialize the results into a collection type '{0}' because it does not have a parameterless constructor." /// - internal static string AtomMaterializer_MaterializationTypeError(object p0) { + internal static string AtomMaterializer_MaterializationTypeError(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_MaterializationTypeError, p0); } /// /// A string like "Reset should never be called for collection reader in an internal enumerable." /// - internal static string AtomMaterializer_ResetAfterEnumeratorCreationError { - get { + internal static string AtomMaterializer_ResetAfterEnumeratorCreationError + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_ResetAfterEnumeratorCreationError); } } @@ -1840,64 +2186,74 @@ internal static string AtomMaterializer_ResetAfterEnumeratorCreationError { /// /// A string like "Cannot materialize a collection of a primitives or complex without the type '{0}' being a collection." /// - internal static string AtomMaterializer_TypeShouldBeCollectionError(object p0) { + internal static string AtomMaterializer_TypeShouldBeCollectionError(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.AtomMaterializer_TypeShouldBeCollectionError, p0); } /// /// A string like "A circular loop was detected while serializing the property '{0}'. You must make sure that loops are not present in properties that return a collection or complex type." /// - internal static string Serializer_LoopsNotAllowedInComplexTypes(object p0) { + internal static string Serializer_LoopsNotAllowedInComplexTypes(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_LoopsNotAllowedInComplexTypes, p0); } /// /// A string like "A circular loop was detected while serializing the complex type '{0}'. You must make sure that loops are not present in a collection or a complex type." /// - internal static string Serializer_LoopsNotAllowedInNonPropertyComplexTypes(object p0) { + internal static string Serializer_LoopsNotAllowedInNonPropertyComplexTypes(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_LoopsNotAllowedInNonPropertyComplexTypes, p0); } /// /// A string like "The operation parameter named '{0}' has a collection item of Edm type kind '{1}'. A collection item must be either a primitive type or a complex Edm type kind." /// - internal static string Serializer_InvalidCollectionParameterItemType(object p0, object p1) { + internal static string Serializer_InvalidCollectionParameterItemType(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_InvalidCollectionParameterItemType, p0, p1); } /// /// A string like "The operation parameter named '{0}' has a null collection item. The items of a collection must not be null." /// - internal static string Serializer_NullCollectionParameterItemValue(object p0) { + internal static string Serializer_NullCollectionParameterItemValue(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_NullCollectionParameterItemValue, p0); } /// /// A string like "The operation parameter named '{0}' was of Edm type kind '{1}'. An operation parameter must be either a primitive type, a complex type or a collection of primitive or complex types." /// - internal static string Serializer_InvalidParameterType(object p0, object p1) { + internal static string Serializer_InvalidParameterType(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_InvalidParameterType, p0, p1); } /// /// A string like "The parameter alias '{0}' was not present in the request URI. All parameters passed as alias must be present in the request URI." /// - internal static string Serializer_UriDoesNotContainParameterAlias(object p0) { + internal static string Serializer_UriDoesNotContainParameterAlias(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_UriDoesNotContainParameterAlias, p0); } /// /// A string like "The enum type '{0}' has no member named '{1}'." /// - internal static string Serializer_InvalidEnumMemberValue(object p0, object p1) { + internal static string Serializer_InvalidEnumMemberValue(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Serializer_InvalidEnumMemberValue, p0, p1); } /// /// A string like "This target framework does not enable you to directly enumerate over a data service query. This is because enumeration automatically sends a synchronous request to the data service. Because this framework only supports asynchronous operations, you must instead call the BeginExecute and EndExecute methods to obtain a query result that supports enumeration." /// - internal static string DataServiceQuery_EnumerationNotSupported { - get { + internal static string DataServiceQuery_EnumerationNotSupported + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceQuery_EnumerationNotSupported); } } @@ -1905,8 +2261,10 @@ internal static string DataServiceQuery_EnumerationNotSupported { /// /// A string like "Only instances of HttpWebRequest are currently allowed for this property. Other subtypes of WebRequest are not supported." /// - internal static string Context_SendingRequestEventArgsNotHttp { - get { + internal static string Context_SendingRequestEventArgsNotHttp + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_SendingRequestEventArgsNotHttp); } } @@ -1914,78 +2272,90 @@ internal static string Context_SendingRequestEventArgsNotHttp { /// /// A string like "An internal error '{0}' occurred." /// - internal static string General_InternalError(object p0) { + internal static string General_InternalError(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.General_InternalError, p0); } /// /// A string like "The entity set '{0}' doesn't have the 'OData.EntitySetUri' annotation. This annotation is required." /// - internal static string ODataMetadataBuilder_MissingEntitySetUri(object p0) { + internal static string ODataMetadataBuilder_MissingEntitySetUri(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ODataMetadataBuilder_MissingEntitySetUri, p0); } /// /// A string like "The entity set '{0}' has a URI '{1}' which has no path segments. An entity set URI suffix cannot be appended to a URI without path segments." /// - internal static string ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix(object p0, object p1) { + internal static string ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix, p0, p1); } /// /// A string like "Neither the 'OData.EntityInstanceUri' nor the 'OData.EntitySetUriSuffix' annotation was found for entity set '{0}'. One of these annotations is required." /// - internal static string ODataMetadataBuilder_MissingEntityInstanceUri(object p0) { + internal static string ODataMetadataBuilder_MissingEntityInstanceUri(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ODataMetadataBuilder_MissingEntityInstanceUri, p0); } /// /// A string like "The type '{0}' was found for a primitive value. In OData, the type '{0}' is not a supported primitive type." /// - internal static string EdmValueUtils_UnsupportedPrimitiveType(object p0) { + internal static string EdmValueUtils_UnsupportedPrimitiveType(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.EdmValueUtils_UnsupportedPrimitiveType, p0); } /// /// A string like "Incompatible primitive type kinds were found. The type '{0}' was found to be of kind '{2}' instead of the expected kind '{1}'." /// - internal static string EdmValueUtils_IncorrectPrimitiveTypeKind(object p0, object p1, object p2) { + internal static string EdmValueUtils_IncorrectPrimitiveTypeKind(object p0, object p1, object p2) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.EdmValueUtils_IncorrectPrimitiveTypeKind, p0, p1, p2); } /// /// A string like "Incompatible primitive type kinds were found. Found type kind '{0}' instead of the expected kind '{1}'." /// - internal static string EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName(object p0, object p1) { + internal static string EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName(object p0, object p1) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName, p0, p1); } /// /// A string like "A value with primitive kind '{0}' cannot be converted into a primitive object value." /// - internal static string EdmValueUtils_CannotConvertTypeToClrValue(object p0) { + internal static string EdmValueUtils_CannotConvertTypeToClrValue(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.EdmValueUtils_CannotConvertTypeToClrValue, p0); } /// /// A string like "The value '{0}' is not a valid duration value." /// - internal static string ValueParser_InvalidDuration(object p0) { + internal static string ValueParser_InvalidDuration(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.ValueParser_InvalidDuration, p0); } /// /// A string like "The time zone information is missing on the DateTimeOffset value '{0}'. A DateTimeOffset value must contain the time zone information." /// - internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) { + internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.PlatformHelper_DateTimeOffsetMustContainTimeZone, p0); } /// /// A string like "Failed to get the count value from the server." /// - internal static string DataServiceRequest_FailGetCount { - get { + internal static string DataServiceRequest_FailGetCount + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.DataServiceRequest_FailGetCount); } } @@ -1993,8 +2363,10 @@ internal static string DataServiceRequest_FailGetCount { /// /// A string like "Execute overload for void service operations and actions received a non-void response from the server." /// - internal static string Context_ExecuteExpectedVoidResponse { - get { + internal static string Context_ExecuteExpectedVoidResponse + { + get + { return Microsoft.OData.Client.TextRes.GetString(Microsoft.OData.Client.TextRes.Context_ExecuteExpectedVoidResponse); } } diff --git a/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs b/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs index 98dd83f364..99d818e82d 100644 --- a/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs +++ b/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs @@ -18,8 +18,10 @@ internal static class Strings { /// /// A string like "Value cannot be empty." /// - internal static string ExceptionUtils_ArgumentStringEmpty { - get { + internal static string ExceptionUtils_ArgumentStringEmpty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExceptionUtils_ArgumentStringEmpty); } } @@ -27,8 +29,10 @@ internal static string ExceptionUtils_ArgumentStringEmpty { /// /// A string like "An asynchronous operation was requested on an IODataRequestMessage instance. For asynchronous operations to succeed, the request message instance must implement IODataRequestMessageAsync." /// - internal static string ODataRequestMessage_AsyncNotAvailable { - get { + internal static string ODataRequestMessage_AsyncNotAvailable + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataRequestMessage_AsyncNotAvailable); } } @@ -36,8 +40,10 @@ internal static string ODataRequestMessage_AsyncNotAvailable { /// /// A string like "The IODataRequestMessageAsync.GetStreamAsync method returned null. An asynchronous method that returns a task can never return null." /// - internal static string ODataRequestMessage_StreamTaskIsNull { - get { + internal static string ODataRequestMessage_StreamTaskIsNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataRequestMessage_StreamTaskIsNull); } } @@ -45,8 +51,10 @@ internal static string ODataRequestMessage_StreamTaskIsNull { /// /// A string like "The IODataRequestMessage.GetStream or IODataRequestMessageAsync.GetStreamAsync method returned a null stream value. The message can never return a null stream." /// - internal static string ODataRequestMessage_MessageStreamIsNull { - get { + internal static string ODataRequestMessage_MessageStreamIsNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataRequestMessage_MessageStreamIsNull); } } @@ -54,8 +62,10 @@ internal static string ODataRequestMessage_MessageStreamIsNull { /// /// A string like "An asynchronous operation was requested on an IODataResponseMessage instance. For asynchronous operations to succeed, the response message instance must implement IODataResponseMessageAsync." /// - internal static string ODataResponseMessage_AsyncNotAvailable { - get { + internal static string ODataResponseMessage_AsyncNotAvailable + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResponseMessage_AsyncNotAvailable); } } @@ -63,8 +73,10 @@ internal static string ODataResponseMessage_AsyncNotAvailable { /// /// A string like "The IODataResponseMessageAsync.GetStreamAsync method returned null. An asynchronous method that returns a task can never return null." /// - internal static string ODataResponseMessage_StreamTaskIsNull { - get { + internal static string ODataResponseMessage_StreamTaskIsNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResponseMessage_StreamTaskIsNull); } } @@ -72,8 +84,10 @@ internal static string ODataResponseMessage_StreamTaskIsNull { /// /// A string like "The IODataResponseMessage.GetStream or IODataResponseMessageAsync.GetStreamAsync method returned a null stream value. The message can never return a null stream." /// - internal static string ODataResponseMessage_MessageStreamIsNull { - get { + internal static string ODataResponseMessage_MessageStreamIsNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResponseMessage_MessageStreamIsNull); } } @@ -81,8 +95,10 @@ internal static string ODataResponseMessage_MessageStreamIsNull { /// /// A string like "A writer or stream has been disposed with data still in the buffer. You must call Flush or FlushAsync before calling Dispose when some data has already been written." /// - internal static string AsyncBufferedStream_WriterDisposedWithoutFlush { - get { + internal static string AsyncBufferedStream_WriterDisposedWithoutFlush + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AsyncBufferedStream_WriterDisposedWithoutFlush); } } @@ -90,8 +106,10 @@ internal static string AsyncBufferedStream_WriterDisposedWithoutFlush { /// /// A string like "ATOM support is obsolete." /// - internal static string ODataFormat_AtomFormatObsoleted { - get { + internal static string ODataFormat_AtomFormatObsoleted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataFormat_AtomFormatObsoleted); } } @@ -99,22 +117,26 @@ internal static string ODataFormat_AtomFormatObsoleted { /// /// A string like "The format '{0}' does not support writing a payload of kind '{1}'." /// - internal static string ODataOutputContext_UnsupportedPayloadKindForFormat(object p0, object p1) { + internal static string ODataOutputContext_UnsupportedPayloadKindForFormat(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataOutputContext_UnsupportedPayloadKindForFormat, p0, p1); } /// /// A string like "The format '{0}' does not support reading a payload of kind '{1}'." /// - internal static string ODataInputContext_UnsupportedPayloadKindForFormat(object p0, object p1) { + internal static string ODataInputContext_UnsupportedPayloadKindForFormat(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataInputContext_UnsupportedPayloadKindForFormat, p0, p1); } /// /// A string like "The ServiceRoot property in ODataMessageWriterSettings.ODataUri must be set when writing a payload." /// - internal static string ODataOutputContext_MetadataDocumentUriMissing { - get { + internal static string ODataOutputContext_MetadataDocumentUriMissing + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataOutputContext_MetadataDocumentUriMissing); } } @@ -122,120 +144,138 @@ internal static string ODataOutputContext_MetadataDocumentUriMissing { /// /// A string like "A relative URI value '{0}' was specified in the data to write, but the metadata document URI or the metadata for the item to be written was not specified for the writer. The metadata document URI and the metadata for the item to be written must be provided to the writer when using relative URI values." /// - internal static string ODataJsonLightSerializer_RelativeUriUsedWithoutMetadataDocumentUriOrMetadata(object p0) { + internal static string ODataJsonLightSerializer_RelativeUriUsedWithoutMetadataDocumentUriOrMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightSerializer_RelativeUriUsedWithoutMetadataDocumentUriOrMetadata, p0); } /// /// A string like "A relative URI value '{0}' was specified in the data to write, but a base URI was not specified for the writer. A base URI must be set when using relative URI values." /// - internal static string ODataWriter_RelativeUriUsedWithoutBaseUriSpecified(object p0) { + internal static string ODataWriter_RelativeUriUsedWithoutBaseUriSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriter_RelativeUriUsedWithoutBaseUriSpecified, p0); } /// /// A string like "The property '{0}' is a stream property, but it is not a property of an ODataResource instance. In OData, stream properties must be properties of ODataResource instances." /// - internal static string ODataWriter_StreamPropertiesMustBePropertiesOfODataResource(object p0) { + internal static string ODataWriter_StreamPropertiesMustBePropertiesOfODataResource(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriter_StreamPropertiesMustBePropertiesOfODataResource, p0); } /// /// A string like "An invalid state transition has been detected in an OData writer. Cannot transition from state '{0}' to state '{1}'." /// - internal static string ODataWriterCore_InvalidStateTransition(object p0, object p1) { + internal static string ODataWriterCore_InvalidStateTransition(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidStateTransition, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid actions in state '{0}' are to write a resource or a resource set." /// - internal static string ODataWriterCore_InvalidTransitionFromStart(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromStart(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromStart, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid action in state '{0}' is to write a property or a nested resource." /// - internal static string ODataWriterCore_InvalidTransitionFromResource(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromResource, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}' when writing an OData 4.0 payload. To write content to a deleted resource, please specify ODataVersion 4.01 or greater in MessageWriterSettings." /// - internal static string ODataWriterCore_InvalidTransitionFrom40DeletedResource(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFrom40DeletedResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFrom40DeletedResource, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. You must first call ODataWriter.WriteEnd to finish writing a null ODataResource." /// - internal static string ODataWriterCore_InvalidTransitionFromNullResource(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromNullResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromNullResource, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid action in state '{0}' is to write a resource." /// - internal static string ODataWriterCore_InvalidTransitionFromResourceSet(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromResourceSet(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromResourceSet, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid actions in state '{0}' are to write a resource or a resource set." /// - internal static string ODataWriterCore_InvalidTransitionFromExpandedLink(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromExpandedLink(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromExpandedLink, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. Nothing further can be written once the writer has completed." /// - internal static string ODataWriterCore_InvalidTransitionFromCompleted(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromCompleted(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromCompleted, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. Nothing can be written once the writer entered the error state." /// - internal static string ODataWriterCore_InvalidTransitionFromError(object p0, object p1) { + internal static string ODataWriterCore_InvalidTransitionFromError(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_InvalidTransitionFromError, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. State transition is not allowed while writing an expanded navigation property, complex property or complex collection property." /// - internal static string ODataJsonLightDeltaWriter_InvalidTransitionFromNestedResource(object p0, object p1) { + internal static string ODataJsonLightDeltaWriter_InvalidTransitionFromNestedResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeltaWriter_InvalidTransitionFromNestedResource, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. Nested resource can only be written within a delta resource." /// - internal static string ODataJsonLightDeltaWriter_InvalidTransitionToNestedResource(object p0, object p1) { + internal static string ODataJsonLightDeltaWriter_InvalidTransitionToNestedResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeltaWriter_InvalidTransitionToNestedResource, p0, p1); } /// /// A string like "WriteStart(expandedResourceSet) was called in an invalid state ('{0}'); WriteStart(expandedResourceSet) is only supported in state 'ExpandedNavigationProperty'." /// - internal static string ODataJsonLightDeltaWriter_WriteStartExpandedResourceSetCalledInInvalidState(object p0) { + internal static string ODataJsonLightDeltaWriter_WriteStartExpandedResourceSetCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeltaWriter_WriteStartExpandedResourceSetCalledInInvalidState, p0); } /// /// A string like "ODataWriter.WriteEnd was called in an invalid state ('{0}'); WriteEnd is only supported in states 'Resource', 'ResourceSet', 'NavigationLink', and 'NavigationLinkWithContent'." /// - internal static string ODataWriterCore_WriteEndCalledInInvalidState(object p0) { + internal static string ODataWriterCore_WriteEndCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_WriteEndCalledInInvalidState, p0); } /// /// A string like "ODataWriter.Write or ODataWriter.WriteEnd was called while streaming a value. Stream or TextWriter must be disposed before calling additional methods on ODataWriter." /// - internal static string ODataWriterCore_StreamNotDisposed { - get { + internal static string ODataWriterCore_StreamNotDisposed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_StreamNotDisposed); } } @@ -243,8 +283,10 @@ internal static string ODataWriterCore_StreamNotDisposed { /// /// A string like "No Id or key properties were found. A resource in a delta response requires an ID or key properties be specified." /// - internal static string ODataWriterCore_DeltaResourceWithoutIdOrKeyProperties { - get { + internal static string ODataWriterCore_DeltaResourceWithoutIdOrKeyProperties + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_DeltaResourceWithoutIdOrKeyProperties); } } @@ -252,8 +294,10 @@ internal static string ODataWriterCore_DeltaResourceWithoutIdOrKeyProperties { /// /// A string like "The ODataResourceSet.Count must be null for request payloads. Query counts are only supported in responses." /// - internal static string ODataWriterCore_QueryCountInRequest { - get { + internal static string ODataWriterCore_QueryCountInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_QueryCountInRequest); } } @@ -261,8 +305,10 @@ internal static string ODataWriterCore_QueryCountInRequest { /// /// A string like "The NextPageLink must be null for request payloads. Next page links are only supported in responses." /// - internal static string ODataWriterCore_QueryNextLinkInRequest { - get { + internal static string ODataWriterCore_QueryNextLinkInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_QueryNextLinkInRequest); } } @@ -270,8 +316,10 @@ internal static string ODataWriterCore_QueryNextLinkInRequest { /// /// A string like "The DeltaLink must be null for request payloads. Delta links are only supported in responses." /// - internal static string ODataWriterCore_QueryDeltaLinkInRequest { - get { + internal static string ODataWriterCore_QueryDeltaLinkInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_QueryDeltaLinkInRequest); } } @@ -279,8 +327,10 @@ internal static string ODataWriterCore_QueryDeltaLinkInRequest { /// /// A string like "Cannot write a deleted resource, link, deleted link, or nested delta resource set to a non-delta payload. Please use a delta resource set writer, or a request resource writer." /// - internal static string ODataWriterCore_CannotWriteDeltaWithResourceSetWriter { - get { + internal static string ODataWriterCore_CannotWriteDeltaWithResourceSetWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_CannotWriteDeltaWithResourceSetWriter); } } @@ -288,8 +338,10 @@ internal static string ODataWriterCore_CannotWriteDeltaWithResourceSetWriter { /// /// A string like "Nested content is not allowed in an OData 4.0 deleted entry. For content in deleted entries, please specify OData 4.01 or greater." /// - internal static string ODataWriterCore_NestedContentNotAllowedIn40DeletedEntry { - get { + internal static string ODataWriterCore_NestedContentNotAllowedIn40DeletedEntry + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_NestedContentNotAllowedIn40DeletedEntry); } } @@ -297,8 +349,10 @@ internal static string ODataWriterCore_NestedContentNotAllowedIn40DeletedEntry { /// /// A string like "Cannot write a top-level resource set with a writer that was created to write a top-level resource." /// - internal static string ODataWriterCore_CannotWriteTopLevelResourceSetWithResourceWriter { - get { + internal static string ODataWriterCore_CannotWriteTopLevelResourceSetWithResourceWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_CannotWriteTopLevelResourceSetWithResourceWriter); } } @@ -306,8 +360,10 @@ internal static string ODataWriterCore_CannotWriteTopLevelResourceSetWithResourc /// /// A string like "Cannot write a top-level resource with a writer that was created to write a top-level resource set." /// - internal static string ODataWriterCore_CannotWriteTopLevelResourceWithResourceSetWriter { - get { + internal static string ODataWriterCore_CannotWriteTopLevelResourceWithResourceSetWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_CannotWriteTopLevelResourceWithResourceSetWriter); } } @@ -315,8 +371,10 @@ internal static string ODataWriterCore_CannotWriteTopLevelResourceWithResourceSe /// /// A string like "A synchronous operation was called on an asynchronous writer. Calls on a writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataWriterCore_SyncCallOnAsyncWriter { - get { + internal static string ODataWriterCore_SyncCallOnAsyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_SyncCallOnAsyncWriter); } } @@ -324,8 +382,10 @@ internal static string ODataWriterCore_SyncCallOnAsyncWriter { /// /// A string like "An asynchronous operation was called on a synchronous writer. Calls on a writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataWriterCore_AsyncCallOnSyncWriter { - get { + internal static string ODataWriterCore_AsyncCallOnSyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_AsyncCallOnSyncWriter); } } @@ -333,8 +393,10 @@ internal static string ODataWriterCore_AsyncCallOnSyncWriter { /// /// A string like "An entity reference link was written without a surrounding navigation link. The WriteEntityReferenceLink or WriteEntityReferenceLinkAsync methods can only be used when writing the content of a navigation link." /// - internal static string ODataWriterCore_EntityReferenceLinkWithoutNavigationLink { - get { + internal static string ODataWriterCore_EntityReferenceLinkWithoutNavigationLink + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_EntityReferenceLinkWithoutNavigationLink); } } @@ -342,8 +404,10 @@ internal static string ODataWriterCore_EntityReferenceLinkWithoutNavigationLink /// /// A string like "A deferred link was written into a request. In requests, each nested resource info must have a resource set, resource, or entity reference link written into it." /// - internal static string ODataWriterCore_DeferredLinkInRequest { - get { + internal static string ODataWriterCore_DeferredLinkInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_DeferredLinkInRequest); } } @@ -351,8 +415,10 @@ internal static string ODataWriterCore_DeferredLinkInRequest { /// /// A string like "More than one item was written into the content of a nested resource. In OData, a nested resource can only contain more than one item in its content when ODataNestedResourceInfo.IsCollection set to true, and the writer is writing a request." /// - internal static string ODataWriterCore_MultipleItemsInNestedResourceInfoWithContent { - get { + internal static string ODataWriterCore_MultipleItemsInNestedResourceInfoWithContent + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_MultipleItemsInNestedResourceInfoWithContent); } } @@ -360,8 +426,10 @@ internal static string ODataWriterCore_MultipleItemsInNestedResourceInfoWithCont /// /// A string like "The ODataResourceSet.DeltaLink property must be null for expanded resource sets. Delta link is not supported on expanded resource sets." /// - internal static string ODataWriterCore_DeltaLinkNotSupportedOnExpandedResourceSet { - get { + internal static string ODataWriterCore_DeltaLinkNotSupportedOnExpandedResourceSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_DeltaLinkNotSupportedOnExpandedResourceSet); } } @@ -369,8 +437,10 @@ internal static string ODataWriterCore_DeltaLinkNotSupportedOnExpandedResourceSe /// /// A string like "The Path property in ODataMessageWriterSettings.ODataUri must be set when writing contained elements." /// - internal static string ODataWriterCore_PathInODataUriMustBeSetWhenWritingContainedElement { - get { + internal static string ODataWriterCore_PathInODataUriMustBeSetWhenWritingContainedElement + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_PathInODataUriMustBeSetWhenWritingContainedElement); } } @@ -378,57 +448,66 @@ internal static string ODataWriterCore_PathInODataUriMustBeSetWhenWritingContain /// /// A string like "Multiple properties with the name '{0}' were detected in a resource or a complex value. In OData, duplicate property names are not allowed." /// - internal static string DuplicatePropertyNamesNotAllowed(object p0) { + internal static string DuplicatePropertyNamesNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.DuplicatePropertyNamesNotAllowed, p0); } /// /// A string like "Multiple annotations with the name '{0}' were detected. In OData, duplicate annotations are not allowed." /// - internal static string DuplicateAnnotationNotAllowed(object p0) { + internal static string DuplicateAnnotationNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.DuplicateAnnotationNotAllowed, p0); } /// /// A string like "Multiple annotations with the name '{0}' were detected for the property with name '{1}'. In OData, duplicate annotations are not allowed." /// - internal static string DuplicateAnnotationForPropertyNotAllowed(object p0, object p1) { + internal static string DuplicateAnnotationForPropertyNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.DuplicateAnnotationForPropertyNotAllowed, p0, p1); } /// /// A string like "Multiple annotations with the name '{0}' were detected for the instance annotation with name '{1}'. In OData, duplicate annotations are not allowed." /// - internal static string DuplicateAnnotationForInstanceAnnotationNotAllowed(object p0, object p1) { + internal static string DuplicateAnnotationForInstanceAnnotationNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.DuplicateAnnotationForInstanceAnnotationNotAllowed, p0, p1); } /// /// A string like "An annotation with name '{0}' for property '{1}' was detected after the property, or after an annotation for another property. In OData, annotations for a property must be in a single group and must appear before the property they annotate." /// - internal static string PropertyAnnotationAfterTheProperty(object p0, object p1) { + internal static string PropertyAnnotationAfterTheProperty(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PropertyAnnotationAfterTheProperty, p0, p1); } /// /// A string like "Cannot convert a value of type '{0}' to the string representation of an Atom primitive value." /// - internal static string AtomValueUtils_CannotConvertValueToAtomPrimitive(object p0) { + internal static string AtomValueUtils_CannotConvertValueToAtomPrimitive(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AtomValueUtils_CannotConvertValueToAtomPrimitive, p0); } /// /// A string like "The value of type '{0}' is not supported and cannot be converted to a JSON representation." /// - internal static string ODataJsonWriter_UnsupportedValueType(object p0) { + internal static string ODataJsonWriter_UnsupportedValueType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonWriter_UnsupportedValueType, p0); } /// /// A string like "Unable to serialize an object in a collection as it is not a supported ODataValue." /// - internal static string ODataJsonWriter_UnsupportedValueInCollection { - get { + internal static string ODataJsonWriter_UnsupportedValueInCollection + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonWriter_UnsupportedValueInCollection); } } @@ -436,8 +515,10 @@ internal static string ODataJsonWriter_UnsupportedValueInCollection { /// /// A string like "An error occurred while processing the OData message." /// - internal static string ODataException_GeneralError { - get { + internal static string ODataException_GeneralError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataException_GeneralError); } } @@ -445,8 +526,10 @@ internal static string ODataException_GeneralError { /// /// A string like "An error was read from the payload. See the 'Error' property for more details." /// - internal static string ODataErrorException_GeneralError { - get { + internal static string ODataErrorException_GeneralError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataErrorException_GeneralError); } } @@ -454,8 +537,10 @@ internal static string ODataErrorException_GeneralError { /// /// A string like "An error occurred while parsing part of the URI." /// - internal static string ODataUriParserException_GeneralError { - get { + internal static string ODataUriParserException_GeneralError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriParserException_GeneralError); } } @@ -463,8 +548,10 @@ internal static string ODataUriParserException_GeneralError { /// /// A string like "The ODataMessageWriter has already been used to write a message payload. An ODataMessageWriter can only be used once to write a payload for a given message." /// - internal static string ODataMessageWriter_WriterAlreadyUsed { - get { + internal static string ODataMessageWriter_WriterAlreadyUsed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_WriterAlreadyUsed); } } @@ -472,8 +559,10 @@ internal static string ODataMessageWriter_WriterAlreadyUsed { /// /// A string like "Top-level entity reference link collection payloads are not allowed in requests." /// - internal static string ODataMessageWriter_EntityReferenceLinksInRequestNotAllowed { - get { + internal static string ODataMessageWriter_EntityReferenceLinksInRequestNotAllowed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_EntityReferenceLinksInRequestNotAllowed); } } @@ -481,8 +570,10 @@ internal static string ODataMessageWriter_EntityReferenceLinksInRequestNotAllowe /// /// A string like "An error cannot be written to a request payload. Errors are only supported in responses." /// - internal static string ODataMessageWriter_ErrorPayloadInRequest { - get { + internal static string ODataMessageWriter_ErrorPayloadInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_ErrorPayloadInRequest); } } @@ -490,8 +581,10 @@ internal static string ODataMessageWriter_ErrorPayloadInRequest { /// /// A string like "A service document cannot be written to request payloads. Service documents are only supported in responses." /// - internal static string ODataMessageWriter_ServiceDocumentInRequest { - get { + internal static string ODataMessageWriter_ServiceDocumentInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_ServiceDocumentInRequest); } } @@ -499,8 +592,10 @@ internal static string ODataMessageWriter_ServiceDocumentInRequest { /// /// A string like "A metadata document cannot be written to request payloads. Metadata documents are only supported in responses." /// - internal static string ODataMessageWriter_MetadataDocumentInRequest { - get { + internal static string ODataMessageWriter_MetadataDocumentInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_MetadataDocumentInRequest); } } @@ -508,8 +603,10 @@ internal static string ODataMessageWriter_MetadataDocumentInRequest { /// /// A string like "Cannot write delta in request payload." /// - internal static string ODataMessageWriter_DeltaInRequest { - get { + internal static string ODataMessageWriter_DeltaInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_DeltaInRequest); } } @@ -517,8 +614,10 @@ internal static string ODataMessageWriter_DeltaInRequest { /// /// A string like "Cannot write async in request payload." /// - internal static string ODataMessageWriter_AsyncInRequest { - get { + internal static string ODataMessageWriter_AsyncInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_AsyncInRequest); } } @@ -526,8 +625,10 @@ internal static string ODataMessageWriter_AsyncInRequest { /// /// A string like "Cannot write the value 'null' in top level property; return 204 instead." /// - internal static string ODataMessageWriter_CannotWriteTopLevelNull { - get { + internal static string ODataMessageWriter_CannotWriteTopLevelNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotWriteTopLevelNull); } } @@ -535,8 +636,10 @@ internal static string ODataMessageWriter_CannotWriteTopLevelNull { /// /// A string like "Cannot write the value 'null' in raw format." /// - internal static string ODataMessageWriter_CannotWriteNullInRawFormat { - get { + internal static string ODataMessageWriter_CannotWriteNullInRawFormat + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotWriteNullInRawFormat); } } @@ -544,29 +647,34 @@ internal static string ODataMessageWriter_CannotWriteNullInRawFormat { /// /// A string like "Cannot set message headers for the invalid payload kind '{0}'." /// - internal static string ODataMessageWriter_CannotSetHeadersWithInvalidPayloadKind(object p0) { + internal static string ODataMessageWriter_CannotSetHeadersWithInvalidPayloadKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotSetHeadersWithInvalidPayloadKind, p0); } /// /// A string like "The payload kind '{0}' used in the last call to ODataUtils.SetHeadersForPayload is incompatible with the payload being written, which is of kind '{1}'." /// - internal static string ODataMessageWriter_IncompatiblePayloadKinds(object p0, object p1) { + internal static string ODataMessageWriter_IncompatiblePayloadKinds(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_IncompatiblePayloadKinds, p0, p1); } /// /// A string like "The stream property '{0}' cannot be written to the payload as a top level property." /// - internal static string ODataMessageWriter_CannotWriteStreamPropertyAsTopLevelProperty(object p0) { + internal static string ODataMessageWriter_CannotWriteStreamPropertyAsTopLevelProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotWriteStreamPropertyAsTopLevelProperty, p0); } /// /// A string like "The WriteError method or the WriteErrorAsync method on the ODataMessageWriter has already been called to write an error payload. Only a single error payload can be written with each ODataMessageWriter instance." /// - internal static string ODataMessageWriter_WriteErrorAlreadyCalled { - get { + internal static string ODataMessageWriter_WriteErrorAlreadyCalled + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_WriteErrorAlreadyCalled); } } @@ -574,8 +682,10 @@ internal static string ODataMessageWriter_WriteErrorAlreadyCalled { /// /// A string like "The WriteError method or the WriteErrorAsync method on ODataMessageWriter cannot be called after the WriteValue method or the WriteValueAsync method is called. In OData, writing an in-stream error for raw values is not supported." /// - internal static string ODataMessageWriter_CannotWriteInStreamErrorForRawValues { - get { + internal static string ODataMessageWriter_CannotWriteInStreamErrorForRawValues + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotWriteInStreamErrorForRawValues); } } @@ -583,8 +693,10 @@ internal static string ODataMessageWriter_CannotWriteInStreamErrorForRawValues { /// /// A string like "No model was specified in the ODataMessageWriterSettings; a model has to be provided in the ODataMessageWriterSettings in order to write a metadata document." /// - internal static string ODataMessageWriter_CannotWriteMetadataWithoutModel { - get { + internal static string ODataMessageWriter_CannotWriteMetadataWithoutModel + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotWriteMetadataWithoutModel); } } @@ -592,8 +704,10 @@ internal static string ODataMessageWriter_CannotWriteMetadataWithoutModel { /// /// A string like "No model was specified in the ODataMessageWriterSettings; a model has to be provided in the ODataMessageWriterSettings when CreateODataParameterWriter is called with a non-null operation." /// - internal static string ODataMessageWriter_CannotSpecifyOperationWithoutModel { - get { + internal static string ODataMessageWriter_CannotSpecifyOperationWithoutModel + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_CannotSpecifyOperationWithoutModel); } } @@ -601,29 +715,34 @@ internal static string ODataMessageWriter_CannotSpecifyOperationWithoutModel { /// /// A string like "A JsonPaddingFunctionName was specified, but the content-type '{0}' is not supported with Json Padding." /// - internal static string ODataMessageWriter_JsonPaddingOnInvalidContentType(object p0) { + internal static string ODataMessageWriter_JsonPaddingOnInvalidContentType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_JsonPaddingOnInvalidContentType, p0); } /// /// A string like "The type '{0}' specified as the collection's item type is not primitive, enum or complex. An ODataCollectionWriter can only write collections of primitive, enum or complex values." /// - internal static string ODataMessageWriter_NonCollectionType(object p0) { + internal static string ODataMessageWriter_NonCollectionType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_NonCollectionType, p0); } /// /// A string like "Not allowed to write top level property '{0}' with 'ODataResourceValue' or collection of resource value." /// - internal static string ODataMessageWriter_NotAllowedWriteTopLevelPropertyWithResourceValue(object p0) { + internal static string ODataMessageWriter_NotAllowedWriteTopLevelPropertyWithResourceValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriter_NotAllowedWriteTopLevelPropertyWithResourceValue, p0); } /// /// A string like "Both startResourceXmlCustomizationCallback and endResourceXmlCustomizationCallback must be either null or non-null." /// - internal static string ODataMessageWriterSettings_MessageWriterSettingsXmlCustomizationCallbacksMustBeSpecifiedBoth { - get { + internal static string ODataMessageWriterSettings_MessageWriterSettingsXmlCustomizationCallbacksMustBeSpecifiedBoth + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageWriterSettings_MessageWriterSettingsXmlCustomizationCallbacksMustBeSpecifiedBoth); } } @@ -631,36 +750,42 @@ internal static string ODataMessageWriterSettings_MessageWriterSettingsXmlCustom /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid actions in state '{0}' are to write the collection or to write nothing at all." /// - internal static string ODataCollectionWriterCore_InvalidTransitionFromStart(object p0, object p1) { + internal static string ODataCollectionWriterCore_InvalidTransitionFromStart(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_InvalidTransitionFromStart, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid actions in state '{0}' are to write an item or to write the end of the collection." /// - internal static string ODataCollectionWriterCore_InvalidTransitionFromCollection(object p0, object p1) { + internal static string ODataCollectionWriterCore_InvalidTransitionFromCollection(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_InvalidTransitionFromCollection, p0, p1); } /// /// A string like "Cannot transition from state '{0}' to state '{1}'. The only valid actions in state '{0}' are to write an item or the end of the collection." /// - internal static string ODataCollectionWriterCore_InvalidTransitionFromItem(object p0, object p1) { + internal static string ODataCollectionWriterCore_InvalidTransitionFromItem(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_InvalidTransitionFromItem, p0, p1); } /// /// A string like "ODataCollectionWriter.WriteEnd was called in an invalid state ('{0}'); WriteEnd is only supported in states 'Start', 'Collection', and 'Item'." /// - internal static string ODataCollectionWriterCore_WriteEndCalledInInvalidState(object p0) { + internal static string ODataCollectionWriterCore_WriteEndCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_WriteEndCalledInInvalidState, p0); } /// /// A string like "A synchronous operation was called on an asynchronous collection writer. All calls on a collection writer instance must be either synchronous or asynchronous." /// - internal static string ODataCollectionWriterCore_SyncCallOnAsyncWriter { - get { + internal static string ODataCollectionWriterCore_SyncCallOnAsyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_SyncCallOnAsyncWriter); } } @@ -668,8 +793,10 @@ internal static string ODataCollectionWriterCore_SyncCallOnAsyncWriter { /// /// A string like "An asynchronous operation was called on a synchronous collection writer. All calls on a collection writer instance must be either synchronous or asynchronous." /// - internal static string ODataCollectionWriterCore_AsyncCallOnSyncWriter { - get { + internal static string ODataCollectionWriterCore_AsyncCallOnSyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionWriterCore_AsyncCallOnSyncWriter); } } @@ -677,29 +804,34 @@ internal static string ODataCollectionWriterCore_AsyncCallOnSyncWriter { /// /// A string like "An invalid HTTP method '{0}' was detected for a request in a change set. Requests in change sets only support the HTTP methods 'POST', 'PUT', 'DELETE', and 'PATCH'." /// - internal static string ODataBatch_InvalidHttpMethodForChangeSetRequest(object p0) { + internal static string ODataBatch_InvalidHttpMethodForChangeSetRequest(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatch_InvalidHttpMethodForChangeSetRequest, p0); } /// /// A string like "The header with name '{0}' was not present in the header collection of the batch operation." /// - internal static string ODataBatchOperationHeaderDictionary_KeyNotFound(object p0) { + internal static string ODataBatchOperationHeaderDictionary_KeyNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchOperationHeaderDictionary_KeyNotFound, p0); } /// /// A string like "Multiple headers with names that match '{0}', when using a case insensitive comparison, have been added. When case-insensitive header names are used, at most one header can be added for each name." /// - internal static string ODataBatchOperationHeaderDictionary_DuplicateCaseInsensitiveKeys(object p0) { + internal static string ODataBatchOperationHeaderDictionary_DuplicateCaseInsensitiveKeys(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchOperationHeaderDictionary_DuplicateCaseInsensitiveKeys, p0); } /// /// A string like "Writing an in-stream error is not supported when writing a parameter payload." /// - internal static string ODataParameterWriter_InStreamErrorNotSupported { - get { + internal static string ODataParameterWriter_InStreamErrorNotSupported + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriter_InStreamErrorNotSupported); } } @@ -707,8 +839,10 @@ internal static string ODataParameterWriter_InStreamErrorNotSupported { /// /// A string like "CreateParameterWriter was called on a response message. A parameter payload is only allowed in a request message." /// - internal static string ODataParameterWriter_CannotCreateParameterWriterOnResponseMessage { - get { + internal static string ODataParameterWriter_CannotCreateParameterWriterOnResponseMessage + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriter_CannotCreateParameterWriterOnResponseMessage); } } @@ -716,8 +850,10 @@ internal static string ODataParameterWriter_CannotCreateParameterWriterOnRespons /// /// A string like "A synchronous operation was called on an asynchronous parameter writer. All calls on a parameter writer instance must be either synchronous or asynchronous." /// - internal static string ODataParameterWriterCore_SyncCallOnAsyncWriter { - get { + internal static string ODataParameterWriterCore_SyncCallOnAsyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_SyncCallOnAsyncWriter); } } @@ -725,8 +861,10 @@ internal static string ODataParameterWriterCore_SyncCallOnAsyncWriter { /// /// A string like "An asynchronous operation was called on a synchronous parameter writer. All calls on a parameter writer instance must be either synchronous or asynchronous." /// - internal static string ODataParameterWriterCore_AsyncCallOnSyncWriter { - get { + internal static string ODataParameterWriterCore_AsyncCallOnSyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_AsyncCallOnSyncWriter); } } @@ -734,8 +872,10 @@ internal static string ODataParameterWriterCore_AsyncCallOnSyncWriter { /// /// A string like "WriteStart can only be called once, and it must be called before writing anything else." /// - internal static string ODataParameterWriterCore_CannotWriteStart { - get { + internal static string ODataParameterWriterCore_CannotWriteStart + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteStart); } } @@ -743,8 +883,10 @@ internal static string ODataParameterWriterCore_CannotWriteStart { /// /// A string like "WriteValue and CreateCollectionWriter can only be called after WriteStart and before WriteEnd; they cannot be called until the previously created sub-writer is completed." /// - internal static string ODataParameterWriterCore_CannotWriteParameter { - get { + internal static string ODataParameterWriterCore_CannotWriteParameter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteParameter); } } @@ -752,8 +894,10 @@ internal static string ODataParameterWriterCore_CannotWriteParameter { /// /// A string like "WriteEnd can only be called after WriteStart and after the previously created sub-writer has completed." /// - internal static string ODataParameterWriterCore_CannotWriteEnd { - get { + internal static string ODataParameterWriterCore_CannotWriteEnd + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteEnd); } } @@ -761,8 +905,10 @@ internal static string ODataParameterWriterCore_CannotWriteEnd { /// /// A string like "The writer is in either the 'Error' or 'Completed' state. No further writes can be performed on this writer." /// - internal static string ODataParameterWriterCore_CannotWriteInErrorOrCompletedState { - get { + internal static string ODataParameterWriterCore_CannotWriteInErrorOrCompletedState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteInErrorOrCompletedState); } } @@ -770,64 +916,74 @@ internal static string ODataParameterWriterCore_CannotWriteInErrorOrCompletedSta /// /// A string like "The parameter '{0}' has already been written. Duplicate parameter names are not allowed in the parameter payload." /// - internal static string ODataParameterWriterCore_DuplicatedParameterNameNotAllowed(object p0) { + internal static string ODataParameterWriterCore_DuplicatedParameterNameNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_DuplicatedParameterNameNotAllowed, p0); } /// /// A string like "The parameter '{0}' is of Edm type kind '{1}'. You cannot call WriteValue on a parameter that is not of Edm type kinds 'Primitive' or 'Enum'." /// - internal static string ODataParameterWriterCore_CannotWriteValueOnNonValueTypeKind(object p0, object p1) { + internal static string ODataParameterWriterCore_CannotWriteValueOnNonValueTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteValueOnNonValueTypeKind, p0, p1); } /// /// A string like "The value for parameter '{0}' is of type '{1}'. WriteValue can only write null, ODataEnumValue and primitive types that are not Stream type." /// - internal static string ODataParameterWriterCore_CannotWriteValueOnNonSupportedValueType(object p0, object p1) { + internal static string ODataParameterWriterCore_CannotWriteValueOnNonSupportedValueType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotWriteValueOnNonSupportedValueType, p0, p1); } /// /// A string like "The parameter '{0}' is of Edm type kind '{1}'. You cannot call CreateCollectionWriter on a parameter that is not of Edm type kind 'Collection'." /// - internal static string ODataParameterWriterCore_CannotCreateCollectionWriterOnNonCollectionTypeKind(object p0, object p1) { + internal static string ODataParameterWriterCore_CannotCreateCollectionWriterOnNonCollectionTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotCreateCollectionWriterOnNonCollectionTypeKind, p0, p1); } /// /// A string like "The parameter '{0}' is of Edm type kind '{1}'. You cannot call CreateResourceWriter on a parameter that is not of Edm type kind 'Entity' or 'Complex'." /// - internal static string ODataParameterWriterCore_CannotCreateResourceWriterOnNonEntityOrComplexTypeKind(object p0, object p1) { + internal static string ODataParameterWriterCore_CannotCreateResourceWriterOnNonEntityOrComplexTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotCreateResourceWriterOnNonEntityOrComplexTypeKind, p0, p1); } /// /// A string like "The parameter '{0}' is of Edm type kind '{1}'. You cannot call CreateResourceSetWriter on a parameter that is not of Edm type kind 'Collection(Entity)' or 'Collection(Complex)'." /// - internal static string ODataParameterWriterCore_CannotCreateResourceSetWriterOnNonStructuredCollectionTypeKind(object p0, object p1) { + internal static string ODataParameterWriterCore_CannotCreateResourceSetWriterOnNonStructuredCollectionTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_CannotCreateResourceSetWriterOnNonStructuredCollectionTypeKind, p0, p1); } /// /// A string like "The name '{0}' is not a recognized parameter name for operation '{1}'." /// - internal static string ODataParameterWriterCore_ParameterNameNotFoundInOperation(object p0, object p1) { + internal static string ODataParameterWriterCore_ParameterNameNotFoundInOperation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_ParameterNameNotFoundInOperation, p0, p1); } /// /// A string like "The parameters {0} of the operation '{1}' could not be found when writing the parameter payload. All parameters present in the operation must be written to the parameter payload." /// - internal static string ODataParameterWriterCore_MissingParameterInParameterPayload(object p0, object p1) { + internal static string ODataParameterWriterCore_MissingParameterInParameterPayload(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterWriterCore_MissingParameterInParameterPayload, p0, p1); } /// /// A string like "ODataBatchWriter.Flush or ODataBatchWriter.FlushAsync was called while a stream being used to write operation content, obtained from the operation message by using GetStream or GetStreamAsync, was still active. This is not allowed. ODataBatchWriter.Flush or ODataBatchWriter.FlushAsync can only be called when an active stream for the operation content does not exist." /// - internal static string ODataBatchWriter_FlushOrFlushAsyncCalledInStreamRequestedState { - get { + internal static string ODataBatchWriter_FlushOrFlushAsyncCalledInStreamRequestedState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_FlushOrFlushAsyncCalledInStreamRequestedState); } } @@ -835,8 +991,10 @@ internal static string ODataBatchWriter_FlushOrFlushAsyncCalledInStreamRequested /// /// A string like "An invalid method call on ODataBatchWriter was detected. You cannot call ODataBatchWriter.WriteEndBatch with an active change set; you must first call ODataBatchWriter.WriteEndChangeset." /// - internal static string ODataBatchWriter_CannotCompleteBatchWithActiveChangeSet { - get { + internal static string ODataBatchWriter_CannotCompleteBatchWithActiveChangeSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotCompleteBatchWithActiveChangeSet); } } @@ -844,8 +1002,10 @@ internal static string ODataBatchWriter_CannotCompleteBatchWithActiveChangeSet { /// /// A string like "An invalid method call on ODataBatchWriter was detected. You cannot call ODataBatchWriter.WriteStartChangeset with an active change set; you must first call ODataBatchWriter.WriteEndChangeset." /// - internal static string ODataBatchWriter_CannotStartChangeSetWithActiveChangeSet { - get { + internal static string ODataBatchWriter_CannotStartChangeSetWithActiveChangeSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotStartChangeSetWithActiveChangeSet); } } @@ -853,8 +1013,10 @@ internal static string ODataBatchWriter_CannotStartChangeSetWithActiveChangeSet /// /// A string like "An invalid method call on ODataBatchWriter was detected. You cannot call ODataBatchWriter.WriteEndChangeset without an active change set; you must first call ODataBatchWriter.WriteStartChangeset." /// - internal static string ODataBatchWriter_CannotCompleteChangeSetWithoutActiveChangeSet { - get { + internal static string ODataBatchWriter_CannotCompleteChangeSetWithoutActiveChangeSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotCompleteChangeSetWithoutActiveChangeSet); } } @@ -862,8 +1024,10 @@ internal static string ODataBatchWriter_CannotCompleteChangeSetWithoutActiveChan /// /// A string like "An invalid method call on ODataBatchWriter was detected. After creating the writer, the only valid methods are ODataBatchWriter.WriteStartBatch and ODataBatchWriter.FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromStart { - get { + internal static string ODataBatchWriter_InvalidTransitionFromStart + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromStart); } } @@ -871,8 +1035,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromStart { /// /// A string like "An invalid method call on ODataBatchWriter was detected. After calling WriteStartBatch, the only valid methods on ODataBatchWriter are WriteStartChangeset, CreateOperationRequestMessage, CreateOperationResponseMessage, WriteEndBatch, and FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromBatchStarted { - get { + internal static string ODataBatchWriter_InvalidTransitionFromBatchStarted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromBatchStarted); } } @@ -880,8 +1046,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromBatchStarted { /// /// A string like "An invalid method call on ODataBatchWriter was detected. After calling WriteStartChangeset, the only valid methods on ODataBatchWriter are CreateOperationRequestMessage, CreateOperationResponseMessage, WriteEndChangeset, and FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromChangeSetStarted { - get { + internal static string ODataBatchWriter_InvalidTransitionFromChangeSetStarted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromChangeSetStarted); } } @@ -889,8 +1057,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromChangeSetStarted { /// /// A string like "An invalid method call on ODataBatchWriter was detected. After calling CreateOperationRequestMessage or CreateOperationResponseMessage, the only valid methods on ODataBatchWriter are WriteStartChangeset, WriteEndChangeset, WriteEndBatch, and FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromOperationCreated { - get { + internal static string ODataBatchWriter_InvalidTransitionFromOperationCreated + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromOperationCreated); } } @@ -898,8 +1068,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromOperationCreated { /// /// A string like "An invalid method call on ODataBatchWriter was detected. You cannot use the batch writer while another writer is writing the content of an operation. Dispose the stream for the operation before continuing to use the ODataBatchWriter." /// - internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStreamRequested { - get { + internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStreamRequested + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromOperationContentStreamRequested); } } @@ -907,8 +1079,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStr /// /// A string like "An invalid method call on ODataBatchWriter was detected. After writing the content of an operation, the only valid methods on ODataBatchWriter are CreateOperationRequestMessage, CreateOperationResponseMessage, WriteStartChangeset, WriteEndChangeset, WriteEndBatch and FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStreamDisposed { - get { + internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStreamDisposed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromOperationContentStreamDisposed); } } @@ -916,8 +1090,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromOperationContentStr /// /// A string like "An invalid method call on ODataBatchWriter was detected. After calling WriteEndChangeset, the only valid methods on ODataBatchWriter are CreateOperationRequestMessage, CreateOperationResponseMessage, WriteStartChangeset, WriteEndBatch, and FlushAsync." /// - internal static string ODataBatchWriter_InvalidTransitionFromChangeSetCompleted { - get { + internal static string ODataBatchWriter_InvalidTransitionFromChangeSetCompleted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromChangeSetCompleted); } } @@ -925,8 +1101,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromChangeSetCompleted /// /// A string like "An invalid method call on ODataBatchWriter was detected. You can only call ODataBatchWriter.FlushAsync after ODataBatchWriter.WriteEndBatch has been called." /// - internal static string ODataBatchWriter_InvalidTransitionFromBatchCompleted { - get { + internal static string ODataBatchWriter_InvalidTransitionFromBatchCompleted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_InvalidTransitionFromBatchCompleted); } } @@ -934,8 +1112,10 @@ internal static string ODataBatchWriter_InvalidTransitionFromBatchCompleted { /// /// A string like "When writing a batch response, you cannot create a batch operation request message." /// - internal static string ODataBatchWriter_CannotCreateRequestOperationWhenWritingResponse { - get { + internal static string ODataBatchWriter_CannotCreateRequestOperationWhenWritingResponse + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotCreateRequestOperationWhenWritingResponse); } } @@ -943,8 +1123,10 @@ internal static string ODataBatchWriter_CannotCreateRequestOperationWhenWritingR /// /// A string like "When writing a batch request, you cannot create a batch operation response message." /// - internal static string ODataBatchWriter_CannotCreateResponseOperationWhenWritingRequest { - get { + internal static string ODataBatchWriter_CannotCreateResponseOperationWhenWritingRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotCreateResponseOperationWhenWritingRequest); } } @@ -952,22 +1134,26 @@ internal static string ODataBatchWriter_CannotCreateResponseOperationWhenWriting /// /// A string like "The current batch message contains too many parts. Only batch messages with a maximum number of '{0}' query operations and change sets are allowed." /// - internal static string ODataBatchWriter_MaxBatchSizeExceeded(object p0) { + internal static string ODataBatchWriter_MaxBatchSizeExceeded(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_MaxBatchSizeExceeded, p0); } /// /// A string like "The current change set contains too many operations. Only change sets with a maximum number of '{0}' operations are allowed." /// - internal static string ODataBatchWriter_MaxChangeSetSizeExceeded(object p0) { + internal static string ODataBatchWriter_MaxChangeSetSizeExceeded(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_MaxChangeSetSizeExceeded, p0); } /// /// A string like "A synchronous operation was called on an asynchronous batch writer. Calls on a batch writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataBatchWriter_SyncCallOnAsyncWriter { - get { + internal static string ODataBatchWriter_SyncCallOnAsyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_SyncCallOnAsyncWriter); } } @@ -975,8 +1161,10 @@ internal static string ODataBatchWriter_SyncCallOnAsyncWriter { /// /// A string like "An asynchronous operation was called on a synchronous batch writer. Calls on a batch writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataBatchWriter_AsyncCallOnSyncWriter { - get { + internal static string ODataBatchWriter_AsyncCallOnSyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_AsyncCallOnSyncWriter); } } @@ -984,15 +1172,18 @@ internal static string ODataBatchWriter_AsyncCallOnSyncWriter { /// /// A string like "The content ID '{0}' was found more than once in the same change set or same batch request. Content IDs have to be unique across all operations of a change set for OData V4.0 and have to be unique across all operations in the whole batch request for OData V4.01." /// - internal static string ODataBatchWriter_DuplicateContentIDsNotAllowed(object p0) { + internal static string ODataBatchWriter_DuplicateContentIDsNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_DuplicateContentIDsNotAllowed, p0); } /// /// A string like "The WriteError and WriteErrorAsync methods on ODataMessageWriter cannot be called when a batch is being written by using ODataBatchWriter. In OData, writing an in-stream error for a batch payload is not supported." /// - internal static string ODataBatchWriter_CannotWriteInStreamErrorForBatch { - get { + internal static string ODataBatchWriter_CannotWriteInStreamErrorForBatch + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchWriter_CannotWriteInStreamErrorForBatch); } } @@ -1000,22 +1191,26 @@ internal static string ODataBatchWriter_CannotWriteInStreamErrorForBatch { /// /// A string like "The relative URI '{0}' was specified in a batch operation, but a base URI was not specified for the batch writer or batch reader." /// - internal static string ODataBatchUtils_RelativeUriUsedWithoutBaseUriSpecified(object p0) { + internal static string ODataBatchUtils_RelativeUriUsedWithoutBaseUriSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchUtils_RelativeUriUsedWithoutBaseUriSpecified, p0); } /// /// A string like "The relative URI '{0}' was specified in a batch operation, but a base URI was not specified for the batch writer or batch reader. When the relative URI is a reference to a content ID, the content ID does not exist in the current change set." /// - internal static string ODataBatchUtils_RelativeUriStartingWithDollarUsedWithoutBaseUriSpecified(object p0) { + internal static string ODataBatchUtils_RelativeUriStartingWithDollarUsedWithoutBaseUriSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchUtils_RelativeUriStartingWithDollarUsedWithoutBaseUriSpecified, p0); } /// /// A string like "An attempt to change the properties of the message or to retrieve the payload stream for the message has failed. Either the payload stream has already been requested or the processing of the message has been completed. In both cases, no more changes can be made to the message." /// - internal static string ODataBatchOperationMessage_VerifyNotCompleted { - get { + internal static string ODataBatchOperationMessage_VerifyNotCompleted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchOperationMessage_VerifyNotCompleted); } } @@ -1023,8 +1218,10 @@ internal static string ODataBatchOperationMessage_VerifyNotCompleted { /// /// A string like "Cannot access a closed stream." /// - internal static string ODataBatchOperationStream_Disposed { - get { + internal static string ODataBatchOperationStream_Disposed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchOperationStream_Disposed); } } @@ -1032,8 +1229,10 @@ internal static string ODataBatchOperationStream_Disposed { /// /// A string like "When reading a batch response, you cannot create a batch operation request message." /// - internal static string ODataBatchReader_CannotCreateRequestOperationWhenReadingResponse { - get { + internal static string ODataBatchReader_CannotCreateRequestOperationWhenReadingResponse + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_CannotCreateRequestOperationWhenReadingResponse); } } @@ -1041,8 +1240,10 @@ internal static string ODataBatchReader_CannotCreateRequestOperationWhenReadingR /// /// A string like "When reading a batch request, you cannot create a batch operation response message." /// - internal static string ODataBatchReader_CannotCreateResponseOperationWhenReadingRequest { - get { + internal static string ODataBatchReader_CannotCreateResponseOperationWhenReadingRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_CannotCreateResponseOperationWhenReadingRequest); } } @@ -1050,15 +1251,18 @@ internal static string ODataBatchReader_CannotCreateResponseOperationWhenReading /// /// A string like "The method CreateOperationRequestMessage was called in state '{0}', which is not allowed. CreateOperationRequestMessage can only be called in state 'Operation'." /// - internal static string ODataBatchReader_InvalidStateForCreateOperationRequestMessage(object p0) { + internal static string ODataBatchReader_InvalidStateForCreateOperationRequestMessage(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_InvalidStateForCreateOperationRequestMessage, p0); } /// /// A string like "A request message for the operation has already been created. You cannot create a request message for the same operation multiple times." /// - internal static string ODataBatchReader_OperationRequestMessageAlreadyCreated { - get { + internal static string ODataBatchReader_OperationRequestMessageAlreadyCreated + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_OperationRequestMessageAlreadyCreated); } } @@ -1066,8 +1270,10 @@ internal static string ODataBatchReader_OperationRequestMessageAlreadyCreated { /// /// A string like "A response message for the operation has already been created. You cannot create a response message for the same operation multiple times." /// - internal static string ODataBatchReader_OperationResponseMessageAlreadyCreated { - get { + internal static string ODataBatchReader_OperationResponseMessageAlreadyCreated + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_OperationResponseMessageAlreadyCreated); } } @@ -1075,15 +1281,18 @@ internal static string ODataBatchReader_OperationResponseMessageAlreadyCreated { /// /// A string like "The method CreateOperationResponseMessage was called in state '{0}', which is not allowed. CreateOperationResponseMessage can only be called in state 'Operation'." /// - internal static string ODataBatchReader_InvalidStateForCreateOperationResponseMessage(object p0) { + internal static string ODataBatchReader_InvalidStateForCreateOperationResponseMessage(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_InvalidStateForCreateOperationResponseMessage, p0); } /// /// A string like "You cannot use a batch reader while the stream for the content of an operation is still active. You must first dispose the operation stream before further calls to the batch reader are made." /// - internal static string ODataBatchReader_CannotUseReaderWhileOperationStreamActive { - get { + internal static string ODataBatchReader_CannotUseReaderWhileOperationStreamActive + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_CannotUseReaderWhileOperationStreamActive); } } @@ -1091,8 +1300,10 @@ internal static string ODataBatchReader_CannotUseReaderWhileOperationStreamActiv /// /// A string like "A synchronous operation was called on an asynchronous batch reader. Calls on a batch reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataBatchReader_SyncCallOnAsyncReader { - get { + internal static string ODataBatchReader_SyncCallOnAsyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_SyncCallOnAsyncReader); } } @@ -1100,8 +1311,10 @@ internal static string ODataBatchReader_SyncCallOnAsyncReader { /// /// A string like "An asynchronous operation was called on a synchronous batch reader. Calls on a batch reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataBatchReader_AsyncCallOnSyncReader { - get { + internal static string ODataBatchReader_AsyncCallOnSyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_AsyncCallOnSyncReader); } } @@ -1109,29 +1322,34 @@ internal static string ODataBatchReader_AsyncCallOnSyncReader { /// /// A string like "ODataBatchReader.ReadAsync or ODataBatchReader.Read was called in an invalid state. No further calls can be made to the reader in state '{0}'." /// - internal static string ODataBatchReader_ReadOrReadAsyncCalledInInvalidState(object p0) { + internal static string ODataBatchReader_ReadOrReadAsyncCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_ReadOrReadAsyncCalledInInvalidState, p0); } /// /// A string like "The current batch message contains too many parts. A maximum number of '{0}' query operations and change sets are allowed in a batch message." /// - internal static string ODataBatchReader_MaxBatchSizeExceeded(object p0) { + internal static string ODataBatchReader_MaxBatchSizeExceeded(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_MaxBatchSizeExceeded, p0); } /// /// A string like "The current change set contains too many operations. A maximum number of '{0}' operations are allowed in a change set." /// - internal static string ODataBatchReader_MaxChangeSetSizeExceeded(object p0) { + internal static string ODataBatchReader_MaxChangeSetSizeExceeded(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_MaxChangeSetSizeExceeded, p0); } /// /// A string like "An operation was detected, but no message was created for it. You must create a message for every operation found in a batch or change set." /// - internal static string ODataBatchReader_NoMessageWasCreatedForOperation { - get { + internal static string ODataBatchReader_NoMessageWasCreatedForOperation + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_NoMessageWasCreatedForOperation); } } @@ -1139,8 +1357,10 @@ internal static string ODataBatchReader_NoMessageWasCreatedForOperation { /// /// A string like "Reader mode is not setup correctly." /// - internal static string ODataBatchReader_ReaderModeNotInitilized { - get { + internal static string ODataBatchReader_ReaderModeNotInitilized + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_ReaderModeNotInitilized); } } @@ -1148,8 +1368,10 @@ internal static string ODataBatchReader_ReaderModeNotInitilized { /// /// A string like "JsonLight batch format requires top level property name 'requests' or 'response' but it is missing." /// - internal static string ODataBatchReader_JsonBatchTopLevelPropertyMissing { - get { + internal static string ODataBatchReader_JsonBatchTopLevelPropertyMissing + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_JsonBatchTopLevelPropertyMissing); } } @@ -1157,71 +1379,82 @@ internal static string ODataBatchReader_JsonBatchTopLevelPropertyMissing { /// /// A string like "The content ID '{0}' was found more than once in the same change set or same batch request. Content IDs have to be unique across all operations of a change set for OData V4.0 and have to be unique across all operations in the whole batch request for OData V4.01." /// - internal static string ODataBatchReader_DuplicateContentIDsNotAllowed(object p0) { + internal static string ODataBatchReader_DuplicateContentIDsNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_DuplicateContentIDsNotAllowed, p0); } /// /// A string like "The atomicityGroup ID [{0}] was found duplicated in the batch request. AtomicityGroup IDs have to be adjacent, otherwise would be detected as duplicated." /// - internal static string ODataBatchReader_DuplicateAtomicityGroupIDsNotAllowed(object p0) { + internal static string ODataBatchReader_DuplicateAtomicityGroupIDsNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_DuplicateAtomicityGroupIDsNotAllowed, p0); } /// /// A string like "Request property [{0}] is required but is missing." /// - internal static string ODataBatchReader_RequestPropertyMissing(object p0) { + internal static string ODataBatchReader_RequestPropertyMissing(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_RequestPropertyMissing, p0); } /// /// A string like "The dependsOn request Id [{0}] is same as atomicityGroup property value [{1}], and is not allowed." /// - internal static string ODataBatchReader_SameRequestIdAsAtomicityGroupIdNotAllowed(object p0, object p1) { + internal static string ODataBatchReader_SameRequestIdAsAtomicityGroupIdNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_SameRequestIdAsAtomicityGroupIdNotAllowed, p0, p1); } /// /// A string like "The dependsOn request Id [{0}] is same as id property value [{1}], and it is not allowed." /// - internal static string ODataBatchReader_SelfReferenceDependsOnRequestIdNotAllowed(object p0, object p1) { + internal static string ODataBatchReader_SelfReferenceDependsOnRequestIdNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_SelfReferenceDependsOnRequestIdNotAllowed, p0, p1); } /// /// A string like "The dependsOn request Id [{0}] is part of atomic group [{1}]. Therefore dependsOn property should refer to atomic group Id [{1}] instead." /// - internal static string ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed(object p0, object p1) { + internal static string ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_DependsOnRequestIdIsPartOfAtomicityGroupNotAllowed, p0, p1); } /// /// A string like "The dependsOn Id: [{0}] in request [{1}] is not matching any of the request Id and atomic group Id seen so far. Forward reference is not allowed." /// - internal static string ODataBatchReader_DependsOnIdNotFound(object p0, object p1) { + internal static string ODataBatchReader_DependsOnIdNotFound(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_DependsOnIdNotFound, p0, p1); } /// /// A string like "Absolute URI {0} is not start with the base URI [{1}] specified by the operation message." /// - internal static string ODataBatchReader_AbsoluteURINotMatchingBaseUri(object p0, object p1) { + internal static string ODataBatchReader_AbsoluteURINotMatchingBaseUri(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_AbsoluteURINotMatchingBaseUri, p0, p1); } /// /// A string like "Request Id reference [{0}] in Uri [{1}] is not found in effective depends-on-Ids [{2}] of the request." /// - internal static string ODataBatchReader_ReferenceIdNotIncludedInDependsOn(object p0, object p1, object p2) { + internal static string ODataBatchReader_ReferenceIdNotIncludedInDependsOn(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_ReferenceIdNotIncludedInDependsOn, p0, p1, p2); } /// /// A string like "Group id or changeset GUID cannot be null." /// - internal static string ODataBatch_GroupIdOrChangeSetIdCannotBeNull { - get { + internal static string ODataBatch_GroupIdOrChangeSetIdCannotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatch_GroupIdOrChangeSetIdCannotBeNull); } } @@ -1229,15 +1462,18 @@ internal static string ODataBatch_GroupIdOrChangeSetIdCannotBeNull { /// /// A string like "Message with id [{0}] is positioned incorrectly: all messages of same groupId [{1}] must be adjacent." /// - internal static string ODataBatchReader_MessageIdPositionedIncorrectly(object p0, object p1) { + internal static string ODataBatchReader_MessageIdPositionedIncorrectly(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_MessageIdPositionedIncorrectly, p0, p1); } /// /// A string like "Changeset boundary must have been set by now." /// - internal static string ODataBatchReader_ReaderStreamChangesetBoundaryCannotBeNull { - get { + internal static string ODataBatchReader_ReaderStreamChangesetBoundaryCannotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReader_ReaderStreamChangesetBoundaryCannotBeNull); } } @@ -1245,43 +1481,50 @@ internal static string ODataBatchReader_ReaderStreamChangesetBoundaryCannotBeNul /// /// A string like "The message header '{0}' is invalid. The header value must be of the format '<header name>: <header value>'." /// - internal static string ODataBatchReaderStream_InvalidHeaderSpecified(object p0) { + internal static string ODataBatchReaderStream_InvalidHeaderSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidHeaderSpecified, p0); } /// /// A string like "The request line '{0}' is invalid. The request line at the start of each operation must be of the format 'HttpMethod RequestUrl HttpVersion'." /// - internal static string ODataBatchReaderStream_InvalidRequestLine(object p0) { + internal static string ODataBatchReaderStream_InvalidRequestLine(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidRequestLine, p0); } /// /// A string like "The response line '{0}' is invalid. The response line at the start of each operation must be of the format 'HttpVersion StatusCode StatusCodeString'." /// - internal static string ODataBatchReaderStream_InvalidResponseLine(object p0) { + internal static string ODataBatchReaderStream_InvalidResponseLine(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidResponseLine, p0); } /// /// A string like "The HTTP version '{0}' used in a batch operation request or response is not valid. The value must be '{1}'." /// - internal static string ODataBatchReaderStream_InvalidHttpVersionSpecified(object p0, object p1) { + internal static string ODataBatchReaderStream_InvalidHttpVersionSpecified(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidHttpVersionSpecified, p0, p1); } /// /// A string like " The HTTP status code '{0}' is invalid. An HTTP status code must be an integer value." /// - internal static string ODataBatchReaderStream_NonIntegerHttpStatusCode(object p0) { + internal static string ODataBatchReaderStream_NonIntegerHttpStatusCode(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_NonIntegerHttpStatusCode, p0); } /// /// A string like "The 'Content-Type' header is missing. The 'Content-Type' header must be specified for each MIME part of a batch message." /// - internal static string ODataBatchReaderStream_MissingContentTypeHeader { - get { + internal static string ODataBatchReaderStream_MissingContentTypeHeader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_MissingContentTypeHeader); } } @@ -1289,36 +1532,42 @@ internal static string ODataBatchReaderStream_MissingContentTypeHeader { /// /// A string like "A missing or invalid '{0}' header was found. The '{0}' header must be specified for each batch operation, and its value must be '{1}'." /// - internal static string ODataBatchReaderStream_MissingOrInvalidContentEncodingHeader(object p0, object p1) { + internal static string ODataBatchReaderStream_MissingOrInvalidContentEncodingHeader(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_MissingOrInvalidContentEncodingHeader, p0, p1); } /// /// A string like "The '{0}' header value '{1}' is invalid. When this is the start of the change set, the value must be '{2}'; otherwise it must be '{3}'." /// - internal static string ODataBatchReaderStream_InvalidContentTypeSpecified(object p0, object p1, object p2, object p3) { + internal static string ODataBatchReaderStream_InvalidContentTypeSpecified(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidContentTypeSpecified, p0, p1, p2, p3); } /// /// A string like "The content length header '{0}' is not valid. The content length header must be a valid Int32 literal and must be greater than or equal to 0." /// - internal static string ODataBatchReaderStream_InvalidContentLengthSpecified(object p0) { + internal static string ODataBatchReaderStream_InvalidContentLengthSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_InvalidContentLengthSpecified, p0); } /// /// A string like "The header '{0}' was specified multiple times. Each header must appear only once in a batch part." /// - internal static string ODataBatchReaderStream_DuplicateHeaderFound(object p0) { + internal static string ODataBatchReaderStream_DuplicateHeaderFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_DuplicateHeaderFound, p0); } /// /// A string like "Nested change sets in a batch payload are not supported." /// - internal static string ODataBatchReaderStream_NestedChangesetsAreNotSupported { - get { + internal static string ODataBatchReaderStream_NestedChangesetsAreNotSupported + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_NestedChangesetsAreNotSupported); } } @@ -1326,15 +1575,18 @@ internal static string ODataBatchReaderStream_NestedChangesetsAreNotSupported { /// /// A string like "Invalid multi-byte encoding '{0}' detected. Multi-byte encodings other than UTF-8 are only supported for operation payloads. They are not supported in batch or change set parts." /// - internal static string ODataBatchReaderStream_MultiByteEncodingsNotSupported(object p0) { + internal static string ODataBatchReaderStream_MultiByteEncodingsNotSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_MultiByteEncodingsNotSupported, p0); } /// /// A string like "Encountered an unexpected end of input while reading the batch payload." /// - internal static string ODataBatchReaderStream_UnexpectedEndOfInput { - get { + internal static string ODataBatchReaderStream_UnexpectedEndOfInput + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStream_UnexpectedEndOfInput); } } @@ -1342,15 +1594,18 @@ internal static string ODataBatchReaderStream_UnexpectedEndOfInput { /// /// A string like "Too many white spaces after a boundary delimiter and before the terminating line resource set. For security reasons, the total number of characters for a boundary including white spaces must not exceed {0}." /// - internal static string ODataBatchReaderStreamBuffer_BoundaryLineSecurityLimitReached(object p0) { + internal static string ODataBatchReaderStreamBuffer_BoundaryLineSecurityLimitReached(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataBatchReaderStreamBuffer_BoundaryLineSecurityLimitReached, p0); } /// /// A string like "When not writing an async response, you cannot create an async response message." /// - internal static string ODataAsyncWriter_CannotCreateResponseWhenNotWritingResponse { - get { + internal static string ODataAsyncWriter_CannotCreateResponseWhenNotWritingResponse + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncWriter_CannotCreateResponseWhenNotWritingResponse); } } @@ -1358,8 +1613,10 @@ internal static string ODataAsyncWriter_CannotCreateResponseWhenNotWritingRespon /// /// A string like "You cannot create an async response message more than once." /// - internal static string ODataAsyncWriter_CannotCreateResponseMoreThanOnce { - get { + internal static string ODataAsyncWriter_CannotCreateResponseMoreThanOnce + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncWriter_CannotCreateResponseMoreThanOnce); } } @@ -1367,8 +1624,10 @@ internal static string ODataAsyncWriter_CannotCreateResponseMoreThanOnce { /// /// A string like "A synchronous operation was called on an asynchronous async writer. Calls on an async writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataAsyncWriter_SyncCallOnAsyncWriter { - get { + internal static string ODataAsyncWriter_SyncCallOnAsyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncWriter_SyncCallOnAsyncWriter); } } @@ -1376,8 +1635,10 @@ internal static string ODataAsyncWriter_SyncCallOnAsyncWriter { /// /// A string like "An asynchronous operation was called on a synchronous async writer. Calls on an async writer instance must be either all synchronous or all asynchronous." /// - internal static string ODataAsyncWriter_AsyncCallOnSyncWriter { - get { + internal static string ODataAsyncWriter_AsyncCallOnSyncWriter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncWriter_AsyncCallOnSyncWriter); } } @@ -1385,8 +1646,10 @@ internal static string ODataAsyncWriter_AsyncCallOnSyncWriter { /// /// A string like "The WriteError and WriteErrorAsync methods on ODataMessageWriter cannot be called when an async message is being written by using ODataAsyncWriter. In OData, writing an in-stream error for an async payload is not supported." /// - internal static string ODataAsyncWriter_CannotWriteInStreamErrorForAsync { - get { + internal static string ODataAsyncWriter_CannotWriteInStreamErrorForAsync + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncWriter_CannotWriteInStreamErrorForAsync); } } @@ -1394,15 +1657,18 @@ internal static string ODataAsyncWriter_CannotWriteInStreamErrorForAsync { /// /// A string like "The message header '{0}' is invalid. The header value must be of the format '<header name>: <header value>'." /// - internal static string ODataAsyncReader_InvalidHeaderSpecified(object p0) { + internal static string ODataAsyncReader_InvalidHeaderSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_InvalidHeaderSpecified, p0); } /// /// A string like "When not reading an async response, you cannot create an async response message." /// - internal static string ODataAsyncReader_CannotCreateResponseWhenNotReadingResponse { - get { + internal static string ODataAsyncReader_CannotCreateResponseWhenNotReadingResponse + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_CannotCreateResponseWhenNotReadingResponse); } } @@ -1410,50 +1676,58 @@ internal static string ODataAsyncReader_CannotCreateResponseWhenNotReadingRespon /// /// A string like "The response line '{0}' is invalid. The response line at the start of the async response must be of the format 'HttpVersion StatusCode StatusCodeString'." /// - internal static string ODataAsyncReader_InvalidResponseLine(object p0) { + internal static string ODataAsyncReader_InvalidResponseLine(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_InvalidResponseLine, p0); } /// /// A string like "The HTTP version '{0}' used in an async response is not valid. The value must be '{1}'." /// - internal static string ODataAsyncReader_InvalidHttpVersionSpecified(object p0, object p1) { + internal static string ODataAsyncReader_InvalidHttpVersionSpecified(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_InvalidHttpVersionSpecified, p0, p1); } /// /// A string like "The HTTP status code '{0}' is invalid. An HTTP status code must be an integer value." /// - internal static string ODataAsyncReader_NonIntegerHttpStatusCode(object p0) { + internal static string ODataAsyncReader_NonIntegerHttpStatusCode(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_NonIntegerHttpStatusCode, p0); } /// /// A string like "The header '{0}' was specified multiple times. Each header must appear only once." /// - internal static string ODataAsyncReader_DuplicateHeaderFound(object p0) { + internal static string ODataAsyncReader_DuplicateHeaderFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_DuplicateHeaderFound, p0); } /// /// A string like "Invalid multi-byte encoding '{0}' detected. Multi-byte encodings other than UTF-8 are only supported for async payloads. They are not supported in batch or change set parts." /// - internal static string ODataAsyncReader_MultiByteEncodingsNotSupported(object p0) { + internal static string ODataAsyncReader_MultiByteEncodingsNotSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_MultiByteEncodingsNotSupported, p0); } /// /// A string like "Invalid new line '{0}' encountered. Should be '\r\n'." /// - internal static string ODataAsyncReader_InvalidNewLineEncountered(object p0) { + internal static string ODataAsyncReader_InvalidNewLineEncountered(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_InvalidNewLineEncountered, p0); } /// /// A string like "Encountered an unexpected end of input while reading the async payload. Could be due to calling CreateResponseMessage() more than once." /// - internal static string ODataAsyncReader_UnexpectedEndOfInput { - get { + internal static string ODataAsyncReader_UnexpectedEndOfInput + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_UnexpectedEndOfInput); } } @@ -1461,8 +1735,10 @@ internal static string ODataAsyncReader_UnexpectedEndOfInput { /// /// A string like "A synchronous operation was called on an asynchronous async reader. Calls on an async reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataAsyncReader_SyncCallOnAsyncReader { - get { + internal static string ODataAsyncReader_SyncCallOnAsyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_SyncCallOnAsyncReader); } } @@ -1470,8 +1746,10 @@ internal static string ODataAsyncReader_SyncCallOnAsyncReader { /// /// A string like "An asynchronous operation was called on a synchronous async reader. Calls on an async reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataAsyncReader_AsyncCallOnSyncReader { - get { + internal static string ODataAsyncReader_AsyncCallOnSyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncReader_AsyncCallOnSyncReader); } } @@ -1479,36 +1757,42 @@ internal static string ODataAsyncReader_AsyncCallOnSyncReader { /// /// A string like "The MIME type '{0}' is invalid or unspecified." /// - internal static string HttpUtils_MediaTypeUnspecified(object p0) { + internal static string HttpUtils_MediaTypeUnspecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeUnspecified, p0); } /// /// A string like "The MIME type '{0}' requires a '/' character between type and subtype, such as 'text/plain'." /// - internal static string HttpUtils_MediaTypeRequiresSlash(object p0) { + internal static string HttpUtils_MediaTypeRequiresSlash(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeRequiresSlash, p0); } /// /// A string like "The MIME type '{0}' requires a subtype definition." /// - internal static string HttpUtils_MediaTypeRequiresSubType(object p0) { + internal static string HttpUtils_MediaTypeRequiresSubType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeRequiresSubType, p0); } /// /// A string like "The MIME type is missing a parameter value for a parameter with the name '{0}'." /// - internal static string HttpUtils_MediaTypeMissingParameterValue(object p0) { + internal static string HttpUtils_MediaTypeMissingParameterValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeMissingParameterValue, p0); } /// /// A string like "The MIME type is missing a parameter name for a parameter definition." /// - internal static string HttpUtils_MediaTypeMissingParameterName { - get { + internal static string HttpUtils_MediaTypeMissingParameterName + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeMissingParameterName); } } @@ -1516,36 +1800,42 @@ internal static string HttpUtils_MediaTypeMissingParameterName { /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because the escape character '{3}' is not inside a quoted-string." /// - internal static string HttpUtils_EscapeCharWithoutQuotes(object p0, object p1, object p2, object p3) { + internal static string HttpUtils_EscapeCharWithoutQuotes(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_EscapeCharWithoutQuotes, p0, p1, p2, p3); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because it terminates with the escape character '{3}'. In a quoted-string, the escape characters must always be followed by a character." /// - internal static string HttpUtils_EscapeCharAtEnd(object p0, object p1, object p2, object p3) { + internal static string HttpUtils_EscapeCharAtEnd(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_EscapeCharAtEnd, p0, p1, p2, p3); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because the closing quote character was not found for the quoted-string." /// - internal static string HttpUtils_ClosingQuoteNotFound(object p0, object p1, object p2) { + internal static string HttpUtils_ClosingQuoteNotFound(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_ClosingQuoteNotFound, p0, p1, p2); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because the character '{3}' is not allowed in a quoted-string. For more information, see RFC 2616, Sections 3.6 and 2.2." /// - internal static string HttpUtils_InvalidCharacterInQuotedParameterValue(object p0, object p1, object p2, object p3) { + internal static string HttpUtils_InvalidCharacterInQuotedParameterValue(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidCharacterInQuotedParameterValue, p0, p1, p2, p3); } /// /// A string like "The value for the Content-Type header is missing." /// - internal static string HttpUtils_ContentTypeMissing { - get { + internal static string HttpUtils_ContentTypeMissing + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_ContentTypeMissing); } } @@ -1553,169 +1843,194 @@ internal static string HttpUtils_ContentTypeMissing { /// /// A string like "The MIME type '{0}' requires a semi-colon character (';') before a parameter definition." /// - internal static string HttpUtils_MediaTypeRequiresSemicolonBeforeParameter(object p0) { + internal static string HttpUtils_MediaTypeRequiresSemicolonBeforeParameter(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MediaTypeRequiresSemicolonBeforeParameter, p0); } /// /// A string like "An invalid quality value was detected in the header string '{0}'; quality values must start with '0' or '1' but not with '{1}'." /// - internal static string HttpUtils_InvalidQualityValueStartChar(object p0, object p1) { + internal static string HttpUtils_InvalidQualityValueStartChar(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidQualityValueStartChar, p0, p1); } /// /// A string like "An invalid quality value '{0}' was detected in the header string '{1}'; quality values must be in the range [0, 1]." /// - internal static string HttpUtils_InvalidQualityValue(object p0, object p1) { + internal static string HttpUtils_InvalidQualityValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidQualityValue, p0, p1); } /// /// A string like "An error occurred when converting the character '{0}' to an integer." /// - internal static string HttpUtils_CannotConvertCharToInt(object p0) { + internal static string HttpUtils_CannotConvertCharToInt(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_CannotConvertCharToInt, p0); } /// /// A string like "The separator ',' was missing between charset values in the header '{0}'." /// - internal static string HttpUtils_MissingSeparatorBetweenCharsets(object p0) { + internal static string HttpUtils_MissingSeparatorBetweenCharsets(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_MissingSeparatorBetweenCharsets, p0); } /// /// A string like "A separator character was missing between charset values in the header '{0}'." /// - internal static string HttpUtils_InvalidSeparatorBetweenCharsets(object p0) { + internal static string HttpUtils_InvalidSeparatorBetweenCharsets(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidSeparatorBetweenCharsets, p0); } /// /// A string like "An invalid (empty) charset name found in the header '{0}'." /// - internal static string HttpUtils_InvalidCharsetName(object p0) { + internal static string HttpUtils_InvalidCharsetName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidCharsetName, p0); } /// /// A string like "An unexpected end of the q-Value was detected in the header '{0}'." /// - internal static string HttpUtils_UnexpectedEndOfQValue(object p0) { + internal static string HttpUtils_UnexpectedEndOfQValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_UnexpectedEndOfQValue, p0); } /// /// A string like "The expected literal '{0}' was not found at position '{1}' in the string '{2}'." /// - internal static string HttpUtils_ExpectedLiteralNotFoundInString(object p0, object p1, object p2) { + internal static string HttpUtils_ExpectedLiteralNotFoundInString(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_ExpectedLiteralNotFoundInString, p0, p1, p2); } /// /// A string like "The string '{0}' cannot be converted into a supported HTTP method. The only supported HTTP methods are GET, DELETE, PUT, POST and PATCH." /// - internal static string HttpUtils_InvalidHttpMethodString(object p0) { + internal static string HttpUtils_InvalidHttpMethodString(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_InvalidHttpMethodString, p0); } /// /// A string like "The specified content type '{0}' contains either no media type or more than one media type, which is not allowed. You must specify exactly one media type as the content type." /// - internal static string HttpUtils_NoOrMoreThanOneContentTypeSpecified(object p0) { + internal static string HttpUtils_NoOrMoreThanOneContentTypeSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpUtils_NoOrMoreThanOneContentTypeSpecified, p0); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because '{3}' is not a recognized separator. The supported separators are ',', ';', and '='." /// - internal static string HttpHeaderValueLexer_UnrecognizedSeparator(object p0, object p1, object p2, object p3) { + internal static string HttpHeaderValueLexer_UnrecognizedSeparator(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpHeaderValueLexer_UnrecognizedSeparator, p0, p1, p2, p3); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because a token is expected but a quoted-string is found instead." /// - internal static string HttpHeaderValueLexer_TokenExpectedButFoundQuotedString(object p0, object p1, object p2) { + internal static string HttpHeaderValueLexer_TokenExpectedButFoundQuotedString(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpHeaderValueLexer_TokenExpectedButFoundQuotedString, p0, p1, p2); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because a token or a quoted-string is expected at this position but were not found." /// - internal static string HttpHeaderValueLexer_FailedToReadTokenOrQuotedString(object p0, object p1, object p2) { + internal static string HttpHeaderValueLexer_FailedToReadTokenOrQuotedString(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpHeaderValueLexer_FailedToReadTokenOrQuotedString, p0, p1, p2); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because '{3}' is not a valid separator after a quoted-string." /// - internal static string HttpHeaderValueLexer_InvalidSeparatorAfterQuotedString(object p0, object p1, object p2, object p3) { + internal static string HttpHeaderValueLexer_InvalidSeparatorAfterQuotedString(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpHeaderValueLexer_InvalidSeparatorAfterQuotedString, p0, p1, p2, p3); } /// /// A string like "An error occurred when parsing the HTTP header '{0}'. The header value '{1}' is incorrect at position '{2}' because the header value should not end with the separator '{3}'." /// - internal static string HttpHeaderValueLexer_EndOfFileAfterSeparator(object p0, object p1, object p2, object p3) { + internal static string HttpHeaderValueLexer_EndOfFileAfterSeparator(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.HttpHeaderValueLexer_EndOfFileAfterSeparator, p0, p1, p2, p3); } /// /// A string like "The character set '{0}' is not supported." /// - internal static string MediaType_EncodingNotSupported(object p0) { + internal static string MediaType_EncodingNotSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MediaType_EncodingNotSupported, p0); } /// /// A string like "A supported MIME type could not be found that matches the acceptable MIME types for the request. The supported type(s) '{0}' do not match any of the acceptable MIME types '{1}'." /// - internal static string MediaTypeUtils_DidNotFindMatchingMediaType(object p0, object p1) { + internal static string MediaTypeUtils_DidNotFindMatchingMediaType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MediaTypeUtils_DidNotFindMatchingMediaType, p0, p1); } /// /// A string like "A supported MIME type could not be found that matches the content type of the response. None of the supported type(s) '{0}' matches the content type '{1}'." /// - internal static string MediaTypeUtils_CannotDetermineFormatFromContentType(object p0, object p1) { + internal static string MediaTypeUtils_CannotDetermineFormatFromContentType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MediaTypeUtils_CannotDetermineFormatFromContentType, p0, p1); } /// /// A string like "The specified content type '{0}' contains either no media type or more than one media type, which is not allowed. You must specify exactly one media type as the content type." /// - internal static string MediaTypeUtils_NoOrMoreThanOneContentTypeSpecified(object p0) { + internal static string MediaTypeUtils_NoOrMoreThanOneContentTypeSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MediaTypeUtils_NoOrMoreThanOneContentTypeSpecified, p0); } /// /// A string like "The content type '{0}' specifies a batch payload; however, the payload either does not include a batch boundary or includes more than one boundary. In OData, batch payload content types must specify exactly one batch boundary in the '{1}' parameter of the content type." /// - internal static string MediaTypeUtils_BoundaryMustBeSpecifiedForBatchPayloads(object p0, object p1) { + internal static string MediaTypeUtils_BoundaryMustBeSpecifiedForBatchPayloads(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MediaTypeUtils_BoundaryMustBeSpecifiedForBatchPayloads, p0, p1); } /// /// A string like "Expected literal type token but found token '{0}'." /// - internal static string ExpressionLexer_ExpectedLiteralToken(object p0) { + internal static string ExpressionLexer_ExpectedLiteralToken(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_ExpectedLiteralToken, p0); } /// /// A string like "The type '{0}' is not supported when converting to a URI literal." /// - internal static string ODataUriUtils_ConvertToUriLiteralUnsupportedType(object p0) { + internal static string ODataUriUtils_ConvertToUriLiteralUnsupportedType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriUtils_ConvertToUriLiteralUnsupportedType, p0); } /// /// A string like "An IEdmTypeReference must be provided with a matching IEdmModel. No model was provided." /// - internal static string ODataUriUtils_ConvertFromUriLiteralTypeRefWithoutModel { - get { + internal static string ODataUriUtils_ConvertFromUriLiteralTypeRefWithoutModel + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriUtils_ConvertFromUriLiteralTypeRefWithoutModel); } } @@ -1723,57 +2038,66 @@ internal static string ODataUriUtils_ConvertFromUriLiteralTypeRefWithoutModel { /// /// A string like "Type verification failed. Expected type '{0}' but received the value '{1}'." /// - internal static string ODataUriUtils_ConvertFromUriLiteralTypeVerificationFailure(object p0, object p1) { + internal static string ODataUriUtils_ConvertFromUriLiteralTypeVerificationFailure(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriUtils_ConvertFromUriLiteralTypeVerificationFailure, p0, p1); } /// /// A string like "Type verification failed. Expected type '{0}' but received non-matching null value with associated type '{1}'." /// - internal static string ODataUriUtils_ConvertFromUriLiteralNullTypeVerificationFailure(object p0, object p1) { + internal static string ODataUriUtils_ConvertFromUriLiteralNullTypeVerificationFailure(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriUtils_ConvertFromUriLiteralNullTypeVerificationFailure, p0, p1); } /// /// A string like "Type verification failed. Expected non-nullable type '{0}' but received a null value." /// - internal static string ODataUriUtils_ConvertFromUriLiteralNullOnNonNullableType(object p0) { + internal static string ODataUriUtils_ConvertFromUriLiteralNullOnNonNullableType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriUtils_ConvertFromUriLiteralNullOnNonNullableType, p0); } /// /// A string like "The value of type '{0}' could not be converted to a raw string." /// - internal static string ODataUtils_CannotConvertValueToRawString(object p0) { + internal static string ODataUtils_CannotConvertValueToRawString(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_CannotConvertValueToRawString, p0); } /// /// A string like "A default MIME type could not be found for the requested payload in format '{0}'." /// - internal static string ODataUtils_DidNotFindDefaultMediaType(object p0) { + internal static string ODataUtils_DidNotFindDefaultMediaType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_DidNotFindDefaultMediaType, p0); } /// /// A string like "The value '{0}' of the OData-Version HTTP header is invalid. Only '4.0' and '4.01' are supported as values for the OData-Version header." /// - internal static string ODataUtils_UnsupportedVersionHeader(object p0) { + internal static string ODataUtils_UnsupportedVersionHeader(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_UnsupportedVersionHeader, p0); } /// /// A string like "An OData version of {0} was specified and the maximum supported OData version is {1}." /// - internal static string ODataUtils_MaxProtocolVersionExceeded(object p0, object p1) { + internal static string ODataUtils_MaxProtocolVersionExceeded(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_MaxProtocolVersionExceeded, p0, p1); } /// /// A string like "An invalid enum value was specified for the version number." /// - internal static string ODataUtils_UnsupportedVersionNumber { - get { + internal static string ODataUtils_UnsupportedVersionNumber + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_UnsupportedVersionNumber); } } @@ -1781,8 +2105,10 @@ internal static string ODataUtils_UnsupportedVersionNumber { /// /// A string like "The provided model does not contain an entity container." /// - internal static string ODataUtils_ModelDoesNotHaveContainer { - get { + internal static string ODataUtils_ModelDoesNotHaveContainer + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUtils_ModelDoesNotHaveContainer); } } @@ -1790,29 +2116,34 @@ internal static string ODataUtils_ModelDoesNotHaveContainer { /// /// A string like "The value returned by the '{0}' property cannot be modified until the end of the owning resource is reported by the reader." /// - internal static string ReaderUtils_EnumerableModified(object p0) { + internal static string ReaderUtils_EnumerableModified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderUtils_EnumerableModified, p0); } /// /// A string like "A null value was found with the expected type '{0}[Nullable=False]'. The expected type '{0}[Nullable=False]' does not allow null values." /// - internal static string ReaderValidationUtils_NullValueForNonNullableType(object p0) { + internal static string ReaderValidationUtils_NullValueForNonNullableType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_NullValueForNonNullableType, p0); } /// /// A string like "A null value was found for the property named '{0}', which has the expected type '{1}[Nullable=False]'. The expected type '{1}[Nullable=False]' does not allow null values." /// - internal static string ReaderValidationUtils_NullNamedValueForNonNullableType(object p0, object p1) { + internal static string ReaderValidationUtils_NullNamedValueForNonNullableType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_NullNamedValueForNonNullableType, p0, p1); } /// /// A string like "No URI value was found for an entity reference link. A single URI value was expected." /// - internal static string ReaderValidationUtils_EntityReferenceLinkMissingUri { - get { + internal static string ReaderValidationUtils_EntityReferenceLinkMissingUri + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_EntityReferenceLinkMissingUri); } } @@ -1820,8 +2151,10 @@ internal static string ReaderValidationUtils_EntityReferenceLinkMissingUri { /// /// A string like "A value without a type name was found and no expected type is available. When the model is specified, each value in the payload must have a type which can be either specified in the payload, explicitly by the caller or implicitly inferred from the parent value." /// - internal static string ReaderValidationUtils_ValueWithoutType { - get { + internal static string ReaderValidationUtils_ValueWithoutType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ValueWithoutType); } } @@ -1829,8 +2162,10 @@ internal static string ReaderValidationUtils_ValueWithoutType { /// /// A string like "A resource without a type name was found, but no expected type was specified. To allow entries without type information, the expected type must also be specified when the model is specified." /// - internal static string ReaderValidationUtils_ResourceWithoutType { - get { + internal static string ReaderValidationUtils_ResourceWithoutType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ResourceWithoutType); } } @@ -1838,22 +2173,26 @@ internal static string ReaderValidationUtils_ResourceWithoutType { /// /// A string like "Cannot convert the literal '{0}' to the expected type '{1}'." /// - internal static string ReaderValidationUtils_CannotConvertPrimitiveValue(object p0, object p1) { + internal static string ReaderValidationUtils_CannotConvertPrimitiveValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_CannotConvertPrimitiveValue, p0, p1); } /// /// A string like "The base URI '{0}' specified in ODataMessageReaderSettings.BaseUri is invalid; it must be either null or an absolute URI." /// - internal static string ReaderValidationUtils_MessageReaderSettingsBaseUriMustBeNullOrAbsolute(object p0) { + internal static string ReaderValidationUtils_MessageReaderSettingsBaseUriMustBeNullOrAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_MessageReaderSettingsBaseUriMustBeNullOrAbsolute, p0); } /// /// A string like "The ODataMessageReaderSettings.UndeclaredPropertyBehaviorKinds is not set to ODataUndeclaredPropertyBehaviorKinds.None. When reading request payloads, the ODataMessageReaderSettings.UndeclaredPropertyBehaviorKinds property must be set to ODataUndeclaredPropertyBehaviorKinds.None; other values are not supported." /// - internal static string ReaderValidationUtils_UndeclaredPropertyBehaviorKindSpecifiedOnRequest { - get { + internal static string ReaderValidationUtils_UndeclaredPropertyBehaviorKindSpecifiedOnRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_UndeclaredPropertyBehaviorKindSpecifiedOnRequest); } } @@ -1861,64 +2200,74 @@ internal static string ReaderValidationUtils_UndeclaredPropertyBehaviorKindSpeci /// /// A string like "The context URI '{0}' references the entity set with name '{1}'; however, the name of the expected entity set is '{2}' and does not match the entity set referenced in the context URI." /// - internal static string ReaderValidationUtils_ContextUriValidationInvalidExpectedEntitySet(object p0, object p1, object p2) { + internal static string ReaderValidationUtils_ContextUriValidationInvalidExpectedEntitySet(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ContextUriValidationInvalidExpectedEntitySet, p0, p1, p2); } /// /// A string like "The context URI '{0}' references the entity type with name '{1}'; however, the name of the expected entity type is '{2}' which is not compatible with the entity type with name '{1}'." /// - internal static string ReaderValidationUtils_ContextUriValidationInvalidExpectedEntityType(object p0, object p1, object p2) { + internal static string ReaderValidationUtils_ContextUriValidationInvalidExpectedEntityType(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ContextUriValidationInvalidExpectedEntityType, p0, p1, p2); } /// /// A string like "The context URI '{0}' references the property with name '{1}' on type '{2}'; however, the name of the expected property is '{3}'." /// - internal static string ReaderValidationUtils_ContextUriValidationNonMatchingPropertyNames(object p0, object p1, object p2, object p3) { + internal static string ReaderValidationUtils_ContextUriValidationNonMatchingPropertyNames(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ContextUriValidationNonMatchingPropertyNames, p0, p1, p2, p3); } /// /// A string like "The context URI '{0}' references the property with name '{1}' on type '{2}'; however, the declaring type of the expected property is '{3}'." /// - internal static string ReaderValidationUtils_ContextUriValidationNonMatchingDeclaringTypes(object p0, object p1, object p2, object p3) { + internal static string ReaderValidationUtils_ContextUriValidationNonMatchingDeclaringTypes(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ContextUriValidationNonMatchingDeclaringTypes, p0, p1, p2, p3); } /// /// A string like "The property or operation import name '{0}' was read from the payload; however, the name of the expected property or operation import is '{1}'." /// - internal static string ReaderValidationUtils_NonMatchingPropertyNames(object p0, object p1) { + internal static string ReaderValidationUtils_NonMatchingPropertyNames(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_NonMatchingPropertyNames, p0, p1); } /// /// A string like "The context URI '{0}' references the type '{1}'; however the expected type is '{2}'." /// - internal static string ReaderValidationUtils_TypeInContextUriDoesNotMatchExpectedType(object p0, object p1, object p2) { + internal static string ReaderValidationUtils_TypeInContextUriDoesNotMatchExpectedType(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_TypeInContextUriDoesNotMatchExpectedType, p0, p1, p2); } /// /// A string like "The context URI '{0}' refers to the item type '{1}' which is not assignable to the expected item type '{2}'." /// - internal static string ReaderValidationUtils_ContextUriDoesNotReferTypeAssignableToExpectedType(object p0, object p1, object p2) { + internal static string ReaderValidationUtils_ContextUriDoesNotReferTypeAssignableToExpectedType(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ContextUriDoesNotReferTypeAssignableToExpectedType, p0, p1, p2); } /// /// A string like "The value type '{0}' is not allowed due to an Org.OData.Validation.V1.DerivedTypeConstraint annotation on {1} '{2}'." /// - internal static string ReaderValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint(object p0, object p1, object p2) { + internal static string ReaderValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ReaderValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint, p0, p1, p2); } /// /// A string like "The ODataMessageReader has already been used to read a message payload. An ODataMessageReader can only be used once to read a payload for a given message." /// - internal static string ODataMessageReader_ReaderAlreadyUsed { - get { + internal static string ODataMessageReader_ReaderAlreadyUsed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ReaderAlreadyUsed); } } @@ -1926,8 +2275,10 @@ internal static string ODataMessageReader_ReaderAlreadyUsed { /// /// A string like "A top-level error cannot be read from request payloads. Top-level errors are only supported in responses." /// - internal static string ODataMessageReader_ErrorPayloadInRequest { - get { + internal static string ODataMessageReader_ErrorPayloadInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ErrorPayloadInRequest); } } @@ -1935,8 +2286,10 @@ internal static string ODataMessageReader_ErrorPayloadInRequest { /// /// A string like "A service document cannot be read from request payloads. Service documents are only supported in responses." /// - internal static string ODataMessageReader_ServiceDocumentInRequest { - get { + internal static string ODataMessageReader_ServiceDocumentInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ServiceDocumentInRequest); } } @@ -1944,8 +2297,10 @@ internal static string ODataMessageReader_ServiceDocumentInRequest { /// /// A string like "A metadata document cannot be read from request payloads. Metadata documents are only supported in responses." /// - internal static string ODataMessageReader_MetadataDocumentInRequest { - get { + internal static string ODataMessageReader_MetadataDocumentInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_MetadataDocumentInRequest); } } @@ -1953,8 +2308,10 @@ internal static string ODataMessageReader_MetadataDocumentInRequest { /// /// A string like "Delta are only supported in responses." /// - internal static string ODataMessageReader_DeltaInRequest { - get { + internal static string ODataMessageReader_DeltaInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_DeltaInRequest); } } @@ -1962,43 +2319,50 @@ internal static string ODataMessageReader_DeltaInRequest { /// /// A string like "The parameter '{0}' is specified with a non-null value, but no metadata is available for the reader. The expected type can only be specified if metadata is made available to the reader." /// - internal static string ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata(object p0) { + internal static string ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedTypeSpecifiedWithoutMetadata, p0); } /// /// A string like "The parameter '{0}' is specified with a non-null value, but no metadata is available for the reader. The entity set can only be specified if metadata is made available to the reader." /// - internal static string ODataMessageReader_EntitySetSpecifiedWithoutMetadata(object p0) { + internal static string ODataMessageReader_EntitySetSpecifiedWithoutMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_EntitySetSpecifiedWithoutMetadata, p0); } /// /// A string like "The parameter '{0}' is specified with a non-null value, but no metadata is available for the reader. The operation import can only be specified if metadata is made available to the reader." /// - internal static string ODataMessageReader_OperationImportSpecifiedWithoutMetadata(object p0) { + internal static string ODataMessageReader_OperationImportSpecifiedWithoutMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_OperationImportSpecifiedWithoutMetadata, p0); } /// /// A string like "The parameter '{0}' is specified with a non-null value, but no metadata is available for the reader. The operation can only be specified if metadata is made available to the reader." /// - internal static string ODataMessageReader_OperationSpecifiedWithoutMetadata(object p0) { + internal static string ODataMessageReader_OperationSpecifiedWithoutMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_OperationSpecifiedWithoutMetadata, p0); } /// /// A string like "The expected type for a collection reader is of kind '{0}'. Only types of Primitive or ComplexType kind can be specified as the expected type for a collection reader." /// - internal static string ODataMessageReader_ExpectedCollectionTypeWrongKind(object p0) { + internal static string ODataMessageReader_ExpectedCollectionTypeWrongKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedCollectionTypeWrongKind, p0); } /// /// A string like "The expected type for property reading is of entity collection kind. Top-level properties can only be of primitive, complex, primitive collection or complex collection kind." /// - internal static string ODataMessageReader_ExpectedPropertyTypeEntityCollectionKind { - get { + internal static string ODataMessageReader_ExpectedPropertyTypeEntityCollectionKind + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedPropertyTypeEntityCollectionKind); } } @@ -2006,8 +2370,10 @@ internal static string ODataMessageReader_ExpectedPropertyTypeEntityCollectionKi /// /// A string like "The expected type for property reading is of entity kind. Top-level properties cannot be of entity type." /// - internal static string ODataMessageReader_ExpectedPropertyTypeEntityKind { - get { + internal static string ODataMessageReader_ExpectedPropertyTypeEntityKind + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedPropertyTypeEntityKind); } } @@ -2015,8 +2381,10 @@ internal static string ODataMessageReader_ExpectedPropertyTypeEntityKind { /// /// A string like "The expected type for property reading is Edm.Stream. Top-level properties cannot be of stream type." /// - internal static string ODataMessageReader_ExpectedPropertyTypeStream { - get { + internal static string ODataMessageReader_ExpectedPropertyTypeStream + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedPropertyTypeStream); } } @@ -2024,15 +2392,18 @@ internal static string ODataMessageReader_ExpectedPropertyTypeStream { /// /// A string like "The expected type for a value is of kind '{0}'. Only types of Primitive kind can be specified as the expected type for reading a value." /// - internal static string ODataMessageReader_ExpectedValueTypeWrongKind(object p0) { + internal static string ODataMessageReader_ExpectedValueTypeWrongKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ExpectedValueTypeWrongKind, p0); } /// /// A string like "A missing or empty content type header was found when trying to read a message. The content type header is required." /// - internal static string ODataMessageReader_NoneOrEmptyContentTypeHeader { - get { + internal static string ODataMessageReader_NoneOrEmptyContentTypeHeader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_NoneOrEmptyContentTypeHeader); } } @@ -2040,15 +2411,18 @@ internal static string ODataMessageReader_NoneOrEmptyContentTypeHeader { /// /// A string like "The wildcard '*' was detected in the value '{0}' of the content type header. The value of the content type header cannot contain wildcards." /// - internal static string ODataMessageReader_WildcardInContentType(object p0) { + internal static string ODataMessageReader_WildcardInContentType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_WildcardInContentType, p0); } /// /// A string like "GetFormat was called before reading was started. GetFormat can only be called after a read method was called or a reader was created." /// - internal static string ODataMessageReader_GetFormatCalledBeforeReadingStarted { - get { + internal static string ODataMessageReader_GetFormatCalledBeforeReadingStarted + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_GetFormatCalledBeforeReadingStarted); } } @@ -2056,8 +2430,10 @@ internal static string ODataMessageReader_GetFormatCalledBeforeReadingStarted { /// /// A string like "DetectPayloadKind or DetectPayloadKindAsync was called more than once; DetectPayloadKind or DetectPayloadKindAsync can only be called once." /// - internal static string ODataMessageReader_DetectPayloadKindMultipleTimes { - get { + internal static string ODataMessageReader_DetectPayloadKindMultipleTimes + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_DetectPayloadKindMultipleTimes); } } @@ -2065,8 +2441,10 @@ internal static string ODataMessageReader_DetectPayloadKindMultipleTimes { /// /// A string like "Payload kind detection has not completed. Read or create methods cannot be called on the ODataMessageReader before payload kind detection is complete." /// - internal static string ODataMessageReader_PayloadKindDetectionRunning { - get { + internal static string ODataMessageReader_PayloadKindDetectionRunning + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_PayloadKindDetectionRunning); } } @@ -2074,8 +2452,10 @@ internal static string ODataMessageReader_PayloadKindDetectionRunning { /// /// A string like "The ODataMessageReader is using the server behavior for WCF Data Services, as specified in its settings. Payload kind detection is not supported when using the WCF Data services server behavior." /// - internal static string ODataMessageReader_PayloadKindDetectionInServerMode { - get { + internal static string ODataMessageReader_PayloadKindDetectionInServerMode + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_PayloadKindDetectionInServerMode); } } @@ -2083,8 +2463,10 @@ internal static string ODataMessageReader_PayloadKindDetectionInServerMode { /// /// A string like "A parameter payload cannot be read from a response payload. Parameter payloads are only supported in requests." /// - internal static string ODataMessageReader_ParameterPayloadInResponse { - get { + internal static string ODataMessageReader_ParameterPayloadInResponse + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_ParameterPayloadInResponse); } } @@ -2092,15 +2474,18 @@ internal static string ODataMessageReader_ParameterPayloadInResponse { /// /// A string like "The navigation property '{0}' with singleton cardinality on type '{1}' was specified for reading a collection of entity reference links. A navigation property with collection cardinality has to be provided." /// - internal static string ODataMessageReader_SingletonNavigationPropertyForEntityReferenceLinks(object p0, object p1) { + internal static string ODataMessageReader_SingletonNavigationPropertyForEntityReferenceLinks(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessageReader_SingletonNavigationPropertyForEntityReferenceLinks, p0, p1); } /// /// A string like "An attempt was made to modify the message. The message cannot be modified." /// - internal static string ODataAsyncResponseMessage_MustNotModifyMessage { - get { + internal static string ODataAsyncResponseMessage_MustNotModifyMessage + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAsyncResponseMessage_MustNotModifyMessage); } } @@ -2108,8 +2493,10 @@ internal static string ODataAsyncResponseMessage_MustNotModifyMessage { /// /// A string like "An attempt was made to modify the message. The message cannot be modified." /// - internal static string ODataMessage_MustNotModifyMessage { - get { + internal static string ODataMessage_MustNotModifyMessage + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMessage_MustNotModifyMessage); } } @@ -2117,8 +2504,10 @@ internal static string ODataMessage_MustNotModifyMessage { /// /// A string like "A synchronous operation was called on an asynchronous reader. Calls on a reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataReaderCore_SyncCallOnAsyncReader { - get { + internal static string ODataReaderCore_SyncCallOnAsyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_SyncCallOnAsyncReader); } } @@ -2126,8 +2515,10 @@ internal static string ODataReaderCore_SyncCallOnAsyncReader { /// /// A string like "An asynchronous operation was called on a synchronous reader. Calls on a reader instance must be either all synchronous or all asynchronous." /// - internal static string ODataReaderCore_AsyncCallOnSyncReader { - get { + internal static string ODataReaderCore_AsyncCallOnSyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_AsyncCallOnSyncReader); } } @@ -2135,15 +2526,18 @@ internal static string ODataReaderCore_AsyncCallOnSyncReader { /// /// A string like "ODataReader.ReadAsync or ODataReader.Read was called in an invalid state. No further calls can be made to the reader in state '{0}'." /// - internal static string ODataReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) { + internal static string ODataReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_ReadOrReadAsyncCalledInInvalidState, p0); } /// /// A string like "CreateReadStream was called in an invalid state. CreateReadStream can only be called once in ReaderState.Stream." /// - internal static string ODataReaderCore_CreateReadStreamCalledInInvalidState { - get { + internal static string ODataReaderCore_CreateReadStreamCalledInInvalidState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_CreateReadStreamCalledInInvalidState); } } @@ -2151,8 +2545,10 @@ internal static string ODataReaderCore_CreateReadStreamCalledInInvalidState { /// /// A string like "CreateTextReader was called in an invalid state. CreateTextReader can only be called once in ReaderState.Stream." /// - internal static string ODataReaderCore_CreateTextReaderCalledInInvalidState { - get { + internal static string ODataReaderCore_CreateTextReaderCalledInInvalidState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_CreateTextReaderCalledInInvalidState); } } @@ -2160,8 +2556,10 @@ internal static string ODataReaderCore_CreateTextReaderCalledInInvalidState { /// /// A string like "Read called with an open stream or textreader. Please close any open streams or text readers before calling Read." /// - internal static string ODataReaderCore_ReadCalledWithOpenStream { - get { + internal static string ODataReaderCore_ReadCalledWithOpenStream + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_ReadCalledWithOpenStream); } } @@ -2169,120 +2567,138 @@ internal static string ODataReaderCore_ReadCalledWithOpenStream { /// /// A string like "Calling Read or ReadAsync on an ODataReader instance is not allowed in state '{0}'." /// - internal static string ODataReaderCore_NoReadCallsAllowed(object p0) { + internal static string ODataReaderCore_NoReadCallsAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataReaderCore_NoReadCallsAllowed, p0); } /// /// A string like "Attempted to write a value for a property {0} whose value has already been written." /// - internal static string ODataWriterCore_PropertyValueAlreadyWritten(object p0) { + internal static string ODataWriterCore_PropertyValueAlreadyWritten(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataWriterCore_PropertyValueAlreadyWritten, p0); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the resources of a resource set. A 'StartObject' or 'EndArray' node was expected." /// - internal static string ODataJsonReader_CannotReadResourcesOfResourceSet(object p0) { + internal static string ODataJsonReader_CannotReadResourcesOfResourceSet(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReader_CannotReadResourcesOfResourceSet, p0); } /// /// A string like "Cannot convert a value of type 'Edm.Int32' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertInt32(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertInt32(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertInt32, p0); } /// /// A string like "Cannot convert a value of type 'Edm.Double' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertDouble(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertDouble(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertDouble, p0); } /// /// A string like "Cannot convert a value of type 'Edm.Boolean' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertBoolean(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertBoolean(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertBoolean, p0); } /// /// A string like "Cannot convert a value of type 'Edm.Decimal' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertDecimal(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertDecimal(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertDecimal, p0); } /// /// A string like "Cannot convert a value of type 'Edm.DateTime' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertDateTime(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertDateTime(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertDateTime, p0); } /// /// A string like "Cannot convert a value of type 'Edm.DateTimeOffset' to the expected target type '{0}'." /// - internal static string ODataJsonReaderUtils_CannotConvertDateTimeOffset(object p0) { + internal static string ODataJsonReaderUtils_CannotConvertDateTimeOffset(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_CannotConvertDateTimeOffset, p0); } /// /// A string like "Cannot convert a value to target type '{0}' because of conflict between input format string/number and parameter 'IEEE754Compatible' false/true." /// - internal static string ODataJsonReaderUtils_ConflictBetweenInputFormatAndParameter(object p0) { + internal static string ODataJsonReaderUtils_ConflictBetweenInputFormatAndParameter(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_ConflictBetweenInputFormatAndParameter, p0); } /// /// A string like "Multiple '{0}' properties were found in an error or inner error object. In OData, an error or inner error must have at most one '{0}' property." /// - internal static string ODataJsonReaderUtils_MultipleErrorPropertiesWithSameName(object p0) { + internal static string ODataJsonReaderUtils_MultipleErrorPropertiesWithSameName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderUtils_MultipleErrorPropertiesWithSameName, p0); } /// /// A string like "Multiple operations have the same 'Metadata' property value of '{0}'. The 'Target' property value of these operations must be set to a non-null value." /// - internal static string ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustSpecifyTarget(object p0) { + internal static string ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustSpecifyTarget(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustSpecifyTarget, p0); } /// /// A string like "Multiple operations have the same 'Metadata' property value of '{0}' and the same 'Target' property value of '{1}'. When multiple operations have the same 'Metadata' property value, their 'Target' property values must be unique." /// - internal static string ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustNotHaveDuplicateTarget(object p0, object p1) { + internal static string ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustNotHaveDuplicateTarget(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceSerializer_ActionsAndFunctionsGroupMustNotHaveDuplicateTarget, p0, p1); } /// /// A string like "A property with name '{0}' was found in the error object when reading a top-level error. In OData, a top-level error object must have exactly one property with name 'error'." /// - internal static string ODataJsonErrorDeserializer_TopLevelErrorWithInvalidProperty(object p0) { + internal static string ODataJsonErrorDeserializer_TopLevelErrorWithInvalidProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonErrorDeserializer_TopLevelErrorWithInvalidProperty, p0); } /// /// A string like "A property with name '{0}' was found in the message value of a top-level error. In OData, the message value of a top-level error value can only have properties with name 'lang' or 'value'." /// - internal static string ODataJsonErrorDeserializer_TopLevelErrorMessageValueWithInvalidProperty(object p0) { + internal static string ODataJsonErrorDeserializer_TopLevelErrorMessageValueWithInvalidProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonErrorDeserializer_TopLevelErrorMessageValueWithInvalidProperty, p0); } /// /// A string like "ODataCollectionReader.ReadAsync or ODataCollectionReader.Read was called in an invalid state. No further calls can be made to the reader in state '{0}'." /// - internal static string ODataCollectionReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) { + internal static string ODataCollectionReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionReaderCore_ReadOrReadAsyncCalledInInvalidState, p0); } /// /// A string like "A synchronous operation was called on an asynchronous collection reader. All calls on a collection reader instance must be either synchronous or asynchronous." /// - internal static string ODataCollectionReaderCore_SyncCallOnAsyncReader { - get { + internal static string ODataCollectionReaderCore_SyncCallOnAsyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionReaderCore_SyncCallOnAsyncReader); } } @@ -2290,8 +2706,10 @@ internal static string ODataCollectionReaderCore_SyncCallOnAsyncReader { /// /// A string like "An asynchronous operation was called on a synchronous collection reader. All calls on a collection reader instance must be either synchronous or asynchronous." /// - internal static string ODataCollectionReaderCore_AsyncCallOnSyncReader { - get { + internal static string ODataCollectionReaderCore_AsyncCallOnSyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionReaderCore_AsyncCallOnSyncReader); } } @@ -2299,22 +2717,26 @@ internal static string ODataCollectionReaderCore_AsyncCallOnSyncReader { /// /// A string like "The current state of the collection reader is '{0}'; however, the expected item type of a collection reader can only be set in state '{1}'." /// - internal static string ODataCollectionReaderCore_ExpectedItemTypeSetInInvalidState(object p0, object p1) { + internal static string ODataCollectionReaderCore_ExpectedItemTypeSetInInvalidState(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataCollectionReaderCore_ExpectedItemTypeSetInInvalidState, p0, p1); } /// /// A string like "ODataParameterReader.ReadAsync or ODataParameterReader.Read was called in an invalid state. No further calls can be made to the reader in state '{0}'." /// - internal static string ODataParameterReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) { + internal static string ODataParameterReaderCore_ReadOrReadAsyncCalledInInvalidState(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_ReadOrReadAsyncCalledInInvalidState, p0); } /// /// A string like "A synchronous operation was called on an asynchronous parameter reader. All calls on a parameter reader instance must be either synchronous or asynchronous." /// - internal static string ODataParameterReaderCore_SyncCallOnAsyncReader { - get { + internal static string ODataParameterReaderCore_SyncCallOnAsyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_SyncCallOnAsyncReader); } } @@ -2322,8 +2744,10 @@ internal static string ODataParameterReaderCore_SyncCallOnAsyncReader { /// /// A string like "An asynchronous operation was called on a synchronous parameter reader. All calls on a parameter reader instance must be either synchronous or asynchronous." /// - internal static string ODataParameterReaderCore_AsyncCallOnSyncReader { - get { + internal static string ODataParameterReaderCore_AsyncCallOnSyncReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_AsyncCallOnSyncReader); } } @@ -2331,78 +2755,90 @@ internal static string ODataParameterReaderCore_AsyncCallOnSyncReader { /// /// A string like "ODataParameterReader.ReadAsync or ODataParameterReader.Read was called in the '{0}' state. '{1}' must be called in this state, and the created reader must be in the 'Completed' state before the next ODataParameterReader.ReadAsync or ODataParameterReader.Read can be called." /// - internal static string ODataParameterReaderCore_SubReaderMustBeCreatedAndReadToCompletionBeforeTheNextReadOrReadAsyncCall(object p0, object p1) { + internal static string ODataParameterReaderCore_SubReaderMustBeCreatedAndReadToCompletionBeforeTheNextReadOrReadAsyncCall(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_SubReaderMustBeCreatedAndReadToCompletionBeforeTheNextReadOrReadAsyncCall, p0, p1); } /// /// A string like "ODataParameterReader.ReadAsync or ODataParameterReader.Read was called in the '{0}' state and '{1}' was called but the created reader is not in the 'Completed' state. The created reader must be in 'Completed' state before the next ODataParameterReader.ReadAsync or ODataParameterReader.Read can be called." /// - internal static string ODataParameterReaderCore_SubReaderMustBeInCompletedStateBeforeTheNextReadOrReadAsyncCall(object p0, object p1) { + internal static string ODataParameterReaderCore_SubReaderMustBeInCompletedStateBeforeTheNextReadOrReadAsyncCall(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_SubReaderMustBeInCompletedStateBeforeTheNextReadOrReadAsyncCall, p0, p1); } /// /// A string like "You cannot call the method '{0}' in state '{1}'." /// - internal static string ODataParameterReaderCore_InvalidCreateReaderMethodCalledForState(object p0, object p1) { + internal static string ODataParameterReaderCore_InvalidCreateReaderMethodCalledForState(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_InvalidCreateReaderMethodCalledForState, p0, p1); } /// /// A string like "The '{0}' method has already been called for the parameter '{1}'. Only one create reader method call is allowed for each resource, resource set, or collection parameter." /// - internal static string ODataParameterReaderCore_CreateReaderAlreadyCalled(object p0, object p1) { + internal static string ODataParameterReaderCore_CreateReaderAlreadyCalled(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_CreateReaderAlreadyCalled, p0, p1); } /// /// A string like "The parameter '{0}' in the request payload is not a valid parameter for the operation '{1}'." /// - internal static string ODataParameterReaderCore_ParameterNameNotInMetadata(object p0, object p1) { + internal static string ODataParameterReaderCore_ParameterNameNotInMetadata(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_ParameterNameNotInMetadata, p0, p1); } /// /// A string like "Multiple parameters with the name '{0}' were found in the request payload." /// - internal static string ODataParameterReaderCore_DuplicateParametersInPayload(object p0) { + internal static string ODataParameterReaderCore_DuplicateParametersInPayload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_DuplicateParametersInPayload, p0); } /// /// A string like "One or more parameters of the operation '{0}' are missing from the request payload. The missing parameters are: {1}." /// - internal static string ODataParameterReaderCore_ParametersMissingInPayload(object p0, object p1) { + internal static string ODataParameterReaderCore_ParametersMissingInPayload(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataParameterReaderCore_ParametersMissingInPayload, p0, p1); } /// /// A string like "The 'Metadata' property on an {0} must be set to a non-null value." /// - internal static string ValidationUtils_ActionsAndFunctionsMustSpecifyMetadata(object p0) { + internal static string ValidationUtils_ActionsAndFunctionsMustSpecifyMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ActionsAndFunctionsMustSpecifyMetadata, p0); } /// /// A string like "The 'Target' property on an {0} must be set to a non-null value." /// - internal static string ValidationUtils_ActionsAndFunctionsMustSpecifyTarget(object p0) { + internal static string ValidationUtils_ActionsAndFunctionsMustSpecifyTarget(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ActionsAndFunctionsMustSpecifyTarget, p0); } /// /// A string like "The '{0}' enumerable contains a null item. This enumerable cannot contain null items." /// - internal static string ValidationUtils_EnumerableContainsANullItem(object p0) { + internal static string ValidationUtils_EnumerableContainsANullItem(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_EnumerableContainsANullItem, p0); } /// /// A string like "The 'Name' property on an ODataAssociationLink must be set to a non-empty string." /// - internal static string ValidationUtils_AssociationLinkMustSpecifyName { - get { + internal static string ValidationUtils_AssociationLinkMustSpecifyName + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_AssociationLinkMustSpecifyName); } } @@ -2410,8 +2846,10 @@ internal static string ValidationUtils_AssociationLinkMustSpecifyName { /// /// A string like "The 'Url' property on an ODataAssociationLink must be set to a non-null value that represents the association or associations the link references." /// - internal static string ValidationUtils_AssociationLinkMustSpecifyUrl { - get { + internal static string ValidationUtils_AssociationLinkMustSpecifyUrl + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_AssociationLinkMustSpecifyUrl); } } @@ -2419,8 +2857,10 @@ internal static string ValidationUtils_AssociationLinkMustSpecifyUrl { /// /// A string like "An empty type name was found; the name of a type cannot be an empty string." /// - internal static string ValidationUtils_TypeNameMustNotBeEmpty { - get { + internal static string ValidationUtils_TypeNameMustNotBeEmpty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_TypeNameMustNotBeEmpty); } } @@ -2428,15 +2868,18 @@ internal static string ValidationUtils_TypeNameMustNotBeEmpty { /// /// A string like "The property '{0}' does not exist on type '{1}'. Make sure to only use property names that are defined by the type or mark the type as open type." /// - internal static string ValidationUtils_PropertyDoesNotExistOnType(object p0, object p1) { + internal static string ValidationUtils_PropertyDoesNotExistOnType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_PropertyDoesNotExistOnType, p0, p1); } /// /// A string like "The 'Url' property on a resource collection must be set to a non-null value." /// - internal static string ValidationUtils_ResourceMustSpecifyUrl { - get { + internal static string ValidationUtils_ResourceMustSpecifyUrl + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ResourceMustSpecifyUrl); } } @@ -2444,15 +2887,18 @@ internal static string ValidationUtils_ResourceMustSpecifyUrl { /// /// A string like "The 'Name' property on a resource collection with the 'Url' '{0}' must be set to a non-null value." /// - internal static string ValidationUtils_ResourceMustSpecifyName(object p0) { + internal static string ValidationUtils_ResourceMustSpecifyName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ResourceMustSpecifyName, p0); } /// /// A string like "A service document element without a Url was detected; a service document element must have a non-null Url value." /// - internal static string ValidationUtils_ServiceDocumentElementUrlMustNotBeNull { - get { + internal static string ValidationUtils_ServiceDocumentElementUrlMustNotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ServiceDocumentElementUrlMustNotBeNull); } } @@ -2460,29 +2906,34 @@ internal static string ValidationUtils_ServiceDocumentElementUrlMustNotBeNull { /// /// A string like "A primitive value was specified; however, a value of the non-primitive type '{0}' was expected." /// - internal static string ValidationUtils_NonPrimitiveTypeForPrimitiveValue(object p0) { + internal static string ValidationUtils_NonPrimitiveTypeForPrimitiveValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_NonPrimitiveTypeForPrimitiveValue, p0); } /// /// A string like "Unsupported primitive type. A primitive type could not be determined for an instance of type '{0}'." /// - internal static string ValidationUtils_UnsupportedPrimitiveType(object p0) { + internal static string ValidationUtils_UnsupportedPrimitiveType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_UnsupportedPrimitiveType, p0); } /// /// A string like "An incompatible primitive type '{0}[Nullable={1}]' was found for an item that was expected to be of type '{2}[Nullable={3}]'." /// - internal static string ValidationUtils_IncompatiblePrimitiveItemType(object p0, object p1, object p2, object p3) { + internal static string ValidationUtils_IncompatiblePrimitiveItemType(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_IncompatiblePrimitiveItemType, p0, p1, p2, p3); } /// /// A string like "A null value was detected in the items of a collection property value; non-nullable instances of collection types do not support null values as items." /// - internal static string ValidationUtils_NonNullableCollectionElementsMustNotBeNull { - get { + internal static string ValidationUtils_NonNullableCollectionElementsMustNotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_NonNullableCollectionElementsMustNotBeNull); } } @@ -2490,43 +2941,50 @@ internal static string ValidationUtils_NonNullableCollectionElementsMustNotBeNul /// /// A string like "Type name '{0}' is an invalid collection type name; a collection type name must be in the format 'Collection(<itemTypeName>)'." /// - internal static string ValidationUtils_InvalidCollectionTypeName(object p0) { + internal static string ValidationUtils_InvalidCollectionTypeName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_InvalidCollectionTypeName, p0); } /// /// A string like "A type named '{0}' could not be resolved by the model. When a model is available, each type name must resolve to a valid type." /// - internal static string ValidationUtils_UnrecognizedTypeName(object p0) { + internal static string ValidationUtils_UnrecognizedTypeName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_UnrecognizedTypeName, p0); } /// /// A string like "Incompatible type kinds were found. The type '{0}' was found to be of kind '{2}' instead of the expected kind '{1}'." /// - internal static string ValidationUtils_IncorrectTypeKind(object p0, object p1, object p2) { + internal static string ValidationUtils_IncorrectTypeKind(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_IncorrectTypeKind, p0, p1, p2); } /// /// A string like "Incompatible type kinds were found. Found type kind '{0}' instead of the expected kind '{1}'." /// - internal static string ValidationUtils_IncorrectTypeKindNoTypeName(object p0, object p1) { + internal static string ValidationUtils_IncorrectTypeKindNoTypeName(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_IncorrectTypeKindNoTypeName, p0, p1); } /// /// A string like "A value with type '{0}' was found, which is of kind '{1}'. Value can only be of kind 'Primitive', 'Complex' or 'Collection'." /// - internal static string ValidationUtils_IncorrectValueTypeKind(object p0, object p1) { + internal static string ValidationUtils_IncorrectValueTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_IncorrectValueTypeKind, p0, p1); } /// /// A string like "The 'Name' property on an ODataNestedResourceInfo must be set to a non-empty string." /// - internal static string ValidationUtils_LinkMustSpecifyName { - get { + internal static string ValidationUtils_LinkMustSpecifyName + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_LinkMustSpecifyName); } } @@ -2534,15 +2992,18 @@ internal static string ValidationUtils_LinkMustSpecifyName { /// /// A string like "The property '{0}' cannot be a stream property because it is not of kind EdmPrimitiveTypeKind.Stream." /// - internal static string ValidationUtils_MismatchPropertyKindForStreamProperty(object p0) { + internal static string ValidationUtils_MismatchPropertyKindForStreamProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_MismatchPropertyKindForStreamProperty, p0); } /// /// A string like "Nested collection instances are not allowed." /// - internal static string ValidationUtils_NestedCollectionsAreNotSupported { - get { + internal static string ValidationUtils_NestedCollectionsAreNotSupported + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_NestedCollectionsAreNotSupported); } } @@ -2550,8 +3011,10 @@ internal static string ValidationUtils_NestedCollectionsAreNotSupported { /// /// A string like "An ODataStreamReferenceValue item was found in a collection property value, which is not allowed. Collection properties can only have primitive and complex values as items." /// - internal static string ValidationUtils_StreamReferenceValuesNotSupportedInCollections { - get { + internal static string ValidationUtils_StreamReferenceValuesNotSupportedInCollections + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_StreamReferenceValuesNotSupportedInCollections); } } @@ -2559,99 +3022,114 @@ internal static string ValidationUtils_StreamReferenceValuesNotSupportedInCollec /// /// A string like "A value was encountered that has a type name that is incompatible with the metadata. The value specified its type as '{0}', but the type specified in the metadata is '{1}'." /// - internal static string ValidationUtils_IncompatibleType(object p0, object p1) { + internal static string ValidationUtils_IncompatibleType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_IncompatibleType, p0, p1); } /// /// A string like "An open collection property '{0}' was found. In OData, open collection properties are not supported." /// - internal static string ValidationUtils_OpenCollectionProperty(object p0) { + internal static string ValidationUtils_OpenCollectionProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_OpenCollectionProperty, p0); } /// /// A string like "An open stream property '{0}' was found. In OData, open stream properties are not supported." /// - internal static string ValidationUtils_OpenStreamProperty(object p0) { + internal static string ValidationUtils_OpenStreamProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_OpenStreamProperty, p0); } /// /// A string like "An invalid collection type kind '{0}' was found. In OData, collection types must be of kind 'Collection'." /// - internal static string ValidationUtils_InvalidCollectionTypeReference(object p0) { + internal static string ValidationUtils_InvalidCollectionTypeReference(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_InvalidCollectionTypeReference, p0); } /// /// A string like "A resource with type '{0}' was found with a media resource, but this entity type is not a media link resource (MLE). When the type is not an MLE entity, the resource cannot have a media resource." /// - internal static string ValidationUtils_ResourceWithMediaResourceAndNonMLEType(object p0) { + internal static string ValidationUtils_ResourceWithMediaResourceAndNonMLEType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ResourceWithMediaResourceAndNonMLEType, p0); } /// /// A string like "A resource with type '{0}' was found without a media resource, but this entity type is a media link resource (MLE). When the type is an MLE entity, the resource must have a media resource." /// - internal static string ValidationUtils_ResourceWithoutMediaResourceAndMLEType(object p0) { + internal static string ValidationUtils_ResourceWithoutMediaResourceAndMLEType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ResourceWithoutMediaResourceAndMLEType, p0); } /// /// A string like "A resource with type '{0}' was found, but it is not assignable to the expected type '{1}'. The type specified in the resource must be equal to either the expected type or a derived type." /// - internal static string ValidationUtils_ResourceTypeNotAssignableToExpectedType(object p0, object p1) { + internal static string ValidationUtils_ResourceTypeNotAssignableToExpectedType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_ResourceTypeNotAssignableToExpectedType, p0, p1); } /// /// A string like "A property with name '{0}' on type '{1}' has kind '{2}', but it is expected to be of kind 'Navigation'." /// - internal static string ValidationUtils_NavigationPropertyExpected(object p0, object p1, object p2) { + internal static string ValidationUtils_NavigationPropertyExpected(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_NavigationPropertyExpected, p0, p1, p2); } /// /// A string like "The boundary delimiter '{0}' is invalid. A boundary delimiter must be non-null, be non-empty, and have a maximum of {1} characters." /// - internal static string ValidationUtils_InvalidBatchBoundaryDelimiterLength(object p0, object p1) { + internal static string ValidationUtils_InvalidBatchBoundaryDelimiterLength(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_InvalidBatchBoundaryDelimiterLength, p0, p1); } /// /// A string like "The maximum recursion depth limit was reached. The depth of nested values in a single property cannot exceed {0}." /// - internal static string ValidationUtils_RecursionDepthLimitReached(object p0) { + internal static string ValidationUtils_RecursionDepthLimitReached(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_RecursionDepthLimitReached, p0); } /// /// A string like "The depth limit for entries in nested expanded navigation links was reached. The number of nested expanded entries cannot exceed {0}." /// - internal static string ValidationUtils_MaxDepthOfNestedEntriesExceeded(object p0) { + internal static string ValidationUtils_MaxDepthOfNestedEntriesExceeded(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_MaxDepthOfNestedEntriesExceeded, p0); } /// /// A string like "A null value was found in a collection, but the expected collection item type '{0}' does not allow null values." /// - internal static string ValidationUtils_NullCollectionItemForNonNullableType(object p0) { + internal static string ValidationUtils_NullCollectionItemForNonNullableType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_NullCollectionItemForNonNullableType, p0); } /// /// A string like "The property name '{0}' is invalid; property names must not contain any of the reserved characters {1}." /// - internal static string ValidationUtils_PropertiesMustNotContainReservedChars(object p0, object p1) { + internal static string ValidationUtils_PropertiesMustNotContainReservedChars(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_PropertiesMustNotContainReservedChars, p0, p1); } /// /// A string like "A null value was detected when enumerating the collections in a workspace. Workspace collections cannot be null." /// - internal static string ValidationUtils_WorkspaceResourceMustNotContainNullItem { - get { + internal static string ValidationUtils_WorkspaceResourceMustNotContainNullItem + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_WorkspaceResourceMustNotContainNullItem); } } @@ -2659,15 +3137,18 @@ internal static string ValidationUtils_WorkspaceResourceMustNotContainNullItem { /// /// A string like "Encountered a property '{0}' that was expected to be a reference to a location in the $metadata document but does not contain a '#' character or is otherwise not a valid metadata reference property. A metadata reference property must contain a '#' and be a valid absolute URI or begin with a '#' and be a valid URI fragment." /// - internal static string ValidationUtils_InvalidMetadataReferenceProperty(object p0) { + internal static string ValidationUtils_InvalidMetadataReferenceProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValidationUtils_InvalidMetadataReferenceProperty, p0); } /// /// A string like "The 'ODataResource.Properties' enumerable contains a null item. This enumerable cannot contain null items." /// - internal static string WriterValidationUtils_PropertyMustNotBeNull { - get { + internal static string WriterValidationUtils_PropertyMustNotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_PropertyMustNotBeNull); } } @@ -2675,8 +3156,10 @@ internal static string WriterValidationUtils_PropertyMustNotBeNull { /// /// A string like "An ODataProperty instance without a name was detected; an ODataProperty must have a non-null, non-empty name." /// - internal static string WriterValidationUtils_PropertiesMustHaveNonEmptyName { - get { + internal static string WriterValidationUtils_PropertiesMustHaveNonEmptyName + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_PropertiesMustHaveNonEmptyName); } } @@ -2684,8 +3167,10 @@ internal static string WriterValidationUtils_PropertiesMustHaveNonEmptyName { /// /// A string like "No TypeName was found for an ODataResource of an open property, ODataResource or custom instance annotation, even though metadata was specified. If a model is passed to the writer, each complex value on an open property, resource or custom instance annotation must have a type name." /// - internal static string WriterValidationUtils_MissingTypeNameWithMetadata { - get { + internal static string WriterValidationUtils_MissingTypeNameWithMetadata + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_MissingTypeNameWithMetadata); } } @@ -2693,8 +3178,10 @@ internal static string WriterValidationUtils_MissingTypeNameWithMetadata { /// /// A string like "The ODataResourceSet.NextPageLink must be null for request payloads. A next link is only supported in responses." /// - internal static string WriterValidationUtils_NextPageLinkInRequest { - get { + internal static string WriterValidationUtils_NextPageLinkInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_NextPageLinkInRequest); } } @@ -2702,8 +3189,10 @@ internal static string WriterValidationUtils_NextPageLinkInRequest { /// /// A string like "A default stream ODataStreamReferenceValue was detected with a 'ContentType' property but without a ReadLink value. In OData, a default stream must either have both a content type and a read link, or neither of them." /// - internal static string WriterValidationUtils_DefaultStreamWithContentTypeWithoutReadLink { - get { + internal static string WriterValidationUtils_DefaultStreamWithContentTypeWithoutReadLink + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_DefaultStreamWithContentTypeWithoutReadLink); } } @@ -2711,8 +3200,10 @@ internal static string WriterValidationUtils_DefaultStreamWithContentTypeWithout /// /// A string like "A default stream ODataStreamReferenceValue was detected with a 'ReadLink' property but without a ContentType value. In OData, a default stream must either have both a content type and a read link, or neither of them." /// - internal static string WriterValidationUtils_DefaultStreamWithReadLinkWithoutContentType { - get { + internal static string WriterValidationUtils_DefaultStreamWithReadLinkWithoutContentType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_DefaultStreamWithReadLinkWithoutContentType); } } @@ -2720,8 +3211,10 @@ internal static string WriterValidationUtils_DefaultStreamWithReadLinkWithoutCon /// /// A string like "An ODataStreamReferenceValue was detected with null values for both EditLink and ReadLink. In OData, a stream resource must have at least an edit link or a read link." /// - internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLinkOrReadLink { - get { + internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLinkOrReadLink + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_StreamReferenceValueMustHaveEditLinkOrReadLink); } } @@ -2729,8 +3222,10 @@ internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLin /// /// A string like "An ODataStreamReferenceValue was detected with an ETag but without an edit link. In OData, a stream resource must have an edit link to have an ETag." /// - internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLinkToHaveETag { - get { + internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLinkToHaveETag + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_StreamReferenceValueMustHaveEditLinkToHaveETag); } } @@ -2738,8 +3233,10 @@ internal static string WriterValidationUtils_StreamReferenceValueMustHaveEditLin /// /// A string like "An ODataStreamReferenceValue was detected with an empty string 'ContentType' property. In OData, a stream resource must either have a non-empty content type or it must be null." /// - internal static string WriterValidationUtils_StreamReferenceValueEmptyContentType { - get { + internal static string WriterValidationUtils_StreamReferenceValueEmptyContentType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_StreamReferenceValueEmptyContentType); } } @@ -2747,8 +3244,10 @@ internal static string WriterValidationUtils_StreamReferenceValueEmptyContentTyp /// /// A string like "A resource with an empty ID value was detected. In OData, a resource must either a non-empty ID value or no ID value." /// - internal static string WriterValidationUtils_EntriesMustHaveNonEmptyId { - get { + internal static string WriterValidationUtils_EntriesMustHaveNonEmptyId + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_EntriesMustHaveNonEmptyId); } } @@ -2756,15 +3255,18 @@ internal static string WriterValidationUtils_EntriesMustHaveNonEmptyId { /// /// A string like "The base URI '{0}' specified in ODataMessageWriterSettings.BaseUri is invalid; it must either be null or an absolute URI." /// - internal static string WriterValidationUtils_MessageWriterSettingsBaseUriMustBeNullOrAbsolute(object p0) { + internal static string WriterValidationUtils_MessageWriterSettingsBaseUriMustBeNullOrAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_MessageWriterSettingsBaseUriMustBeNullOrAbsolute, p0); } /// /// A string like "An ODataEntityReferenceLink with a null Url was detected; an ODataEntityReferenceLink must have a non-null Url." /// - internal static string WriterValidationUtils_EntityReferenceLinkUrlMustNotBeNull { - get { + internal static string WriterValidationUtils_EntityReferenceLinkUrlMustNotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_EntityReferenceLinkUrlMustNotBeNull); } } @@ -2772,8 +3274,10 @@ internal static string WriterValidationUtils_EntityReferenceLinkUrlMustNotBeNull /// /// A string like "The 'ODataEntityReferenceLinks.Links' enumerable contains a null item. This enumerable cannot contain null items." /// - internal static string WriterValidationUtils_EntityReferenceLinksLinkMustNotBeNull { - get { + internal static string WriterValidationUtils_EntityReferenceLinksLinkMustNotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_EntityReferenceLinksLinkMustNotBeNull); } } @@ -2781,120 +3285,138 @@ internal static string WriterValidationUtils_EntityReferenceLinksLinkMustNotBeNu /// /// A string like "The type '{0}' of a resource in an expanded link is not compatible with the element type '{1}' of the expanded link. Entries in an expanded link must have entity types that are assignable to the element type of the expanded link." /// - internal static string WriterValidationUtils_NestedResourceTypeNotCompatibleWithParentPropertyType(object p0, object p1) { + internal static string WriterValidationUtils_NestedResourceTypeNotCompatibleWithParentPropertyType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_NestedResourceTypeNotCompatibleWithParentPropertyType, p0, p1); } /// /// A string like "The ODataNestedResourceInfo with the URL value '{0}' specifies in its 'IsCollection' property that its payload is a resource set, but the actual payload is a resource." /// - internal static string WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceContent(object p0) { + internal static string WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceContent(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceContent, p0); } /// /// A string like "The ODataNestedResourceInfo with the URL value '{0}' specifies in its 'IsCollection' property that its payload is a resource, but the actual payload is a resource set." /// - internal static string WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetContent(object p0) { + internal static string WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetContent(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetContent, p0); } /// /// A string like "The ODataNestedResourceInfo with the URL value '{0}' specifies in its 'IsCollection' property that its payload is a resource set, but the metadata declares it as a resource." /// - internal static string WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceMetadata(object p0) { + internal static string WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkIsCollectionTrueWithResourceMetadata, p0); } /// /// A string like "The ODataNestedResourceInfo with the URL value '{0}' specifies in its 'IsCollection' property that its payload is a resource, but the metadata declares it as resource set." /// - internal static string WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetMetadata(object p0) { + internal static string WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkIsCollectionFalseWithResourceSetMetadata, p0); } /// /// A string like "The content of the ODataNestedResourceInfo with the URL value '{0}' is a resource set, but the metadata declares it as a resource." /// - internal static string WriterValidationUtils_ExpandedLinkWithResourceSetPayloadAndResourceMetadata(object p0) { + internal static string WriterValidationUtils_ExpandedLinkWithResourceSetPayloadAndResourceMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkWithResourceSetPayloadAndResourceMetadata, p0); } /// /// A string like "The content of the ODataNestedResourceInfo with the URL value '{0}' is a resource, but the metadata declares it as resource set." /// - internal static string WriterValidationUtils_ExpandedLinkWithResourcePayloadAndResourceSetMetadata(object p0) { + internal static string WriterValidationUtils_ExpandedLinkWithResourcePayloadAndResourceSetMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ExpandedLinkWithResourcePayloadAndResourceSetMetadata, p0); } /// /// A string like "The collection property '{0}' has a null value, which is not allowed. In OData, collection properties cannot have null values." /// - internal static string WriterValidationUtils_CollectionPropertiesMustNotHaveNullValue(object p0) { + internal static string WriterValidationUtils_CollectionPropertiesMustNotHaveNullValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_CollectionPropertiesMustNotHaveNullValue, p0); } /// /// A string like "The property '{0}[Nullable=False]' of type '{1}' has a null value, which is not allowed." /// - internal static string WriterValidationUtils_NonNullablePropertiesMustNotHaveNullValue(object p0, object p1) { + internal static string WriterValidationUtils_NonNullablePropertiesMustNotHaveNullValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_NonNullablePropertiesMustNotHaveNullValue, p0, p1); } /// /// A string like "The stream property '{0}' has a null value, which is not allowed. In OData, stream properties cannot have null values." /// - internal static string WriterValidationUtils_StreamPropertiesMustNotHaveNullValue(object p0) { + internal static string WriterValidationUtils_StreamPropertiesMustNotHaveNullValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_StreamPropertiesMustNotHaveNullValue, p0); } /// /// A string like "An action or a function with metadata '{0}' was detected when writing a request; actions and functions are only supported in responses." /// - internal static string WriterValidationUtils_OperationInRequest(object p0) { + internal static string WriterValidationUtils_OperationInRequest(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_OperationInRequest, p0); } /// /// A string like "An association link with name '{0}' could not be written to the request payload. Association links are only supported in responses." /// - internal static string WriterValidationUtils_AssociationLinkInRequest(object p0) { + internal static string WriterValidationUtils_AssociationLinkInRequest(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_AssociationLinkInRequest, p0); } /// /// A string like "The stream property {0} in a request payload cannot contain etag, editLink, or readLink values." /// - internal static string WriterValidationUtils_StreamPropertyInRequest(object p0) { + internal static string WriterValidationUtils_StreamPropertyInRequest(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_StreamPropertyInRequest, p0); } /// /// A string like "The service document URI '{0}' specified is invalid; it must be either null or an absolute URI." /// - internal static string WriterValidationUtils_MessageWriterSettingsServiceDocumentUriMustBeNullOrAbsolute(object p0) { + internal static string WriterValidationUtils_MessageWriterSettingsServiceDocumentUriMustBeNullOrAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_MessageWriterSettingsServiceDocumentUriMustBeNullOrAbsolute, p0); } /// /// A string like "The ODataNestedResourceInfo.Url property on an navigation link '{0}' is null. The ODataNestedResourceInfo.Url property must be set to a non-null value that represents the entity or entities the navigation link references." /// - internal static string WriterValidationUtils_NavigationLinkMustSpecifyUrl(object p0) { + internal static string WriterValidationUtils_NavigationLinkMustSpecifyUrl(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_NavigationLinkMustSpecifyUrl, p0); } /// /// A string like "The ODataNestedResourceInfo.IsCollection property on a nested resource info '{0}' is null. The ODataNestedResourceInfo.IsCollection property must be specified when writing a nested resource into a request." /// - internal static string WriterValidationUtils_NestedResourceInfoMustSpecifyIsCollection(object p0) { + internal static string WriterValidationUtils_NestedResourceInfoMustSpecifyIsCollection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_NestedResourceInfoMustSpecifyIsCollection, p0); } /// /// A string like "A JSON Padding function was specified on ODataMessageWriterSettings when trying to write a request message. JSON Padding is only for writing responses." /// - internal static string WriterValidationUtils_MessageWriterSettingsJsonPaddingOnRequestMessage { - get { + internal static string WriterValidationUtils_MessageWriterSettingsJsonPaddingOnRequestMessage + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_MessageWriterSettingsJsonPaddingOnRequestMessage); } } @@ -2902,225 +3424,258 @@ internal static string WriterValidationUtils_MessageWriterSettingsJsonPaddingOnR /// /// A string like "The value type '{0}' is not allowed due to an Org.OData.Validation.V1.DerivedTypeConstraint annotation on {1} '{2}'." /// - internal static string WriterValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint(object p0, object p1, object p2) { + internal static string WriterValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.WriterValidationUtils_ValueTypeNotAllowedInDerivedTypeConstraint, p0, p1, p2); } /// /// A string like "An XML node of type '{0}' was found in a string value. An element with a string value can only contain Text, CDATA, SignificantWhitespace, Whitespace or Comment nodes." /// - internal static string XmlReaderExtension_InvalidNodeInStringValue(object p0) { + internal static string XmlReaderExtension_InvalidNodeInStringValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.XmlReaderExtension_InvalidNodeInStringValue, p0); } /// /// A string like "An XML node of type '{0}' was found at the root level. The root level of an OData payload must contain a single XML element and no text nodes." /// - internal static string XmlReaderExtension_InvalidRootNode(object p0) { + internal static string XmlReaderExtension_InvalidRootNode(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.XmlReaderExtension_InvalidRootNode, p0); } /// /// A string like "The metadata document could not be read from the message content.\r\n{0}" /// - internal static string ODataMetadataInputContext_ErrorReadingMetadata(object p0) { + internal static string ODataMetadataInputContext_ErrorReadingMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataInputContext_ErrorReadingMetadata, p0); } /// /// A string like "The metadata document could not be written as specified.\r\n{0}" /// - internal static string ODataMetadataOutputContext_ErrorWritingMetadata(object p0) { + internal static string ODataMetadataOutputContext_ErrorWritingMetadata(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataOutputContext_ErrorWritingMetadata, p0); } /// /// A string like "A relative URI value '{0}' was specified in the payload, but no base URI for it was found. When the payload contains a relative URI, there must be an xml:base in the payload or else a base URI must specified in the reader settings." /// - internal static string ODataAtomDeserializer_RelativeUriUsedWithoutBaseUriSpecified(object p0) { + internal static string ODataAtomDeserializer_RelativeUriUsedWithoutBaseUriSpecified(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomDeserializer_RelativeUriUsedWithoutBaseUriSpecified, p0); } /// /// A string like "The element with name '{0}' is not a valid collection item. The name of the collection item element must be 'element' and it must belong to the '{1}' namespace." /// - internal static string ODataAtomPropertyAndValueDeserializer_InvalidCollectionElement(object p0, object p1) { + internal static string ODataAtomPropertyAndValueDeserializer_InvalidCollectionElement(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomPropertyAndValueDeserializer_InvalidCollectionElement, p0, p1); } /// /// A string like "The property '{0}' on type '{1}' was found in the {{http://docs.oasis-open.org/odata/ns/metadata}}:properties element, and it is declared as a navigation property. Navigation properties in ATOM must be represented as {{http://www.w3.org/2005/Atom}}:link elements." /// - internal static string ODataAtomPropertyAndValueDeserializer_NavigationPropertyInProperties(object p0, object p1) { + internal static string ODataAtomPropertyAndValueDeserializer_NavigationPropertyInProperties(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomPropertyAndValueDeserializer_NavigationPropertyInProperties, p0, p1); } /// /// A string like "Writing null value for the instance annotation '{0}' is not allowed. The instance annotation '{0}' has the expected type '{1}[Nullable=False]'." /// - internal static string JsonLightInstanceAnnotationWriter_NullValueNotAllowedForInstanceAnnotation(object p0, object p1) { + internal static string JsonLightInstanceAnnotationWriter_NullValueNotAllowedForInstanceAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonLightInstanceAnnotationWriter_NullValueNotAllowedForInstanceAnnotation, p0, p1); } /// /// A string like "When resolving operations '{0}' the group returned has both actions and functions with an invalid IEdmModel." /// - internal static string EdmLibraryExtensions_OperationGroupReturningActionsAndFunctionsModelInvalid(object p0) { + internal static string EdmLibraryExtensions_OperationGroupReturningActionsAndFunctionsModelInvalid(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmLibraryExtensions_OperationGroupReturningActionsAndFunctionsModelInvalid, p0); } /// /// A string like "Invalid implementation of an IEdmModel, an operation '{0}' was found using the IEdmModel method 'FindDeclaredBoundOperations' should never return non-bound operations." /// - internal static string EdmLibraryExtensions_UnBoundOperationsFoundFromIEdmModelFindMethodIsInvalid(object p0) { + internal static string EdmLibraryExtensions_UnBoundOperationsFoundFromIEdmModelFindMethodIsInvalid(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmLibraryExtensions_UnBoundOperationsFoundFromIEdmModelFindMethodIsInvalid, p0); } /// /// A string like "Invalid implementation of an IEdmModel, an operation '{0}' was found using the IEdmModel method 'FindDeclaredBoundOperations' should never return bound operations without any parameters." /// - internal static string EdmLibraryExtensions_NoParameterBoundOperationsFoundFromIEdmModelFindMethodIsInvalid(object p0) { + internal static string EdmLibraryExtensions_NoParameterBoundOperationsFoundFromIEdmModelFindMethodIsInvalid(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmLibraryExtensions_NoParameterBoundOperationsFoundFromIEdmModelFindMethodIsInvalid, p0); } /// /// A string like "Value '{0}' was either too large or too small for a '{1}'." /// - internal static string EdmLibraryExtensions_ValueOverflowForUnderlyingType(object p0, object p1) { + internal static string EdmLibraryExtensions_ValueOverflowForUnderlyingType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmLibraryExtensions_ValueOverflowForUnderlyingType, p0, p1); } /// /// A string like "The 'type' attribute on element {{http://www.w3.org/2005/Atom}}:content is either missing or has an invalid value '{0}'. Only 'application/xml' and 'application/atom+xml' are supported as the value of the 'type' attribute on the {{http://www.w3.org/2005/Atom}}:content element." /// - internal static string ODataAtomResourceDeserializer_ContentWithWrongType(object p0) { + internal static string ODataAtomResourceDeserializer_ContentWithWrongType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomResourceDeserializer_ContentWithWrongType, p0); } /// /// A string like "Multiple '{{http://docs.oasis-open.org/odata/ns/metadata}}:{0}' elements were found in a top-level error value. In OData, the value of a top-level error value can have no more than one '{{http://docs.oasis-open.org/odata/ns/metadata}}:{0}' element" /// - internal static string ODataAtomErrorDeserializer_MultipleErrorElementsWithSameName(object p0) { + internal static string ODataAtomErrorDeserializer_MultipleErrorElementsWithSameName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomErrorDeserializer_MultipleErrorElementsWithSameName, p0); } /// /// A string like "Multiple '{{http://docs.oasis-open.org/odata/ns/metadata}}:{0}' elements were found in an inner error value. In OData, the value of an inner error value can have at most one '{{http://docs.oasis-open.org/odata/ns/metadata}}:{0}' element." /// - internal static string ODataAtomErrorDeserializer_MultipleInnerErrorElementsWithSameName(object p0) { + internal static string ODataAtomErrorDeserializer_MultipleInnerErrorElementsWithSameName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataAtomErrorDeserializer_MultipleInnerErrorElementsWithSameName, p0); } /// /// A string like "An invalid item type kind '{0}' was found. Items in a collection can only be of type kind 'Primitive' or 'Complex', but not of type kind '{0}'." /// - internal static string CollectionWithoutExpectedTypeValidator_InvalidItemTypeKind(object p0) { + internal static string CollectionWithoutExpectedTypeValidator_InvalidItemTypeKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CollectionWithoutExpectedTypeValidator_InvalidItemTypeKind, p0); } /// /// A string like "An item of type kind '{0}' was found in a collection that otherwise has items of type kind '{1}'. In OData, all items in a collection must have the same type kind." /// - internal static string CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeKind(object p0, object p1) { + internal static string CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeKind, p0, p1); } /// /// A string like "An item with type name '{0}' was found in a collection of items with type name '{1}'. In OData, all items in a collection must have the same type name." /// - internal static string CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeName(object p0, object p1) { + internal static string CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeName(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CollectionWithoutExpectedTypeValidator_IncompatibleItemTypeName, p0, p1); } /// /// A string like "A resource of type '{0}' was found in a resource set that otherwise has entries of type '{1}'. In OData, all entries in a resource set must have a common base type." /// - internal static string ResourceSetWithoutExpectedTypeValidator_IncompatibleTypes(object p0, object p1) { + internal static string ResourceSetWithoutExpectedTypeValidator_IncompatibleTypes(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ResourceSetWithoutExpectedTypeValidator_IncompatibleTypes, p0, p1); } /// /// A string like "The maximum number of bytes allowed to be read from the stream has been exceeded. After the last read operation, a total of {0} bytes has been read from the stream; however a maximum of {1} bytes is allowed." /// - internal static string MessageStreamWrappingStream_ByteLimitExceeded(object p0, object p1) { + internal static string MessageStreamWrappingStream_ByteLimitExceeded(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MessageStreamWrappingStream_ByteLimitExceeded, p0, p1); } /// /// A string like "The custom type resolver set in ODataMessageWriterSettings.EnableWcfDataServicesClientBehavior returned 'null' when resolving the type '{0}'. When a custom type resolver is specified, it cannot return null." /// - internal static string MetadataUtils_ResolveTypeName(object p0) { + internal static string MetadataUtils_ResolveTypeName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataUtils_ResolveTypeName, p0); } /// /// A string like "The method 'FindDeclaredBoundOperations' on the IEdmModel has thrown an exception when looking for operations with a binding type {0}. See inner exception for more details." /// - internal static string MetadataUtils_CalculateBindableOperationsForType(object p0) { + internal static string MetadataUtils_CalculateBindableOperationsForType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataUtils_CalculateBindableOperationsForType, p0); } /// /// A string like "The type '{0}' was found for a primitive value. In OData, the type '{0}' is not a supported primitive type." /// - internal static string EdmValueUtils_UnsupportedPrimitiveType(object p0) { + internal static string EdmValueUtils_UnsupportedPrimitiveType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_UnsupportedPrimitiveType, p0); } /// /// A string like "Incompatible primitive type kinds were found. The type '{0}' was found to be of kind '{2}' instead of the expected kind '{1}'." /// - internal static string EdmValueUtils_IncorrectPrimitiveTypeKind(object p0, object p1, object p2) { + internal static string EdmValueUtils_IncorrectPrimitiveTypeKind(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_IncorrectPrimitiveTypeKind, p0, p1, p2); } /// /// A string like "Incompatible primitive type kinds were found. Found type kind '{0}' instead of the expected kind '{1}'." /// - internal static string EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName(object p0, object p1) { + internal static string EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_IncorrectPrimitiveTypeKindNoTypeName, p0, p1); } /// /// A string like "A value with primitive kind '{0}' cannot be converted into a primitive object value." /// - internal static string EdmValueUtils_CannotConvertTypeToClrValue(object p0) { + internal static string EdmValueUtils_CannotConvertTypeToClrValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_CannotConvertTypeToClrValue, p0); } /// /// A string like "The property '{0}' is not declared on the non-open type '{1}'." /// - internal static string ODataEdmStructuredValue_UndeclaredProperty(object p0, object p1) { + internal static string ODataEdmStructuredValue_UndeclaredProperty(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataEdmStructuredValue_UndeclaredProperty, p0, p1); } /// /// A string like "The entity set '{0}' doesn't have the 'OData.EntitySetUri' annotation. This annotation is required." /// - internal static string ODataMetadataBuilder_MissingEntitySetUri(object p0) { + internal static string ODataMetadataBuilder_MissingEntitySetUri(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataBuilder_MissingEntitySetUri, p0); } /// /// A string like "The entity set '{0}' has a URI '{1}' which has no path segments. An entity set URI suffix cannot be appended to a URI without path segments." /// - internal static string ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix(object p0, object p1) { + internal static string ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataBuilder_MissingSegmentForEntitySetUriSuffix, p0, p1); } /// /// A string like "Neither the 'OData.EntityInstanceUri' nor the 'OData.EntitySetUriSuffix' annotation was found for entity set '{0}'. One of these annotations is required." /// - internal static string ODataMetadataBuilder_MissingEntityInstanceUri(object p0) { + internal static string ODataMetadataBuilder_MissingEntityInstanceUri(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataBuilder_MissingEntityInstanceUri, p0); } /// /// A string like "Parent id or contained context url is missing which is required to compute id for contained instance. Specify ODataUri in the ODataMessageWriterSettings or return parent id or context url in the payload." /// - internal static string ODataMetadataBuilder_MissingParentIdOrContextUrl { - get { + internal static string ODataMetadataBuilder_MissingParentIdOrContextUrl + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataBuilder_MissingParentIdOrContextUrl); } } @@ -3128,22 +3683,26 @@ internal static string ODataMetadataBuilder_MissingParentIdOrContextUrl { /// /// A string like "The Id cannot be computed, since the navigation source '{0}' cannot be resolved to a known entity set from model." /// - internal static string ODataMetadataBuilder_UnknownEntitySet(object p0) { + internal static string ODataMetadataBuilder_UnknownEntitySet(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataMetadataBuilder_UnknownEntitySet, p0); } /// /// A string like "The entity type '{0}' is not compatible with the base type '{1}' of the provided entity set '{2}'. When an entity type is specified for an OData resource set or resource reader, it has to be the same or a subtype of the base type of the specified entity set." /// - internal static string ODataJsonLightInputContext_EntityTypeMustBeCompatibleWithEntitySetBaseType(object p0, object p1, object p2) { + internal static string ODataJsonLightInputContext_EntityTypeMustBeCompatibleWithEntitySetBaseType(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_EntityTypeMustBeCompatibleWithEntitySetBaseType, p0, p1, p2); } /// /// A string like "ODataMessageReader.DetectPayloadKind was called for a request payload. Payload kind detection is only supported for responses in JSON Light." /// - internal static string ODataJsonLightInputContext_PayloadKindDetectionForRequest { - get { + internal static string ODataJsonLightInputContext_PayloadKindDetectionForRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_PayloadKindDetectionForRequest); } } @@ -3151,15 +3710,18 @@ internal static string ODataJsonLightInputContext_PayloadKindDetectionForRequest /// /// A string like "The parameter '{0}' is specified with a null value. For JSON Light, the '{0}' argument to the 'CreateParameterReader' method cannot be null." /// - internal static string ODataJsonLightInputContext_OperationCannotBeNullForCreateParameterReader(object p0) { + internal static string ODataJsonLightInputContext_OperationCannotBeNullForCreateParameterReader(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_OperationCannotBeNullForCreateParameterReader, p0); } /// /// A string like "Parsing JSON Light resource sets or entries in requests without entity set is not supported. Pass in the entity set as a parameter to ODataMessageReader.CreateODataResourceReader or ODataMessageReader.CreateODataResourceSetReader method." /// - internal static string ODataJsonLightInputContext_NoEntitySetForRequest { - get { + internal static string ODataJsonLightInputContext_NoEntitySetForRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_NoEntitySetForRequest); } } @@ -3167,8 +3729,10 @@ internal static string ODataJsonLightInputContext_NoEntitySetForRequest { /// /// A string like "Parsing JSON Light payloads without a model is only supported for error payloads." /// - internal static string ODataJsonLightInputContext_ModelRequiredForReading { - get { + internal static string ODataJsonLightInputContext_ModelRequiredForReading + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_ModelRequiredForReading); } } @@ -3176,8 +3740,10 @@ internal static string ODataJsonLightInputContext_ModelRequiredForReading { /// /// A string like "An attempt to read a collection request payload without specifying a collection item type was detected. When reading collection payloads in requests, an expected item type has to be provided." /// - internal static string ODataJsonLightInputContext_ItemTypeRequiredForCollectionReaderInRequests { - get { + internal static string ODataJsonLightInputContext_ItemTypeRequiredForCollectionReaderInRequests + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightInputContext_ItemTypeRequiredForCollectionReaderInRequests); } } @@ -3185,8 +3751,10 @@ internal static string ODataJsonLightInputContext_ItemTypeRequiredForCollectionR /// /// A string like "The required instance annotation 'odata.context' was not found at the beginning of a response payload." /// - internal static string ODataJsonLightDeserializer_ContextLinkNotFoundAsFirstProperty { - get { + internal static string ODataJsonLightDeserializer_ContextLinkNotFoundAsFirstProperty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeserializer_ContextLinkNotFoundAsFirstProperty); } } @@ -3194,22 +3762,26 @@ internal static string ODataJsonLightDeserializer_ContextLinkNotFoundAsFirstProp /// /// A string like "The annotation '{0}' was targeting the instance annotation '{1}'. Only the '{2}' annotation is allowed to target an instance annotation." /// - internal static string ODataJsonLightDeserializer_OnlyODataTypeAnnotationCanTargetInstanceAnnotation(object p0, object p1, object p2) { + internal static string ODataJsonLightDeserializer_OnlyODataTypeAnnotationCanTargetInstanceAnnotation(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeserializer_OnlyODataTypeAnnotationCanTargetInstanceAnnotation, p0, p1, p2); } /// /// A string like "The annotation '{0}' is found targeting the instance annotation '{1}'. However the value for the instance annotation '{1}' is not found immediately after. In JSON Light, an annotation targeting an instance annotation must be immediately followed by the value of the targeted instance annotation." /// - internal static string ODataJsonLightDeserializer_AnnotationTargetingInstanceAnnotationWithoutValue(object p0, object p1) { + internal static string ODataJsonLightDeserializer_AnnotationTargetingInstanceAnnotationWithoutValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeserializer_AnnotationTargetingInstanceAnnotationWithoutValue, p0, p1); } /// /// A string like "An attempt to write an entity reference link inside a navigation link after a resource set has been written inside the same navigation link in a request was detected. In JSON Light requests, all entity reference links inside a navigation link have to be written before all resource sets inside the same navigation link." /// - internal static string ODataJsonLightWriter_EntityReferenceLinkAfterResourceSetInRequest { - get { + internal static string ODataJsonLightWriter_EntityReferenceLinkAfterResourceSetInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightWriter_EntityReferenceLinkAfterResourceSetInRequest); } } @@ -3217,8 +3789,10 @@ internal static string ODataJsonLightWriter_EntityReferenceLinkAfterResourceSetI /// /// A string like "The ODataResourceSet.InstanceAnnotations collection must be empty for expanded resource sets. Custom instance annotations are not supported on expanded resource sets." /// - internal static string ODataJsonLightWriter_InstanceAnnotationNotSupportedOnExpandedResourceSet { - get { + internal static string ODataJsonLightWriter_InstanceAnnotationNotSupportedOnExpandedResourceSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightWriter_InstanceAnnotationNotSupportedOnExpandedResourceSet); } } @@ -3226,8 +3800,10 @@ internal static string ODataJsonLightWriter_InstanceAnnotationNotSupportedOnExpa /// /// A string like "Neither an expected type nor a type name in the OData object model was provided for a resource value. When writing a request payload, either an expected type or a type name has to be specified." /// - internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForResourceValueRequest { - get { + internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForResourceValueRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForResourceValueRequest); } } @@ -3235,8 +3811,10 @@ internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOr /// /// A string like "Neither an expected type nor a type name in the OData object model was provided for a collection property. When writing a request payload, either an expected type or a type name has to be specified." /// - internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForCollectionValueInRequest { - get { + internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForCollectionValueInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOrTypeNameSpecifiedForCollectionValueInRequest); } } @@ -3244,8 +3822,10 @@ internal static string ODataJsonLightPropertyAndValueSerializer_NoExpectedTypeOr /// /// A string like "When writing a JSON response, a user model must be specified and the entity set and entity type must be passed to the ODataMessageWriter.CreateODataResourceWriter method or the ODataResourceSerializationInfo must be set on the ODataResource or ODataResourceSet that is being written." /// - internal static string ODataResourceTypeContext_MetadataOrSerializationInfoMissing { - get { + internal static string ODataResourceTypeContext_MetadataOrSerializationInfoMissing + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceTypeContext_MetadataOrSerializationInfoMissing); } } @@ -3253,8 +3833,10 @@ internal static string ODataResourceTypeContext_MetadataOrSerializationInfoMissi /// /// A string like "When writing a JSON response in full metadata mode, a user model must be specified and the entity set and entity type must be passed to the ODataMessageWriter.CreateODataResourceWriter method or the ODataResource.TypeName must be set." /// - internal static string ODataResourceTypeContext_ODataResourceTypeNameMissing { - get { + internal static string ODataResourceTypeContext_ODataResourceTypeNameMissing + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceTypeContext_ODataResourceTypeNameMissing); } } @@ -3262,15 +3844,18 @@ internal static string ODataResourceTypeContext_ODataResourceTypeNameMissing { /// /// A string like "The base type '{0}' of the entity set specified for writing a payload is not assignable from the specified entity type '{1}'. When an entity type is specified it has to be the same or derived from the base type of the entity set." /// - internal static string ODataContextUriBuilder_ValidateDerivedType(object p0, object p1) { + internal static string ODataContextUriBuilder_ValidateDerivedType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_ValidateDerivedType, p0, p1); } /// /// A string like "The collection type name for the top level collection is unknown. When writing a response, the item type must be passed to the ODataMessageWriter.CreateODataCollectionWriter method or the ODataCollectionStartSerializationInfo must be set on the ODataCollectionStart." /// - internal static string ODataContextUriBuilder_TypeNameMissingForTopLevelCollection { - get { + internal static string ODataContextUriBuilder_TypeNameMissingForTopLevelCollection + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_TypeNameMissingForTopLevelCollection); } } @@ -3278,15 +3863,18 @@ internal static string ODataContextUriBuilder_TypeNameMissingForTopLevelCollecti /// /// A string like "Context URL for payload kind '{0}' is not supported." /// - internal static string ODataContextUriBuilder_UnsupportedPayloadKind(object p0) { + internal static string ODataContextUriBuilder_UnsupportedPayloadKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_UnsupportedPayloadKind, p0); } /// /// A string like "The stream value must be a property of an ODataResource instance." /// - internal static string ODataContextUriBuilder_StreamValueMustBePropertiesOfODataResource { - get { + internal static string ODataContextUriBuilder_StreamValueMustBePropertiesOfODataResource + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_StreamValueMustBePropertiesOfODataResource); } } @@ -3294,8 +3882,10 @@ internal static string ODataContextUriBuilder_StreamValueMustBePropertiesOfOData /// /// A string like "The navigationSource for resource or resource set is unknown or the Type is null. When writing a response, the navigation source or the type must be passed to the ODataMessageWriter.CreateODataResourceWriter/ODataMessageWriter.CreateODataResourceSetWriter method or the ODataResourceSerializationInfo must be set on the resource/resource set." /// - internal static string ODataContextUriBuilder_NavigationSourceOrTypeNameMissingForResourceOrResourceSet { - get { + internal static string ODataContextUriBuilder_NavigationSourceOrTypeNameMissingForResourceOrResourceSet + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_NavigationSourceOrTypeNameMissingForResourceOrResourceSet); } } @@ -3303,8 +3893,10 @@ internal static string ODataContextUriBuilder_NavigationSourceOrTypeNameMissingF /// /// A string like "The ODataMessageWriterSetting.ODataUri must be set when writing individual property." /// - internal static string ODataContextUriBuilder_ODataUriMissingForIndividualProperty { - get { + internal static string ODataContextUriBuilder_ODataUriMissingForIndividualProperty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_ODataUriMissingForIndividualProperty); } } @@ -3312,8 +3904,10 @@ internal static string ODataContextUriBuilder_ODataUriMissingForIndividualProper /// /// A string like "The type name for the top level property is unknown. When writing a response, the ODataValue must have a type name on itself or have a SerializationTypeNameAnnotation." /// - internal static string ODataContextUriBuilder_TypeNameMissingForProperty { - get { + internal static string ODataContextUriBuilder_TypeNameMissingForProperty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_TypeNameMissingForProperty); } } @@ -3321,43 +3915,50 @@ internal static string ODataContextUriBuilder_TypeNameMissingForProperty { /// /// A string like "The Path property '{0}' of ODataMessageWriterSetting.ODataUri must end with the navigation property which the contained elements being written belong to." /// - internal static string ODataContextUriBuilder_ODataPathInvalidForContainedElement(object p0) { + internal static string ODataContextUriBuilder_ODataPathInvalidForContainedElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataContextUriBuilder_ODataPathInvalidForContainedElement, p0); } /// /// A string like "The annotation '{0}' was found. This annotation is either not recognized or not expected at the current position." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedAnnotationProperties(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedAnnotationProperties(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedAnnotationProperties, p0); } /// /// A string like "The property '{0}' has a property annotation '{1}'. This annotation is either not recognized or not expected at the current position." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedPropertyAnnotation, p0, p1); } /// /// A string like "An OData property annotation '{0}' was found. This property annotation is either not recognized or not expected at the current position." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedODataPropertyAnnotation(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedODataPropertyAnnotation(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedODataPropertyAnnotation, p0); } /// /// A string like "A property with name '{0}' was found. This property is either not recognized or not expected at the current position." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedProperty(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedProperty, p0); } /// /// A string like "No top-level properties were found. A top-level property or collection in JSON Light must be represented as a JSON object with exactly one property which is not an annotation." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyPayload { - get { + internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyPayload + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyPayload); } } @@ -3365,43 +3966,50 @@ internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTopLeve /// /// A string like "A top-level property with name '{0}' was found in the payload; however, property and collection payloads must always have a top-level property with name '{1}'." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyName(object p0, object p1) { + internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyName(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_InvalidTopLevelPropertyName, p0, p1); } /// /// A string like "The 'odata.type' instance annotation value '{0}' is not a valid type name. The value of the 'odata.type' instance annotation must be a non-empty string." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTypeName(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_InvalidTypeName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_InvalidTypeName, p0); } /// /// A string like "One or more property annotations for property '{0}' were found in the top-level property or collection payload without the property to annotate. Top-level property and collection payloads must contain a single property, with optional annotations for this property." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyAnnotationWithoutProperty(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyAnnotationWithoutProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyAnnotationWithoutProperty, p0); } /// /// A string like "One or more property annotations for property '{0}' were found in the resource value without the property to annotate. Resource values must only contain property annotations for existing properties." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_ResourceValuePropertyAnnotationWithoutProperty(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_ResourceValuePropertyAnnotationWithoutProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_ResourceValuePropertyAnnotationWithoutProperty, p0); } /// /// A string like "A complex property with an '{0}' property annotation was found. Complex properties must not have the '{0}' property annotation, instead the '{0}' should be specified as an instance annotation in the complex value." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_ComplexValueWithPropertyTypeAnnotation(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_ComplexValueWithPropertyTypeAnnotation(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_ComplexValueWithPropertyTypeAnnotation, p0); } /// /// A string like "The 'odata.type' instance annotation in a resource object is not the first property of the object. In OData, the 'odata.type' instance annotation must be the first property of the resource object." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_ResourceTypeAnnotationNotFirst { - get { + internal static string ODataJsonLightPropertyAndValueDeserializer_ResourceTypeAnnotationNotFirst + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_ResourceTypeAnnotationNotFirst); } } @@ -3409,64 +4017,74 @@ internal static string ODataJsonLightPropertyAndValueDeserializer_ResourceTypeAn /// /// A string like "The property '{0}' has a property annotation '{1}'. Primitive, complex, collection or open properties can only have an 'odata.type' property annotation." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedDataPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedDataPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedDataPropertyAnnotation, p0, p1); } /// /// A string like "The property with name '{0}' was found after the data property with name '{1}'. If a type is specified for a data property, it must appear before the data property." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_TypePropertyAfterValueProperty(object p0, object p1) { + internal static string ODataJsonLightPropertyAndValueDeserializer_TypePropertyAfterValueProperty(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_TypePropertyAfterValueProperty, p0, p1); } /// /// A string like "An '{0}' annotation was read inside a JSON object representing a primitive value; type annotations for primitive values have to be property annotations of the owning property." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_ODataTypeAnnotationInPrimitiveValue(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_ODataTypeAnnotationInPrimitiveValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_ODataTypeAnnotationInPrimitiveValue, p0); } /// /// A string like "A top-level property with an invalid primitive null value was found. In OData, top-level properties with null value have to be serialized as JSON object with an '{0}' annotation that has the value '{1}'." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyWithPrimitiveNullValue(object p0, object p1) { + internal static string ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyWithPrimitiveNullValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_TopLevelPropertyWithPrimitiveNullValue, p0, p1); } /// /// A string like "Encountered a metadata reference property '{0}' in a scope other than a resource. In OData, a property name with a '#' character indicates a reference into the metadata and is only supported for describing operations bound to a resource." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedMetadataReferenceProperty(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_UnexpectedMetadataReferenceProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_UnexpectedMetadataReferenceProperty, p0); } /// /// A string like "The property with name '{0}' was found in a null payload. In OData, no properties or OData annotations can appear in a null payload." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_NoPropertyAndAnnotationAllowedInNullPayload(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_NoPropertyAndAnnotationAllowedInNullPayload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_NoPropertyAndAnnotationAllowedInNullPayload, p0); } /// /// A string like "A collection type of '{0}' was specified for a non-collection value." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_CollectionTypeNotExpected(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_CollectionTypeNotExpected(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_CollectionTypeNotExpected, p0); } /// /// A string like "A non-collection type of '{0}' was specified for a collection value." /// - internal static string ODataJsonLightPropertyAndValueDeserializer_CollectionTypeExpected(object p0) { + internal static string ODataJsonLightPropertyAndValueDeserializer_CollectionTypeExpected(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightPropertyAndValueDeserializer_CollectionTypeExpected, p0); } /// /// A string like "The value specified for the spatial property was not valid. You must specify a valid spatial value." /// - internal static string ODataJsonReaderCoreUtils_CannotReadSpatialPropertyValue { - get { + internal static string ODataJsonReaderCoreUtils_CannotReadSpatialPropertyValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonReaderCoreUtils_CannotReadSpatialPropertyValue); } } @@ -3474,8 +4092,10 @@ internal static string ODataJsonReaderCoreUtils_CannotReadSpatialPropertyValue { /// /// A string like "If a primitive value is representing a resource, the resource must be null." /// - internal static string ODataJsonLightReader_UnexpectedPrimitiveValueForODataResource { - get { + internal static string ODataJsonLightReader_UnexpectedPrimitiveValueForODataResource + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightReader_UnexpectedPrimitiveValueForODataResource); } } @@ -3483,29 +4103,34 @@ internal static string ODataJsonLightReader_UnexpectedPrimitiveValueForODataReso /// /// A string like "The '{0}' instance or property annotation has a null value. In OData, the '{0}' instance or property annotation must have a non-null string value." /// - internal static string ODataJsonLightReaderUtils_AnnotationWithNullValue(object p0) { + internal static string ODataJsonLightReaderUtils_AnnotationWithNullValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightReaderUtils_AnnotationWithNullValue, p0); } /// /// A string like "An '{0}' annotation was found with an invalid value. In OData, the only valid value for the '{0}' annotation is '{1}'." /// - internal static string ODataJsonLightReaderUtils_InvalidValueForODataNullAnnotation(object p0, object p1) { + internal static string ODataJsonLightReaderUtils_InvalidValueForODataNullAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightReaderUtils_InvalidValueForODataNullAnnotation, p0, p1); } /// /// A string like "The InstanceAnnotations collection has more than one instance annotations with the name '{0}'. All instance annotation names must be unique within the collection." /// - internal static string JsonLightInstanceAnnotationWriter_DuplicateAnnotationNameInCollection(object p0) { + internal static string JsonLightInstanceAnnotationWriter_DuplicateAnnotationNameInCollection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonLightInstanceAnnotationWriter_DuplicateAnnotationNameInCollection, p0); } /// /// A string like "A null metadata document URI was found in the payload. Metadata document URIs must not be null." /// - internal static string ODataJsonLightContextUriParser_NullMetadataDocumentUri { - get { + internal static string ODataJsonLightContextUriParser_NullMetadataDocumentUri + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_NullMetadataDocumentUri); } } @@ -3513,29 +4138,34 @@ internal static string ODataJsonLightContextUriParser_NullMetadataDocumentUri { /// /// A string like "The context URI '{0}' is not valid for the expected payload kind '{1}'." /// - internal static string ODataJsonLightContextUriParser_ContextUriDoesNotMatchExpectedPayloadKind(object p0, object p1) { + internal static string ODataJsonLightContextUriParser_ContextUriDoesNotMatchExpectedPayloadKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_ContextUriDoesNotMatchExpectedPayloadKind, p0, p1); } /// /// A string like "The context URI '{0}' references the entity set or type '{1}'. However, no entity set or type with name '{1}' is declared in the metadata." /// - internal static string ODataJsonLightContextUriParser_InvalidEntitySetNameOrTypeName(object p0, object p1) { + internal static string ODataJsonLightContextUriParser_InvalidEntitySetNameOrTypeName(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_InvalidEntitySetNameOrTypeName, p0, p1); } /// /// A string like "A '$select' query option was found for the payload kind '{0}'. In OData, a '$select' query option is only supported for payload kinds 'Resource' and 'ResourceSet'." /// - internal static string ODataJsonLightContextUriParser_InvalidPayloadKindWithSelectQueryOption(object p0) { + internal static string ODataJsonLightContextUriParser_InvalidPayloadKindWithSelectQueryOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_InvalidPayloadKindWithSelectQueryOption, p0); } /// /// A string like "No model was specified for the ODataMessageReader. A message reader requires a model for JSON Light payload to be specified in the ODataMessageReader constructor." /// - internal static string ODataJsonLightContextUriParser_NoModel { - get { + internal static string ODataJsonLightContextUriParser_NoModel + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_NoModel); } } @@ -3543,36 +4173,42 @@ internal static string ODataJsonLightContextUriParser_NoModel { /// /// A string like "The context URL '{0}' is invalid." /// - internal static string ODataJsonLightContextUriParser_InvalidContextUrl(object p0) { + internal static string ODataJsonLightContextUriParser_InvalidContextUrl(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_InvalidContextUrl, p0); } /// /// A string like "Last segment in context URL '{0}' should not be KeySegment." /// - internal static string ODataJsonLightContextUriParser_LastSegmentIsKeySegment(object p0) { + internal static string ODataJsonLightContextUriParser_LastSegmentIsKeySegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_LastSegmentIsKeySegment, p0); } /// /// A string like "The top level context URL '{0}' should be an absolute Uri." /// - internal static string ODataJsonLightContextUriParser_TopLevelContextUrlShouldBeAbsolute(object p0) { + internal static string ODataJsonLightContextUriParser_TopLevelContextUrlShouldBeAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightContextUriParser_TopLevelContextUrlShouldBeAbsolute, p0); } /// /// A string like "Invalid primitive value '{0}' for @removed annotation. @removed annotation must be a JSON object, optionally containing a 'reason' property." /// - internal static string ODataJsonLightResourceDeserializer_DeltaRemovedAnnotationMustBeObject(object p0) { + internal static string ODataJsonLightResourceDeserializer_DeltaRemovedAnnotationMustBeObject(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_DeltaRemovedAnnotationMustBeObject, p0); } /// /// A string like "The 'odata.type' instance annotation in a resource object is preceded by an invalid property. In OData, the 'odata.type' instance annotation must be either the first property in the JSON object or the second if the 'odata.context' instance annotation is present." /// - internal static string ODataJsonLightResourceDeserializer_ResourceTypeAnnotationNotFirst { - get { + internal static string ODataJsonLightResourceDeserializer_ResourceTypeAnnotationNotFirst + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_ResourceTypeAnnotationNotFirst); } } @@ -3580,15 +4216,18 @@ internal static string ODataJsonLightResourceDeserializer_ResourceTypeAnnotation /// /// A string like "The '{0}' instance annotation in a resource object is preceded by a property or property annotation. In OData, the '{0}' instance annotation must be before any property or property annotation in a resource object." /// - internal static string ODataJsonLightResourceDeserializer_ResourceInstanceAnnotationPrecededByProperty(object p0) { + internal static string ODataJsonLightResourceDeserializer_ResourceInstanceAnnotationPrecededByProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_ResourceInstanceAnnotationPrecededByProperty, p0); } /// /// A string like "Encountered a deleted entity when reading a non-delta response payload. Deleted entities are only supported in request payloads and delta responses." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedDeletedEntryInResponsePayload { - get { + internal static string ODataJsonLightResourceDeserializer_UnexpectedDeletedEntryInResponsePayload + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedDeletedEntryInResponsePayload); } } @@ -3596,211 +4235,242 @@ internal static string ODataJsonLightResourceDeserializer_UnexpectedDeletedEntry /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the start of the content of a resource set; however, a node of type 'StartArray' was expected." /// - internal static string ODataJsonLightResourceDeserializer_CannotReadResourceSetContentStart(object p0) { + internal static string ODataJsonLightResourceDeserializer_CannotReadResourceSetContentStart(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_CannotReadResourceSetContentStart, p0); } /// /// A string like "Did not find the required '{0}' property for the expected resource set." /// - internal static string ODataJsonLightResourceDeserializer_ExpectedResourceSetPropertyNotFound(object p0) { + internal static string ODataJsonLightResourceDeserializer_ExpectedResourceSetPropertyNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_ExpectedResourceSetPropertyNotFound, p0); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the entries of a typed resource set; however, a node of type 'StartObject' or 'EndArray', or a null value, was expected." /// - internal static string ODataJsonLightResourceDeserializer_InvalidNodeTypeForItemsInResourceSet(object p0) { + internal static string ODataJsonLightResourceDeserializer_InvalidNodeTypeForItemsInResourceSet(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_InvalidNodeTypeForItemsInResourceSet, p0); } /// /// A string like "A property annotation for a property with name '{0}' was found when reading a top-level resource set. No property annotations, only instance annotations are allowed when reading top-level resource sets." /// - internal static string ODataJsonLightResourceDeserializer_InvalidPropertyAnnotationInTopLevelResourceSet(object p0) { + internal static string ODataJsonLightResourceDeserializer_InvalidPropertyAnnotationInTopLevelResourceSet(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_InvalidPropertyAnnotationInTopLevelResourceSet, p0); } /// /// A string like "A property with name '{0}' was found when reading a top-level resource set. No properties other than the resource set property with name '{1}' are allowed." /// - internal static string ODataJsonLightResourceDeserializer_InvalidPropertyInTopLevelResourceSet(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_InvalidPropertyInTopLevelResourceSet(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_InvalidPropertyInTopLevelResourceSet, p0, p1); } /// /// A string like "A property '{0}' which only has property annotations in the payload but no property value is declared to be of type '{1}'. In OData, only navigation properties and named streams can be represented as properties without values." /// - internal static string ODataJsonLightResourceDeserializer_PropertyWithoutValueWithWrongType(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_PropertyWithoutValueWithWrongType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_PropertyWithoutValueWithWrongType, p0, p1); } /// /// A string like "A property '{0}' which only has property annotations in the payload but no property value is an open property. In OData, open property must be represented as a property with value." /// - internal static string ODataJsonLightResourceDeserializer_OpenPropertyWithoutValue(object p0) { + internal static string ODataJsonLightResourceDeserializer_OpenPropertyWithoutValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_OpenPropertyWithoutValue, p0); } /// /// A string like "A stream property {0} was found in a JSON Light request payload. Stream properties are only supported in responses." /// - internal static string ODataJsonLightResourceDeserializer_StreamPropertyInRequest(object p0) { + internal static string ODataJsonLightResourceDeserializer_StreamPropertyInRequest(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_StreamPropertyInRequest, p0); } /// /// A string like "The stream property '{0}' has a property annotation '{1}'. Stream property can only have the 'odata.mediaEditLink', 'odata.mediaReadLink', 'odata.mediaEtag' and 'odata.mediaContentType' property annotations." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedStreamPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedStreamPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedStreamPropertyAnnotation, p0, p1); } /// /// A string like "A stream property '{0}' has a value in the payload. In OData, stream property must not have a value, it must only use property annotations." /// - internal static string ODataJsonLightResourceDeserializer_StreamPropertyWithValue(object p0) { + internal static string ODataJsonLightResourceDeserializer_StreamPropertyWithValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_StreamPropertyWithValue, p0); } /// /// A string like "The navigation property '{0}' has a property annotation '{1}'. Deferred navigation links can only have the 'odata.navigationLink' and 'odata.associationLink' property annotations." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedDeferredLinkPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedDeferredLinkPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedDeferredLinkPropertyAnnotation, p0, p1); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the contents of the property '{1}'; however, a 'StartObject' node or 'PrimitiveValue' node with null value was expected." /// - internal static string ODataJsonLightResourceDeserializer_CannotReadSingletonNestedResource(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_CannotReadSingletonNestedResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_CannotReadSingletonNestedResource, p0, p1); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the contents of the property '{1}'; however, a 'StartArray' node was expected." /// - internal static string ODataJsonLightResourceDeserializer_CannotReadCollectionNestedResource(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_CannotReadCollectionNestedResource(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_CannotReadCollectionNestedResource, p0, p1); } /// /// A string like "A 'PrimitiveValue' node with non-null value was found when trying to read the value of the property '{0}'; however, a 'StartArray' node, a 'StartObject' node, or a 'PrimitiveValue' node with null value was expected." /// - internal static string ODataJsonLightResourceDeserializer_CannotReadNestedResource(object p0) { + internal static string ODataJsonLightResourceDeserializer_CannotReadNestedResource(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_CannotReadNestedResource, p0); } /// /// A string like "The navigation property '{0}' has a property annotation '{1}'. Expanded resource navigation links can only have the 'odata.context', 'odata.navigationLink' and 'odata.associationLink' property annotations." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedExpandedSingletonNavigationLinkPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedExpandedSingletonNavigationLinkPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedExpandedSingletonNavigationLinkPropertyAnnotation, p0, p1); } /// /// A string like "The navigation property '{0}' has a property annotation '{1}'. Expanded resource set navigation links can only have the 'odata.context', 'odata.navigationLink', 'odata.associationLink' and 'odata.nextLink' property annotations" /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedExpandedCollectionNavigationLinkPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedExpandedCollectionNavigationLinkPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedExpandedCollectionNavigationLinkPropertyAnnotation, p0, p1); } /// /// A string like "The property '{0}' has a property annotation '{1}'. The complex collection property can only have the 'odata.count', 'odata.type' and 'odata.nextLink' property annotations." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedComplexCollectionPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedComplexCollectionPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedComplexCollectionPropertyAnnotation, p0, p1); } /// /// A string like "Multiple property annotations '{0}' were found when reading the nested resource '{1}'. Only a single property annotation '{0}' can be specified for a nested resource." /// - internal static string ODataJsonLightResourceDeserializer_DuplicateNestedResourceSetAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_DuplicateNestedResourceSetAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_DuplicateNestedResourceSetAnnotation, p0, p1); } /// /// A string like "A property annotation '{0}' was found after the property '{1}' it is annotating. Only the 'odata.nextLink' property annotation can be used after the property it is annotating." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedPropertyAnnotationAfterExpandedResourceSet(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedPropertyAnnotationAfterExpandedResourceSet(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedPropertyAnnotationAfterExpandedResourceSet, p0, p1); } /// /// A string like "The navigation property '{0}' has a property annotation '{1}'. Navigation links in request payloads can only have the '{2}' property annotation." /// - internal static string ODataJsonLightResourceDeserializer_UnexpectedNavigationLinkInRequestPropertyAnnotation(object p0, object p1, object p2) { + internal static string ODataJsonLightResourceDeserializer_UnexpectedNavigationLinkInRequestPropertyAnnotation(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_UnexpectedNavigationLinkInRequestPropertyAnnotation, p0, p1, p2); } /// /// A string like "The resource reference navigation property '{0}' has a property annotation '{1}' with an array value. Resource reference navigation properties can only have a property annotation '{1}' with a string value." /// - internal static string ODataJsonLightResourceDeserializer_ArrayValueForSingletonBindPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_ArrayValueForSingletonBindPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_ArrayValueForSingletonBindPropertyAnnotation, p0, p1); } /// /// A string like "The resource set reference navigation property '{0}' has a property annotation '{1}' with a string value. Resource set reference navigation properties can only have a property annotation '{1}' with an array value." /// - internal static string ODataJsonLightResourceDeserializer_StringValueForCollectionBindPropertyAnnotation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_StringValueForCollectionBindPropertyAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_StringValueForCollectionBindPropertyAnnotation, p0, p1); } /// /// A string like "The value of '{0}' property annotation is an empty array. The '{0}' property annotation must have a non-empty array as its value." /// - internal static string ODataJsonLightResourceDeserializer_EmptyBindArray(object p0) { + internal static string ODataJsonLightResourceDeserializer_EmptyBindArray(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_EmptyBindArray, p0); } /// /// A string like "The navigation property '{0}' has no expanded value and no '{1}' property annotation. Navigation property in request without expanded value must have the '{1}' property annotation." /// - internal static string ODataJsonLightResourceDeserializer_NavigationPropertyWithoutValueAndEntityReferenceLink(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_NavigationPropertyWithoutValueAndEntityReferenceLink(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_NavigationPropertyWithoutValueAndEntityReferenceLink, p0, p1); } /// /// A string like "The resource reference navigation property '{0}' has both the '{1}' property annotation as well as a value. Resource reference navigation properties can have either '{1}' property annotations or values, but not both." /// - internal static string ODataJsonLightResourceDeserializer_SingletonNavigationPropertyWithBindingAndValue(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_SingletonNavigationPropertyWithBindingAndValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_SingletonNavigationPropertyWithBindingAndValue, p0, p1); } /// /// A string like "An undeclared property '{0}' which only has property annotations in the payload but no property value was found in the payload. In OData, only declared navigation properties and declared named streams can be represented as properties without values." /// - internal static string ODataJsonLightResourceDeserializer_PropertyWithoutValueWithUnknownType(object p0) { + internal static string ODataJsonLightResourceDeserializer_PropertyWithoutValueWithUnknownType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_PropertyWithoutValueWithUnknownType, p0); } /// /// A string like "Encountered the operation '{0}' which can not be resolved to an ODataAction or ODataFunction." /// - internal static string ODataJsonLightResourceDeserializer_OperationIsNotActionOrFunction(object p0) { + internal static string ODataJsonLightResourceDeserializer_OperationIsNotActionOrFunction(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_OperationIsNotActionOrFunction, p0); } /// /// A string like "Multiple '{0}' properties were found for an operation '{1}'. In OData, an operation can have at most one '{0}' property." /// - internal static string ODataJsonLightResourceDeserializer_MultipleOptionalPropertiesInOperation(object p0, object p1) { + internal static string ODataJsonLightResourceDeserializer_MultipleOptionalPropertiesInOperation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_MultipleOptionalPropertiesInOperation, p0, p1); } /// /// A string like "Multiple target bindings encountered for the operation '{0}' but the 'target' property was not found in an operation value. To differentiate between multiple target bindings, each operation value must have exactly one 'target' property." /// - internal static string ODataJsonLightResourceDeserializer_OperationMissingTargetProperty(object p0) { + internal static string ODataJsonLightResourceDeserializer_OperationMissingTargetProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_OperationMissingTargetProperty, p0); } /// /// A string like "A metadata reference property was found in a JSON Light request payload. Metadata reference properties are only supported in responses." /// - internal static string ODataJsonLightResourceDeserializer_MetadataReferencePropertyInRequest { - get { + internal static string ODataJsonLightResourceDeserializer_MetadataReferencePropertyInRequest + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceDeserializer_MetadataReferencePropertyInRequest); } } @@ -3808,113 +4478,130 @@ internal static string ODataJsonLightResourceDeserializer_MetadataReferencePrope /// /// A string like "The '{0}' property of the operation '{1}' cannot have a null value." /// - internal static string ODataJsonLightValidationUtils_OperationPropertyCannotBeNull(object p0, object p1) { + internal static string ODataJsonLightValidationUtils_OperationPropertyCannotBeNull(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightValidationUtils_OperationPropertyCannotBeNull, p0, p1); } /// /// A string like "Encountered a reference into metadata '{0}' which does not refer to the known metadata url '{1}'. Open metadata reference properties are not supported." /// - internal static string ODataJsonLightValidationUtils_OpenMetadataReferencePropertyNotSupported(object p0, object p1) { + internal static string ODataJsonLightValidationUtils_OpenMetadataReferencePropertyNotSupported(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightValidationUtils_OpenMetadataReferencePropertyNotSupported, p0, p1); } /// /// A string like "A relative URI value '{0}' was specified in the payload, but the {1} annotation is missing from the payload. The payload must only contain absolute URIs or the {1} annotation must be on the payload." /// - internal static string ODataJsonLightDeserializer_RelativeUriUsedWithouODataMetadataAnnotation(object p0, object p1) { + internal static string ODataJsonLightDeserializer_RelativeUriUsedWithouODataMetadataAnnotation(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightDeserializer_RelativeUriUsedWithouODataMetadataAnnotation, p0, p1); } /// /// A string like "The {0} annotation is missing from the payload." /// - internal static string ODataJsonLightResourceMetadataContext_MetadataAnnotationMustBeInPayload(object p0) { + internal static string ODataJsonLightResourceMetadataContext_MetadataAnnotationMustBeInPayload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightResourceMetadataContext_MetadataAnnotationMustBeInPayload, p0); } /// /// A string like "When trying to read the start of a collection, the expected collection property with name '{0}' was not found." /// - internal static string ODataJsonLightCollectionDeserializer_ExpectedCollectionPropertyNotFound(object p0) { + internal static string ODataJsonLightCollectionDeserializer_ExpectedCollectionPropertyNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightCollectionDeserializer_ExpectedCollectionPropertyNotFound, p0); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the items of a collection; however, a 'StartArray' node was expected." /// - internal static string ODataJsonLightCollectionDeserializer_CannotReadCollectionContentStart(object p0) { + internal static string ODataJsonLightCollectionDeserializer_CannotReadCollectionContentStart(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightCollectionDeserializer_CannotReadCollectionContentStart, p0); } /// /// A string like "A property or annotation for a property with name '{0}' or an instance annotation with name '{0}' was found after reading the items of a top-level collection. No additional properties or annotations are allowed after the collection property." /// - internal static string ODataJsonLightCollectionDeserializer_CannotReadCollectionEnd(object p0) { + internal static string ODataJsonLightCollectionDeserializer_CannotReadCollectionEnd(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightCollectionDeserializer_CannotReadCollectionEnd, p0); } /// /// A string like "An 'odata.type' annotation with value '{0}' was found for a top-level collection payload; however, top-level collections must specify a collection type." /// - internal static string ODataJsonLightCollectionDeserializer_InvalidCollectionTypeName(object p0) { + internal static string ODataJsonLightCollectionDeserializer_InvalidCollectionTypeName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightCollectionDeserializer_InvalidCollectionTypeName, p0); } /// /// A string like "A node of type '{0}' was read from the JSON reader when trying to read the start of an entity reference link. In JSON Light, entity reference links must be objects." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkMustBeObjectValue(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkMustBeObjectValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkMustBeObjectValue, p0); } /// /// A string like "A property annotation with name '{0}' was detected when reading an entity reference link; entity reference links do not support property annotations." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLink(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLink(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLink, p0); } /// /// A string like "An instance annotation with name '{0}' or a property annotation for the property with name '{0}' was found when reading an entity reference link. No OData property or instance annotations are allowed when reading entity reference links." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidAnnotationInEntityReferenceLink(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidAnnotationInEntityReferenceLink(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_InvalidAnnotationInEntityReferenceLink, p0); } /// /// A string like "A property with name '{0}' was found when reading an entity reference link. No properties other than the entity reference link property with name '{1}' are allowed." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyInEntityReferenceLink(object p0, object p1) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyInEntityReferenceLink(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyInEntityReferenceLink, p0, p1); } /// /// A string like "The required property '{0}' for an entity reference link was not found." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_MissingEntityReferenceLinkProperty(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_MissingEntityReferenceLinkProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_MissingEntityReferenceLinkProperty, p0); } /// /// A string like "Multiple '{0}' properties were found in an entity reference link object; however, a single '{0}' property was expected." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_MultipleUriPropertiesInEntityReferenceLink(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_MultipleUriPropertiesInEntityReferenceLink(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_MultipleUriPropertiesInEntityReferenceLink, p0); } /// /// A string like "The '{0}' property of an entity reference link object cannot have a null value." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkUrlCannotBeNull(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkUrlCannotBeNull(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_EntityReferenceLinkUrlCannotBeNull, p0); } /// /// A string like "A property annotation was found for entity reference links; however, entity reference links only support instance annotations." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLinks { - get { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLinks + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnnotationForEntityReferenceLinks); } } @@ -3922,120 +4609,138 @@ internal static string ODataJsonLightEntityReferenceLinkDeserializer_PropertyAnn /// /// A string like "A property with name '{0}' or a property annotation for a property with name '{0}' was found when trying to read a collection of entity reference links; however, a property with name '{1}' was expected." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidEntityReferenceLinksPropertyFound(object p0, object p1) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidEntityReferenceLinksPropertyFound(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_InvalidEntityReferenceLinksPropertyFound, p0, p1); } /// /// A string like "A property annotation for a property with name '{0}' was found when reading an entity reference links payload. No property annotations, only instance annotations are allowed when reading entity reference links." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyAnnotationInEntityReferenceLinks(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyAnnotationInEntityReferenceLinks(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_InvalidPropertyAnnotationInEntityReferenceLinks, p0); } /// /// A string like "Did not find the required '{0}' property for an entity reference links payload." /// - internal static string ODataJsonLightEntityReferenceLinkDeserializer_ExpectedEntityReferenceLinksPropertyNotFound(object p0) { + internal static string ODataJsonLightEntityReferenceLinkDeserializer_ExpectedEntityReferenceLinksPropertyNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightEntityReferenceLinkDeserializer_ExpectedEntityReferenceLinksPropertyNotFound, p0); } /// /// A string like "The '{0}' property of an operation '{1}' in '{2}' cannot have a null value." /// - internal static string ODataJsonOperationsDeserializerUtils_OperationPropertyCannotBeNull(object p0, object p1, object p2) { + internal static string ODataJsonOperationsDeserializerUtils_OperationPropertyCannotBeNull(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonOperationsDeserializerUtils_OperationPropertyCannotBeNull, p0, p1, p2); } /// /// A string like "Found a node of type '{1}' when starting to read the '{0}' operations value, however a node of type 'StartObject' was expected. The '{0}' operations value must have an object value." /// - internal static string ODataJsonOperationsDeserializerUtils_OperationsPropertyMustHaveObjectValue(object p0, object p1) { + internal static string ODataJsonOperationsDeserializerUtils_OperationsPropertyMustHaveObjectValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonOperationsDeserializerUtils_OperationsPropertyMustHaveObjectValue, p0, p1); } /// /// A string like "Multiple '{0}' properties were found in a service document. In OData, a service document must have exactly one '{0}' property." /// - internal static string ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocument(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocument(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocument, p0); } /// /// A string like "Multiple '{0}' properties were found in a service document element. In OData, a service document element must have exactly one '{0}' property." /// - internal static string ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocumentElement(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocumentElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_DuplicatePropertiesInServiceDocumentElement, p0); } /// /// A string like "No '{0}' property was found for a service document. In OData, a service document must have exactly one '{0}' property." /// - internal static string ODataJsonLightServiceDocumentDeserializer_MissingValuePropertyInServiceDocument(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_MissingValuePropertyInServiceDocument(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_MissingValuePropertyInServiceDocument, p0); } /// /// A string like "Encountered a service document element without a '{0}' property. In service documents, service document elements must contain a '{0}' property." /// - internal static string ODataJsonLightServiceDocumentDeserializer_MissingRequiredPropertyInServiceDocumentElement(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_MissingRequiredPropertyInServiceDocumentElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_MissingRequiredPropertyInServiceDocumentElement, p0); } /// /// A string like "An unrecognized property annotation '{0}' was found in a '{1}' object in a service document. OData property annotations are not allowed in workspaces." /// - internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocument(object p0, object p1) { + internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocument(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocument, p0, p1); } /// /// A string like "An unrecognized instance annotation '{0}' was found in a '{1}' object in a service document. OData instance annotations are not allowed in workspaces." /// - internal static string ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocument(object p0, object p1) { + internal static string ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocument(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocument, p0, p1); } /// /// A string like "An unrecognized property annotation '{0}' was found in a service document element. OData property annotations are not allowed in service document elements." /// - internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocumentElement(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocumentElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationInServiceDocumentElement, p0); } /// /// A string like "An unrecognized instance annotation '{0}' was found in a service document element. OData instance annotations are not allowed in service document elements." /// - internal static string ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocumentElement(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocumentElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_InstanceAnnotationInServiceDocumentElement, p0); } /// /// A string like "Encountered unexpected property '{0}' in a service document element. In service documents, service document element may only have '{1}' and '{2}' properties." /// - internal static string ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocumentElement(object p0, object p1, object p2) { + internal static string ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocumentElement(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocumentElement, p0, p1, p2); } /// /// A string like "Encountered unexpected property '{0}' in a service document. The top level object of a service document may only have a '{1}' property." /// - internal static string ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocument(object p0, object p1) { + internal static string ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocument(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_UnexpectedPropertyInServiceDocument, p0, p1); } /// /// A string like "Encountered a property annotation for the property '{0}' which wasn't immediately followed by the property. Property annotations must occur directly before the property being annotated." /// - internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationWithoutProperty(object p0) { + internal static string ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationWithoutProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightServiceDocumentDeserializer_PropertyAnnotationWithoutProperty, p0); } /// /// A string like "An OData property annotation was found for a parameter payload; however, parameter payloads do not support OData property annotations." /// - internal static string ODataJsonLightParameterDeserializer_PropertyAnnotationForParameters { - get { + internal static string ODataJsonLightParameterDeserializer_PropertyAnnotationForParameters + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightParameterDeserializer_PropertyAnnotationForParameters); } } @@ -4043,36 +4748,42 @@ internal static string ODataJsonLightParameterDeserializer_PropertyAnnotationFor /// /// A string like "One or more property annotations for property '{0}' were found in a parameter payload without the property to annotate. Parameter payloads must not contain property annotations for properties that are not in the payload." /// - internal static string ODataJsonLightParameterDeserializer_PropertyAnnotationWithoutPropertyForParameters(object p0) { + internal static string ODataJsonLightParameterDeserializer_PropertyAnnotationWithoutPropertyForParameters(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightParameterDeserializer_PropertyAnnotationWithoutPropertyForParameters, p0); } /// /// A string like "The parameter '{0}' is of the '{1}' primitive type, which is not supported in JSON Light." /// - internal static string ODataJsonLightParameterDeserializer_UnsupportedPrimitiveParameterType(object p0, object p1) { + internal static string ODataJsonLightParameterDeserializer_UnsupportedPrimitiveParameterType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightParameterDeserializer_UnsupportedPrimitiveParameterType, p0, p1); } /// /// A string like "When trying to read a null collection parameter value in JSON Light, a node of type '{0}' with the value '{1}' was read from the JSON reader; however, a primitive 'null' value was expected." /// - internal static string ODataJsonLightParameterDeserializer_NullCollectionExpected(object p0, object p1) { + internal static string ODataJsonLightParameterDeserializer_NullCollectionExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightParameterDeserializer_NullCollectionExpected, p0, p1); } /// /// A string like "The parameter '{0}' is of an unsupported type kind '{1}'. Only primitive, enum, complex, primitive collection, enum collection and complex collection types are supported." /// - internal static string ODataJsonLightParameterDeserializer_UnsupportedParameterTypeKind(object p0, object p1) { + internal static string ODataJsonLightParameterDeserializer_UnsupportedParameterTypeKind(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightParameterDeserializer_UnsupportedParameterTypeKind, p0, p1); } /// /// A string like "When parsing a select clause a '*' segment was found before last segment of a property path. In OData, a '*' segment can only appear as last segment of a property path." /// - internal static string SelectedPropertiesNode_StarSegmentNotLastSegment { - get { + internal static string SelectedPropertiesNode_StarSegmentNotLastSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectedPropertiesNode_StarSegmentNotLastSegment); } } @@ -4080,8 +4791,10 @@ internal static string SelectedPropertiesNode_StarSegmentNotLastSegment { /// /// A string like "When parsing a select clause a '*' segment was found immediately after a type segment in a property path. In OData, a '*' segment cannot appear following a type segment." /// - internal static string SelectedPropertiesNode_StarSegmentAfterTypeSegment { - get { + internal static string SelectedPropertiesNode_StarSegmentAfterTypeSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectedPropertiesNode_StarSegmentAfterTypeSegment); } } @@ -4089,92 +4802,106 @@ internal static string SelectedPropertiesNode_StarSegmentAfterTypeSegment { /// /// A string like "An OData property annotation '{0}' was found in an error payload; however, error payloads do not support OData property annotations." /// - internal static string ODataJsonLightErrorDeserializer_PropertyAnnotationNotAllowedInErrorPayload(object p0) { + internal static string ODataJsonLightErrorDeserializer_PropertyAnnotationNotAllowedInErrorPayload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightErrorDeserializer_PropertyAnnotationNotAllowedInErrorPayload, p0); } /// /// A string like "An OData instance annotation '{0}' was found in an error payload; however, error payloads do not support OData instance annotations." /// - internal static string ODataJsonLightErrorDeserializer_InstanceAnnotationNotAllowedInErrorPayload(object p0) { + internal static string ODataJsonLightErrorDeserializer_InstanceAnnotationNotAllowedInErrorPayload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightErrorDeserializer_InstanceAnnotationNotAllowedInErrorPayload, p0); } /// /// A string like "One or more property annotations for property '{0}' were found in an error payload without the property to annotate. Error payloads must not contain property annotations for properties that are not in the payload." /// - internal static string ODataJsonLightErrorDeserializer_PropertyAnnotationWithoutPropertyForError(object p0) { + internal static string ODataJsonLightErrorDeserializer_PropertyAnnotationWithoutPropertyForError(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightErrorDeserializer_PropertyAnnotationWithoutPropertyForError, p0); } /// /// A string like "A property with name '{0}' was found in the error value of a top-level error. In OData, a top-level error value can only have properties with name 'code', 'message', or 'innererror', or custom instance annotations." /// - internal static string ODataJsonLightErrorDeserializer_TopLevelErrorValueWithInvalidProperty(object p0) { + internal static string ODataJsonLightErrorDeserializer_TopLevelErrorValueWithInvalidProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightErrorDeserializer_TopLevelErrorValueWithInvalidProperty, p0); } /// /// A string like "The entity type '{0}' has no key properties. Entity types must define at least one key property." /// - internal static string ODataConventionalUriBuilder_EntityTypeWithNoKeyProperties(object p0) { + internal static string ODataConventionalUriBuilder_EntityTypeWithNoKeyProperties(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataConventionalUriBuilder_EntityTypeWithNoKeyProperties, p0); } /// /// A string like "The key property '{0}' on type '{1}' has a null value. Key properties must not have null values." /// - internal static string ODataConventionalUriBuilder_NullKeyValue(object p0, object p1) { + internal static string ODataConventionalUriBuilder_NullKeyValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataConventionalUriBuilder_NullKeyValue, p0, p1); } /// /// A string like "An ODataResource of type '{0}' is found without key properties. When writing without a user model, each resource must contain at least one property whose 'ODataProperty.SerializationInfo.PropertyKind' set to 'ODataPropertyKind.Key'. When writing with a user model, the entity type '{0}' defined in the model must define at least one key property." /// - internal static string ODataResourceMetadataContext_EntityTypeWithNoKeyProperties(object p0) { + internal static string ODataResourceMetadataContext_EntityTypeWithNoKeyProperties(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceMetadataContext_EntityTypeWithNoKeyProperties, p0); } /// /// A string like "The key property '{0}' on type '{1}' has a null value. Key properties must not have null values." /// - internal static string ODataResourceMetadataContext_NullKeyValue(object p0, object p1) { + internal static string ODataResourceMetadataContext_NullKeyValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceMetadataContext_NullKeyValue, p0, p1); } /// /// A string like "The property '{0}' on type '{1}' is a non-primitive value. All key and etag properties must be of primitive types." /// - internal static string ODataResourceMetadataContext_KeyOrETagValuesMustBePrimitiveValues(object p0, object p1) { + internal static string ODataResourceMetadataContext_KeyOrETagValuesMustBePrimitiveValues(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceMetadataContext_KeyOrETagValuesMustBePrimitiveValues, p0, p1); } /// /// A string like "The value of a property '{0}' in ODataResource cannot be of type ODataResourceValue or collection of ODataResourceValue." /// - internal static string ODataResource_PropertyValueCannotBeODataResourceValue(object p0) { + internal static string ODataResource_PropertyValueCannotBeODataResourceValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResource_PropertyValueCannotBeODataResourceValue, p0); } /// /// A string like "The primitive property '{0}' on type '{1}' has a value which is not a primitive value." /// - internal static string EdmValueUtils_NonPrimitiveValue(object p0, object p1) { + internal static string EdmValueUtils_NonPrimitiveValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_NonPrimitiveValue, p0, p1); } /// /// A string like "The entity instance value of type '{0}' doesn't have a value for property '{1}'. To compute an entity's metadata, its key and concurrency-token property values must be provided." /// - internal static string EdmValueUtils_PropertyDoesntExist(object p0, object p1) { + internal static string EdmValueUtils_PropertyDoesntExist(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.EdmValueUtils_PropertyDoesntExist, p0, p1); } /// /// A string like "Cannot create an ODataPrimitiveValue from null; use ODataNullValue instead." /// - internal static string ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromNull { - get { + internal static string ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromNull); } } @@ -4182,36 +4909,42 @@ internal static string ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromNu /// /// A string like "An ODataPrimitiveValue was instantiated with a value of type '{0}'. ODataPrimitiveValue can only wrap values which can be represented as primitive EDM types." /// - internal static string ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromUnsupportedValueType(object p0) { + internal static string ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromUnsupportedValueType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataPrimitiveValue_CannotCreateODataPrimitiveValueFromUnsupportedValueType, p0); } /// /// A string like "'{0}' is an invalid instance annotation name. An instance annotation name must contain a period that is not at the start or end of the name." /// - internal static string ODataInstanceAnnotation_NeedPeriodInName(object p0) { + internal static string ODataInstanceAnnotation_NeedPeriodInName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataInstanceAnnotation_NeedPeriodInName, p0); } /// /// A string like "'{0}' is a reserved instance annotation name because it starts with '{1}'. Reserved names are not allowed for custom instance annotations." /// - internal static string ODataInstanceAnnotation_ReservedNamesNotAllowed(object p0, object p1) { + internal static string ODataInstanceAnnotation_ReservedNamesNotAllowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataInstanceAnnotation_ReservedNamesNotAllowed, p0, p1); } /// /// A string like "'{0}' is an invalid instance annotation name." /// - internal static string ODataInstanceAnnotation_BadTermName(object p0) { + internal static string ODataInstanceAnnotation_BadTermName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataInstanceAnnotation_BadTermName, p0); } /// /// A string like "The value of an instance annotation cannot be of type ODataStreamReferenceValue." /// - internal static string ODataInstanceAnnotation_ValueCannotBeODataStreamReferenceValue { - get { + internal static string ODataInstanceAnnotation_ValueCannotBeODataStreamReferenceValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataInstanceAnnotation_ValueCannotBeODataStreamReferenceValue); } } @@ -4219,8 +4952,10 @@ internal static string ODataInstanceAnnotation_ValueCannotBeODataStreamReference /// /// A string like "A type name was not provided for an instance of ODataCollectionValue." /// - internal static string ODataJsonLightValueSerializer_MissingTypeNameOnCollection { - get { + internal static string ODataJsonLightValueSerializer_MissingTypeNameOnCollection + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightValueSerializer_MissingTypeNameOnCollection); } } @@ -4228,8 +4963,10 @@ internal static string ODataJsonLightValueSerializer_MissingTypeNameOnCollection /// /// A string like "A raw value was not provided for an instance of ODataUntypedValue." /// - internal static string ODataJsonLightValueSerializer_MissingRawValueOnUntyped { - get { + internal static string ODataJsonLightValueSerializer_MissingRawValueOnUntyped + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataJsonLightValueSerializer_MissingRawValueOnUntyped); } } @@ -4237,8 +4974,10 @@ internal static string ODataJsonLightValueSerializer_MissingRawValueOnUntyped { /// /// A string like "Encountered an 'annotation' element without a 'term' attribute. All 'annotation' elements must have a 'term' attribute." /// - internal static string AtomInstanceAnnotation_MissingTermAttributeOnAnnotationElement { - get { + internal static string AtomInstanceAnnotation_MissingTermAttributeOnAnnotationElement + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AtomInstanceAnnotation_MissingTermAttributeOnAnnotationElement); } } @@ -4246,22 +4985,26 @@ internal static string AtomInstanceAnnotation_MissingTermAttributeOnAnnotationEl /// /// A string like "The value of the 'type' attribute on an 'annotation' element was '{0}', which is incompatible with the '{1}' attribute." /// - internal static string AtomInstanceAnnotation_AttributeValueNotationUsedWithIncompatibleType(object p0, object p1) { + internal static string AtomInstanceAnnotation_AttributeValueNotationUsedWithIncompatibleType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AtomInstanceAnnotation_AttributeValueNotationUsedWithIncompatibleType, p0, p1); } /// /// A string like "Encountered the attribute '{0}' on a non-empty 'annotation' element. If attribute value notation is used to specify the annotation's value, then there can be no body to the element." /// - internal static string AtomInstanceAnnotation_AttributeValueNotationUsedOnNonEmptyElement(object p0) { + internal static string AtomInstanceAnnotation_AttributeValueNotationUsedOnNonEmptyElement(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AtomInstanceAnnotation_AttributeValueNotationUsedOnNonEmptyElement, p0); } /// /// A string like "Encountered an 'annotation' element with more than one attribute from following set: 'int', 'string', 'decimal', 'float', and 'bool'. Only one such attribute may appear on an 'annotation' element." /// - internal static string AtomInstanceAnnotation_MultipleAttributeValueNotationAttributes { - get { + internal static string AtomInstanceAnnotation_MultipleAttributeValueNotationAttributes + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AtomInstanceAnnotation_MultipleAttributeValueNotationAttributes); } } @@ -4269,43 +5012,50 @@ internal static string AtomInstanceAnnotation_MultipleAttributeValueNotationAttr /// /// A string like "The pattern '{0}' is not a valid pattern to match an annotation. It must contain at least one '.' separating the namespace and the name segments of an annotation." /// - internal static string AnnotationFilterPattern_InvalidPatternMissingDot(object p0) { + internal static string AnnotationFilterPattern_InvalidPatternMissingDot(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AnnotationFilterPattern_InvalidPatternMissingDot, p0); } /// /// A string like "The pattern '{0}' is not a valid pattern to match an annotation. It must not contain a namespace or name segment that is empty." /// - internal static string AnnotationFilterPattern_InvalidPatternEmptySegment(object p0) { + internal static string AnnotationFilterPattern_InvalidPatternEmptySegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AnnotationFilterPattern_InvalidPatternEmptySegment, p0); } /// /// A string like "The pattern '{0}' is not a supported pattern to match an annotation. It must not contain '*' as part of a segment." /// - internal static string AnnotationFilterPattern_InvalidPatternWildCardInSegment(object p0) { + internal static string AnnotationFilterPattern_InvalidPatternWildCardInSegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AnnotationFilterPattern_InvalidPatternWildCardInSegment, p0); } /// /// A string like "The pattern '{0}' is not a supported pattern to match an annotation. '*' must be the last segment of the pattern." /// - internal static string AnnotationFilterPattern_InvalidPatternWildCardMustBeInLastSegment(object p0) { + internal static string AnnotationFilterPattern_InvalidPatternWildCardMustBeInLastSegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AnnotationFilterPattern_InvalidPatternWildCardMustBeInLastSegment, p0); } /// /// A string like "The specified URI '{0}' must be absolute." /// - internal static string SyntacticTree_UriMustBeAbsolute(object p0) { + internal static string SyntacticTree_UriMustBeAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_UriMustBeAbsolute, p0); } /// /// A string like "The maximum depth setting must be a number greater than zero." /// - internal static string SyntacticTree_MaxDepthInvalid { - get { + internal static string SyntacticTree_MaxDepthInvalid + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_MaxDepthInvalid); } } @@ -4313,57 +5063,66 @@ internal static string SyntacticTree_MaxDepthInvalid { /// /// A string like "Invalid value '{0}' for $skip query option found. The $skip query option requires a non-negative integer value." /// - internal static string SyntacticTree_InvalidSkipQueryOptionValue(object p0) { + internal static string SyntacticTree_InvalidSkipQueryOptionValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_InvalidSkipQueryOptionValue, p0); } /// /// A string like "Invalid value '{0}' for $top query option found. The $top query option requires a non-negative integer value." /// - internal static string SyntacticTree_InvalidTopQueryOptionValue(object p0) { + internal static string SyntacticTree_InvalidTopQueryOptionValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_InvalidTopQueryOptionValue, p0); } /// /// A string like "Invalid value '{0}' for $count query option found. Valid values are '{1}'." /// - internal static string SyntacticTree_InvalidCountQueryOptionValue(object p0, object p1) { + internal static string SyntacticTree_InvalidCountQueryOptionValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_InvalidCountQueryOptionValue, p0, p1); } /// /// A string like "Invalid value '{0}' for $index query option found. The $index query option requires an integer value." /// - internal static string SyntacticTree_InvalidIndexQueryOptionValue(object p0) { + internal static string SyntacticTree_InvalidIndexQueryOptionValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SyntacticTree_InvalidIndexQueryOptionValue, p0); } /// /// A string like "Query option '{0}' was specified more than once, but it must be specified at most once." /// - internal static string QueryOptionUtils_QueryParameterMustBeSpecifiedOnce(object p0) { + internal static string QueryOptionUtils_QueryParameterMustBeSpecifiedOnce(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.QueryOptionUtils_QueryParameterMustBeSpecifiedOnce, p0); } /// /// A string like "The CLR literal of type '{0}' is not supported to be written as a Uri part." /// - internal static string UriBuilder_NotSupportedClrLiteral(object p0) { + internal static string UriBuilder_NotSupportedClrLiteral(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriBuilder_NotSupportedClrLiteral, p0); } /// /// A string like "QueryToken '{0}' is not supported to be written as a Uri part." /// - internal static string UriBuilder_NotSupportedQueryToken(object p0) { + internal static string UriBuilder_NotSupportedQueryToken(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriBuilder_NotSupportedQueryToken, p0); } /// /// A string like "Recursion depth exceeded allowed limit." /// - internal static string UriQueryExpressionParser_TooDeep { - get { + internal static string UriQueryExpressionParser_TooDeep + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_TooDeep); } } @@ -4371,99 +5130,114 @@ internal static string UriQueryExpressionParser_TooDeep { /// /// A string like "Expression expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_ExpressionExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_ExpressionExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_ExpressionExpected, p0, p1); } /// /// A string like "'(' expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_OpenParenExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_OpenParenExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_OpenParenExpected, p0, p1); } /// /// A string like "')' or ',' expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_CloseParenOrCommaExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_CloseParenOrCommaExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_CloseParenOrCommaExpected, p0, p1); } /// /// A string like "')' or operator expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_CloseParenOrOperatorExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_CloseParenOrOperatorExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_CloseParenOrOperatorExpected, p0, p1); } /// /// A string like "Expecting a Star token but got: '{0}'." /// - internal static string UriQueryExpressionParser_CannotCreateStarTokenFromNonStar(object p0) { + internal static string UriQueryExpressionParser_CannotCreateStarTokenFromNonStar(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_CannotCreateStarTokenFromNonStar, p0); } /// /// A string like "The range variable '{0}' has already been declared." /// - internal static string UriQueryExpressionParser_RangeVariableAlreadyDeclared(object p0) { + internal static string UriQueryExpressionParser_RangeVariableAlreadyDeclared(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_RangeVariableAlreadyDeclared, p0); } /// /// A string like "'as' expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_AsExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_AsExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_AsExpected, p0, p1); } /// /// A string like "'with' expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_WithExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_WithExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_WithExpected, p0, p1); } /// /// A string like "Unrecognized with '{0}' at '{1}' in '{2}'." /// - internal static string UriQueryExpressionParser_UnrecognizedWithMethod(object p0, object p1, object p2) { + internal static string UriQueryExpressionParser_UnrecognizedWithMethod(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_UnrecognizedWithMethod, p0, p1, p2); } /// /// A string like "Expression expected at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_PropertyPathExpected(object p0, object p1) { + internal static string UriQueryExpressionParser_PropertyPathExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_PropertyPathExpected, p0, p1); } /// /// A string like "'{0}' expected at position {1} in '{2}'." /// - internal static string UriQueryExpressionParser_KeywordOrIdentifierExpected(object p0, object p1, object p2) { + internal static string UriQueryExpressionParser_KeywordOrIdentifierExpected(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_KeywordOrIdentifierExpected, p0, p1, p2); } /// /// A string like "The inner most expand transformation requires a filter transformation at position {0} in '{1}'." /// - internal static string UriQueryExpressionParser_InnerMostExpandRequireFilter(object p0, object p1) { + internal static string UriQueryExpressionParser_InnerMostExpandRequireFilter(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_InnerMostExpandRequireFilter, p0, p1); } /// /// A string like "The URI '{0}' is not valid because it is not based on '{1}'." /// - internal static string UriQueryPathParser_RequestUriDoesNotHaveTheCorrectBaseUri(object p0, object p1) { + internal static string UriQueryPathParser_RequestUriDoesNotHaveTheCorrectBaseUri(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryPathParser_RequestUriDoesNotHaveTheCorrectBaseUri, p0, p1); } /// /// A string like "Bad Request: there was an error in the query syntax." /// - internal static string UriQueryPathParser_SyntaxError { - get { + internal static string UriQueryPathParser_SyntaxError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryPathParser_SyntaxError); } } @@ -4471,8 +5245,10 @@ internal static string UriQueryPathParser_SyntaxError { /// /// A string like "Too many segments in URI." /// - internal static string UriQueryPathParser_TooManySegments { - get { + internal static string UriQueryPathParser_TooManySegments + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryPathParser_TooManySegments); } } @@ -4480,22 +5256,26 @@ internal static string UriQueryPathParser_TooManySegments { /// /// A string like "The URI part '{0}' is not valid because there's no leading escape character." /// - internal static string UriQueryPathParser_InvalidEscapeUri(object p0) { + internal static string UriQueryPathParser_InvalidEscapeUri(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryPathParser_InvalidEscapeUri, p0); } /// /// A string like "The DateTimeOffset text '{0}' should be in format 'yyyy-mm-ddThh:mm:ss('.'s+)?(zzzzzz)?' and each field value is within valid range." /// - internal static string UriUtils_DateTimeOffsetInvalidFormat(object p0) { + internal static string UriUtils_DateTimeOffsetInvalidFormat(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriUtils_DateTimeOffsetInvalidFormat, p0); } /// /// A string like "Inner or start path segments must be navigation properties in $select." /// - internal static string SelectionItemBinder_NonNavigationPathToken { - get { + internal static string SelectionItemBinder_NonNavigationPathToken + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectionItemBinder_NonNavigationPathToken); } } @@ -4503,71 +5283,82 @@ internal static string SelectionItemBinder_NonNavigationPathToken { /// /// A string like "An unsupported query token kind '{0}' was found." /// - internal static string MetadataBinder_UnsupportedQueryTokenKind(object p0) { + internal static string MetadataBinder_UnsupportedQueryTokenKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_UnsupportedQueryTokenKind, p0); } /// /// A string like "Could not find a property named '{1}' on type '{0}'." /// - internal static string MetadataBinder_PropertyNotDeclared(object p0, object p1) { + internal static string MetadataBinder_PropertyNotDeclared(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_PropertyNotDeclared, p0, p1); } /// /// A string like "Can not resolve the segment identifier '{0}' in query option." /// - internal static string MetadataBinder_InvalidIdentifierInQueryOption(object p0) { + internal static string MetadataBinder_InvalidIdentifierInQueryOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_InvalidIdentifierInQueryOption, p0); } /// /// A string like "Property '{0}' is not declared on type '{1}' or is not a key property. Only key properties can be used in key lookups." /// - internal static string MetadataBinder_PropertyNotDeclaredOrNotKeyInKeyValue(object p0, object p1) { + internal static string MetadataBinder_PropertyNotDeclaredOrNotKeyInKeyValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_PropertyNotDeclaredOrNotKeyInKeyValue, p0, p1); } /// /// A string like "Could not find a function named '{0}' with parameters '{1}'." /// - internal static string MetadataBinder_QualifiedFunctionNameWithParametersNotDeclared(object p0, object p1) { + internal static string MetadataBinder_QualifiedFunctionNameWithParametersNotDeclared(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_QualifiedFunctionNameWithParametersNotDeclared, p0, p1); } /// /// A string like "An unnamed key value was used in a key lookup on a type '{0}' which has more than one key property. Unnamed key value can only be used on a type with one key property." /// - internal static string MetadataBinder_UnnamedKeyValueOnTypeWithMultipleKeyProperties(object p0) { + internal static string MetadataBinder_UnnamedKeyValueOnTypeWithMultipleKeyProperties(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_UnnamedKeyValueOnTypeWithMultipleKeyProperties, p0); } /// /// A string like "A key property '{0}' was found twice in a key lookup. Each key property can be specified just once in a key lookup." /// - internal static string MetadataBinder_DuplicitKeyPropertyInKeyValues(object p0) { + internal static string MetadataBinder_DuplicitKeyPropertyInKeyValues(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_DuplicitKeyPropertyInKeyValues, p0); } /// /// A string like "A key lookup on type '{0}' didn't specify values for all key properties. All key properties must be specified in a key lookup." /// - internal static string MetadataBinder_NotAllKeyPropertiesSpecifiedInKeyValues(object p0) { + internal static string MetadataBinder_NotAllKeyPropertiesSpecifiedInKeyValues(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_NotAllKeyPropertiesSpecifiedInKeyValues, p0); } /// /// A string like "Expression of type '{0}' cannot be converted to type '{1}'." /// - internal static string MetadataBinder_CannotConvertToType(object p0, object p1) { + internal static string MetadataBinder_CannotConvertToType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_CannotConvertToType, p0, p1); } /// /// A string like "The $filter expression must evaluate to a single boolean value." /// - internal static string MetadataBinder_FilterExpressionNotSingleValue { - get { + internal static string MetadataBinder_FilterExpressionNotSingleValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_FilterExpressionNotSingleValue); } } @@ -4575,8 +5366,10 @@ internal static string MetadataBinder_FilterExpressionNotSingleValue { /// /// A string like "The $orderby expression must evaluate to a single value of primitive type." /// - internal static string MetadataBinder_OrderByExpressionNotSingleValue { - get { + internal static string MetadataBinder_OrderByExpressionNotSingleValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_OrderByExpressionNotSingleValue); } } @@ -4584,8 +5377,10 @@ internal static string MetadataBinder_OrderByExpressionNotSingleValue { /// /// A string like "A PropertyAccessQueryToken without a parent was encountered outside of $filter or $orderby expression. The PropertyAccessQueryToken without a parent token is only allowed inside $filter or $orderby expressions." /// - internal static string MetadataBinder_PropertyAccessWithoutParentParameter { - get { + internal static string MetadataBinder_PropertyAccessWithoutParentParameter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_PropertyAccessWithoutParentParameter); } } @@ -4593,22 +5388,26 @@ internal static string MetadataBinder_PropertyAccessWithoutParentParameter { /// /// A string like "The operand for a binary operator '{0}' is not a single value. Binary operators require both operands to be single values." /// - internal static string MetadataBinder_BinaryOperatorOperandNotSingleValue(object p0) { + internal static string MetadataBinder_BinaryOperatorOperandNotSingleValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_BinaryOperatorOperandNotSingleValue, p0); } /// /// A string like "The operand for a unary operator '{0}' is not a single value. Unary operators require the operand to be a single value." /// - internal static string MetadataBinder_UnaryOperatorOperandNotSingleValue(object p0) { + internal static string MetadataBinder_UnaryOperatorOperandNotSingleValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_UnaryOperatorOperandNotSingleValue, p0); } /// /// A string like "The left operand for the IN operation is not a single value. IN operations require the left operand to be a single value and the right operand to be a collection value." /// - internal static string MetadataBinder_LeftOperandNotSingleValue { - get { + internal static string MetadataBinder_LeftOperandNotSingleValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_LeftOperandNotSingleValue); } } @@ -4616,8 +5415,10 @@ internal static string MetadataBinder_LeftOperandNotSingleValue { /// /// A string like "The right operand for the IN operation is not a collection value. IN operations require the left operand to be a single value and the right operand to be a collection value." /// - internal static string MetadataBinder_RightOperandNotCollectionValue { - get { + internal static string MetadataBinder_RightOperandNotCollectionValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_RightOperandNotCollectionValue); } } @@ -4625,71 +5426,82 @@ internal static string MetadataBinder_RightOperandNotCollectionValue { /// /// A string like "The parent value for a property access of a property '{0}' is not a single value. Property access can only be applied to a single value." /// - internal static string MetadataBinder_PropertyAccessSourceNotSingleValue(object p0) { + internal static string MetadataBinder_PropertyAccessSourceNotSingleValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_PropertyAccessSourceNotSingleValue, p0); } /// /// A string like "A binary operator with incompatible types was detected. Found operand types '{0}' and '{1}' for operator kind '{2}'." /// - internal static string MetadataBinder_IncompatibleOperandsError(object p0, object p1, object p2) { + internal static string MetadataBinder_IncompatibleOperandsError(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_IncompatibleOperandsError, p0, p1, p2); } /// /// A string like "A unary operator with an incompatible type was detected. Found operand type '{0}' for operator kind '{1}'." /// - internal static string MetadataBinder_IncompatibleOperandError(object p0, object p1) { + internal static string MetadataBinder_IncompatibleOperandError(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_IncompatibleOperandError, p0, p1); } /// /// A string like "An unknown function with name '{0}' was found. This may also be a function import or a key lookup on a navigation property, which is not allowed." /// - internal static string MetadataBinder_UnknownFunction(object p0) { + internal static string MetadataBinder_UnknownFunction(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_UnknownFunction, p0); } /// /// A string like "The argument for an invocation of a function with name '{0}' is not a single value. All arguments for this function must be single values." /// - internal static string MetadataBinder_FunctionArgumentNotSingleValue(object p0) { + internal static string MetadataBinder_FunctionArgumentNotSingleValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_FunctionArgumentNotSingleValue, p0); } /// /// A string like "No function signature for the function with name '{0}' matches the specified arguments. The function signatures considered are: {1}." /// - internal static string MetadataBinder_NoApplicableFunctionFound(object p0, object p1) { + internal static string MetadataBinder_NoApplicableFunctionFound(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_NoApplicableFunctionFound, p0, p1); } /// /// A string like "A token of kind '{0}' was bound to the value null; this is invalid. A query token must always be bound to a non-null query node." /// - internal static string MetadataBinder_BoundNodeCannotBeNull(object p0) { + internal static string MetadataBinder_BoundNodeCannotBeNull(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_BoundNodeCannotBeNull, p0); } /// /// A string like "The value '{0}' is not a non-negative integer value. In OData, the $top query option must specify a non-negative integer value." /// - internal static string MetadataBinder_TopRequiresNonNegativeInteger(object p0) { + internal static string MetadataBinder_TopRequiresNonNegativeInteger(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_TopRequiresNonNegativeInteger, p0); } /// /// A string like "The value '{0}' is not a non-negative integer value. In OData, the $skip query option must specify a non-negative integer value." /// - internal static string MetadataBinder_SkipRequiresNonNegativeInteger(object p0) { + internal static string MetadataBinder_SkipRequiresNonNegativeInteger(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_SkipRequiresNonNegativeInteger, p0); } /// /// A string like "The bind state cannot be null. In OData, the bind state for query options should not be null and there should be query options in the object." /// - internal static string MetadataBinder_QueryOptionsBindStateCannotBeNull { - get { + internal static string MetadataBinder_QueryOptionsBindStateCannotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_QueryOptionsBindStateCannotBeNull); } } @@ -4697,8 +5509,10 @@ internal static string MetadataBinder_QueryOptionsBindStateCannotBeNull { /// /// A string like "The bind method cannot be null. In OData, the processing of query options should have a corresponding bind method." /// - internal static string MetadataBinder_QueryOptionsBindMethodCannotBeNull { - get { + internal static string MetadataBinder_QueryOptionsBindMethodCannotBeNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_QueryOptionsBindMethodCannotBeNull); } } @@ -4706,15 +5520,18 @@ internal static string MetadataBinder_QueryOptionsBindMethodCannotBeNull { /// /// A string like "Encountered invalid type cast. '{0}' is not assignable from '{1}'." /// - internal static string MetadataBinder_HierarchyNotFollowed(object p0, object p1) { + internal static string MetadataBinder_HierarchyNotFollowed(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_HierarchyNotFollowed, p0, p1); } /// /// A string like "Any/All may only be used following a collection." /// - internal static string MetadataBinder_LambdaParentMustBeCollection { - get { + internal static string MetadataBinder_LambdaParentMustBeCollection + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_LambdaParentMustBeCollection); } } @@ -4722,15 +5539,18 @@ internal static string MetadataBinder_LambdaParentMustBeCollection { /// /// A string like "The parameter '{0}' is not in scope." /// - internal static string MetadataBinder_ParameterNotInScope(object p0) { + internal static string MetadataBinder_ParameterNotInScope(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_ParameterNotInScope, p0); } /// /// A string like "A navigation property can only follow single entity nodes." /// - internal static string MetadataBinder_NavigationPropertyNotFollowingSingleEntityType { - get { + internal static string MetadataBinder_NavigationPropertyNotFollowingSingleEntityType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_NavigationPropertyNotFollowingSingleEntityType); } } @@ -4738,8 +5558,10 @@ internal static string MetadataBinder_NavigationPropertyNotFollowingSingleEntity /// /// A string like "The Any/All query expression must evaluate to a single boolean value." /// - internal static string MetadataBinder_AnyAllExpressionNotSingleValue { - get { + internal static string MetadataBinder_AnyAllExpressionNotSingleValue + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_AnyAllExpressionNotSingleValue); } } @@ -4747,15 +5569,18 @@ internal static string MetadataBinder_AnyAllExpressionNotSingleValue { /// /// A string like "The Cast or IsOf expression has an invalid number of operands: number of operands is '{0}' and it should be 1 or 2." /// - internal static string MetadataBinder_CastOrIsOfExpressionWithWrongNumberOfOperands(object p0) { + internal static string MetadataBinder_CastOrIsOfExpressionWithWrongNumberOfOperands(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_CastOrIsOfExpressionWithWrongNumberOfOperands, p0); } /// /// A string like "Cast or IsOf Function must have a type in its arguments." /// - internal static string MetadataBinder_CastOrIsOfFunctionWithoutATypeArgument { - get { + internal static string MetadataBinder_CastOrIsOfFunctionWithoutATypeArgument + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_CastOrIsOfFunctionWithoutATypeArgument); } } @@ -4763,8 +5588,10 @@ internal static string MetadataBinder_CastOrIsOfFunctionWithoutATypeArgument { /// /// A string like "The Cast and IsOf functions do not support collection arguments or types." /// - internal static string MetadataBinder_CastOrIsOfCollectionsNotSupported { - get { + internal static string MetadataBinder_CastOrIsOfCollectionsNotSupported + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_CastOrIsOfCollectionsNotSupported); } } @@ -4772,8 +5599,10 @@ internal static string MetadataBinder_CastOrIsOfCollectionsNotSupported { /// /// A string like "Collection open properties are not supported in this release." /// - internal static string MetadataBinder_CollectionOpenPropertiesNotSupportedInThisRelease { - get { + internal static string MetadataBinder_CollectionOpenPropertiesNotSupportedInThisRelease + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_CollectionOpenPropertiesNotSupportedInThisRelease); } } @@ -4781,85 +5610,98 @@ internal static string MetadataBinder_CollectionOpenPropertiesNotSupportedInThis /// /// A string like "Can only bind segments that are Navigation, Structural, Complex, or Collections. We found a segment '{0}' that isn't any of those. Please revise the query." /// - internal static string MetadataBinder_IllegalSegmentType(object p0) { + internal static string MetadataBinder_IllegalSegmentType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_IllegalSegmentType, p0); } /// /// A string like "The '{0}' option cannot be applied to the query path. '{0}' can only be applied to a collection of entities." /// - internal static string MetadataBinder_QueryOptionNotApplicable(object p0) { + internal static string MetadataBinder_QueryOptionNotApplicable(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.MetadataBinder_QueryOptionNotApplicable, p0); } /// /// A string like "String item should be single/double quoted: '{0}'." /// - internal static string StringItemShouldBeQuoted(object p0) { + internal static string StringItemShouldBeQuoted(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.StringItemShouldBeQuoted, p0); } /// /// A string like "Invalid PrimitiveTypeKind {0}. A Stream item must be of type binary or string, or none if unknown."" /// - internal static string StreamItemInvalidPrimitiveKind(object p0) { + internal static string StreamItemInvalidPrimitiveKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.StreamItemInvalidPrimitiveKind, p0); } /// /// A string like "$apply/aggregate expression '{0}' operation does not support value type '{1}'." /// - internal static string ApplyBinder_AggregateExpressionIncompatibleTypeForMethod(object p0, object p1) { + internal static string ApplyBinder_AggregateExpressionIncompatibleTypeForMethod(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_AggregateExpressionIncompatibleTypeForMethod, p0, p1); } /// /// A string like "$apply/aggregate does not support method '{0}'." /// - internal static string ApplyBinder_UnsupportedAggregateMethod(object p0) { + internal static string ApplyBinder_UnsupportedAggregateMethod(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_UnsupportedAggregateMethod, p0); } /// /// A string like "$apply/aggregate expression token kind '{0}' not supported." /// - internal static string ApplyBinder_UnsupportedAggregateKind(object p0) { + internal static string ApplyBinder_UnsupportedAggregateKind(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_UnsupportedAggregateKind, p0); } /// /// A string like "$apply/aggregate expression '{0}' must evaluate to a single value." /// - internal static string ApplyBinder_AggregateExpressionNotSingleValue(object p0) { + internal static string ApplyBinder_AggregateExpressionNotSingleValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_AggregateExpressionNotSingleValue, p0); } /// /// A string like "$apply/groupby grouping expression '{0}' must evaluate to a property access value." /// - internal static string ApplyBinder_GroupByPropertyNotPropertyAccessValue(object p0) { + internal static string ApplyBinder_GroupByPropertyNotPropertyAccessValue(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_GroupByPropertyNotPropertyAccessValue, p0); } /// /// A string like "$apply clause does not support type '{0}'." /// - internal static string ApplyBinder_UnsupportedType(object p0) { + internal static string ApplyBinder_UnsupportedType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_UnsupportedType, p0); } /// /// A string like "$apply/groupby not support '{0}' as child transformation" /// - internal static string ApplyBinder_UnsupportedGroupByChild(object p0) { + internal static string ApplyBinder_UnsupportedGroupByChild(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ApplyBinder_UnsupportedGroupByChild, p0); } /// /// A string like "There are unsupported aggregation expressions in the transformation node." /// - internal static string AggregateTransformationNode_UnsupportedAggregateExpressions { - get { + internal static string AggregateTransformationNode_UnsupportedAggregateExpressions + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.AggregateTransformationNode_UnsupportedAggregateExpressions); } } @@ -4867,29 +5709,34 @@ internal static string AggregateTransformationNode_UnsupportedAggregateExpressio /// /// A string like "Cannot find a suitable overload for function '{0}' that takes '{1}' arguments." /// - internal static string FunctionCallBinder_CannotFindASuitableOverload(object p0, object p1) { + internal static string FunctionCallBinder_CannotFindASuitableOverload(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionCallBinder_CannotFindASuitableOverload, p0, p1); } /// /// A string like "Found a Uri function '{0}' with a parent token. Uri functions cannot have parent tokens." /// - internal static string FunctionCallBinder_UriFunctionMustHaveHaveNullParent(object p0) { + internal static string FunctionCallBinder_UriFunctionMustHaveHaveNullParent(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionCallBinder_UriFunctionMustHaveHaveNullParent, p0); } /// /// A string like "Found a function '{0}' on an open property. Functions on open properties are not supported." /// - internal static string FunctionCallBinder_CallingFunctionOnOpenProperty(object p0) { + internal static string FunctionCallBinder_CallingFunctionOnOpenProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionCallBinder_CallingFunctionOnOpenProperty, p0); } /// /// A string like "Parameter or entity key names must be unique. There is most likely an error in the model." /// - internal static string FunctionCallParser_DuplicateParameterOrEntityKeyName { - get { + internal static string FunctionCallParser_DuplicateParameterOrEntityKeyName + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionCallParser_DuplicateParameterOrEntityKeyName); } } @@ -4897,22 +5744,26 @@ internal static string FunctionCallParser_DuplicateParameterOrEntityKeyName { /// /// A string like "'{0}' is not a valid count option." /// - internal static string ODataUriParser_InvalidCount(object p0) { + internal static string ODataUriParser_InvalidCount(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataUriParser_InvalidCount, p0); } /// /// A string like "The child type '{0}' in a cast was not an entity type. Casts can only be performed on entity types." /// - internal static string CastBinder_ChildTypeIsNotEntity(object p0) { + internal static string CastBinder_ChildTypeIsNotEntity(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CastBinder_ChildTypeIsNotEntity, p0); } /// /// A string like "Enumeration type value can only be casted to or from string." /// - internal static string CastBinder_EnumOnlyCastToOrFromString { - get { + internal static string CastBinder_EnumOnlyCastToOrFromString + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CastBinder_EnumOnlyCastToOrFromString); } } @@ -4920,64 +5771,74 @@ internal static string CastBinder_EnumOnlyCastToOrFromString { /// /// A string like "The string '{0}' is not a valid enumeration type constant." /// - internal static string Binder_IsNotValidEnumConstant(object p0) { + internal static string Binder_IsNotValidEnumConstant(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Binder_IsNotValidEnumConstant, p0); } /// /// A string like "Invalid content-id '{0}' for batch reference segment." /// - internal static string BatchReferenceSegment_InvalidContentID(object p0) { + internal static string BatchReferenceSegment_InvalidContentID(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.BatchReferenceSegment_InvalidContentID, p0); } /// /// A string like "Property '{0}' is of an unrecognized EdmPropertyKind." /// - internal static string SelectExpandBinder_UnknownPropertyType(object p0) { + internal static string SelectExpandBinder_UnknownPropertyType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectExpandBinder_UnknownPropertyType, p0); } /// /// A string like "It's not allowed to append '{0}' after wildcard." /// - internal static string SelectExpandBinder_InvalidIdentifierAfterWildcard(object p0) { + internal static string SelectExpandBinder_InvalidIdentifierAfterWildcard(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectExpandBinder_InvalidIdentifierAfterWildcard, p0); } /// /// A string like "It's not allowed to nest query options within '{0}' selection." /// - internal static string SelectExpandBinder_InvalidQueryOptionNestedSelection(object p0) { + internal static string SelectExpandBinder_InvalidQueryOptionNestedSelection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectExpandBinder_InvalidQueryOptionNestedSelection, p0); } /// /// A string like "Found a system token, '{0}', while parsing a select clause." /// - internal static string SelectExpandBinder_SystemTokenInSelect(object p0) { + internal static string SelectExpandBinder_SystemTokenInSelect(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectExpandBinder_SystemTokenInSelect, p0); } /// /// A string like "Only properties specified in $expand can be traversed in $select query options. Selected item was '{0}'." /// - internal static string SelectionItemBinder_NoExpandForSelectedProperty(object p0) { + internal static string SelectionItemBinder_NoExpandForSelectedProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectionItemBinder_NoExpandForSelectedProperty, p0); } /// /// A string like "Trying to follow type segments on a segment that isn't a type. Segment was '{0}'." /// - internal static string SelectExpandPathBinder_FollowNonTypeSegment(object p0) { + internal static string SelectExpandPathBinder_FollowNonTypeSegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectExpandPathBinder_FollowNonTypeSegment, p0); } /// /// A string like "Found a path with multiple navigation properties or a bad complex property path in a select clause. Please reword your query such that each level of select or expand only contains either TypeSegments or Properties." /// - internal static string SelectBinder_MultiLevelPathInSelect { - get { + internal static string SelectBinder_MultiLevelPathInSelect + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectBinder_MultiLevelPathInSelect); } } @@ -4985,8 +5846,10 @@ internal static string SelectBinder_MultiLevelPathInSelect { /// /// A string like "Trying to traverse a non-normalized expand tree." /// - internal static string ExpandItemBinder_TraversingANonNormalizedTree { - get { + internal static string ExpandItemBinder_TraversingANonNormalizedTree + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_TraversingANonNormalizedTree); } } @@ -4994,22 +5857,26 @@ internal static string ExpandItemBinder_TraversingANonNormalizedTree { /// /// A string like "The type '{0}' is not defined in the model." /// - internal static string ExpandItemBinder_CannotFindType(object p0) { + internal static string ExpandItemBinder_CannotFindType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_CannotFindType, p0); } /// /// A string like "Property '{0}' on type '{1}' is not a navigation property or complex property. Only navigation properties can be expanded." /// - internal static string ExpandItemBinder_PropertyIsNotANavigationPropertyOrComplexProperty(object p0, object p1) { + internal static string ExpandItemBinder_PropertyIsNotANavigationPropertyOrComplexProperty(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_PropertyIsNotANavigationPropertyOrComplexProperty, p0, p1); } /// /// A string like "Found a path within a select or expand query option that isn't ended by a non-type segment." /// - internal static string ExpandItemBinder_TypeSegmentNotFollowedByPath { - get { + internal static string ExpandItemBinder_TypeSegmentNotFollowedByPath + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_TypeSegmentNotFollowedByPath); } } @@ -5017,8 +5884,10 @@ internal static string ExpandItemBinder_TypeSegmentNotFollowedByPath { /// /// A string like "Trying to parse a type segment path that is too long." /// - internal static string ExpandItemBinder_PathTooDeep { - get { + internal static string ExpandItemBinder_PathTooDeep + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_PathTooDeep); } } @@ -5026,8 +5895,10 @@ internal static string ExpandItemBinder_PathTooDeep { /// /// A string like "Found a path traversing multiple navigation properties. Please rephrase the query such that each expand path contains only type segments and navigation properties." /// - internal static string ExpandItemBinder_TraversingMultipleNavPropsInTheSamePath { - get { + internal static string ExpandItemBinder_TraversingMultipleNavPropsInTheSamePath + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_TraversingMultipleNavPropsInTheSamePath); } } @@ -5035,22 +5906,26 @@ internal static string ExpandItemBinder_TraversingMultipleNavPropsInTheSamePath /// /// A string like "The $level option on navigation property '{0}' is not allowed, because the related entity type '{1}' could not be cast to source entity type '{2}'." /// - internal static string ExpandItemBinder_LevelsNotAllowedOnIncompatibleRelatedType(object p0, object p1, object p2) { + internal static string ExpandItemBinder_LevelsNotAllowedOnIncompatibleRelatedType(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_LevelsNotAllowedOnIncompatibleRelatedType, p0, p1, p2); } /// /// A string like "Segment '{0}' is not valid in expand path. Before navigation property, only type segment or entity or complex property can exist." /// - internal static string ExpandItemBinder_InvaidSegmentInExpand(object p0) { + internal static string ExpandItemBinder_InvaidSegmentInExpand(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandItemBinder_InvaidSegmentInExpand, p0); } /// /// A string like "The navigation property must have a target multiplicity of 'One' or 'ZeroOrOne' to create a SingleNavigationNode." /// - internal static string Nodes_CollectionNavigationNode_MustHaveSingleMultiplicity { - get { + internal static string Nodes_CollectionNavigationNode_MustHaveSingleMultiplicity + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_CollectionNavigationNode_MustHaveSingleMultiplicity); } } @@ -5058,15 +5933,18 @@ internal static string Nodes_CollectionNavigationNode_MustHaveSingleMultiplicity /// /// A string like "An entity type '{0}' was given to NonEntityParameterQueryNode. Use EntityParameterQueryNode instead." /// - internal static string Nodes_NonentityParameterQueryNodeWithEntityType(object p0) { + internal static string Nodes_NonentityParameterQueryNodeWithEntityType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_NonentityParameterQueryNodeWithEntityType, p0); } /// /// A string like "The navigation property must have a target multiplicity of 'Many' to create a CollectionNavigationNode." /// - internal static string Nodes_CollectionNavigationNode_MustHaveManyMultiplicity { - get { + internal static string Nodes_CollectionNavigationNode_MustHaveManyMultiplicity + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_CollectionNavigationNode_MustHaveManyMultiplicity); } } @@ -5074,29 +5952,34 @@ internal static string Nodes_CollectionNavigationNode_MustHaveManyMultiplicity { /// /// A string like "A node of this kind requires the associated property to be a structural, non-collection type, but property '{0}' is not structural." /// - internal static string Nodes_PropertyAccessShouldBeNonEntityProperty(object p0) { + internal static string Nodes_PropertyAccessShouldBeNonEntityProperty(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_PropertyAccessShouldBeNonEntityProperty, p0); } /// /// A string like "A node of this kind requires the associated property to be a structural, non-collection type, but property '{0}' is a collection." /// - internal static string Nodes_PropertyAccessTypeShouldNotBeCollection(object p0) { + internal static string Nodes_PropertyAccessTypeShouldNotBeCollection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_PropertyAccessTypeShouldNotBeCollection, p0); } /// /// A string like "A node of this kind requires the associated property to be a structural, collection type, but property '{0}' is not a collection." /// - internal static string Nodes_PropertyAccessTypeMustBeCollection(object p0) { + internal static string Nodes_PropertyAccessTypeMustBeCollection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_PropertyAccessTypeMustBeCollection, p0); } /// /// A string like "Only static Entity Set reference expressions are supported currently." /// - internal static string Nodes_NonStaticEntitySetExpressionsAreNotSupportedInThisRelease { - get { + internal static string Nodes_NonStaticEntitySetExpressionsAreNotSupportedInThisRelease + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_NonStaticEntitySetExpressionsAreNotSupportedInThisRelease); } } @@ -5104,8 +5987,10 @@ internal static string Nodes_NonStaticEntitySetExpressionsAreNotSupportedInThisR /// /// A string like "An instance of CollectionFunctionCallNode can only be created with a primitive, complex or enum collection type. For functions returning a collection of entities, use EntityCollectionFunctionCallNode instead." /// - internal static string Nodes_CollectionFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum { - get { + internal static string Nodes_CollectionFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_CollectionFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum); } } @@ -5113,8 +5998,10 @@ internal static string Nodes_CollectionFunctionCallNode_ItemTypeMustBePrimitiveO /// /// A string like "An instance of EntityCollectionFunctionCallNode can only be created with an entity collection type. For functions returning a collection of primitive or complex values, use CollectionFunctionCallNode instead." /// - internal static string Nodes_EntityCollectionFunctionCallNode_ItemTypeMustBeAnEntity { - get { + internal static string Nodes_EntityCollectionFunctionCallNode_ItemTypeMustBeAnEntity + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_EntityCollectionFunctionCallNode_ItemTypeMustBeAnEntity); } } @@ -5122,8 +6009,10 @@ internal static string Nodes_EntityCollectionFunctionCallNode_ItemTypeMustBeAnEn /// /// A string like "An instance of SingleValueFunctionCallNode can only be created with a primitive, complex or enum type. For functions returning a single entity, use SingleEntityFunctionCallNode instead." /// - internal static string Nodes_SingleValueFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum { - get { + internal static string Nodes_SingleValueFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_SingleValueFunctionCallNode_ItemTypeMustBePrimitiveOrComplexOrEnum); } } @@ -5131,15 +6020,18 @@ internal static string Nodes_SingleValueFunctionCallNode_ItemTypeMustBePrimitive /// /// A string like "An instance of InNode can only be created where the item types of the right operand '{0}' and the left operand '{1}' can be compared." /// - internal static string Nodes_InNode_CollectionItemTypeMustBeSameAsSingleItemType(object p0, object p1) { + internal static string Nodes_InNode_CollectionItemTypeMustBeSameAsSingleItemType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.Nodes_InNode_CollectionItemTypeMustBeSameAsSingleItemType, p0, p1); } /// /// A string like "Found a segment that isn't a path while parsing the path within a select or expand query option." /// - internal static string ExpandTreeNormalizer_NonPathInPropertyChain { - get { + internal static string ExpandTreeNormalizer_NonPathInPropertyChain + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpandTreeNormalizer_NonPathInPropertyChain); } } @@ -5147,99 +6039,114 @@ internal static string ExpandTreeNormalizer_NonPathInPropertyChain { /// /// A string like "Found multiple select terms with same select path '{0}' at one $select, please combine them together." /// - internal static string SelectTreeNormalizer_MultipleSelecTermWithSamePathFound(object p0) { + internal static string SelectTreeNormalizer_MultipleSelecTermWithSamePathFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.SelectTreeNormalizer_MultipleSelecTermWithSamePathFound, p0); } /// /// A string like "Term '{0}' is not valid in a $expand expression, as only $level option is allowed when the expanded navigation property is star." /// - internal static string UriExpandParser_TermIsNotValidForStar(object p0) { + internal static string UriExpandParser_TermIsNotValidForStar(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriExpandParser_TermIsNotValidForStar, p0); } /// /// A string like "Term '{0}' is not valid in a $expand expression, no option is allowed when the expanded navigation property is */$ref." /// - internal static string UriExpandParser_TermIsNotValidForStarRef(object p0) { + internal static string UriExpandParser_TermIsNotValidForStarRef(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriExpandParser_TermIsNotValidForStarRef, p0); } /// /// A string like "Cannot get parent structured type for term '{0}' to auto populate all navigation properties." /// - internal static string UriExpandParser_ParentStructuredTypeIsNull(object p0) { + internal static string UriExpandParser_ParentStructuredTypeIsNull(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriExpandParser_ParentStructuredTypeIsNull, p0); } /// /// A string like "Term '{0}' is not valid in a $expand expression as multiple stars are not allowed." /// - internal static string UriExpandParser_TermWithMultipleStarNotAllowed(object p0) { + internal static string UriExpandParser_TermWithMultipleStarNotAllowed(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriExpandParser_TermWithMultipleStarNotAllowed, p0); } /// /// A string like "Term '{0}' is not valid in a $select or $expand expression." /// - internal static string UriSelectParser_TermIsNotValid(object p0) { + internal static string UriSelectParser_TermIsNotValid(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_TermIsNotValid, p0); } /// /// A string like "Top option must be a non-negative integer, it is set to '{0}' instead." /// - internal static string UriSelectParser_InvalidTopOption(object p0) { + internal static string UriSelectParser_InvalidTopOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_InvalidTopOption, p0); } /// /// A string like "Skip option must be a non-negative integer, it is set to '{0}' instead." /// - internal static string UriSelectParser_InvalidSkipOption(object p0) { + internal static string UriSelectParser_InvalidSkipOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_InvalidSkipOption, p0); } /// /// A string like "Count option must be a boolean value, it is set to '{0}' instead." /// - internal static string UriSelectParser_InvalidCountOption(object p0) { + internal static string UriSelectParser_InvalidCountOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_InvalidCountOption, p0); } /// /// A string like "Levels option must be a non-negative integer or 'max', it is set to '{0}' instead." /// - internal static string UriSelectParser_InvalidLevelsOption(object p0) { + internal static string UriSelectParser_InvalidLevelsOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_InvalidLevelsOption, p0); } /// /// A string like "Found system token '{0}' in select or expand clause '{1}'." /// - internal static string UriSelectParser_SystemTokenInSelectExpand(object p0, object p1) { + internal static string UriSelectParser_SystemTokenInSelectExpand(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriSelectParser_SystemTokenInSelectExpand, p0, p1); } /// /// A string like "Missing expand option on navigation property '{0}'. If a parenthesis expression follows an expanded navigation property, then at least one expand option must be provided." /// - internal static string UriParser_MissingExpandOption(object p0) { + internal static string UriParser_MissingExpandOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_MissingExpandOption, p0); } /// /// A string like "Missing select option on property '{0}'. If a parenthesis expression follows a selected property, then at least one query option must be provided." /// - internal static string UriParser_MissingSelectOption(object p0) { + internal static string UriParser_MissingSelectOption(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_MissingSelectOption, p0); } /// /// A string like "Parameter 'relativeUri' must be a relative Uri if serviceRoot is not specified." /// - internal static string UriParser_RelativeUriMustBeRelative { - get { + internal static string UriParser_RelativeUriMustBeRelative + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_RelativeUriMustBeRelative); } } @@ -5247,8 +6154,10 @@ internal static string UriParser_RelativeUriMustBeRelative { /// /// A string like "A service root URI must be provided to the ODataUriParser in order to use this method." /// - internal static string UriParser_NeedServiceRootForThisOverload { - get { + internal static string UriParser_NeedServiceRootForThisOverload + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_NeedServiceRootForThisOverload); } } @@ -5256,15 +6165,18 @@ internal static string UriParser_NeedServiceRootForThisOverload { /// /// A string like "The URI '{0}' must be an absolute URI." /// - internal static string UriParser_UriMustBeAbsolute(object p0) { + internal static string UriParser_UriMustBeAbsolute(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_UriMustBeAbsolute, p0); } /// /// A string like "The limit must be greater than or equal to zero" /// - internal static string UriParser_NegativeLimit { - get { + internal static string UriParser_NegativeLimit + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_NegativeLimit); } } @@ -5272,78 +6184,90 @@ internal static string UriParser_NegativeLimit { /// /// A string like "The result of parsing $expand contained at least {0} items, but the maximum allowed is {1}." /// - internal static string UriParser_ExpandCountExceeded(object p0, object p1) { + internal static string UriParser_ExpandCountExceeded(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_ExpandCountExceeded, p0, p1); } /// /// A string like "The result of parsing $expand was at least {0} items deep, but the maximum allowed is {1}." /// - internal static string UriParser_ExpandDepthExceeded(object p0, object p1) { + internal static string UriParser_ExpandDepthExceeded(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_ExpandDepthExceeded, p0, p1); } /// /// A string like "The type '{0}' is not valid for $select or $expand, only structured types are allowed." /// - internal static string UriParser_TypeInvalidForSelectExpand(object p0) { + internal static string UriParser_TypeInvalidForSelectExpand(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_TypeInvalidForSelectExpand, p0); } /// /// A string like "The handler property for context '{0}' should not return null." /// - internal static string UriParser_ContextHandlerCanNotBeNull(object p0) { + internal static string UriParser_ContextHandlerCanNotBeNull(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParser_ContextHandlerCanNotBeNull, p0); } /// /// A string like "More than one properties match the name '{0}' were found in type '{1}'." /// - internal static string UriParserMetadata_MultipleMatchingPropertiesFound(object p0, object p1) { + internal static string UriParserMetadata_MultipleMatchingPropertiesFound(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserMetadata_MultipleMatchingPropertiesFound, p0, p1); } /// /// A string like "More than one navigation sources match the name '{0}' were found in model." /// - internal static string UriParserMetadata_MultipleMatchingNavigationSourcesFound(object p0) { + internal static string UriParserMetadata_MultipleMatchingNavigationSourcesFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserMetadata_MultipleMatchingNavigationSourcesFound, p0); } /// /// A string like "More than one types match the name '{0}' were found in model." /// - internal static string UriParserMetadata_MultipleMatchingTypesFound(object p0) { + internal static string UriParserMetadata_MultipleMatchingTypesFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserMetadata_MultipleMatchingTypesFound, p0); } /// /// A string like "More than one keys match the name '{0}' were found." /// - internal static string UriParserMetadata_MultipleMatchingKeysFound(object p0) { + internal static string UriParserMetadata_MultipleMatchingKeysFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserMetadata_MultipleMatchingKeysFound, p0); } /// /// A string like "More than one parameters match the name '{0}' were found." /// - internal static string UriParserMetadata_MultipleMatchingParametersFound(object p0) { + internal static string UriParserMetadata_MultipleMatchingParametersFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserMetadata_MultipleMatchingParametersFound, p0); } /// /// A string like "The request URI is not valid. $ref cannot be applied to the segment '{0}' since $ref can only follow an entity segment or entity collection segment." /// - internal static string PathParser_EntityReferenceNotSupported(object p0) { + internal static string PathParser_EntityReferenceNotSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PathParser_EntityReferenceNotSupported, p0); } /// /// A string like "$value cannot be applied to a collection." /// - internal static string PathParser_CannotUseValueOnCollection { - get { + internal static string PathParser_CannotUseValueOnCollection + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PathParser_CannotUseValueOnCollection); } } @@ -5351,29 +6275,34 @@ internal static string PathParser_CannotUseValueOnCollection { /// /// A string like "The type '{0}' does not inherit from and is not a base type of '{1}'. The type of '{2}' must be related to the Type of the EntitySet." /// - internal static string PathParser_TypeMustBeRelatedToSet(object p0, object p1, object p2) { + internal static string PathParser_TypeMustBeRelatedToSet(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PathParser_TypeMustBeRelatedToSet, p0, p1, p2); } /// /// A string like "Type cast segment '{0}' after a collection which is not of entity or complex type is not allowed." /// - internal static string PathParser_TypeCastOnlyAllowedAfterStructuralCollection(object p0) { + internal static string PathParser_TypeCastOnlyAllowedAfterStructuralCollection(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PathParser_TypeCastOnlyAllowedAfterStructuralCollection, p0); } /// /// A string like "Type cast segment '{0}' on {1} '{2}' is not allowed due to an Org.OData.Validation.V1.DerivedTypeConstraint annotation." /// - internal static string PathParser_TypeCastOnlyAllowedInDerivedTypeConstraint(object p0, object p1, object p2) { + internal static string PathParser_TypeCastOnlyAllowedInDerivedTypeConstraint(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PathParser_TypeCastOnlyAllowedInDerivedTypeConstraint, p0, p1, p2); } /// /// A string like "A resource set may contain a next page link, a delta link or neither, but must not contain both." /// - internal static string ODataResourceSet_MustNotContainBothNextPageLinkAndDeltaLink { - get { + internal static string ODataResourceSet_MustNotContainBothNextPageLinkAndDeltaLink + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataResourceSet_MustNotContainBothNextPageLinkAndDeltaLink); } } @@ -5381,8 +6310,10 @@ internal static string ODataResourceSet_MustNotContainBothNextPageLinkAndDeltaLi /// /// A string like "The last segment, and only the last segment, must be a navigation property in $expand." /// - internal static string ODataExpandPath_OnlyLastSegmentMustBeNavigationProperty { - get { + internal static string ODataExpandPath_OnlyLastSegmentMustBeNavigationProperty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataExpandPath_OnlyLastSegmentMustBeNavigationProperty); } } @@ -5390,15 +6321,18 @@ internal static string ODataExpandPath_OnlyLastSegmentMustBeNavigationProperty { /// /// A string like "Found a segment of type '{0} in an expand path, but only NavigationProperty, Property and Type segments are allowed." /// - internal static string ODataExpandPath_InvalidExpandPathSegment(object p0) { + internal static string ODataExpandPath_InvalidExpandPathSegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataExpandPath_InvalidExpandPathSegment, p0); } /// /// A string like "TypeSegment cannot be the only segment in a $select." /// - internal static string ODataSelectPath_CannotOnlyHaveTypeSegment { - get { + internal static string ODataSelectPath_CannotOnlyHaveTypeSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataSelectPath_CannotOnlyHaveTypeSegment); } } @@ -5406,15 +6340,18 @@ internal static string ODataSelectPath_CannotOnlyHaveTypeSegment { /// /// A string like "Found a segment of type '{0} in a select path, but only TypeSegment, NavigationPropertySegment, PropertySegment, OperationSegment or OpenPropertySegments are allowed." /// - internal static string ODataSelectPath_InvalidSelectPathSegmentType(object p0) { + internal static string ODataSelectPath_InvalidSelectPathSegmentType(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataSelectPath_InvalidSelectPathSegmentType, p0); } /// /// A string like "An operation can only be the last segment in $select." /// - internal static string ODataSelectPath_OperationSegmentCanOnlyBeLastSegment { - get { + internal static string ODataSelectPath_OperationSegmentCanOnlyBeLastSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataSelectPath_OperationSegmentCanOnlyBeLastSegment); } } @@ -5422,8 +6359,10 @@ internal static string ODataSelectPath_OperationSegmentCanOnlyBeLastSegment { /// /// A string like "A navigation property can only be the last segment in $select." /// - internal static string ODataSelectPath_NavPropSegmentCanOnlyBeLastSegment { - get { + internal static string ODataSelectPath_NavPropSegmentCanOnlyBeLastSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ODataSelectPath_NavPropSegmentCanOnlyBeLastSegment); } } @@ -5431,22 +6370,26 @@ internal static string ODataSelectPath_NavPropSegmentCanOnlyBeLastSegment { /// /// A string like "The target Entity Set of Navigation Property '{0}' could not be found. This is most likely an error in the IEdmModel." /// - internal static string RequestUriProcessor_TargetEntitySetNotFound(object p0) { + internal static string RequestUriProcessor_TargetEntitySetNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_TargetEntitySetNotFound, p0); } /// /// A string like "The function overloads matching '{0}' are invalid. This is most likely an error in the IEdmModel." /// - internal static string RequestUriProcessor_FoundInvalidFunctionImport(object p0) { + internal static string RequestUriProcessor_FoundInvalidFunctionImport(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_FoundInvalidFunctionImport, p0); } /// /// A string like "No type could be computed for this Segment since there were multiple possible operations with varying return types." /// - internal static string OperationSegment_ReturnTypeForMultipleOverloads { - get { + internal static string OperationSegment_ReturnTypeForMultipleOverloads + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.OperationSegment_ReturnTypeForMultipleOverloads); } } @@ -5454,8 +6397,10 @@ internal static string OperationSegment_ReturnTypeForMultipleOverloads { /// /// A string like "The return type from the operation is not possible with the given entity set." /// - internal static string OperationSegment_CannotReturnNull { - get { + internal static string OperationSegment_CannotReturnNull + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.OperationSegment_CannotReturnNull); } } @@ -5463,106 +6408,122 @@ internal static string OperationSegment_CannotReturnNull { /// /// A string like "Unable to resolve function overloads to a single function. There was more than one function in the model with name '{0}' and parameter names '{1}'." /// - internal static string FunctionOverloadResolver_NoSingleMatchFound(object p0, object p1) { + internal static string FunctionOverloadResolver_NoSingleMatchFound(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_NoSingleMatchFound, p0, p1); } /// /// A string like "Multiple action overloads were found with the same binding parameter for '{0}'." /// - internal static string FunctionOverloadResolver_MultipleActionOverloads(object p0) { + internal static string FunctionOverloadResolver_MultipleActionOverloads(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_MultipleActionOverloads, p0); } /// /// A string like "Multiple action import overloads were found with the same binding parameter for '{0}'." /// - internal static string FunctionOverloadResolver_MultipleActionImportOverloads(object p0) { + internal static string FunctionOverloadResolver_MultipleActionImportOverloads(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_MultipleActionImportOverloads, p0); } /// /// A string like "Multiple action import and function import overloads for '{0}' were found." /// - internal static string FunctionOverloadResolver_MultipleOperationImportOverloads(object p0) { + internal static string FunctionOverloadResolver_MultipleOperationImportOverloads(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_MultipleOperationImportOverloads, p0); } /// /// A string like "Multiple action and function overloads for '{0}' were found." /// - internal static string FunctionOverloadResolver_MultipleOperationOverloads(object p0) { + internal static string FunctionOverloadResolver_MultipleOperationOverloads(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_MultipleOperationOverloads, p0); } /// /// A string like "The operation overloads matching '{0}' are invalid. This is most likely an error in the IEdmModel." /// - internal static string FunctionOverloadResolver_FoundInvalidOperation(object p0) { + internal static string FunctionOverloadResolver_FoundInvalidOperation(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_FoundInvalidOperation, p0); } /// /// A string like "The operation import overloads matching '{0}' are invalid. This is most likely an error in the IEdmModel." /// - internal static string FunctionOverloadResolver_FoundInvalidOperationImport(object p0) { + internal static string FunctionOverloadResolver_FoundInvalidOperationImport(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.FunctionOverloadResolver_FoundInvalidOperationImport, p0); } /// /// A string like "The given custom function '{0}' already exists as a Built-In function. Consider use 'addAsOverloadToBuiltInFunction = true' parameter." /// - internal static string CustomUriFunctions_AddCustomUriFunction_BuiltInExistsNotAddingAsOverload(object p0) { + internal static string CustomUriFunctions_AddCustomUriFunction_BuiltInExistsNotAddingAsOverload(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CustomUriFunctions_AddCustomUriFunction_BuiltInExistsNotAddingAsOverload, p0); } /// /// A string like "The given custom function '{0}' already exists as a Built-In function in one of it's overloads. Thus cannot override the Built-In function." /// - internal static string CustomUriFunctions_AddCustomUriFunction_BuiltInExistsFullSignature(object p0) { + internal static string CustomUriFunctions_AddCustomUriFunction_BuiltInExistsFullSignature(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CustomUriFunctions_AddCustomUriFunction_BuiltInExistsFullSignature, p0); } /// /// A string like "The given function name '{0}' already exists as a custom function with the same overload." /// - internal static string CustomUriFunctions_AddCustomUriFunction_CustomFunctionOverloadExists(object p0) { + internal static string CustomUriFunctions_AddCustomUriFunction_CustomFunctionOverloadExists(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CustomUriFunctions_AddCustomUriFunction_CustomFunctionOverloadExists, p0); } /// /// A string like "The ODataPathSegment provided (Id = {0}) is not an EntitySetSegment." /// - internal static string RequestUriProcessor_InvalidValueForEntitySegment(object p0) { + internal static string RequestUriProcessor_InvalidValueForEntitySegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_InvalidValueForEntitySegment, p0); } /// /// A string like "The KeySegment provided (Id = {0}) is either null, having no keys, or does not target a single resource." /// - internal static string RequestUriProcessor_InvalidValueForKeySegment(object p0) { + internal static string RequestUriProcessor_InvalidValueForKeySegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_InvalidValueForKeySegment, p0); } /// /// A string like "$filter path segment cannot be applied on single entities or singletons. Entity type: '{0}'." /// - internal static string RequestUriProcessor_CannotApplyFilterOnSingleEntities(object p0) { + internal static string RequestUriProcessor_CannotApplyFilterOnSingleEntities(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_CannotApplyFilterOnSingleEntities, p0); } /// /// A string like "$each set-based operation cannot be applied on single entities or singletons. Entity type: '{0}'." /// - internal static string RequestUriProcessor_CannotApplyEachOnSingleEntities(object p0) { + internal static string RequestUriProcessor_CannotApplyEachOnSingleEntities(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_CannotApplyEachOnSingleEntities, p0); } /// /// A string like "The $filter path segment must be in the form $filter(expression), where the expression resolves to a boolean." /// - internal static string RequestUriProcessor_FilterPathSegmentSyntaxError { - get { + internal static string RequestUriProcessor_FilterPathSegmentSyntaxError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_FilterPathSegmentSyntaxError); } } @@ -5570,15 +6531,18 @@ internal static string RequestUriProcessor_FilterPathSegmentSyntaxError { /// /// A string like "There are no navigation sources found to apply '{0}'." /// - internal static string RequestUriProcessor_NoNavigationSourceFound(object p0) { + internal static string RequestUriProcessor_NoNavigationSourceFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_NoNavigationSourceFound, p0); } /// /// A string like "Only a single operation can follow $each." /// - internal static string RequestUriProcessor_OnlySingleOperationCanFollowEachPathSegment { - get { + internal static string RequestUriProcessor_OnlySingleOperationCanFollowEachPathSegment + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_OnlySingleOperationCanFollowEachPathSegment); } } @@ -5586,8 +6550,10 @@ internal static string RequestUriProcessor_OnlySingleOperationCanFollowEachPathS /// /// A string like "Empty segment encountered in request URL. Please make sure that a valid request URL is specified." /// - internal static string RequestUriProcessor_EmptySegmentInRequestUrl { - get { + internal static string RequestUriProcessor_EmptySegmentInRequestUrl + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_EmptySegmentInRequestUrl); } } @@ -5595,8 +6561,10 @@ internal static string RequestUriProcessor_EmptySegmentInRequestUrl { /// /// A string like "Bad Request - Error in query syntax." /// - internal static string RequestUriProcessor_SyntaxError { - get { + internal static string RequestUriProcessor_SyntaxError + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_SyntaxError); } } @@ -5604,8 +6572,10 @@ internal static string RequestUriProcessor_SyntaxError { /// /// A string like "The request URI is not valid, the segment $count cannot be applied to the root of the service." /// - internal static string RequestUriProcessor_CountOnRoot { - get { + internal static string RequestUriProcessor_CountOnRoot + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_CountOnRoot); } } @@ -5613,8 +6583,10 @@ internal static string RequestUriProcessor_CountOnRoot { /// /// A string like "The request URI is not valid, the segment $filter cannot be applied to the root of the service." /// - internal static string RequestUriProcessor_FilterOnRoot { - get { + internal static string RequestUriProcessor_FilterOnRoot + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_FilterOnRoot); } } @@ -5622,8 +6594,10 @@ internal static string RequestUriProcessor_FilterOnRoot { /// /// A string like "The request URI is not valid, the segment $each cannot be applied to the root of the service." /// - internal static string RequestUriProcessor_EachOnRoot { - get { + internal static string RequestUriProcessor_EachOnRoot + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_EachOnRoot); } } @@ -5631,8 +6605,10 @@ internal static string RequestUriProcessor_EachOnRoot { /// /// A string like "The request URI is not valid, the segment $ref cannot be applied to the root of the service." /// - internal static string RequestUriProcessor_RefOnRoot { - get { + internal static string RequestUriProcessor_RefOnRoot + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_RefOnRoot); } } @@ -5640,71 +6616,82 @@ internal static string RequestUriProcessor_RefOnRoot { /// /// A string like "The request URI is not valid. The segment '{0}' must be the last segment in the URI because it is one of the following: $ref, $batch, $count, $value, $metadata, a named media resource, an action, a noncomposable function, an action import, a noncomposable function import, an operation with void return type, or an operation import with void return type." /// - internal static string RequestUriProcessor_MustBeLeafSegment(object p0) { + internal static string RequestUriProcessor_MustBeLeafSegment(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_MustBeLeafSegment, p0); } /// /// A string like "The request URI is not valid. The segment '{0}' must refer to a navigation property since the previous segment identifier is '{1}'." /// - internal static string RequestUriProcessor_LinkSegmentMustBeFollowedByEntitySegment(object p0, object p1) { + internal static string RequestUriProcessor_LinkSegmentMustBeFollowedByEntitySegment(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_LinkSegmentMustBeFollowedByEntitySegment, p0, p1); } /// /// A string like "The request URI is not valid. There must a segment specified after the '{0}' segment and the segment must refer to a entity resource." /// - internal static string RequestUriProcessor_MissingSegmentAfterLink(object p0) { + internal static string RequestUriProcessor_MissingSegmentAfterLink(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_MissingSegmentAfterLink, p0); } /// /// A string like "The request URI is not valid. $count cannot be applied to the segment '{0}' since $count can only follow an entity set, a collection navigation property, a structural property of collection type, an operation returning collection type or an operation import returning collection type." /// - internal static string RequestUriProcessor_CountNotSupported(object p0) { + internal static string RequestUriProcessor_CountNotSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_CountNotSupported, p0); } /// /// A string like "The request URI is not valid. Since the segment '{0}' refers to a collection, this must be the last segment in the request URI or it must be followed by an function or action that can be bound to it otherwise all intermediate segments must refer to a single resource." /// - internal static string RequestUriProcessor_CannotQueryCollections(object p0) { + internal static string RequestUriProcessor_CannotQueryCollections(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_CannotQueryCollections, p0); } /// /// A string like "The request URI is not valid. The segment '{0}' cannot include key predicates, however it may end with empty parenthesis." /// - internal static string RequestUriProcessor_SegmentDoesNotSupportKeyPredicates(object p0) { + internal static string RequestUriProcessor_SegmentDoesNotSupportKeyPredicates(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_SegmentDoesNotSupportKeyPredicates, p0); } /// /// A string like "The segment '{1}' in the request URI is not valid. The segment '{0}' refers to a primitive property, function, or service operation, so the only supported value from the next segment is '$value'." /// - internal static string RequestUriProcessor_ValueSegmentAfterScalarPropertySegment(object p0, object p1) { + internal static string RequestUriProcessor_ValueSegmentAfterScalarPropertySegment(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_ValueSegmentAfterScalarPropertySegment, p0, p1); } /// /// A string like "The type '{0}' specified in the URI is neither a base type nor a sub-type of the previously-specified type '{1}'." /// - internal static string RequestUriProcessor_InvalidTypeIdentifier_UnrelatedType(object p0, object p1) { + internal static string RequestUriProcessor_InvalidTypeIdentifier_UnrelatedType(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_InvalidTypeIdentifier_UnrelatedType, p0, p1); } /// /// A string like "Open navigation properties are not supported on OpenTypes. Property name: '{0}'." /// - internal static string OpenNavigationPropertiesNotSupportedOnOpenTypes(object p0) { + internal static string OpenNavigationPropertiesNotSupportedOnOpenTypes(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.OpenNavigationPropertiesNotSupportedOnOpenTypes, p0); } /// /// A string like "Error processing request stream. In batch mode, a resource can be cross-referenced only for bind/unbind operations." /// - internal static string BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation { - get { + internal static string BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperation); } } @@ -5712,22 +6699,26 @@ internal static string BadRequest_ResourceCanBeCrossReferencedOnlyForBindOperati /// /// A string like "The response requires that version {0} of the protocol be used, but the MaxProtocolVersion of the data service is set to {1}." /// - internal static string DataServiceConfiguration_ResponseVersionIsBiggerThanProtocolVersion(object p0, object p1) { + internal static string DataServiceConfiguration_ResponseVersionIsBiggerThanProtocolVersion(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.DataServiceConfiguration_ResponseVersionIsBiggerThanProtocolVersion, p0, p1); } /// /// A string like "The number of keys specified in the URI does not match number of key properties for the resource '{0}'." /// - internal static string BadRequest_KeyCountMismatch(object p0) { + internal static string BadRequest_KeyCountMismatch(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.BadRequest_KeyCountMismatch, p0); } /// /// A string like "Segments with multiple key values must specify them in 'name=value' form." /// - internal static string RequestUriProcessor_KeysMustBeNamed { - get { + internal static string RequestUriProcessor_KeysMustBeNamed + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_KeysMustBeNamed); } } @@ -5735,22 +6726,26 @@ internal static string RequestUriProcessor_KeysMustBeNamed { /// /// A string like "Resource not found for the segment '{0}'." /// - internal static string RequestUriProcessor_ResourceNotFound(object p0) { + internal static string RequestUriProcessor_ResourceNotFound(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_ResourceNotFound, p0); } /// /// A string like "Batched service action '{0}' cannot be invoked because it was bound to an entity created in the same changeset." /// - internal static string RequestUriProcessor_BatchedActionOnEntityCreatedInSameChangeset(object p0) { + internal static string RequestUriProcessor_BatchedActionOnEntityCreatedInSameChangeset(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_BatchedActionOnEntityCreatedInSameChangeset, p0); } /// /// A string like "Forbidden" /// - internal static string RequestUriProcessor_Forbidden { - get { + internal static string RequestUriProcessor_Forbidden + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_Forbidden); } } @@ -5758,8 +6753,10 @@ internal static string RequestUriProcessor_Forbidden { /// /// A string like "Found an operation bound to a non-entity type." /// - internal static string RequestUriProcessor_OperationSegmentBoundToANonEntityType { - get { + internal static string RequestUriProcessor_OperationSegmentBoundToANonEntityType + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_OperationSegmentBoundToANonEntityType); } } @@ -5767,22 +6764,26 @@ internal static string RequestUriProcessor_OperationSegmentBoundToANonEntityType /// /// A string like "The request URI is not valid. The bound function binding to '{0}' does not match the composability of the escape function in the URI." /// - internal static string RequestUriProcessor_NoBoundEscapeFunctionSupported(object p0) { + internal static string RequestUriProcessor_NoBoundEscapeFunctionSupported(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_NoBoundEscapeFunctionSupported, p0); } /// /// A string like "The UrlEscape function '{0}' must have exactly one non-binding parameter of type 'Edm.String'." /// - internal static string RequestUriProcessor_EscapeFunctionMustHaveOneStringParameter(object p0) { + internal static string RequestUriProcessor_EscapeFunctionMustHaveOneStringParameter(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_EscapeFunctionMustHaveOneStringParameter, p0); } /// /// A string like "A composable escape function must have a valid operation passed as a parameter." /// - internal static string RequestUriProcessor_ComposableEscapeFunctionShouldHaveValidParameter { - get { + internal static string RequestUriProcessor_ComposableEscapeFunctionShouldHaveValidParameter + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.RequestUriProcessor_ComposableEscapeFunctionShouldHaveValidParameter); } } @@ -5790,36 +6791,42 @@ internal static string RequestUriProcessor_ComposableEscapeFunctionShouldHaveVal /// /// A string like "An internal error '{0}' occurred." /// - internal static string General_InternalError(object p0) { + internal static string General_InternalError(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.General_InternalError, p0); } /// /// A string like "A non-negative integer value was expected, but the value '{0}' is not a valid non-negative integer." /// - internal static string ExceptionUtils_CheckIntegerNotNegative(object p0) { + internal static string ExceptionUtils_CheckIntegerNotNegative(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExceptionUtils_CheckIntegerNotNegative, p0); } /// /// A string like "A positive integer value was expected, but the value '{0}' is not a valid positive integer." /// - internal static string ExceptionUtils_CheckIntegerPositive(object p0) { + internal static string ExceptionUtils_CheckIntegerPositive(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExceptionUtils_CheckIntegerPositive, p0); } /// /// A string like "A positive long value was expected; however, the value '{0}' is not a valid positive long value." /// - internal static string ExceptionUtils_CheckLongPositive(object p0) { + internal static string ExceptionUtils_CheckLongPositive(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExceptionUtils_CheckLongPositive, p0); } /// /// A string like "Value cannot be null or empty." /// - internal static string ExceptionUtils_ArgumentStringNullOrEmpty { - get { + internal static string ExceptionUtils_ArgumentStringNullOrEmpty + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExceptionUtils_ArgumentStringNullOrEmpty); } } @@ -5827,8 +6834,10 @@ internal static string ExceptionUtils_ArgumentStringNullOrEmpty { /// /// A string like "Only $ref is allowed with star in $expand option." /// - internal static string ExpressionToken_OnlyRefAllowWithStarInExpand { - get { + internal static string ExpressionToken_OnlyRefAllowWithStarInExpand + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionToken_OnlyRefAllowWithStarInExpand); } } @@ -5836,8 +6845,10 @@ internal static string ExpressionToken_OnlyRefAllowWithStarInExpand { /// /// A string like "No property is allowed after $ref segment." /// - internal static string ExpressionToken_NoPropAllowedAfterRef { - get { + internal static string ExpressionToken_NoPropAllowedAfterRef + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionToken_NoPropAllowedAfterRef); } } @@ -5845,8 +6856,10 @@ internal static string ExpressionToken_NoPropAllowedAfterRef { /// /// A string like "No segment is allowed before star in $expand." /// - internal static string ExpressionToken_NoSegmentAllowedBeforeStarInExpand { - get { + internal static string ExpressionToken_NoSegmentAllowedBeforeStarInExpand + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionToken_NoSegmentAllowedBeforeStarInExpand); } } @@ -5854,50 +6867,58 @@ internal static string ExpressionToken_NoSegmentAllowedBeforeStarInExpand { /// /// A string like "An identifier was expected at position {0}." /// - internal static string ExpressionToken_IdentifierExpected(object p0) { + internal static string ExpressionToken_IdentifierExpected(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionToken_IdentifierExpected, p0); } /// /// A string like "There is an unterminated string literal at position {0} in '{1}'." /// - internal static string ExpressionLexer_UnterminatedStringLiteral(object p0, object p1) { + internal static string ExpressionLexer_UnterminatedStringLiteral(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_UnterminatedStringLiteral, p0, p1); } /// /// A string like "Syntax error: character '{0}' is not valid at position {1} in '{2}'." /// - internal static string ExpressionLexer_InvalidCharacter(object p0, object p1, object p2) { + internal static string ExpressionLexer_InvalidCharacter(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_InvalidCharacter, p0, p1, p2); } /// /// A string like "Syntax error at position {0} in '{1}'." /// - internal static string ExpressionLexer_SyntaxError(object p0, object p1) { + internal static string ExpressionLexer_SyntaxError(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_SyntaxError, p0, p1); } /// /// A string like "There is an unterminated literal at position {0} in '{1}'." /// - internal static string ExpressionLexer_UnterminatedLiteral(object p0, object p1) { + internal static string ExpressionLexer_UnterminatedLiteral(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_UnterminatedLiteral, p0, p1); } /// /// A string like "A digit was expected at position {0} in '{1}'." /// - internal static string ExpressionLexer_DigitExpected(object p0, object p1) { + internal static string ExpressionLexer_DigitExpected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_DigitExpected, p0, p1); } /// /// A string like "Found an unbalanced bracket expression." /// - internal static string ExpressionLexer_UnbalancedBracketExpression { - get { + internal static string ExpressionLexer_UnbalancedBracketExpression + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_UnbalancedBracketExpression); } } @@ -5905,43 +6926,50 @@ internal static string ExpressionLexer_UnbalancedBracketExpression { /// /// A string like "Numeric string '{0}' is not a valid Int32/Int64/Double/Decimal." /// - internal static string ExpressionLexer_InvalidNumericString(object p0) { + internal static string ExpressionLexer_InvalidNumericString(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_InvalidNumericString, p0); } /// /// A string like "An unrecognized escape sequence '\\{0}' was found at position {1} in '{2}'." /// - internal static string ExpressionLexer_InvalidEscapeSequence(object p0, object p1, object p2) { + internal static string ExpressionLexer_InvalidEscapeSequence(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ExpressionLexer_InvalidEscapeSequence, p0, p1, p2); } /// /// A string like "Unrecognized '{0}' literal '{1}' at '{2}' in '{3}'." /// - internal static string UriQueryExpressionParser_UnrecognizedLiteral(object p0, object p1, object p2, object p3) { + internal static string UriQueryExpressionParser_UnrecognizedLiteral(object p0, object p1, object p2, object p3) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_UnrecognizedLiteral, p0, p1, p2, p3); } /// /// A string like "Unrecognized '{0}' literal '{1}' at '{2}' in '{3}' with reason '{4}'." /// - internal static string UriQueryExpressionParser_UnrecognizedLiteralWithReason(object p0, object p1, object p2, object p3, object p4) { + internal static string UriQueryExpressionParser_UnrecognizedLiteralWithReason(object p0, object p1, object p2, object p3, object p4) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriQueryExpressionParser_UnrecognizedLiteralWithReason, p0, p1, p2, p3, p4); } /// /// A string like "Failed to parse '{0}' of Edm type '{1}' to primitive type." /// - internal static string UriPrimitiveTypeParsers_FailedToParseTextToPrimitiveValue(object p0, object p1) { + internal static string UriPrimitiveTypeParsers_FailedToParseTextToPrimitiveValue(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriPrimitiveTypeParsers_FailedToParseTextToPrimitiveValue, p0, p1); } /// /// A string like "Failed to parse string to Geography." /// - internal static string UriPrimitiveTypeParsers_FailedToParseStringToGeography { - get { + internal static string UriPrimitiveTypeParsers_FailedToParseStringToGeography + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriPrimitiveTypeParsers_FailedToParseStringToGeography); } } @@ -5949,8 +6977,10 @@ internal static string UriPrimitiveTypeParsers_FailedToParseStringToGeography { /// /// A string like "The given uri custom type parser already exists." /// - internal static string UriCustomTypeParsers_AddCustomUriTypeParserAlreadyExists { - get { + internal static string UriCustomTypeParsers_AddCustomUriTypeParserAlreadyExists + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriCustomTypeParsers_AddCustomUriTypeParserAlreadyExists); } } @@ -5958,57 +6988,66 @@ internal static string UriCustomTypeParsers_AddCustomUriTypeParserAlreadyExists /// /// A string like "An existing custom UriTypeParser is already registered to the given EdmTypeReference '{0}'." /// - internal static string UriCustomTypeParsers_AddCustomUriTypeParserEdmTypeExists(object p0) { + internal static string UriCustomTypeParsers_AddCustomUriTypeParserEdmTypeExists(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriCustomTypeParsers_AddCustomUriTypeParserEdmTypeExists, p0); } /// /// A string like "The given type prefix literal name '{0}' must contain letters or '.' only." /// - internal static string UriParserHelper_InvalidPrefixLiteral(object p0) { + internal static string UriParserHelper_InvalidPrefixLiteral(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.UriParserHelper_InvalidPrefixLiteral, p0); } /// /// A string like "The given type literal prefix '{0}' already exists as a custom uri type literal prefix." /// - internal static string CustomUriTypePrefixLiterals_AddCustomUriTypePrefixLiteralAlreadyExists(object p0) { + internal static string CustomUriTypePrefixLiterals_AddCustomUriTypePrefixLiteralAlreadyExists(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.CustomUriTypePrefixLiterals_AddCustomUriTypePrefixLiteralAlreadyExists, p0); } /// /// A string like "The value '{0}' is not a valid duration value." /// - internal static string ValueParser_InvalidDuration(object p0) { + internal static string ValueParser_InvalidDuration(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ValueParser_InvalidDuration, p0); } /// /// A string like "The time zone information is missing on the DateTimeOffset value '{0}'. A DateTimeOffset value must contain the time zone information." /// - internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) { + internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.PlatformHelper_DateTimeOffsetMustContainTimeZone, p0); } /// /// A string like "Invalid JSON. An unexpected comma was found in scope '{0}'. A comma is only valid between properties of an object or between elements of an array." /// - internal static string JsonReader_UnexpectedComma(object p0) { + internal static string JsonReader_UnexpectedComma(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_UnexpectedComma, p0); } /// /// A string like "Invalid JSON. A array closure mismatch occurred. A '{0}' was expected to match '{1}', but instead '{2}' was found." /// - internal static string JsonReader_ArrayClosureMismatch(object p0, object p1, object p2) { + internal static string JsonReader_ArrayClosureMismatch(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_ArrayClosureMismatch, p0, p1, p2); } /// /// A string like "Invalid JSON. More than one value was found at the root of the JSON content. JSON content can only have one value at the root level, which is an array, an object or a primitive value." /// - internal static string JsonReader_MultipleTopLevelValues { - get { + internal static string JsonReader_MultipleTopLevelValues + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_MultipleTopLevelValues); } } @@ -6016,8 +7055,10 @@ internal static string JsonReader_MultipleTopLevelValues { /// /// A string like "Invalid JSON. Unexpected end of input was found in JSON content. Not all object and array scopes were closed." /// - internal static string JsonReader_EndOfInputWithOpenScope { - get { + internal static string JsonReader_EndOfInputWithOpenScope + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_EndOfInputWithOpenScope); } } @@ -6025,15 +7066,18 @@ internal static string JsonReader_EndOfInputWithOpenScope { /// /// A string like "Invalid JSON. Unexpected token '{0}'." /// - internal static string JsonReader_UnexpectedToken(object p0) { + internal static string JsonReader_UnexpectedToken(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_UnexpectedToken, p0); } /// /// A string like "Invalid JSON. A token was not recognized in the JSON content." /// - internal static string JsonReader_UnrecognizedToken { - get { + internal static string JsonReader_UnrecognizedToken + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_UnrecognizedToken); } } @@ -6041,22 +7085,26 @@ internal static string JsonReader_UnrecognizedToken { /// /// A string like "Invalid JSON. A colon character ':' is expected after the property name '{0}', but none was found." /// - internal static string JsonReader_MissingColon(object p0) { + internal static string JsonReader_MissingColon(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_MissingColon, p0); } /// /// A string like "Invalid JSON. An unrecognized escape sequence '{0}' was found in a JSON string value." /// - internal static string JsonReader_UnrecognizedEscapeSequence(object p0) { + internal static string JsonReader_UnrecognizedEscapeSequence(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_UnrecognizedEscapeSequence, p0); } /// /// A string like "Invalid JSON. Unexpected end of input reached while processing a JSON string value." /// - internal static string JsonReader_UnexpectedEndOfString { - get { + internal static string JsonReader_UnexpectedEndOfString + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_UnexpectedEndOfString); } } @@ -6064,36 +7112,42 @@ internal static string JsonReader_UnexpectedEndOfString { /// /// A string like "Invalid JSON. The value '{0}' is not a valid number." /// - internal static string JsonReader_InvalidNumberFormat(object p0) { + internal static string JsonReader_InvalidNumberFormat(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_InvalidNumberFormat, p0); } /// /// A string like "Invalid Binary value. The value '{0}' is not a valid Base64 encoded value." /// - internal static string JsonReader_InvalidBinaryFormat(object p0) { + internal static string JsonReader_InvalidBinaryFormat(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_InvalidBinaryFormat, p0); } /// /// A string like "Invalid JSON. A comma character ',' was expected in scope '{0}'. Every two elements in an array and properties of an object must be separated by commas." /// - internal static string JsonReader_MissingComma(object p0) { + internal static string JsonReader_MissingComma(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_MissingComma, p0); } /// /// A string like "Invalid JSON. The property name '{0}' is not valid. The name of a property cannot be empty." /// - internal static string JsonReader_InvalidPropertyNameOrUnexpectedComma(object p0) { + internal static string JsonReader_InvalidPropertyNameOrUnexpectedComma(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_InvalidPropertyNameOrUnexpectedComma, p0); } /// /// A string like "Cannot increase the JSON reader buffer to hold the input JSON which has very long token." /// - internal static string JsonReader_MaxBufferReached { - get { + internal static string JsonReader_MaxBufferReached + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_MaxBufferReached); } } @@ -6101,8 +7155,10 @@ internal static string JsonReader_MaxBufferReached { /// /// A string like "Cannot access the Value property while streaming a value. Please dispose the StreamReader or TextReader before continuing." /// - internal static string JsonReader_CannotAccessValueInStreamState { - get { + internal static string JsonReader_CannotAccessValueInStreamState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_CannotAccessValueInStreamState); } } @@ -6110,8 +7166,10 @@ internal static string JsonReader_CannotAccessValueInStreamState { /// /// A string like "Cannot call Read while streaming a value. Please dispose the StreamReader or TextReader before continuing." /// - internal static string JsonReader_CannotCallReadInStreamState { - get { + internal static string JsonReader_CannotCallReadInStreamState + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_CannotCallReadInStreamState); } } @@ -6119,8 +7177,10 @@ internal static string JsonReader_CannotCallReadInStreamState { /// /// A string like "Cannot create a Stream in the current state. A Stream can only be created for reading a JSON string value when positioned on, and before accessing, the value." /// - internal static string JsonReader_CannotCreateReadStream { - get { + internal static string JsonReader_CannotCreateReadStream + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_CannotCreateReadStream); } } @@ -6128,8 +7188,10 @@ internal static string JsonReader_CannotCreateReadStream { /// /// A string like "Cannot create a TextReader in the current state. A TextReader can only be created for reading a JSON string value when positioned on, and before accessing, the value." /// - internal static string JsonReader_CannotCreateTextReader { - get { + internal static string JsonReader_CannotCreateTextReader + { + get + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReader_CannotCreateTextReader); } } @@ -6137,56 +7199,64 @@ internal static string JsonReader_CannotCreateTextReader { /// /// A string like "An unexpected '{1}' node was found when reading from the JSON reader. A '{0}' node was expected." /// - internal static string JsonReaderExtensions_UnexpectedNodeDetected(object p0, object p1) { + internal static string JsonReaderExtensions_UnexpectedNodeDetected(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_UnexpectedNodeDetected, p0, p1); } /// /// A string like "An unexpected '{1}' node was found for property named '{2}' when reading from the JSON reader. A '{0}' node was expected." /// - internal static string JsonReaderExtensions_UnexpectedNodeDetectedWithPropertyName(object p0, object p1, object p2) { + internal static string JsonReaderExtensions_UnexpectedNodeDetectedWithPropertyName(object p0, object p1, object p2) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_UnexpectedNodeDetectedWithPropertyName, p0, p1, p2); } /// /// A string like "Cannot read the value '{0}' for the property '{1}' as a quoted JSON string value." /// - internal static string JsonReaderExtensions_CannotReadPropertyValueAsString(object p0, object p1) { + internal static string JsonReaderExtensions_CannotReadPropertyValueAsString(object p0, object p1) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_CannotReadPropertyValueAsString, p0, p1); } /// /// A string like "Cannot read the value '{0}' as a quoted JSON string value." /// - internal static string JsonReaderExtensions_CannotReadValueAsString(object p0) { + internal static string JsonReaderExtensions_CannotReadValueAsString(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_CannotReadValueAsString, p0); } /// /// A string like "Cannot read the value '{0}' as a double numeric value." /// - internal static string JsonReaderExtensions_CannotReadValueAsDouble(object p0) { + internal static string JsonReaderExtensions_CannotReadValueAsDouble(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_CannotReadValueAsDouble, p0); } /// /// A string like "An unexpected instance annotation name '{0}' was found when reading from the JSON reader, In OData, Instance annotation name must start with @." /// - internal static string JsonReaderExtensions_UnexpectedInstanceAnnotationName(object p0) { + internal static string JsonReaderExtensions_UnexpectedInstanceAnnotationName(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.JsonReaderExtensions_UnexpectedInstanceAnnotationName, p0); } /// /// A string like "The buffer from pool cannot be null or less than the required minimal size '{0}'." /// - internal static string BufferUtils_InvalidBufferOrSize(object p0) { + internal static string BufferUtils_InvalidBufferOrSize(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.BufferUtils_InvalidBufferOrSize, p0); } /// /// A string like "No service for type '{0}' has been registered." /// - internal static string ServiceProviderExtensions_NoServiceRegistered(object p0) { + internal static string ServiceProviderExtensions_NoServiceRegistered(object p0) + { return Microsoft.OData.TextRes.GetString(Microsoft.OData.TextRes.ServiceProviderExtensions_NoServiceRegistered, p0); } diff --git a/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs b/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs index 6200c3a4e9..aa211e76d1 100644 --- a/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs +++ b/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs @@ -18,14 +18,14 @@ namespace Microsoft.OData.Edm /// /// AutoGenerated resource class. Usage: /// - /// string s = EdmRes.GetString(EdmRes.MyIdenfitier); + /// string s = EdmRes.GetString(EdmRes.MyIdentifier); /// internal sealed class EdmRes { internal const string EdmPrimitive_UnexpectedKind = "EdmPrimitive_UnexpectedKind"; internal const string EdmPath_UnexpectedKind = "EdmPath_UnexpectedKind"; internal const string Annotations_TypeMismatch = "Annotations_TypeMismatch"; internal const string Constructable_VocabularyAnnotationMustHaveTarget = "Constructable_VocabularyAnnotationMustHaveTarget"; - internal const string Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected = "Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected"; + internal const string Constructable_EntityTypeOrCollectionOfEntityTypeExpected = "Constructable_EntityTypeOrCollectionOfEntityTypeExpected"; internal const string Constructable_TargetMustBeStock = "Constructable_TargetMustBeStock"; internal const string TypeSemantics_CouldNotConvertTypeReference = "TypeSemantics_CouldNotConvertTypeReference"; internal const string EdmModel_CannotUseElementWithTypeNone = "EdmModel_CannotUseElementWithTypeNone"; diff --git a/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs b/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs index 111ad26c66..5172ab484d 100644 --- a/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs +++ b/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs @@ -18,8 +18,10 @@ internal static class Strings { /// /// A string like "Unexpected primitive type kind." /// - internal static string EdmPrimitive_UnexpectedKind { - get { + internal static string EdmPrimitive_UnexpectedKind + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmPrimitive_UnexpectedKind); } } @@ -27,8 +29,10 @@ internal static string EdmPrimitive_UnexpectedKind { /// /// A string like "Unexpected path type kind." /// - internal static string EdmPath_UnexpectedKind { - get { + internal static string EdmPath_UnexpectedKind + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmPath_UnexpectedKind); } } @@ -36,47 +40,56 @@ internal static string EdmPath_UnexpectedKind { /// /// A string like "Annotation of type '{0}' cannot be interpreted as '{1}'." /// - internal static string Annotations_TypeMismatch(object p0, object p1) { + internal static string Annotations_TypeMismatch(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Annotations_TypeMismatch, p0, p1); } /// /// A string like "The annotation must have non-null target." /// - internal static string Constructable_VocabularyAnnotationMustHaveTarget { - get { + internal static string Constructable_VocabularyAnnotationMustHaveTarget + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Constructable_VocabularyAnnotationMustHaveTarget); } } /// - /// A string like "An entity type or a collection of an entity type or a complex type is expected." + /// A string like "An entity type or a collection of an entity type is expected." /// - internal static string Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected { - get { - return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected); + internal static string Constructable_EntityTypeOrCollectionOfEntityTypeExpected + { + get + { + return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Constructable_EntityTypeOrCollectionOfEntityTypeExpected); } } /// /// A string like "Navigation target entity type must be '{0}'." /// - internal static string Constructable_TargetMustBeStock(object p0) { + internal static string Constructable_TargetMustBeStock(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Constructable_TargetMustBeStock, p0); } /// /// A string like "The type '{0}' could not be converted to be a '{1}' type." /// - internal static string TypeSemantics_CouldNotConvertTypeReference(object p0, object p1) { + internal static string TypeSemantics_CouldNotConvertTypeReference(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TypeSemantics_CouldNotConvertTypeReference, p0, p1); } /// /// A string like "An element with type 'None' cannot be used in a model." /// - internal static string EdmModel_CannotUseElementWithTypeNone { - get { + internal static string EdmModel_CannotUseElementWithTypeNone + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_CannotUseElementWithTypeNone); } } @@ -84,8 +97,10 @@ internal static string EdmModel_CannotUseElementWithTypeNone { /// /// A string like "Cannot add more than one entity container to an edm model." /// - internal static string EdmModel_CannotAddMoreThanOneEntityContainerToOneEdmModel { - get { + internal static string EdmModel_CannotAddMoreThanOneEntityContainerToOneEdmModel + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_CannotAddMoreThanOneEntityContainerToOneEdmModel); } } @@ -93,8 +108,10 @@ internal static string EdmModel_CannotAddMoreThanOneEntityContainerToOneEdmModel /// /// A string like "An element with type 'None' cannot be used in an entity container." /// - internal static string EdmEntityContainer_CannotUseElementWithTypeNone { - get { + internal static string EdmEntityContainer_CannotUseElementWithTypeNone + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmEntityContainer_CannotUseElementWithTypeNone); } } @@ -102,15 +119,18 @@ internal static string EdmEntityContainer_CannotUseElementWithTypeNone { /// /// A string like "The value writer cannot write a value of kind '{0}'." /// - internal static string ValueWriter_NonSerializableValue(object p0) { + internal static string ValueWriter_NonSerializableValue(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueWriter_NonSerializableValue, p0); } /// /// A string like "Value has already been set." /// - internal static string ValueHasAlreadyBeenSet { - get { + internal static string ValueHasAlreadyBeenSet + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueHasAlreadyBeenSet); } } @@ -118,8 +138,10 @@ internal static string ValueHasAlreadyBeenSet { /// /// A string like "Path segments must not contain '/' character." /// - internal static string PathSegmentMustNotContainSlash { - get { + internal static string PathSegmentMustNotContainSlash + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.PathSegmentMustNotContainSlash); } } @@ -127,15 +149,18 @@ internal static string PathSegmentMustNotContainSlash { /// /// A string like "The number of dependent properties must match the number of key properties on the principal entity type. '{0}' principal properties were provided, but {1} dependent properties were provided." /// - internal static string Constructable_DependentPropertyCountMustMatchNumberOfPropertiesOnPrincipalType(object p0, object p1) { + internal static string Constructable_DependentPropertyCountMustMatchNumberOfPropertiesOnPrincipalType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Constructable_DependentPropertyCountMustMatchNumberOfPropertiesOnPrincipalType, p0, p1); } /// /// A string like "Unexpected Edm type." /// - internal static string EdmType_UnexpectedEdmType { - get { + internal static string EdmType_UnexpectedEdmType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmType_UnexpectedEdmType); } } @@ -143,8 +168,10 @@ internal static string EdmType_UnexpectedEdmType { /// /// A string like "The navigation property binding path is not valid." /// - internal static string NavigationPropertyBinding_PathIsNotValid { - get { + internal static string NavigationPropertyBinding_PathIsNotValid + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.NavigationPropertyBinding_PathIsNotValid); } } @@ -152,50 +179,58 @@ internal static string NavigationPropertyBinding_PathIsNotValid { /// /// A string like "Type '{0}' must have a single type annotation with term type '{1}'." /// - internal static string Edm_Evaluator_NoTermTypeAnnotationOnType(object p0, object p1) { + internal static string Edm_Evaluator_NoTermTypeAnnotationOnType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_NoTermTypeAnnotationOnType, p0, p1); } /// /// A string like "Type '{0}' must have a single annotation with term '{1}'." /// - internal static string Edm_Evaluator_NoValueAnnotationOnType(object p0, object p1) { + internal static string Edm_Evaluator_NoValueAnnotationOnType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_NoValueAnnotationOnType, p0, p1); } /// /// A string like "Element must have a single annotation with term '{0}'." /// - internal static string Edm_Evaluator_NoValueAnnotationOnElement(object p0) { + internal static string Edm_Evaluator_NoValueAnnotationOnElement(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_NoValueAnnotationOnElement, p0); } /// /// A string like "Expression with kind '{0}' cannot be evaluated." /// - internal static string Edm_Evaluator_UnrecognizedExpressionKind(object p0) { + internal static string Edm_Evaluator_UnrecognizedExpressionKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_UnrecognizedExpressionKind, p0); } /// /// A string like "Function '{0}' is not present in the execution environment." /// - internal static string Edm_Evaluator_UnboundFunction(object p0) { + internal static string Edm_Evaluator_UnboundFunction(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_UnboundFunction, p0); } /// /// A string like "Path segment '{0}' has no binding in the execution environment." /// - internal static string Edm_Evaluator_UnboundPath(object p0) { + internal static string Edm_Evaluator_UnboundPath(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_UnboundPath, p0); } /// /// A string like "A containing object cannot be null when getting value of an annotation with Path in the execution environment." /// - internal static string Edm_Evaluator_NoContextPath { - get { + internal static string Edm_Evaluator_NoContextPath + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_NoContextPath); } } @@ -203,15 +238,18 @@ internal static string Edm_Evaluator_NoContextPath { /// /// A string like "Value fails to match type '{0}'." /// - internal static string Edm_Evaluator_FailedTypeAssertion(object p0) { + internal static string Edm_Evaluator_FailedTypeAssertion(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_FailedTypeAssertion, p0); } /// /// A string like "An edm model must be provided for type cast." /// - internal static string Edm_Evaluator_TypeCastNeedsEdmModel { - get { + internal static string Edm_Evaluator_TypeCastNeedsEdmModel + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Edm_Evaluator_TypeCastNeedsEdmModel); } } @@ -219,113 +257,130 @@ internal static string Edm_Evaluator_TypeCastNeedsEdmModel { /// /// A string like "The namespace '{0}' is a system namespace and cannot be used by non-system types. Please choose a different namespace." /// - internal static string EdmModel_Validator_Semantic_SystemNamespaceEncountered(object p0) { + internal static string EdmModel_Validator_Semantic_SystemNamespaceEncountered(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_SystemNamespaceEncountered, p0); } /// /// A string like "The entity set or singleton '{0}' is based on type '{1}' that has no keys defined." /// - internal static string EdmModel_Validator_Semantic_NavigationSourceTypeHasNoKeys(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_NavigationSourceTypeHasNoKeys(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationSourceTypeHasNoKeys, p0, p1); } /// /// A string like "An end with the name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_DuplicateEndName(object p0) { + internal static string EdmModel_Validator_Semantic_DuplicateEndName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateEndName, p0); } /// /// A string like "The key specified in entity type '{0}' is not valid. Property '{1}' is referenced more than once in the key element." /// - internal static string EdmModel_Validator_Semantic_DuplicatePropertyNameSpecifiedInEntityKey(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_DuplicatePropertyNameSpecifiedInEntityKey(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicatePropertyNameSpecifiedInEntityKey, p0, p1); } /// /// A string like "The complex type '{0}' is marked as abstract. Abstract complex types are only supported in version 1.1 EDM models." /// - internal static string EdmModel_Validator_Semantic_InvalidComplexTypeAbstract(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidComplexTypeAbstract(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidComplexTypeAbstract, p0); } /// /// A string like "The complex type '{0}' has a base type specified. Complex type inheritance is only supported in version 1.1 EDM models." /// - internal static string EdmModel_Validator_Semantic_InvalidComplexTypePolymorphic(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidComplexTypePolymorphic(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidComplexTypePolymorphic, p0); } /// /// A string like "The key part '{0}' for type '{1}' is not valid. All parts of the key must be non nullable." /// - internal static string EdmModel_Validator_Semantic_InvalidKeyNullablePart(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_InvalidKeyNullablePart(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidKeyNullablePart, p0, p1); } /// /// A string like "The property '{0}' in entity type '{1}' is not valid. All properties that are part of the entity key must be of primitive type." /// - internal static string EdmModel_Validator_Semantic_EntityKeyMustBeScalar(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EntityKeyMustBeScalar(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntityKeyMustBeScalar, p0, p1); } /// /// A string like "The entity type '{0}' has more than one composable escape functions '{1}' defined." /// - internal static string EdmModel_Validator_Semantic_EntityComposableBoundEscapeFunctionMustBeLessOne(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EntityComposableBoundEscapeFunctionMustBeLessOne(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntityComposableBoundEscapeFunctionMustBeLessOne, p0, p1); } /// /// A string like "The entity type '{0}' has more than one non-composable escape functions '{1}' defined." /// - internal static string EdmModel_Validator_Semantic_EntityNoncomposableBoundEscapeFunctionMustBeLessOne(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EntityNoncomposableBoundEscapeFunctionMustBeLessOne(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntityNoncomposableBoundEscapeFunctionMustBeLessOne, p0, p1); } /// /// A string like "The key usage is not valid. '{0}' cannot define keys because one of its base classes '{1}' defines keys." /// - internal static string EdmModel_Validator_Semantic_InvalidKeyKeyDefinedInBaseClass(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_InvalidKeyKeyDefinedInBaseClass(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidKeyKeyDefinedInBaseClass, p0, p1); } /// /// A string like "The entity type '{0}' has no key defined. Define the key for this entity type." /// - internal static string EdmModel_Validator_Semantic_KeyMissingOnEntityType(object p0) { + internal static string EdmModel_Validator_Semantic_KeyMissingOnEntityType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_KeyMissingOnEntityType, p0); } /// /// A string like "The navigation property '{0}' is not valid. The role '{1}' is not defined in relationship '{2}'." /// - internal static string EdmModel_Validator_Semantic_BadNavigationPropertyUndefinedRole(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_BadNavigationPropertyUndefinedRole(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BadNavigationPropertyUndefinedRole, p0, p1, p2); } /// /// A string like "The navigation property '{0}'is not valid. The from role and to role are the same." /// - internal static string EdmModel_Validator_Semantic_BadNavigationPropertyRolesCannotBeTheSame(object p0) { + internal static string EdmModel_Validator_Semantic_BadNavigationPropertyRolesCannotBeTheSame(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BadNavigationPropertyRolesCannotBeTheSame, p0); } /// /// A string like "The navigation property type could not be determined from the role '{0}'." /// - internal static string EdmModel_Validator_Semantic_BadNavigationPropertyCouldNotDetermineType(object p0) { + internal static string EdmModel_Validator_Semantic_BadNavigationPropertyCouldNotDetermineType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BadNavigationPropertyCouldNotDetermineType, p0); } /// /// A string like "An on delete action can only be specified on one end of an association." /// - internal static string EdmModel_Validator_Semantic_InvalidOperationMultipleEndsInAssociation { - get { + internal static string EdmModel_Validator_Semantic_InvalidOperationMultipleEndsInAssociation + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidOperationMultipleEndsInAssociation); } } @@ -333,64 +388,74 @@ internal static string EdmModel_Validator_Semantic_InvalidOperationMultipleEndsI /// /// A string like "The navigation property '{0}' cannot have 'OnDelete' specified since its multiplicity is '*'." /// - internal static string EdmModel_Validator_Semantic_EndWithManyMultiplicityCannotHaveOperationsSpecified(object p0) { + internal static string EdmModel_Validator_Semantic_EndWithManyMultiplicityCannotHaveOperationsSpecified(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EndWithManyMultiplicityCannotHaveOperationsSpecified, p0); } /// /// A string like "Each name and plural name in a relationship must be unique. '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_EndNameAlreadyDefinedDuplicate(object p0) { + internal static string EdmModel_Validator_Semantic_EndNameAlreadyDefinedDuplicate(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EndNameAlreadyDefinedDuplicate, p0); } /// /// A string like "In relationship '{0}', the principal and dependent role of the referential constraint refers to the same role in the relationship type." /// - internal static string EdmModel_Validator_Semantic_SameRoleReferredInReferentialConstraint(object p0) { + internal static string EdmModel_Validator_Semantic_SameRoleReferredInReferentialConstraint(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_SameRoleReferredInReferentialConstraint, p0); } /// /// A string like "The principal navigation property '{0}' has an invalid multiplicity. Valid values for the multiplicity of a principal end are '0..1' or '1'." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyPrincipalEndMultiplicityUpperBoundMustBeOne(object p0) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyPrincipalEndMultiplicityUpperBoundMustBeOne(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyPrincipalEndMultiplicityUpperBoundMustBeOne, p0); } /// /// A string like "Because all dependent properties of the navigation '{0}' are non-nullable, the multiplicity of the principal end must be '1'." /// - internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNonnullable(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNonnullable(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNonnullable, p0); } /// /// A string like "Because all dependent properties of the navigation '{0}' are nullable, the multiplicity of the principal end must be '0..1'." /// - internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNullable(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNullable(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidMultiplicityOfPrincipalEndDependentPropertiesAllNullable, p0); } /// /// A string like "The multiplicity of the dependent end '{0}' is not valid. Because the dependent properties represent the dependent end key, the multiplicity of the dependent end must be '0..1' or '1'." /// - internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeZeroOneOrOne(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeZeroOneOrOne(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeZeroOneOrOne, p0); } /// /// A string like "The multiplicity of the dependent end '{0}' is not valid. Because the dependent properties don't represent the dependent end key, the the multiplicity of the dependent end must be '*'." /// - internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeMany(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeMany(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidMultiplicityOfDependentEndMustBeMany, p0); } /// /// A string like "The number of properties in the dependent and principal role in a relationship constraint must be exactly identical." /// - internal static string EdmModel_Validator_Semantic_MismatchNumberOfPropertiesinRelationshipConstraint { - get { + internal static string EdmModel_Validator_Semantic_MismatchNumberOfPropertiesinRelationshipConstraint + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_MismatchNumberOfPropertiesinRelationshipConstraint); } } @@ -398,246 +463,282 @@ internal static string EdmModel_Validator_Semantic_MismatchNumberOfPropertiesinR /// /// A string like "The types of all properties in the dependent role of a referential constraint must be the same as the corresponding property types in the principal role. The type of property '{0}' on entity '{1}' does not match the type of property '{2}' on entity '{3}' in the referential constraint '{4}'." /// - internal static string EdmModel_Validator_Semantic_TypeMismatchRelationshipConstraint(object p0, object p1, object p2, object p3, object p4) { + internal static string EdmModel_Validator_Semantic_TypeMismatchRelationshipConstraint(object p0, object p1, object p2, object p3, object p4) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_TypeMismatchRelationshipConstraint, p0, p1, p2, p3, p4); } /// /// A string like "There is no property with name '{0}' defined in the type referred to by role '{1}'." /// - internal static string EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintDependentEnd(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintDependentEnd(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintDependentEnd, p0, p1); } /// /// A string like "The principal end properties in the referential constraint of the association '{0}' do not match the key of the type referred to by role '{1}'." /// - internal static string EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintPrimaryEnd(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintPrimaryEnd(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidPropertyInRelationshipConstraintPrimaryEnd, p0, p1); } /// /// A string like "A property cannot be of type '{0}'. The property type must be a complex, a primitive, an enum, a type definition or an untyped type, or a collection of complex, primitive, enum types, or type definition." /// - internal static string EdmModel_Validator_Semantic_InvalidPropertyType(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidPropertyType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidPropertyType, p0); } /// /// A string like "The Bound operation '{0}' must have at least one parameter." /// - internal static string EdmModel_Validator_Semantic_BoundOperationMustHaveParameters(object p0) { + internal static string EdmModel_Validator_Semantic_BoundOperationMustHaveParameters(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BoundOperationMustHaveParameters, p0); } /// /// A string like "Required Parameter '{0}' must not follow an optional parameter." /// - internal static string EdmModel_Validator_Semantic_RequiredParametersMustPrecedeOptional(object p0) { + internal static string EdmModel_Validator_Semantic_RequiredParametersMustPrecedeOptional(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_RequiredParametersMustPrecedeOptional, p0); } /// /// A string like "The return type is not valid in operation '{0}'. The operation has an unsupported type." /// - internal static string EdmModel_Validator_Semantic_OperationWithUnsupportedReturnType(object p0) { + internal static string EdmModel_Validator_Semantic_OperationWithUnsupportedReturnType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationWithUnsupportedReturnType, p0); } /// /// A string like "The operation import '{0}' returns entities of type '{1}' that cannot exist in the entity set '{2}' specified for the operation import." /// - internal static string EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet, p0, p1, p2); } /// /// A string like "The operation import '{0}' returns entities of type '{1}' that cannot be returned by the entity set path specified for the operation import." /// - internal static string EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet2(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet2(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportEntityTypeDoesNotMatchEntitySet2, p0, p1); } /// /// A string like "The operation import '{0}' specifies an entity set of kind '{1}' which is not supported in this context. Operation import entity set expression can be either an entity set reference or a path starting with a operation import parameter and traversing navigation properties." /// - internal static string EdmModel_Validator_Semantic_OperationImportEntitySetExpressionKindIsInvalid(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_OperationImportEntitySetExpressionKindIsInvalid(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportEntitySetExpressionKindIsInvalid, p0, p1); } /// /// A string like "The operation import '{0}' specifies an entity set expression which is not valid. Operation import entity set expression can be either an entity set reference or a path starting with a operation import parameter and traversing navigation properties." /// - internal static string EdmModel_Validator_Semantic_OperationImportEntitySetExpressionIsInvalid(object p0) { + internal static string EdmModel_Validator_Semantic_OperationImportEntitySetExpressionIsInvalid(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportEntitySetExpressionIsInvalid, p0); } /// /// A string like "The operation import '{0}' specifies an entity set but does not return entities." /// - internal static string EdmModel_Validator_Semantic_OperationImportSpecifiesEntitySetButNotEntityType(object p0) { + internal static string EdmModel_Validator_Semantic_OperationImportSpecifiesEntitySetButNotEntityType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportSpecifiesEntitySetButNotEntityType, p0); } /// /// A string like "The operation import '{0}' imports operation '{1}' that is bound. Only an unbound operation can be imported using an operation import." /// - internal static string EdmModel_Validator_Semantic_OperationImportCannotImportBoundOperation(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_OperationImportCannotImportBoundOperation(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationImportCannotImportBoundOperation, p0, p1); } /// /// A string like "The function import '{0}' should not be included in service document because it has parameter." /// - internal static string EdmModel_Validator_Semantic_FunctionImportWithParameterShouldNotBeIncludedInServiceDocument(object p0) { + internal static string EdmModel_Validator_Semantic_FunctionImportWithParameterShouldNotBeIncludedInServiceDocument(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_FunctionImportWithParameterShouldNotBeIncludedInServiceDocument, p0); } /// /// A string like "The function '{0}' must specify a return type." /// - internal static string EdmModel_Validator_Semantic_FunctionMustHaveReturnType(object p0) { + internal static string EdmModel_Validator_Semantic_FunctionMustHaveReturnType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_FunctionMustHaveReturnType, p0); } /// /// A string like "The UrlEscape function '{0}' must be a bound function." /// - internal static string EdmModel_Validator_Semantic_UrlEscapeFunctionMustBoundFunction(object p0) { + internal static string EdmModel_Validator_Semantic_UrlEscapeFunctionMustBoundFunction(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_UrlEscapeFunctionMustBoundFunction, p0); } /// /// A string like "The UrlEscape function '{0}' must have and only have one 'Edm.String' parameter." /// - internal static string EdmModel_Validator_Semantic_UrlEscapeFunctionMustHaveOneStringParameter(object p0) { + internal static string EdmModel_Validator_Semantic_UrlEscapeFunctionMustHaveOneStringParameter(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_UrlEscapeFunctionMustHaveOneStringParameter, p0); } /// /// A string like "Each parameter name in a operation must be unique. The parameter name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_ParameterNameAlreadyDefinedDuplicate(object p0) { + internal static string EdmModel_Validator_Semantic_ParameterNameAlreadyDefinedDuplicate(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ParameterNameAlreadyDefinedDuplicate, p0); } /// /// A string like "Each member name in an EntityContainer must be unique. A member with name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_DuplicateEntityContainerMemberName(object p0) { + internal static string EdmModel_Validator_Semantic_DuplicateEntityContainerMemberName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateEntityContainerMemberName, p0); } /// /// A string like "The function '{0}' has a different return type than other function overloads with the same name. Functions with the same name must have the same return type." /// - internal static string EdmModel_Validator_Semantic_UnboundFunctionOverloadHasIncorrectReturnType(object p0) { + internal static string EdmModel_Validator_Semantic_UnboundFunctionOverloadHasIncorrectReturnType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_UnboundFunctionOverloadHasIncorrectReturnType, p0); } /// /// A string like "The unbound operation '{0}' has an entity set path defined. Entity set path can only be defined on bound operations." /// - internal static string EdmModel_Validator_Semantic_OperationCannotHaveEntitySetPathWithUnBoundOperation(object p0) { + internal static string EdmModel_Validator_Semantic_OperationCannotHaveEntitySetPathWithUnBoundOperation(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationCannotHaveEntitySetPathWithUnBoundOperation, p0); } /// /// A string like "The attribute '{0}' has an invalid value. The path doesn't contain the binding parameter name." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathMissingBindingParameterName(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathMissingBindingParameterName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathMissingBindingParameterName, p0); } /// /// A string like "The attribute '{0}' is invalid. The first item of the path '{2}' is '{3}' which does not match the first parameter name {3}. The first segment of the entity set path is required to be the name of the first parameter." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathWithFirstPathParameterNotMatchingFirstParameterName(object p0, object p1, object p2, object p3) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathWithFirstPathParameterNotMatchingFirstParameterName(object p0, object p1, object p2, object p3) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathWithFirstPathParameterNotMatchingFirstParameterName, p0, p1, p2, p3); } /// /// A string like "The attribute '{0}' has an invalid value. The path '{1}' has a type cast segment '{2}' that is not an entity type." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathTypeCastSegmentMustBeEntityType(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathTypeCastSegmentMustBeEntityType(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathTypeCastSegmentMustBeEntityType, p0, p1, p2); } /// /// A string like "The attribute '{0}' has an invalid value. The path '{1}' has a navigation property segment '{2}' that is unknown." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownNavigationProperty(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownNavigationProperty(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownNavigationProperty, p0, p1, p2); } /// /// A string like "The attribute '{0}' has an invalid value. The path '{1}' has a type cast segment that doesn't derive from the entity type '{2}' for type segment '{3}'." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathInvalidTypeCastSegment(object p0, object p1, object p2, object p3) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathInvalidTypeCastSegment(object p0, object p1, object p2, object p3) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathInvalidTypeCastSegment, p0, p1, p2, p3); } /// /// A string like "The attribute '{0}' has an invalid value. The path '{1}' has a binding parameter that references a type '{2}' that is not an entity type." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathWithNonEntityBindingParameter(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathWithNonEntityBindingParameter(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathWithNonEntityBindingParameter, p0, p1, p2); } /// /// A string like "The attribute '{0}' has an invalid value. The path '{1}' has a type cast segment '{2}' that cannot be found in the model." /// - internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownTypeCastSegment(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownTypeCastSegment(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidEntitySetPathUnknownTypeCastSegment, p0, p1, p2); } /// /// A string like "The operation '{0}' has an entity set path and with an invalid return type. The return type is required to be an entity type or a collection of entity type." /// - internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathReturnTypeInvalid(object p0) { + internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathReturnTypeInvalid(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationWithEntitySetPathReturnTypeInvalid, p0); } /// /// A string like "The operation '{0}' entity set path determined entity type '{1}' is not assignable to the return type '{2}'." /// - internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathAndReturnTypeTypeNotAssignable(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathAndReturnTypeTypeNotAssignable(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationWithEntitySetPathAndReturnTypeTypeNotAssignable, p0, p1, p2); } /// /// A string like "The operation '{0}' entity set path was determined to be a reference property but the return type is a collection." /// - internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathResolvesToCollectionEntityTypeMismatchesEntityTypeReturnType(object p0) { + internal static string EdmModel_Validator_Semantic_OperationWithEntitySetPathResolvesToCollectionEntityTypeMismatchesEntityTypeReturnType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationWithEntitySetPathResolvesToCollectionEntityTypeMismatchesEntityTypeReturnType, p0); } /// /// A string like "An element with the name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_SchemaElementNameAlreadyDefined(object p0) { + internal static string EdmModel_Validator_Semantic_SchemaElementNameAlreadyDefined(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_SchemaElementNameAlreadyDefined, p0); } /// /// A string like "The member name '{0}' cannot be used in a type with the same name. Member names cannot be the same as their enclosing type." /// - internal static string EdmModel_Validator_Semantic_InvalidMemberNameMatchesTypeName(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidMemberNameMatchesTypeName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidMemberNameMatchesTypeName, p0); } /// /// A string like "Each property name in a type must be unique. Property name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_PropertyNameAlreadyDefined(object p0) { + internal static string EdmModel_Validator_Semantic_PropertyNameAlreadyDefined(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PropertyNameAlreadyDefined, p0); } /// /// A string like "The base type kind of a structured type must be the same as its derived type." /// - internal static string EdmModel_Validator_Semantic_BaseTypeMustHaveSameTypeKind { - get { + internal static string EdmModel_Validator_Semantic_BaseTypeMustHaveSameTypeKind + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BaseTypeMustHaveSameTypeKind); } } @@ -645,106 +746,122 @@ internal static string EdmModel_Validator_Semantic_BaseTypeMustHaveSameTypeKind /// /// A string like "The base type of open type '{0}' is not open type." /// - internal static string EdmModel_Validator_Semantic_BaseTypeOfOpenTypeMustBeOpen(object p0) { + internal static string EdmModel_Validator_Semantic_BaseTypeOfOpenTypeMustBeOpen(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BaseTypeOfOpenTypeMustBeOpen, p0); } /// /// A string like "The key property '{0}' must belong to the entity '{1}'." /// - internal static string EdmModel_Validator_Semantic_KeyPropertyMustBelongToEntity(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_KeyPropertyMustBelongToEntity(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_KeyPropertyMustBelongToEntity, p0, p1); } /// /// A string like "The 'Edm.PrimitiveType' cannot be used as the type of a key property '{0}' of an entity type '{1}'." /// - internal static string EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsTypeOfKey(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsTypeOfKey(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsTypeOfKey, p0, p1); } /// /// A string like "The 'Edm.PrimitiveType' cannot be used as the underlying type of '{0}' type '{1}'." /// - internal static string EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsUnderlyingType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsUnderlyingType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EdmPrimitiveTypeCannotBeUsedAsUnderlyingType, p0, p1); } /// /// A string like "The dependent property '{0}' must belong to the dependent entity '{1}'." /// - internal static string EdmModel_Validator_Semantic_DependentPropertiesMustBelongToDependentEntity(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_DependentPropertiesMustBelongToDependentEntity(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DependentPropertiesMustBelongToDependentEntity, p0, p1); } /// /// A string like "The property '{0}' cannot belong to a type other than its declaring type." /// - internal static string EdmModel_Validator_Semantic_DeclaringTypeMustBeCorrect(object p0) { + internal static string EdmModel_Validator_Semantic_DeclaringTypeMustBeCorrect(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DeclaringTypeMustBeCorrect, p0); } /// /// A string like "The named type '{0}' could not be found from the model being validated." /// - internal static string EdmModel_Validator_Semantic_InaccessibleType(object p0) { + internal static string EdmModel_Validator_Semantic_InaccessibleType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InaccessibleType, p0); } /// /// A string like "The named type '{0}' is ambiguous from the model being validated." /// - internal static string EdmModel_Validator_Semantic_AmbiguousType(object p0) { + internal static string EdmModel_Validator_Semantic_AmbiguousType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_AmbiguousType, p0); } /// /// A string like "The type of the navigation property '{0}' is invalid. The navigation target type must be an entity type or a collection of entity type. The navigation target entity type must match the declaring type of the partner property." /// - internal static string EdmModel_Validator_Semantic_InvalidNavigationPropertyType(object p0) { + internal static string EdmModel_Validator_Semantic_InvalidNavigationPropertyType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidNavigationPropertyType, p0); } /// /// A string like "The target multiplicity of the navigation property '{0}' is invalid. If a navigation property has 'ContainsTarget' set to true and declaring entity type of the property is the same or inherits from the target entity type, then the property represents a recursive containment and it must have an optional target represented by a collection or a nullable entity type." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentTargetMustBeOptional(object p0) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentTargetMustBeOptional(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentTargetMustBeOptional, p0); } /// /// A string like "The source multiplicity of the navigation property '{0}' is invalid. If a navigation property has 'ContainsTarget' set to true and declaring entity type of the property is the same or inherits from the target entity type, then the property represents a recursive containment and the multiplicity of the navigation source must be zero or one." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne(object p0) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyWithRecursiveContainmentSourceMustBeFromZeroOrOne, p0); } /// /// A string like "The source multiplicity of the navigation property '{0}' is invalid. If a navigation property has 'ContainsTarget' set to true and declaring entity type of the property is not the same as the target entity type, then the property represents a non-recursive containment and the multiplicity of the navigation source must be exactly one." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne(object p0) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyWithNonRecursiveContainmentSourceMustBeFromOne, p0); } /// /// A string like "The complex type '{0}' is invalid. A complex type must contain at least one property." /// - internal static string EdmModel_Validator_Semantic_ComplexTypeMustHaveProperties(object p0) { + internal static string EdmModel_Validator_Semantic_ComplexTypeMustHaveProperties(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ComplexTypeMustHaveProperties, p0); } /// /// A string like "The dependent property '{0}' of navigation property '{1}' is a duplicate." /// - internal static string EdmModel_Validator_Semantic_DuplicateDependentProperty(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_DuplicateDependentProperty(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateDependentProperty, p0, p1); } /// /// A string like "The scale value can range from 0 through the specified precision value." /// - internal static string EdmModel_Validator_Semantic_ScaleOutOfRange { - get { + internal static string EdmModel_Validator_Semantic_ScaleOutOfRange + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ScaleOutOfRange); } } @@ -752,8 +869,10 @@ internal static string EdmModel_Validator_Semantic_ScaleOutOfRange { /// /// A string like "Precision cannot be negative." /// - internal static string EdmModel_Validator_Semantic_PrecisionOutOfRange { - get { + internal static string EdmModel_Validator_Semantic_PrecisionOutOfRange + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PrecisionOutOfRange); } } @@ -761,8 +880,10 @@ internal static string EdmModel_Validator_Semantic_PrecisionOutOfRange { /// /// A string like "The max length facet specifies the maximum length of an instance of the string type. For unicode equal to 'true', the max length can range from 1 to 2^30, or if 'false', 1 to 2^31." /// - internal static string EdmModel_Validator_Semantic_StringMaxLengthOutOfRange { - get { + internal static string EdmModel_Validator_Semantic_StringMaxLengthOutOfRange + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_StringMaxLengthOutOfRange); } } @@ -770,8 +891,10 @@ internal static string EdmModel_Validator_Semantic_StringMaxLengthOutOfRange { /// /// A string like "Max length can range from 1 to 2^31." /// - internal static string EdmModel_Validator_Semantic_MaxLengthOutOfRange { - get { + internal static string EdmModel_Validator_Semantic_MaxLengthOutOfRange + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_MaxLengthOutOfRange); } } @@ -779,22 +902,26 @@ internal static string EdmModel_Validator_Semantic_MaxLengthOutOfRange { /// /// A string like "The value of enum member '{0}' exceeds the range of its underlying type." /// - internal static string EdmModel_Validator_Semantic_EnumMemberValueOutOfRange(object p0) { + internal static string EdmModel_Validator_Semantic_EnumMemberValueOutOfRange(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EnumMemberValueOutOfRange, p0); } /// /// A string like "Each member name of an enum type must be unique. Enum member name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_EnumMemberNameAlreadyDefined(object p0) { + internal static string EdmModel_Validator_Semantic_EnumMemberNameAlreadyDefined(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EnumMemberNameAlreadyDefined, p0); } /// /// A string like "Only entity types can be open types." /// - internal static string EdmModel_Validator_Semantic_OpenTypesSupportedForEntityTypesOnly { - get { + internal static string EdmModel_Validator_Semantic_OpenTypesSupportedForEntityTypesOnly + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OpenTypesSupportedForEntityTypesOnly); } } @@ -802,8 +929,10 @@ internal static string EdmModel_Validator_Semantic_OpenTypesSupportedForEntityTy /// /// A string like "The string reference is invalid because if 'IsUnbounded' is true 'MaxLength' must be null." /// - internal static string EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull { - get { + internal static string EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileMaxLengthIsNotNull); } } @@ -811,8 +940,10 @@ internal static string EdmModel_Validator_Semantic_IsUnboundedCannotBeTrueWhileM /// /// A string like "The declared name and namespace of the annotation must match the name and namespace of its xml value." /// - internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationMismatchedTerm { - get { + internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationMismatchedTerm + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidElementAnnotationMismatchedTerm); } } @@ -820,8 +951,10 @@ internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationMisma /// /// A string like "The value of an annotation marked to be serialized as an xml element must have a well-formed xml value." /// - internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationValueInvalidXml { - get { + internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationValueInvalidXml + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidElementAnnotationValueInvalidXml); } } @@ -829,8 +962,10 @@ internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationValue /// /// A string like "The value of an annotation marked to be serialized as an xml element must be IEdmStringValue." /// - internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNotIEdmStringValue { - get { + internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNotIEdmStringValue + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidElementAnnotationNotIEdmStringValue); } } @@ -838,8 +973,10 @@ internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNotIE /// /// A string like "The value of an annotation marked to be serialized as an xml element must be a string representing an xml element with non-empty name and namespace." /// - internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNullNamespaceOrName { - get { + internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNullNamespaceOrName + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InvalidElementAnnotationNullNamespaceOrName); } } @@ -847,22 +984,26 @@ internal static string EdmModel_Validator_Semantic_InvalidElementAnnotationNullN /// /// A string like "Cannot assert the nullable type '{0}' as a non-nullable type." /// - internal static string EdmModel_Validator_Semantic_CannotAssertNullableTypeAsNonNullableType(object p0) { + internal static string EdmModel_Validator_Semantic_CannotAssertNullableTypeAsNonNullableType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_CannotAssertNullableTypeAsNonNullableType, p0); } /// /// A string like "Cannot promote the primitive type '{0}' to the specified primitive type '{1}'." /// - internal static string EdmModel_Validator_Semantic_ExpressionPrimitiveKindCannotPromoteToAssertedType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_ExpressionPrimitiveKindCannotPromoteToAssertedType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ExpressionPrimitiveKindCannotPromoteToAssertedType, p0, p1); } /// /// A string like "Null value cannot have a non-nullable type." /// - internal static string EdmModel_Validator_Semantic_NullCannotBeAssertedToBeANonNullableType { - get { + internal static string EdmModel_Validator_Semantic_NullCannotBeAssertedToBeANonNullableType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NullCannotBeAssertedToBeANonNullableType); } } @@ -870,8 +1011,10 @@ internal static string EdmModel_Validator_Semantic_NullCannotBeAssertedToBeANonN /// /// A string like "The type of the expression is incompatible with the asserted type." /// - internal static string EdmModel_Validator_Semantic_ExpressionNotValidForTheAssertedType { - get { + internal static string EdmModel_Validator_Semantic_ExpressionNotValidForTheAssertedType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ExpressionNotValidForTheAssertedType); } } @@ -879,8 +1022,10 @@ internal static string EdmModel_Validator_Semantic_ExpressionNotValidForTheAsser /// /// A string like "A collection expression is incompatible with a non-collection type." /// - internal static string EdmModel_Validator_Semantic_CollectionExpressionNotValidForNonCollectionType { - get { + internal static string EdmModel_Validator_Semantic_CollectionExpressionNotValidForNonCollectionType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_CollectionExpressionNotValidForNonCollectionType); } } @@ -888,8 +1033,10 @@ internal static string EdmModel_Validator_Semantic_CollectionExpressionNotValidF /// /// A string like "A primitive expression is incompatible with a non-primitive type." /// - internal static string EdmModel_Validator_Semantic_PrimitiveConstantExpressionNotValidForNonPrimitiveType { - get { + internal static string EdmModel_Validator_Semantic_PrimitiveConstantExpressionNotValidForNonPrimitiveType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PrimitiveConstantExpressionNotValidForNonPrimitiveType); } } @@ -897,8 +1044,10 @@ internal static string EdmModel_Validator_Semantic_PrimitiveConstantExpressionNo /// /// A string like "A record expression is incompatible with a non-structured type." /// - internal static string EdmModel_Validator_Semantic_RecordExpressionNotValidForNonStructuredType { - get { + internal static string EdmModel_Validator_Semantic_RecordExpressionNotValidForNonStructuredType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_RecordExpressionNotValidForNonStructuredType); } } @@ -906,43 +1055,50 @@ internal static string EdmModel_Validator_Semantic_RecordExpressionNotValidForNo /// /// A string like "The record expression does not have a constructor for a property named '{0}'." /// - internal static string EdmModel_Validator_Semantic_RecordExpressionMissingProperty(object p0) { + internal static string EdmModel_Validator_Semantic_RecordExpressionMissingProperty(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_RecordExpressionMissingProperty, p0); } /// /// A string like "The type of the record expression is not open and does not contain a property named '{0}'." /// - internal static string EdmModel_Validator_Semantic_RecordExpressionHasExtraProperties(object p0) { + internal static string EdmModel_Validator_Semantic_RecordExpressionHasExtraProperties(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_RecordExpressionHasExtraProperties, p0); } /// /// A string like "The annotated element '{0}' has multiple annotations with the term '{1}' and the qualifier '{2}'." /// - internal static string EdmModel_Validator_Semantic_DuplicateAnnotation(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_DuplicateAnnotation(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateAnnotation, p0, p1, p2); } /// /// A string like "The function application provides '{0}' arguments, but the function '{1}' expects '{2}' arguments." /// - internal static string EdmModel_Validator_Semantic_IncorrectNumberOfArguments(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_IncorrectNumberOfArguments(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_IncorrectNumberOfArguments, p0, p1, p2); } /// /// A string like "Each entity container name in a function must be unique. The name '{0}' is already defined." /// - internal static string EdmModel_Validator_Semantic_DuplicateEntityContainerName(object p0) { + internal static string EdmModel_Validator_Semantic_DuplicateEntityContainerName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateEntityContainerName, p0); } /// /// A string like "The primitive expression is not compatible with the asserted type." /// - internal static string EdmModel_Validator_Semantic_ExpressionPrimitiveKindNotValidForAssertedType { - get { + internal static string EdmModel_Validator_Semantic_ExpressionPrimitiveKindNotValidForAssertedType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ExpressionPrimitiveKindNotValidForAssertedType); } } @@ -950,8 +1106,10 @@ internal static string EdmModel_Validator_Semantic_ExpressionPrimitiveKindNotVal /// /// A string like "The enum expression is not compatible with the asserted type." /// - internal static string EdmModel_Validator_Semantic_ExpressionEnumKindNotValidForAssertedType { - get { + internal static string EdmModel_Validator_Semantic_ExpressionEnumKindNotValidForAssertedType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ExpressionEnumKindNotValidForAssertedType); } } @@ -959,8 +1117,10 @@ internal static string EdmModel_Validator_Semantic_ExpressionEnumKindNotValidFor /// /// A string like "The value of the integer constant is out of range for the asserted type." /// - internal static string EdmModel_Validator_Semantic_IntegerConstantValueOutOfRange { - get { + internal static string EdmModel_Validator_Semantic_IntegerConstantValueOutOfRange + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_IntegerConstantValueOutOfRange); } } @@ -968,22 +1128,26 @@ internal static string EdmModel_Validator_Semantic_IntegerConstantValueOutOfRang /// /// A string like "The value of the string constant is '{0}' characters long, but the max length of its type is '{1}'." /// - internal static string EdmModel_Validator_Semantic_StringConstantLengthOutOfRange(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_StringConstantLengthOutOfRange(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_StringConstantLengthOutOfRange, p0, p1); } /// /// A string like "The value of the binary constant is '{0}' characters long, but the max length of its type is '{1}'." /// - internal static string EdmModel_Validator_Semantic_BinaryConstantLengthOutOfRange(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_BinaryConstantLengthOutOfRange(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BinaryConstantLengthOutOfRange, p0, p1); } /// /// A string like "A type without other errors must not have kind of none." /// - internal static string EdmModel_Validator_Semantic_TypeMustNotHaveKindOfNone { - get { + internal static string EdmModel_Validator_Semantic_TypeMustNotHaveKindOfNone + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_TypeMustNotHaveKindOfNone); } } @@ -991,267 +1155,306 @@ internal static string EdmModel_Validator_Semantic_TypeMustNotHaveKindOfNone { /// /// A string like "A schema element without other errors must not have kind of none. The kind of schema element '{0}' is none." /// - internal static string EdmModel_Validator_Semantic_SchemaElementMustNotHaveKindOfNone(object p0) { + internal static string EdmModel_Validator_Semantic_SchemaElementMustNotHaveKindOfNone(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_SchemaElementMustNotHaveKindOfNone, p0); } /// /// A string like "A property without other errors must not have kind of none. The kind of property '{0}' is none." /// - internal static string EdmModel_Validator_Semantic_PropertyMustNotHaveKindOfNone(object p0) { + internal static string EdmModel_Validator_Semantic_PropertyMustNotHaveKindOfNone(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PropertyMustNotHaveKindOfNone, p0); } /// /// A string like "A primitive type without other errors must not have kind of none. The kind of primitive type '{0}' is none." /// - internal static string EdmModel_Validator_Semantic_PrimitiveTypeMustNotHaveKindOfNone(object p0) { + internal static string EdmModel_Validator_Semantic_PrimitiveTypeMustNotHaveKindOfNone(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PrimitiveTypeMustNotHaveKindOfNone, p0); } /// /// A string like "An entity container element without other errors must not have kind of none. The kind of entity container element '{0}' is none." /// - internal static string EdmModel_Validator_Semantic_EntityContainerElementMustNotHaveKindOfNone(object p0) { + internal static string EdmModel_Validator_Semantic_EntityContainerElementMustNotHaveKindOfNone(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntityContainerElementMustNotHaveKindOfNone, p0); } /// /// A string like "The entity set '{0}' should have only a single mapping for the property '{1}'." /// - internal static string EdmModel_Validator_Semantic_DuplicateNavigationPropertyMapping(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_DuplicateNavigationPropertyMapping(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DuplicateNavigationPropertyMapping, p0, p1); } /// /// A string like "The binding of the entity set or singleton '{0}' on navigation property '{1}' is invalid, the binding of bidirectional navigation property must be bidirectional if specified." /// - internal static string EdmModel_Validator_Semantic_NavigationMappingMustBeBidirectional(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_NavigationMappingMustBeBidirectional(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationMappingMustBeBidirectional, p0, p1); } /// /// A string like "The entity set '{0}' is invalid because it is contained by more than one navigation property." /// - internal static string EdmModel_Validator_Semantic_EntitySetCanOnlyBeContainedByASingleNavigationProperty(object p0) { + internal static string EdmModel_Validator_Semantic_EntitySetCanOnlyBeContainedByASingleNavigationProperty(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntitySetCanOnlyBeContainedByASingleNavigationProperty, p0); } /// /// A string like "The type annotation is missing a binding for the property '{0}'." /// - internal static string EdmModel_Validator_Semantic_TypeAnnotationMissingRequiredProperty(object p0) { + internal static string EdmModel_Validator_Semantic_TypeAnnotationMissingRequiredProperty(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_TypeAnnotationMissingRequiredProperty, p0); } /// /// A string like "They type of the type annotation is not open, and does not contain a property named '{0}'." /// - internal static string EdmModel_Validator_Semantic_TypeAnnotationHasExtraProperties(object p0) { + internal static string EdmModel_Validator_Semantic_TypeAnnotationHasExtraProperties(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_TypeAnnotationHasExtraProperties, p0); } /// /// A string like "The underlying type of '{0}' is not valid. The underlying type of an enum type must be an integral type." /// - internal static string EdmModel_Validator_Semantic_EnumMustHaveIntegralUnderlyingType(object p0) { + internal static string EdmModel_Validator_Semantic_EnumMustHaveIntegralUnderlyingType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EnumMustHaveIntegralUnderlyingType, p0); } /// /// A string like "The term '{0}' could not be found from the model being validated." /// - internal static string EdmModel_Validator_Semantic_InaccessibleTerm(object p0) { + internal static string EdmModel_Validator_Semantic_InaccessibleTerm(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InaccessibleTerm, p0); } /// /// A string like "The target '{0}' could not be found from the model being validated." /// - internal static string EdmModel_Validator_Semantic_InaccessibleTarget(object p0) { + internal static string EdmModel_Validator_Semantic_InaccessibleTarget(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_InaccessibleTarget, p0); } /// /// A string like "The target '{0}' of the annotation is not allowed in the AppliesTo '{1}' of the term '{2}'."." /// - internal static string EdmModel_Validator_Semantic_VocabularyAnnotationApplyToNotAllowedAnnotatable(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_VocabularyAnnotationApplyToNotAllowedAnnotatable(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_VocabularyAnnotationApplyToNotAllowedAnnotatable, p0, p1, p2); } /// /// A string like "An element already has a direct annotation with the namespace '{0}' and name '{1}'." /// - internal static string EdmModel_Validator_Semantic_ElementDirectValueAnnotationFullNameMustBeUnique(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_ElementDirectValueAnnotationFullNameMustBeUnique(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ElementDirectValueAnnotationFullNameMustBeUnique, p0, p1); } /// /// A string like "The association set '{0}' cannot assume an entity set for the role '{2}' because there are no entity sets for the role type '{1}'." /// - internal static string EdmModel_Validator_Semantic_NoEntitySetsFoundForType(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_NoEntitySetsFoundForType(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NoEntitySetsFoundForType, p0, p1, p2); } /// /// A string like "The association set '{0}' must specify an entity set for the role '{2}' because there are multiple entity sets for the role type '{1}'." /// - internal static string EdmModel_Validator_Semantic_CannotInferEntitySetWithMultipleSetsPerType(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_CannotInferEntitySetWithMultipleSetsPerType(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_CannotInferEntitySetWithMultipleSetsPerType, p0, p1, p2); } /// /// A string like "Because the navigation property '{0}' is recursive, the mapping from the entity set '{1}' must point back to itself." /// - internal static string EdmModel_Validator_Semantic_EntitySetRecursiveNavigationPropertyMappingsMustPointBackToSourceEntitySet(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EntitySetRecursiveNavigationPropertyMappingsMustPointBackToSourceEntitySet(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntitySetRecursiveNavigationPropertyMappingsMustPointBackToSourceEntitySet, p0, p1); } /// /// A string like "The navigation property '{0}' is invalid because it indirectly contains itself." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyEntityMustNotIndirectlyContainItself(object p0) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyEntityMustNotIndirectlyContainItself(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyEntityMustNotIndirectlyContainItself, p0); } /// /// A string like "The path cannot be resolved in the given context. The segment '{0}' failed to resolve." /// - internal static string EdmModel_Validator_Semantic_PathIsNotValidForTheGivenContext(object p0) { + internal static string EdmModel_Validator_Semantic_PathIsNotValidForTheGivenContext(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PathIsNotValidForTheGivenContext, p0); } /// /// A string like "The entity set or singleton '{1}' is not a valid destination for the navigation property '{0}' because it cannot hold an element of the target entity type." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyMappingMustPointToValidTargetForProperty(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyMappingMustPointToValidTargetForProperty(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyMappingMustPointToValidTargetForProperty, p0, p1); } /// /// A string like "The bound function '{0}' is a duplicate of other bound functions. For bound functions the combination of the namespace, name, binding parameter type and unordered set of parameter names uniquely identifies a bound function." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterNames(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterNames(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterNames, p0); } /// /// A string like "The bound function '{0}' is a duplicate of other bound functions. For bound functions the combination of the namespace, name, binding parameter type and ordered set of parameter types uniquely identifies a bound function." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterTypes(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterTypes(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateBoundFunctionParameterTypes, p0); } /// /// A string like "The unbound function '{0}' is a duplicate of other unbound functions. For unbound functions the combination of the namespace, name and unordered set of parameter names uniquely identifies an unbound function." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterNames(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterNames(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterNames, p0); } /// /// A string like "The unbound function '{0}' is a duplicate of other unbound functions. For unbound functions the combination of the namespace, name and ordered set of parameter types uniquely identifies an unbound function." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterTypes(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterTypes(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateUnBoundFunctionsParameterTypes, p0); } /// /// A string like "The bound action '{0}' is a duplicate of other bound actions. For bound actions the combination of the namespace, name, and binding parameter type uniquely identifies an bound action." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundActions(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateBoundActions(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateBoundActions, p0); } /// /// A string like "The unbound action '{0}' is a duplicate of other unbound actions. For unbound actions the combination of the namespace, and name uniquely identifies an unbound action." /// - internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundActions(object p0) { + internal static string EdmModel_Validator_Semantic_ModelDuplicateUnBoundActions(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_ModelDuplicateUnBoundActions, p0); } /// /// A string like "The bound function overload '{0}' does not have the same return type as other function overloads. Expected type '{1}'." /// - internal static string EdmModel_Validator_Semantic_BoundFunctionOverloadsMustHaveSameReturnType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_BoundFunctionOverloadsMustHaveSameReturnType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_BoundFunctionOverloadsMustHaveSameReturnType, p0, p1); } /// /// A string like "The type '{0}' of the entity set '{1}' is not valid, it must be collection of entity type." /// - internal static string EdmModel_Validator_Semantic_EntitySetTypeMustBeCollectionOfEntityType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_EntitySetTypeMustBeCollectionOfEntityType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EntitySetTypeMustBeCollectionOfEntityType, p0, p1); } /// /// A string like "The type '{0}' of the singleton '{1}' is not valid, it must be entity type." /// - internal static string EdmModel_Validator_Semantic_SingletonTypeMustBeEntityType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_SingletonTypeMustBeEntityType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_SingletonTypeMustBeEntityType, p0, p1); } /// /// A string like "The navigation property mapping '{0}' is invalid because its type is collection but target to a singleton '{1}'." /// - internal static string EdmModel_Validator_Semantic_NavigationPropertyOfCollectionTypeMustNotTargetToSingleton(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_NavigationPropertyOfCollectionTypeMustNotTargetToSingleton(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_NavigationPropertyOfCollectionTypeMustNotTargetToSingleton, p0, p1); } /// /// A string like "The type '{0}' cannot be the base type of an '{1}' type '{2}'." /// - internal static string EdmModel_Validator_Semantic_StructuredTypeBaseTypeCannotBeAbstractType(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_StructuredTypeBaseTypeCannotBeAbstractType(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_StructuredTypeBaseTypeCannotBeAbstractType, p0, p1, p2); } /// /// A string like "The type '{0}' cannot be used as the type of a property '{1}'." /// - internal static string EdmModel_Validator_Semantic_PropertyTypeCannotBeCollectionOfAbstractType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_PropertyTypeCannotBeCollectionOfAbstractType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_PropertyTypeCannotBeCollectionOfAbstractType, p0, p1); } /// /// A string like "The type '{0}' cannot be used as the return type of a function '{1}'." /// - internal static string EdmModel_Validator_Semantic_OperationReturnTypeCannotBeCollectionOfAbstractType(object p0, object p1) { + internal static string EdmModel_Validator_Semantic_OperationReturnTypeCannotBeCollectionOfAbstractType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_OperationReturnTypeCannotBeCollectionOfAbstractType, p0, p1); } /// /// A string like "The type 'Edm.EntityType' cannot be used as the type of a singleton '{0}' in an entity container." /// - internal static string EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfSingleton(object p0) { + internal static string EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfSingleton(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfSingleton, p0); } /// /// A string like "The type 'Edm.EntityType' cannot be used as the type of an entity set '{0}' in an entity container." /// - internal static string EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfEntitySet(object p0) { + internal static string EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfEntitySet(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_EdmEntityTypeCannotBeTypeOfEntitySet, p0); } /// /// A string like "The declaring type '{0}' of {1} '{2}' cannot include path type property." /// - internal static string EdmModel_Validator_Semantic_DeclaringTypeOfNavigationSourceCannotHavePathProperty(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_DeclaringTypeOfNavigationSourceCannotHavePathProperty(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_DeclaringTypeOfNavigationSourceCannotHavePathProperty, p0, p1, p2); } /// /// A string like "The type '{0}' of navigation property '{1}' on declaring type '{2}' cannot include path type property." /// - internal static string EdmModel_Validator_Semantic_TypeOfNavigationPropertyCannotHavePathProperty(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Semantic_TypeOfNavigationPropertyCannotHavePathProperty(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Semantic_TypeOfNavigationPropertyCannotHavePathProperty, p0, p1, p2); } /// /// A string like "The name is missing or not valid." /// - internal static string EdmModel_Validator_Syntactic_MissingName { - get { + internal static string EdmModel_Validator_Syntactic_MissingName + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_MissingName); } } @@ -1259,22 +1462,26 @@ internal static string EdmModel_Validator_Syntactic_MissingName { /// /// A string like "The specified name must not be longer than 480 characters: '{0}'." /// - internal static string EdmModel_Validator_Syntactic_EdmModel_NameIsTooLong(object p0) { + internal static string EdmModel_Validator_Syntactic_EdmModel_NameIsTooLong(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EdmModel_NameIsTooLong, p0); } /// /// A string like "The specified name is not allowed: '{0}'." /// - internal static string EdmModel_Validator_Syntactic_EdmModel_NameIsNotAllowed(object p0) { + internal static string EdmModel_Validator_Syntactic_EdmModel_NameIsNotAllowed(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EdmModel_NameIsNotAllowed, p0); } /// /// A string like "The namespace name is missing or not valid." /// - internal static string EdmModel_Validator_Syntactic_MissingNamespaceName { - get { + internal static string EdmModel_Validator_Syntactic_MissingNamespaceName + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_MissingNamespaceName); } } @@ -1282,78 +1489,90 @@ internal static string EdmModel_Validator_Syntactic_MissingNamespaceName { /// /// A string like "The specified name must not be longer than 480 characters: '{0}'." /// - internal static string EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsTooLong(object p0) { + internal static string EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsTooLong(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsTooLong, p0); } /// /// A string like "The specified namespace name is not allowed: '{0}'." /// - internal static string EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsNotAllowed(object p0) { + internal static string EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsNotAllowed(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EdmModel_NamespaceNameIsNotAllowed, p0); } /// /// A string like "The value of the property '{0}.{1}' must not be null." /// - internal static string EdmModel_Validator_Syntactic_PropertyMustNotBeNull(object p0, object p1) { + internal static string EdmModel_Validator_Syntactic_PropertyMustNotBeNull(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_PropertyMustNotBeNull, p0, p1); } /// /// A string like "The property '{0}.{1}' of type '{2}' has value '{3}' that is not a valid enum member." /// - internal static string EdmModel_Validator_Syntactic_EnumPropertyValueOutOfRange(object p0, object p1, object p2, object p3) { + internal static string EdmModel_Validator_Syntactic_EnumPropertyValueOutOfRange(object p0, object p1, object p2, object p3) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EnumPropertyValueOutOfRange, p0, p1, p2, p3); } /// /// A string like "An object with the value '{0}' of the '{1}.{2}' property must implement '{3}' interface." /// - internal static string EdmModel_Validator_Syntactic_InterfaceKindValueMismatch(object p0, object p1, object p2, object p3) { + internal static string EdmModel_Validator_Syntactic_InterfaceKindValueMismatch(object p0, object p1, object p2, object p3) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_InterfaceKindValueMismatch, p0, p1, p2, p3); } /// /// A string like "An object implementing '{0}' interface has type definition of kind '{1}'. The type reference interface must match to the kind of the definition." /// - internal static string EdmModel_Validator_Syntactic_TypeRefInterfaceTypeKindValueMismatch(object p0, object p1) { + internal static string EdmModel_Validator_Syntactic_TypeRefInterfaceTypeKindValueMismatch(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_TypeRefInterfaceTypeKindValueMismatch, p0, p1); } /// /// A string like "The value '{0}' of the property '{1}.{2}' is not semantically valid. A semantically valid model must not contain elements of kind '{0}'." /// - internal static string EdmModel_Validator_Syntactic_InterfaceKindValueUnexpected(object p0, object p1, object p2) { + internal static string EdmModel_Validator_Syntactic_InterfaceKindValueUnexpected(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_InterfaceKindValueUnexpected, p0, p1, p2); } /// /// A string like "The value of the enumeration the property '{0}.{1}' contains a null element. Enumeration properties must not contain null elements." /// - internal static string EdmModel_Validator_Syntactic_EnumerableMustNotHaveNullElements(object p0, object p1) { + internal static string EdmModel_Validator_Syntactic_EnumerableMustNotHaveNullElements(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_EnumerableMustNotHaveNullElements, p0, p1); } /// /// A string like "The partner of the navigation property '{0}' must not be the same property, and must point back to the navigation property." /// - internal static string EdmModel_Validator_Syntactic_NavigationPartnerInvalid(object p0) { + internal static string EdmModel_Validator_Syntactic_NavigationPartnerInvalid(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_NavigationPartnerInvalid, p0); } /// /// A string like "The chain of base types of type '{0}' is cyclic." /// - internal static string EdmModel_Validator_Syntactic_InterfaceCriticalCycleInTypeHierarchy(object p0) { + internal static string EdmModel_Validator_Syntactic_InterfaceCriticalCycleInTypeHierarchy(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmModel_Validator_Syntactic_InterfaceCriticalCycleInTypeHierarchy, p0); } /// /// A string like "Single file provided but model cannot be serialized into single file." /// - internal static string Serializer_SingleFileExpected { - get { + internal static string Serializer_SingleFileExpected + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_SingleFileExpected); } } @@ -1361,8 +1580,10 @@ internal static string Serializer_SingleFileExpected { /// /// A string like "Unknown Edm version." /// - internal static string Serializer_UnknownEdmVersion { - get { + internal static string Serializer_UnknownEdmVersion + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_UnknownEdmVersion); } } @@ -1370,8 +1591,10 @@ internal static string Serializer_UnknownEdmVersion { /// /// A string like "Unknown Edmx version." /// - internal static string Serializer_UnknownEdmxVersion { - get { + internal static string Serializer_UnknownEdmxVersion + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_UnknownEdmxVersion); } } @@ -1379,29 +1602,34 @@ internal static string Serializer_UnknownEdmxVersion { /// /// A string like "The operation import '{0}' could not be serialized because its return type cannot be represented inline." /// - internal static string Serializer_NonInlineOperationImportReturnType(object p0) { + internal static string Serializer_NonInlineOperationImportReturnType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_NonInlineOperationImportReturnType, p0); } /// /// A string like "A referenced type can not be serialized with an invalid name. The name '{0}' is invalid." /// - internal static string Serializer_ReferencedTypeMustHaveValidName(object p0) { + internal static string Serializer_ReferencedTypeMustHaveValidName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_ReferencedTypeMustHaveValidName, p0); } /// /// A string like "The annotation can not be serialized with an invalid target name. The name '{0}' is invalid." /// - internal static string Serializer_OutOfLineAnnotationTargetMustHaveValidName(object p0) { + internal static string Serializer_OutOfLineAnnotationTargetMustHaveValidName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_OutOfLineAnnotationTargetMustHaveValidName, p0); } /// /// A string like "No CSDL is written because no schema elements could be produced. This is likely because the model is empty." /// - internal static string Serializer_NoSchemasProduced { - get { + internal static string Serializer_NoSchemasProduced + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Serializer_NoSchemasProduced); } } @@ -1409,15 +1637,18 @@ internal static string Serializer_NoSchemasProduced { /// /// A string like "{0} does not contain a schema definition, or the XmlReader provided started at the end of the file." /// - internal static string XmlParser_EmptyFile(object p0) { + internal static string XmlParser_EmptyFile(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_EmptyFile, p0); } /// /// A string like "The source XmlReader does not contain a schema definition or started at the end of the file." /// - internal static string XmlParser_EmptySchemaTextReader { - get { + internal static string XmlParser_EmptySchemaTextReader + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_EmptySchemaTextReader); } } @@ -1425,92 +1656,106 @@ internal static string XmlParser_EmptySchemaTextReader { /// /// A string like "Required schema attribute '{0}' is not present on element '{1}'." /// - internal static string XmlParser_MissingAttribute(object p0, object p1) { + internal static string XmlParser_MissingAttribute(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_MissingAttribute, p0, p1); } /// /// A string like "The current schema element does not support text '{0}'." /// - internal static string XmlParser_TextNotAllowed(object p0) { + internal static string XmlParser_TextNotAllowed(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_TextNotAllowed, p0); } /// /// A string like "The attribute '{0}' was not expected in the given context." /// - internal static string XmlParser_UnexpectedAttribute(object p0) { + internal static string XmlParser_UnexpectedAttribute(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedAttribute, p0); } /// /// A string like "The schema element '{0}' was not expected in the given context." /// - internal static string XmlParser_UnexpectedElement(object p0) { + internal static string XmlParser_UnexpectedElement(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedElement, p0); } /// /// A string like "Unused schema element: '{0}'." /// - internal static string XmlParser_UnusedElement(object p0) { + internal static string XmlParser_UnusedElement(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnusedElement, p0); } /// /// A string like "Unexpected XML node type: {0}." /// - internal static string XmlParser_UnexpectedNodeType(object p0) { + internal static string XmlParser_UnexpectedNodeType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedNodeType, p0); } /// /// A string like "The element '{0}' was unexpected for the root element. The root element should be {1}." /// - internal static string XmlParser_UnexpectedRootElement(object p0, object p1) { + internal static string XmlParser_UnexpectedRootElement(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedRootElement, p0, p1); } /// /// A string like "The namespace '{0}' is invalid. The root element is expected to belong to one of the following namespaces: '{1}'." /// - internal static string XmlParser_UnexpectedRootElementWrongNamespace(object p0, object p1) { + internal static string XmlParser_UnexpectedRootElementWrongNamespace(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedRootElementWrongNamespace, p0, p1); } /// /// A string like "The root element has no namespace. The root element is expected to belong to one of the following namespaces: '{0}'." /// - internal static string XmlParser_UnexpectedRootElementNoNamespace(object p0) { + internal static string XmlParser_UnexpectedRootElementNoNamespace(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.XmlParser_UnexpectedRootElementNoNamespace, p0); } /// /// A string like "The {0} '{1}' is invalid. The entitySetPath value is not allowed when IsBound attribute is false." /// - internal static string CsdlParser_InvalidEntitySetPathWithUnboundAction(object p0, object p1) { + internal static string CsdlParser_InvalidEntitySetPathWithUnboundAction(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidEntitySetPathWithUnboundAction, p0, p1); } /// /// A string like "The alias '{0}' is not a valid simple name." /// - internal static string CsdlParser_InvalidAlias(object p0) { + internal static string CsdlParser_InvalidAlias(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidAlias, p0); } /// /// A string like "The delete action '{0}' is not valid. Action must be: 'None', 'Cascade', or 'Restrict'." /// - internal static string CsdlParser_InvalidDeleteAction(object p0) { + internal static string CsdlParser_InvalidDeleteAction(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidDeleteAction, p0); } /// /// A string like "An XML attribute or sub-element representing an EDM type is missing." /// - internal static string CsdlParser_MissingTypeAttributeOrElement { - get { + internal static string CsdlParser_MissingTypeAttributeOrElement + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_MissingTypeAttributeOrElement); } } @@ -1518,22 +1763,26 @@ internal static string CsdlParser_MissingTypeAttributeOrElement { /// /// A string like "There is no Role with name '{0}' defined in relationship '{1}'." /// - internal static string CsdlParser_InvalidEndRoleInRelationshipConstraint(object p0, object p1) { + internal static string CsdlParser_InvalidEndRoleInRelationshipConstraint(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidEndRoleInRelationshipConstraint, p0, p1); } /// /// A string like "The multiplicity '{0}' is not valid. Multiplicity must be: '*', '0..1', or '1'." /// - internal static string CsdlParser_InvalidMultiplicity(object p0) { + internal static string CsdlParser_InvalidMultiplicity(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidMultiplicity, p0); } /// /// A string like "Referential constraints requires one dependent role. Multiple dependent roles were specified for this referential constraint." /// - internal static string CsdlParser_ReferentialConstraintRequiresOneDependent { - get { + internal static string CsdlParser_ReferentialConstraintRequiresOneDependent + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_ReferentialConstraintRequiresOneDependent); } } @@ -1541,8 +1790,10 @@ internal static string CsdlParser_ReferentialConstraintRequiresOneDependent { /// /// A string like "Referential constraints requires one principal role. Multiple principal roles were specified for this referential constraint." /// - internal static string CsdlParser_ReferentialConstraintRequiresOnePrincipal { - get { + internal static string CsdlParser_ReferentialConstraintRequiresOnePrincipal + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_ReferentialConstraintRequiresOnePrincipal); } } @@ -1550,8 +1801,10 @@ internal static string CsdlParser_ReferentialConstraintRequiresOnePrincipal { /// /// A string like "If expression must contain 3 operands, the first being a boolean test, the second being being evaluated if the first is true, and the third being evaluated if the first is false." /// - internal static string CsdlParser_InvalidIfExpressionIncorrectNumberOfOperands { - get { + internal static string CsdlParser_InvalidIfExpressionIncorrectNumberOfOperands + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidIfExpressionIncorrectNumberOfOperands); } } @@ -1559,8 +1812,10 @@ internal static string CsdlParser_InvalidIfExpressionIncorrectNumberOfOperands { /// /// A string like "The IsType expression must contain 1 operand." /// - internal static string CsdlParser_InvalidIsTypeExpressionIncorrectNumberOfOperands { - get { + internal static string CsdlParser_InvalidIsTypeExpressionIncorrectNumberOfOperands + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidIsTypeExpressionIncorrectNumberOfOperands); } } @@ -1568,8 +1823,10 @@ internal static string CsdlParser_InvalidIsTypeExpressionIncorrectNumberOfOperan /// /// A string like "The Cast expression must contain 1 operand." /// - internal static string CsdlParser_InvalidCastExpressionIncorrectNumberOfOperands { - get { + internal static string CsdlParser_InvalidCastExpressionIncorrectNumberOfOperands + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidCastExpressionIncorrectNumberOfOperands); } } @@ -1577,8 +1834,10 @@ internal static string CsdlParser_InvalidCastExpressionIncorrectNumberOfOperands /// /// A string like "The LabeledElement expression must contain 1 operand." /// - internal static string CsdlParser_InvalidLabeledElementExpressionIncorrectNumberOfOperands { - get { + internal static string CsdlParser_InvalidLabeledElementExpressionIncorrectNumberOfOperands + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidLabeledElementExpressionIncorrectNumberOfOperands); } } @@ -1586,22 +1845,26 @@ internal static string CsdlParser_InvalidLabeledElementExpressionIncorrectNumber /// /// A string like "The type name '{0}' is invalid. The type name must be that of a primitive type, a fully qualified name or an inline 'Collection' or 'Ref' type." /// - internal static string CsdlParser_InvalidTypeName(object p0) { + internal static string CsdlParser_InvalidTypeName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidTypeName, p0); } /// /// A string like "The qualified name '{0}' is invalid. A qualified name must have a valid namespace or alias, and a valid name." /// - internal static string CsdlParser_InvalidQualifiedName(object p0) { + internal static string CsdlParser_InvalidQualifiedName(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidQualifiedName, p0); } /// /// A string like "A model could not be produced because no XML readers were provided." /// - internal static string CsdlParser_NoReadersProvided { - get { + internal static string CsdlParser_NoReadersProvided + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_NoReadersProvided); } } @@ -1609,8 +1872,10 @@ internal static string CsdlParser_NoReadersProvided { /// /// A string like "A model could not be produced because one of the XML readers was null." /// - internal static string CsdlParser_NullXmlReader { - get { + internal static string CsdlParser_NullXmlReader + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_NullXmlReader); } } @@ -1618,22 +1883,26 @@ internal static string CsdlParser_NullXmlReader { /// /// A string like "'{0}' is not a valid entity set path." /// - internal static string CsdlParser_InvalidEntitySetPath(object p0) { + internal static string CsdlParser_InvalidEntitySetPath(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidEntitySetPath, p0); } /// /// A string like "'{0}' is not a valid enum member path." /// - internal static string CsdlParser_InvalidEnumMemberPath(object p0) { + internal static string CsdlParser_InvalidEnumMemberPath(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_InvalidEnumMemberPath, p0); } /// /// A string like "The 'Nullable' attribute cannot be specified for a navigation property with collection type." /// - internal static string CsdlParser_CannotSpecifyNullableAttributeForNavigationPropertyWithCollectionType { - get { + internal static string CsdlParser_CannotSpecifyNullableAttributeForNavigationPropertyWithCollectionType + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_CannotSpecifyNullableAttributeForNavigationPropertyWithCollectionType); } } @@ -1641,8 +1910,10 @@ internal static string CsdlParser_CannotSpecifyNullableAttributeForNavigationPro /// /// A string like "Metadata document cannot have more than one entity container." /// - internal static string CsdlParser_MetadataDocumentCannotHaveMoreThanOneEntityContainer { - get { + internal static string CsdlParser_MetadataDocumentCannotHaveMoreThanOneEntityContainer + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlParser_MetadataDocumentCannotHaveMoreThanOneEntityContainer); } } @@ -1650,8 +1921,10 @@ internal static string CsdlParser_MetadataDocumentCannotHaveMoreThanOneEntityCon /// /// A string like " There was a mismatch in the principal and dependent ends of the referential constraint." /// - internal static string CsdlSemantics_ReferentialConstraintMismatch { - get { + internal static string CsdlSemantics_ReferentialConstraintMismatch + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlSemantics_ReferentialConstraintMismatch); } } @@ -1659,8 +1932,10 @@ internal static string CsdlSemantics_ReferentialConstraintMismatch { /// /// A string like "The enumeration member must have a value." /// - internal static string CsdlSemantics_EnumMemberMustHaveValue { - get { + internal static string CsdlSemantics_EnumMemberMustHaveValue + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlSemantics_EnumMemberMustHaveValue); } } @@ -1668,22 +1943,26 @@ internal static string CsdlSemantics_EnumMemberMustHaveValue { /// /// A string like "The annotation target '{0}' could not be resolved because it cannot refer to an annotatable element." /// - internal static string CsdlSemantics_ImpossibleAnnotationsTarget(object p0) { + internal static string CsdlSemantics_ImpossibleAnnotationsTarget(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlSemantics_ImpossibleAnnotationsTarget, p0); } /// /// A string like "The schema '{0}' contains the alias '{1}' more than once." /// - internal static string CsdlSemantics_DuplicateAlias(object p0, object p1) { + internal static string CsdlSemantics_DuplicateAlias(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.CsdlSemantics_DuplicateAlias, p0, p1); } /// /// A string like "The EDMX version specified in the 'Version' attribute does not match the version corresponding to the namespace of the 'Edmx' element." /// - internal static string EdmxParser_EdmxVersionMismatch { - get { + internal static string EdmxParser_EdmxVersionMismatch + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmxParser_EdmxVersionMismatch); } } @@ -1691,15 +1970,18 @@ internal static string EdmxParser_EdmxVersionMismatch { /// /// A string like "Unexpected {0} element while parsing Edmx. Edmx is expected to have at most one of 'Runtime' or 'DataServices' elements." /// - internal static string EdmxParser_BodyElement(object p0) { + internal static string EdmxParser_BodyElement(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmxParser_BodyElement, p0); } /// /// A string like "edmx:Reference must contain at least one edmx:Includes or edmx:IncludeAnnotations." /// - internal static string EdmxParser_InvalidReferenceIncorrectNumberOfIncludes { - get { + internal static string EdmxParser_InvalidReferenceIncorrectNumberOfIncludes + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmxParser_InvalidReferenceIncorrectNumberOfIncludes); } } @@ -1707,8 +1989,10 @@ internal static string EdmxParser_InvalidReferenceIncorrectNumberOfIncludes { /// /// A string like "Unresolved Uri found in edmx:Reference, getReferencedModelReaderFunc should not return null when the URI is not a well-known schema." /// - internal static string EdmxParser_UnresolvedReferenceUriInEdmxReference { - get { + internal static string EdmxParser_UnresolvedReferenceUriInEdmxReference + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmxParser_UnresolvedReferenceUriInEdmxReference); } } @@ -1716,316 +2000,362 @@ internal static string EdmxParser_UnresolvedReferenceUriInEdmxReference { /// /// A string like "Encountered the following errors when parsing the EDMX document: \r\n{0}" /// - internal static string EdmParseException_ErrorsEncounteredInEdmx(object p0) { + internal static string EdmParseException_ErrorsEncounteredInEdmx(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmParseException_ErrorsEncounteredInEdmx, p0); } /// /// A string like "The value '{0}' is not a valid boolean. The value must be 'true' or 'false'." /// - internal static string ValueParser_InvalidBoolean(object p0) { + internal static string ValueParser_InvalidBoolean(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidBoolean, p0); } /// /// A string like "The value '{0}' is not a valid integer. The value must be a valid 32 bit integer." /// - internal static string ValueParser_InvalidInteger(object p0) { + internal static string ValueParser_InvalidInteger(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidInteger, p0); } /// /// A string like "The value '{0}' is not a valid integer. The value must be a valid 64 bit integer." /// - internal static string ValueParser_InvalidLong(object p0) { + internal static string ValueParser_InvalidLong(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidLong, p0); } /// /// A string like "The value '{0}' is not a valid floating point value." /// - internal static string ValueParser_InvalidFloatingPoint(object p0) { + internal static string ValueParser_InvalidFloatingPoint(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidFloatingPoint, p0); } /// /// A string like "The value '{0}' is not a valid integer. The value must be a valid 32 bit integer or 'Max'." /// - internal static string ValueParser_InvalidMaxLength(object p0) { + internal static string ValueParser_InvalidMaxLength(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidMaxLength, p0); } /// /// A string like "The value '{0}' is not a valid SRID. The value must either be a 32 bit integer or 'Variable'." /// - internal static string ValueParser_InvalidSrid(object p0) { + internal static string ValueParser_InvalidSrid(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidSrid, p0); } /// /// A string like "The value '{0}' is not a valid scale. The value must either be a 32 bit integer or 'Variable'." /// - internal static string ValueParser_InvalidScale(object p0) { + internal static string ValueParser_InvalidScale(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidScale, p0); } /// /// A string like "The value '{0}' is not a valid Guid." /// - internal static string ValueParser_InvalidGuid(object p0) { + internal static string ValueParser_InvalidGuid(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidGuid, p0); } /// /// A string like "The value '{0}' is not a valid decimal." /// - internal static string ValueParser_InvalidDecimal(object p0) { + internal static string ValueParser_InvalidDecimal(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidDecimal, p0); } /// /// A string like "The value '{0}' is not a valid date time offset value." /// - internal static string ValueParser_InvalidDateTimeOffset(object p0) { + internal static string ValueParser_InvalidDateTimeOffset(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidDateTimeOffset, p0); } /// /// A string like "The value '{0}' is not a valid date time value." /// - internal static string ValueParser_InvalidDateTime(object p0) { + internal static string ValueParser_InvalidDateTime(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidDateTime, p0); } /// /// A string like "The value '{0}' is not a valid date value." /// - internal static string ValueParser_InvalidDate(object p0) { + internal static string ValueParser_InvalidDate(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidDate, p0); } /// /// A string like "The value '{0}' is not a valid duration value." /// - internal static string ValueParser_InvalidDuration(object p0) { + internal static string ValueParser_InvalidDuration(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidDuration, p0); } /// /// A string like "The value '{0}' is not a valid binary value. The value must be a hexadecimal string and must not be prefixed by '0x'." /// - internal static string ValueParser_InvalidBinary(object p0) { + internal static string ValueParser_InvalidBinary(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidBinary, p0); } /// /// A string like "The value '{0}' is not a valid TimeOfDay value." /// - internal static string ValueParser_InvalidTimeOfDay(object p0) { + internal static string ValueParser_InvalidTimeOfDay(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.ValueParser_InvalidTimeOfDay, p0); } /// /// A string like "Invalid multiplicity: '{0}'" /// - internal static string UnknownEnumVal_Multiplicity(object p0) { + internal static string UnknownEnumVal_Multiplicity(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_Multiplicity, p0); } /// /// A string like "Invalid schema element kind: '{0}'" /// - internal static string UnknownEnumVal_SchemaElementKind(object p0) { + internal static string UnknownEnumVal_SchemaElementKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_SchemaElementKind, p0); } /// /// A string like "Invalid type kind: '{0}'" /// - internal static string UnknownEnumVal_TypeKind(object p0) { + internal static string UnknownEnumVal_TypeKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_TypeKind, p0); } /// /// A string like "Invalid primitive kind: '{0}'" /// - internal static string UnknownEnumVal_PrimitiveKind(object p0) { + internal static string UnknownEnumVal_PrimitiveKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_PrimitiveKind, p0); } /// /// A string like "Invalid container element kind: '{0}'" /// - internal static string UnknownEnumVal_ContainerElementKind(object p0) { + internal static string UnknownEnumVal_ContainerElementKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_ContainerElementKind, p0); } /// /// A string like "Invalid CSDL target: '{0}'" /// - internal static string UnknownEnumVal_CsdlTarget(object p0) { + internal static string UnknownEnumVal_CsdlTarget(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_CsdlTarget, p0); } /// /// A string like "Invalid property kind: '{0}'" /// - internal static string UnknownEnumVal_PropertyKind(object p0) { + internal static string UnknownEnumVal_PropertyKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_PropertyKind, p0); } /// /// A string like "Invalid expression kind: '{0}'" /// - internal static string UnknownEnumVal_ExpressionKind(object p0) { + internal static string UnknownEnumVal_ExpressionKind(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.UnknownEnumVal_ExpressionKind, p0); } /// /// A string like "The name '{0}' is ambiguous." /// - internal static string Bad_AmbiguousElementBinding(object p0) { + internal static string Bad_AmbiguousElementBinding(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_AmbiguousElementBinding, p0); } /// /// A string like "The type '{0}' could not be found." /// - internal static string Bad_UnresolvedType(object p0) { + internal static string Bad_UnresolvedType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedType, p0); } /// /// A string like "The complex type '{0}' could not be found." /// - internal static string Bad_UnresolvedComplexType(object p0) { + internal static string Bad_UnresolvedComplexType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedComplexType, p0); } /// /// A string like "The entity type '{0}' could not be found." /// - internal static string Bad_UnresolvedEntityType(object p0) { + internal static string Bad_UnresolvedEntityType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedEntityType, p0); } /// /// A string like "The primitive type '{0}' could not be found." /// - internal static string Bad_UnresolvedPrimitiveType(object p0) { + internal static string Bad_UnresolvedPrimitiveType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedPrimitiveType, p0); } /// /// A string like "The operation '{0}' could not be found." /// - internal static string Bad_UnresolvedOperation(object p0) { + internal static string Bad_UnresolvedOperation(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedOperation, p0); } /// /// A string like "The operation '{0}' could not be resolved because more than one operation could be used for this application." /// - internal static string Bad_AmbiguousOperation(object p0) { + internal static string Bad_AmbiguousOperation(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_AmbiguousOperation, p0); } /// /// A string like "The operation '{0}' could not be resolved because none of the operations with that name take the correct set of parameters." /// - internal static string Bad_OperationParametersDontMatch(object p0) { + internal static string Bad_OperationParametersDontMatch(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_OperationParametersDontMatch, p0); } /// /// A string like "The entity set '{0}' could not be found." /// - internal static string Bad_UnresolvedEntitySet(object p0) { + internal static string Bad_UnresolvedEntitySet(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedEntitySet, p0); } /// /// A string like "The entity container '{0}' could not be found." /// - internal static string Bad_UnresolvedEntityContainer(object p0) { + internal static string Bad_UnresolvedEntityContainer(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedEntityContainer, p0); } /// /// A string like "The enum type '{0}' could not be found." /// - internal static string Bad_UnresolvedEnumType(object p0) { + internal static string Bad_UnresolvedEnumType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedEnumType, p0); } /// /// A string like "The enum member '{0}' could not be found." /// - internal static string Bad_UnresolvedEnumMember(object p0) { + internal static string Bad_UnresolvedEnumMember(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedEnumMember, p0); } /// /// A string like "The property '{0}' could not be found." /// - internal static string Bad_UnresolvedProperty(object p0) { + internal static string Bad_UnresolvedProperty(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedProperty, p0); } /// /// A string like "The parameter '{0}' could not be found." /// - internal static string Bad_UnresolvedParameter(object p0) { + internal static string Bad_UnresolvedParameter(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedParameter, p0); } /// /// A string like "The return of operation '{0}' could not be found." /// - internal static string Bad_UnresolvedReturn(object p0) { + internal static string Bad_UnresolvedReturn(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedReturn, p0); } /// /// A string like "The labeled element '{0}' could not be found." /// - internal static string Bad_UnresolvedLabeledElement(object p0) { + internal static string Bad_UnresolvedLabeledElement(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedLabeledElement, p0); } /// /// A string like "The entity '{0}' is invalid because its base type is cyclic." /// - internal static string Bad_CyclicEntity(object p0) { + internal static string Bad_CyclicEntity(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_CyclicEntity, p0); } /// /// A string like "The complex type '{0}' is invalid because its base type is cyclic." /// - internal static string Bad_CyclicComplex(object p0) { + internal static string Bad_CyclicComplex(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_CyclicComplex, p0); } /// /// A string like "The entity container '{0}' is invalid because its extends hierarchy is cyclic." /// - internal static string Bad_CyclicEntityContainer(object p0) { + internal static string Bad_CyclicEntityContainer(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_CyclicEntityContainer, p0); } /// /// A string like "A navigation property could not be found for the path '{0}' starting from the type '{1}'." /// - internal static string Bad_UnresolvedNavigationPropertyPath(object p0, object p1) { + internal static string Bad_UnresolvedNavigationPropertyPath(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Bad_UnresolvedNavigationPropertyPath, p0, p1); } /// /// A string like "The same rule cannot be in the same rule set twice." /// - internal static string RuleSet_DuplicateRulesExistInRuleSet { - get { + internal static string RuleSet_DuplicateRulesExistInRuleSet + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.RuleSet_DuplicateRulesExistInRuleSet); } } @@ -2033,15 +2363,18 @@ internal static string RuleSet_DuplicateRulesExistInRuleSet { /// /// A string like "Conversion of EDM values to a CLR type with type {0} is not supported." /// - internal static string EdmToClr_UnsupportedType(object p0) { + internal static string EdmToClr_UnsupportedType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_UnsupportedType, p0); } /// /// A string like "Conversion of an EDM structured value is supported only to a CLR class." /// - internal static string EdmToClr_StructuredValueMappedToNonClass { - get { + internal static string EdmToClr_StructuredValueMappedToNonClass + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_StructuredValueMappedToNonClass); } } @@ -2049,43 +2382,50 @@ internal static string EdmToClr_StructuredValueMappedToNonClass { /// /// A string like "Cannot initialize a property '{0}' on an object of type '{1}'. The property already has a value." /// - internal static string EdmToClr_IEnumerableOfTPropertyAlreadyHasValue(object p0, object p1) { + internal static string EdmToClr_IEnumerableOfTPropertyAlreadyHasValue(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_IEnumerableOfTPropertyAlreadyHasValue, p0, p1); } /// /// A string like "An EDM structured value contains multiple values for the property '{0}'. Conversion of an EDM structured value with duplicate property values is not supported." /// - internal static string EdmToClr_StructuredPropertyDuplicateValue(object p0) { + internal static string EdmToClr_StructuredPropertyDuplicateValue(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_StructuredPropertyDuplicateValue, p0); } /// /// A string like "Conversion of an EDM value of the type '{0}' to the CLR type '{1}' is not supported." /// - internal static string EdmToClr_CannotConvertEdmValueToClrType(object p0, object p1) { + internal static string EdmToClr_CannotConvertEdmValueToClrType(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_CannotConvertEdmValueToClrType, p0, p1); } /// /// A string like "Conversion of an edm collection value to the CLR type '{0}' is not supported. EDM collection values can be converted to System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T> or System.Collections.Generic.ICollection<T>." /// - internal static string EdmToClr_CannotConvertEdmCollectionValueToClrType(object p0) { + internal static string EdmToClr_CannotConvertEdmCollectionValueToClrType(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_CannotConvertEdmCollectionValueToClrType, p0); } /// /// A string like "The type '{0}' of the object returned by the TryCreateObjectInstance delegate is not assignable to the expected type '{1}'." /// - internal static string EdmToClr_TryCreateObjectInstanceReturnedWrongObject(object p0, object p1) { + internal static string EdmToClr_TryCreateObjectInstanceReturnedWrongObject(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmToClr_TryCreateObjectInstanceReturnedWrongObject, p0, p1); } /// /// A string like "The MIME type annotation must not have a null value." /// - internal static string EdmUtil_NullValueForMimeTypeAnnotation { - get { + internal static string EdmUtil_NullValueForMimeTypeAnnotation + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmUtil_NullValueForMimeTypeAnnotation); } } @@ -2093,22 +2433,26 @@ internal static string EdmUtil_NullValueForMimeTypeAnnotation { /// /// A string like "An annotation of type string was expected for the '{{http://docs.oasis-open.org/odata/ns/metadata}}:{0}' annotation, but an annotation of type '{1}' was found." /// - internal static string EdmUtil_InvalidAnnotationValue(object p0, object p1) { + internal static string EdmUtil_InvalidAnnotationValue(object p0, object p1) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.EdmUtil_InvalidAnnotationValue, p0, p1); } /// /// A string like "The time zone information is missing on the DateTimeOffset value '{0}'. A DateTimeOffset value must contain the time zone information." /// - internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) { + internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.PlatformHelper_DateTimeOffsetMustContainTimeZone, p0); } /// /// A string like "The added or subtracted value results in an un-representable Date." /// - internal static string Date_InvalidAddedOrSubtractedResults { - get { + internal static string Date_InvalidAddedOrSubtractedResults + { + get + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Date_InvalidAddedOrSubtractedResults); } } @@ -2116,56 +2460,64 @@ internal static string Date_InvalidAddedOrSubtractedResults { /// /// A string like "The Year '{0}', Month '{1}' and Day '{2}' parameters describe an un-representable Date." /// - internal static string Date_InvalidDateParameters(object p0, object p1, object p2) { + internal static string Date_InvalidDateParameters(object p0, object p1, object p2) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Date_InvalidDateParameters, p0, p1, p2); } /// /// A string like "String '{0}' was not recognized as a valid Date." /// - internal static string Date_InvalidParsingString(object p0) { + internal static string Date_InvalidParsingString(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Date_InvalidParsingString, p0); } /// /// A string like "Target object '{0}' is not an instance with type of Date." /// - internal static string Date_InvalidCompareToTarget(object p0) { + internal static string Date_InvalidCompareToTarget(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.Date_InvalidCompareToTarget, p0); } /// /// A string like "The Hour '{0}', Minute '{1}', Second '{2}' and Millisecond '{3}' parameters describe an un-representable TimeOfDay." /// - internal static string TimeOfDay_InvalidTimeOfDayParameters(object p0, object p1, object p2, object p3) { + internal static string TimeOfDay_InvalidTimeOfDayParameters(object p0, object p1, object p2, object p3) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TimeOfDay_InvalidTimeOfDayParameters, p0, p1, p2, p3); } /// /// A string like "The ticks value '{0}' is out of representable TimeOfDay range." /// - internal static string TimeOfDay_TicksOutOfRange(object p0) { + internal static string TimeOfDay_TicksOutOfRange(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TimeOfDay_TicksOutOfRange, p0); } /// /// A string like "The TimeSpan value '{0}' is out of representable TimeOfDay range." /// - internal static string TimeOfDay_ConvertErrorFromTimeSpan(object p0) { + internal static string TimeOfDay_ConvertErrorFromTimeSpan(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TimeOfDay_ConvertErrorFromTimeSpan, p0); } /// /// A string like "String '{0}' was not recognized as a valid TimeOfDay." /// - internal static string TimeOfDay_InvalidParsingString(object p0) { + internal static string TimeOfDay_InvalidParsingString(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TimeOfDay_InvalidParsingString, p0); } /// /// A string like "Target object '{0}' is not an instance with type of TimeOfDay." /// - internal static string TimeOfDay_InvalidCompareToTarget(object p0) { + internal static string TimeOfDay_InvalidCompareToTarget(object p0) + { return Microsoft.OData.Edm.EdmRes.GetString(Microsoft.OData.Edm.EdmRes.TimeOfDay_InvalidCompareToTarget, p0); } diff --git a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs index 614485e0df..619101eacb 100644 --- a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs +++ b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs @@ -187,7 +187,7 @@ public static EdmNavigationProperty CreateNavigationPropertyWithPartner( declaringType = GetEntityType(partnerPropertyType) as IEdmEntityType; if (declaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeExpected, nameof(partnerPropertyType)); } } else if (partnerPropertyType.Definition.TypeKind == EdmTypeKind.Complex) @@ -195,18 +195,18 @@ public static EdmNavigationProperty CreateNavigationPropertyWithPartner( declaringType = GetComplexType(partnerPropertyType) as IEdmComplexType; if (declaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeExpected, nameof(partnerPropertyType)); } } else { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(partnerPropertyType)); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeExpected, nameof(partnerPropertyType)); } IEdmEntityType partnerDeclaringType = GetEntityType(propertyType); if (partnerDeclaringType == null) { - throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeOrComplexTypeExpected, nameof(propertyType)); + throw new ArgumentException(Strings.Constructable_EntityTypeOrCollectionOfEntityTypeExpected, nameof(propertyType)); } EdmNavigationProperty end1 = new EdmNavigationProperty( diff --git a/tools/StringResourceGenerator/StringsClassGenerator.ttinclude b/tools/StringResourceGenerator/StringsClassGenerator.ttinclude index 529d5f513b..408e23cdf6 100644 --- a/tools/StringResourceGenerator/StringsClassGenerator.ttinclude +++ b/tools/StringResourceGenerator/StringsClassGenerator.ttinclude @@ -207,8 +207,10 @@ namespace <#= Configuration.ResourceClassNamespace #> { private void GenerateAsProperty(string id) { #> - internal static string <#= id #> { - get { + internal static string <#= id #> + { + get + { return <#= Configuration.ResourceClassNamespace #>.<#= Configuration.ResourceClassName #>.GetString(<#= Configuration.ResourceClassNamespace #>.<#= Configuration.ResourceClassName #>.<#= id #>); } } @@ -219,7 +221,8 @@ namespace <#= Configuration.ResourceClassNamespace #> { private void GenerateAsMethod(string id, int count) { #> - internal static string <#= id #>(<#= GenerateParameterList(count) #>) { + internal static string <#= id #>(<#= GenerateParameterList(count) #>) + { return <#= Configuration.ResourceClassNamespace #>.<#= Configuration.ResourceClassName #>.GetString(<#= Configuration.ResourceClassNamespace #>.<#= Configuration.ResourceClassName #>.<#= id #>, <#= GenerateArgumentList(count) #>); } From efbe56c32cf63e9c6dc5e1049715e3c3429c4834 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Tue, 16 Jun 2020 20:05:05 +0200 Subject: [PATCH 08/27] Replace DataServiceQuerySingle`1 with DataServiceQuerySingle{T}. --- .../Binding/DataServiceCollectionOfT.cs | 2 +- src/Microsoft.OData.Client/DataServiceContext.cs | 2 +- src/Microsoft.OData.Client/DataServiceQueryOfT.cs | 2 +- src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs index cd8fc08485..cd6cec4a60 100644 --- a/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs +++ b/src/Microsoft.OData.Client/Binding/DataServiceCollectionOfT.cs @@ -85,7 +85,7 @@ public DataServiceCollection(IEnumerable items) /// Initializes a new instance of the class based on query execution and with the specified tracking mode. /// A value that indicated whether or not changes made to items in the collection are automatically tracked. - /// A or LINQ query that returns an object that are used to initialize the collection. + /// A or LINQ query that returns an object that are used to initialize the collection. public DataServiceCollection(TrackingMode trackingMode, DataServiceQuerySingle item) : this(null, item.Query, trackingMode, null, null, null) { diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index f2c212e822..30e032a08c 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1066,7 +1066,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string path, string fu /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string path, string functionName, bool isComposable, params UriOperationParameter[] parameters) { this.CreateRequestArgsAndFireBuildingRequest(null, null, new HeaderCollection(), this.HttpStack, null /*descriptor*/); diff --git a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs index ab4686f318..48997d41f0 100644 --- a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs @@ -171,7 +171,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string functionName, b /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return new DataServiceQuerySingle(CreateFunctionQuery(functionName, isComposable, parameters), isComposable); diff --git a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs index ad80364d11..a8504cf130 100644 --- a/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQuerySingleOfT.cs @@ -119,7 +119,7 @@ public virtual DataServiceQuery CreateFunctionQuery(string functionName, b /// The function name. /// Whether this query is composable. /// The function parameters. - /// A new instance that represents the function call. + /// A new instance that represents the function call. public virtual DataServiceQuerySingle CreateFunctionQuerySingle(string functionName, bool isComposable, params UriOperationParameter[] parameters) { return new DataServiceQuerySingle(this.CreateFunctionQuery(functionName, isComposable, parameters), isComposable); @@ -206,7 +206,7 @@ public virtual string AppendRequestUri(string nextSegment) /// /// The type of the value returned by selector. /// A lambda expression that indicates the property returns. - /// A whose element is the result of invoking the transform function on the element of source. + /// A whose element is the result of invoking the transform function on the element of source. public DataServiceQuerySingle Select(Expression> selector) { if (this.Query == null) @@ -222,7 +222,7 @@ public DataServiceQuerySingle Select(Expression /// Target type of the last property on the expand path. /// A lambda expression that indicates the navigation property that returns the entity set to include in the expanded query. - /// Returns a that with the expand option included. + /// Returns a that with the expand option included. public DataServiceQuerySingle Expand(Expression> navigationPropertyAccessor) { return new DataServiceQuerySingle(this.Query.Expand(navigationPropertyAccessor), true); @@ -240,7 +240,7 @@ public virtual DataServiceQuerySingle Expand(string path) /// Cast this query type into its derived type. /// /// Derived type of TElement to be casted to. - /// Returns a of TResult type. + /// Returns a of TResult type. public virtual DataServiceQuerySingle CastTo() { return new DataServiceQuerySingle((DataServiceQuery)this.Query.OfType(), true); From ca07cea72789729bd6965cf9418a68d9c38a3f93 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Tue, 16 Jun 2020 20:09:23 +0200 Subject: [PATCH 09/27] Replace QueryOperationResponse`1 with QueryOperationResponse{T}. --- src/Microsoft.OData.Client/DataServiceContext.cs | 8 ++++---- src/Microsoft.OData.Client/QueryOperationResponseOfT.cs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index 30e032a08c..223ac2d2e5 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1207,7 +1207,7 @@ public virtual QueryOperationResponse LoadProperty(object entity, string propert } /// Loads a page of related entities by using the supplied next link URI. - /// An instance of that contains the results of the request. + /// An instance of that contains the results of the request. /// The entity that contains the property to load. /// The name of the property of the specified entity to load. /// The URI that is used to load the next results page. @@ -2544,7 +2544,7 @@ internal virtual IEdmVocabularyAnnotatable GetEdmOperationOrOperationImport(Meth /// /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the last page request. + /// An instance of that contains the results of the last page request. internal Task LoadPropertyAllPagesAsync(object entity, string propertyName) { var currentTask = Task.Factory.FromAsync(this.BeginLoadProperty, this.EndLoadProperty, entity, propertyName, null); @@ -2559,7 +2559,7 @@ internal Task LoadPropertyAllPagesAsync(object entity, s /// /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the last page request. + /// An instance of that contains the results of the last page request. internal QueryOperationResponse LoadPropertyAllPages(object entity, string propertyName) { DataServiceQueryContinuation continuation = null; @@ -2923,7 +2923,7 @@ protected internal Type DefaultResolveType(string typeName, string fullNamespace /// The response of previous page /// The entity that contains the property to load. /// The name of the property of the specified entity to load. - /// An instance of that contains the results of the request. + /// An instance of that contains the results of the request. private QueryOperationResponse ContinuePage(QueryOperationResponse response, object entity, string propertyName) { var continuation = response.GetContinuation(); diff --git a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs index 908813e49f..471cc6430a 100644 --- a/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs +++ b/src/Microsoft.OData.Client/QueryOperationResponseOfT.cs @@ -80,8 +80,8 @@ public override long Count return (DataServiceQueryContinuation)base.GetContinuation(); } - /// Executes the and gets items. - /// An enumerator to a collection of items. + /// Executes the and gets items. + /// An enumerator to a collection of items. /// In the case of Collection(primitive) or Collection(complex), the entire collection is /// materialized when this is called. public new IEnumerator GetEnumerator() From 9ddab3ab25712572164174ca20a4388f1b428ec8 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Tue, 16 Jun 2020 20:10:40 +0200 Subject: [PATCH 10/27] Replace DataServiceRequest`1 with DataServiceRequest{T}. --- src/Microsoft.OData.Client/DataServiceRequestOfT.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceRequestOfT.cs b/src/Microsoft.OData.Client/DataServiceRequestOfT.cs index 6f6024feba..8cb87c5bb2 100644 --- a/src/Microsoft.OData.Client/DataServiceRequestOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceRequestOfT.cs @@ -34,7 +34,7 @@ public sealed class DataServiceRequest : DataServiceRequest #region Constructors - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The URI object that contains the request string. public DataServiceRequest(Uri requestUri) { @@ -58,7 +58,7 @@ internal DataServiceRequest(Uri requestUri, QueryComponents queryComponents, Pro #endregion Constructors - /// Gets the type of the object used to create the instance. + /// Gets the type of the object used to create the instance. /// A value that indicates the type of data returned. public override Type ElementType { From adc73c1636dc10797950ef070e8d93d82bc9b51b Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Tue, 16 Jun 2020 20:12:43 +0200 Subject: [PATCH 11/27] Replace Dictionary`2 with Dictionary{TKey,TValue}. --- src/Microsoft.OData.Client/DataServiceStreamResponse.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.OData.Client/DataServiceStreamResponse.cs b/src/Microsoft.OData.Client/DataServiceStreamResponse.cs index 4a68fc0264..97e7063d12 100644 --- a/src/Microsoft.OData.Client/DataServiceStreamResponse.cs +++ b/src/Microsoft.OData.Client/DataServiceStreamResponse.cs @@ -64,7 +64,7 @@ public string ContentDisposition } /// Gets the collection of headers from the response. - /// The headers collection from the response message as a object. + /// The headers collection from the response message as a object. public Dictionary Headers { get From 1a03bc819ab557d8abb50ede9a6f5fe58e16fc48 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Tue, 16 Jun 2020 20:13:40 +0200 Subject: [PATCH 12/27] Repalce ReadOnlyCollection`1 with ReadOnlyCollection{T}. --- src/Microsoft.OData.Client/EntityDescriptor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Client/EntityDescriptor.cs b/src/Microsoft.OData.Client/EntityDescriptor.cs index 3a1ba688e7..f11c32340a 100644 --- a/src/Microsoft.OData.Client/EntityDescriptor.cs +++ b/src/Microsoft.OData.Client/EntityDescriptor.cs @@ -248,7 +248,7 @@ internal set public String ServerTypeName { get; internal set; } /// Returns a collection of links that are the relationships in which the entity participates. - /// A of objects that represents links in which the entity participates. + /// A of objects that represents links in which the entity participates. [SuppressMessage("Microsoft.Naming", "CA1704", Justification = "LinkInfoCollection is cumbersome and Links isn't expressive enough")] public ReadOnlyCollection LinkInfos { @@ -259,7 +259,7 @@ public ReadOnlyCollection LinkInfos } /// Returns a collection of named binary data streams that belong to the entity. - /// A of objects that are the named binary data streams that belong to the entity. + /// A of objects that are the named binary data streams that belong to the entity. public ReadOnlyCollection StreamDescriptors { get From f3a3523a56dc2a8fe69104dc7f293f8cf8d3eb64 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 10:17:47 +0200 Subject: [PATCH 13/27] Replace DataServiceRequest[]" with DataServiceRequest[]. --- src/Microsoft.OData.Client/DataServiceContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index 223ac2d2e5..d93538344e 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1660,7 +1660,7 @@ public virtual DataServiceResponse EndExecuteBatch(IAsyncResult asyncResult) #if !PORTABLELIB // Synchronous methods not available /// Synchronously submits a group of queries as a batch to the data service. /// The response to the batch operation. - /// Array of objects that make up the queries. + /// Array of objects that make up the queries. public virtual DataServiceResponse ExecuteBatch(params DataServiceRequest[] queries) { Util.CheckArgumentNotEmpty(queries, "queries"); @@ -1670,7 +1670,7 @@ public virtual DataServiceResponse ExecuteBatch(params DataServiceRequest[] quer /// Synchronously submits a group of queries as a batch to the data service. /// The response to the batch operation. /// A member of the enumeration for how the client can save the pending set of changes. - /// Array of objects that make up the queries. + /// Array of objects that make up the queries. public virtual DataServiceResponse ExecuteBatch(SaveChangesOptions options, params DataServiceRequest[] queries) { Util.CheckArgumentNotEmpty(queries, "queries"); From cec7c266b2500f2b70f87f549b827fc83e2b83ec Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 10:20:07 +0200 Subject: [PATCH 14/27] Replace DataServiceContext.BeginExecute``1 with DataServiceContext.BeginExecute{TElement}. --- src/Microsoft.OData.Client/DataServiceContext.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index d93538344e..51b025b453 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1813,7 +1813,7 @@ public virtual Task> ExecuteAsync(DataServiceQue return Task>.Factory.FromAsync(this.BeginExecute, this.EndExecute, continuation, null); } - /// Called to complete the . + /// Called to complete the . /// The results returned by the query operation. /// /// object. @@ -1829,7 +1829,7 @@ public virtual IEnumerable EndExecute(IAsyncResult asyncResu return DataServiceRequest.EndExecute(this, this, Util.ExecuteMethodName, asyncResult); } - /// Called to complete the . + /// Called to complete the . /// The result of the operation. /// An that represents the status of the asynchronous operation. /// This method should be used in combination with the BeginExecute overload which From 5fb8f8e97ca60294b95c90c995937694451d7d9b Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 10:22:43 +0200 Subject: [PATCH 15/27] Fix CA1829: use Length property when available. --- src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs | 2 +- src/Microsoft.OData.Client/DataServiceQueryOfT.cs | 2 +- src/Microsoft.OData.Client/SaveResult.cs | 4 ++-- src/Microsoft.OData.Client/WebUtil.cs | 2 +- src/Microsoft.OData.Core/SelectedPropertiesNode.cs | 2 +- .../UriParser/Binders/FunctionCallBinder.cs | 2 +- .../UriParser/Parsers/FunctionOverloadResolver.cs | 2 +- .../UriParser/Parsers/KeyFinder.cs | 2 +- src/Microsoft.OData.Edm/Csdl/EdmEnumValueParser.cs | 4 ++-- .../Csdl/Parsing/Common/EdmXmlDocumentParser.cs | 10 +++++----- .../Csdl/Parsing/CsdlDocumentParser.cs | 4 ++-- .../Csdl/Semantics/CsdlSemanticsOperation.cs | 2 +- .../Semantics/CsdlSemanticsVocabularyAnnotation.cs | 4 ++-- src/Microsoft.OData.Edm/EdmUtil.cs | 2 +- src/Microsoft.OData.Edm/Validation/ValidationRules.cs | 4 ++-- .../Vocabularies/EdmExpressionEvaluator.cs | 4 ++-- src/PlatformHelper.cs | 2 +- 17 files changed, 27 insertions(+), 27 deletions(-) diff --git a/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs b/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs index ed1b49b07c..e38718976f 100644 --- a/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs +++ b/src/Microsoft.OData.Client/ALinq/ExpressionWriter.cs @@ -329,7 +329,7 @@ internal override Expression VisitMethodCall(MethodCallExpression m) { // SequenceMethod.Any represents Enumerable.Any(), which has only source argument // AnyPredicate and All has a second parameter which is the predicate lambda. - Debug.Assert(m.Arguments.Count() == 2, "m.Arguments.Count() == 2"); + Debug.Assert(m.Arguments.Count == 2, "m.Arguments.Count() == 2"); LambdaExpression le = (LambdaExpression)m.Arguments[1]; string rangeVariable = le.Parameters[0].Name; this.builder.Append(rangeVariable); diff --git a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs index 48997d41f0..79976a16e5 100644 --- a/src/Microsoft.OData.Client/DataServiceQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceQueryOfT.cs @@ -31,7 +31,7 @@ public class DataServiceQuery : DataServiceQuery, IQueryable #if PORTABLELIB private static readonly MethodInfo expandGenericMethodInfo = typeof(DataServiceQuery).GetMethodWithGenericArgs("Expand", true /*isPublic*/, false /*isStatic*/, 1 /*genericArgCount*/); #else - private static readonly MethodInfo expandGenericMethodInfo = (MethodInfo)typeof(DataServiceQuery).GetMember("Expand*").Single(m => ((MethodInfo)m).GetGenericArguments().Count() == 1); + private static readonly MethodInfo expandGenericMethodInfo = (MethodInfo)typeof(DataServiceQuery).GetMember("Expand*").Single(m => ((MethodInfo)m).GetGenericArguments().Length == 1); #endif /// Linq Expression diff --git a/src/Microsoft.OData.Client/SaveResult.cs b/src/Microsoft.OData.Client/SaveResult.cs index c1ef149ccd..ae8c4692df 100644 --- a/src/Microsoft.OData.Client/SaveResult.cs +++ b/src/Microsoft.OData.Client/SaveResult.cs @@ -745,7 +745,7 @@ private void SetupMediaResourceRequest(HeaderCollection headers, DataServiceSave /// response object private void HandleOperationException(InvalidOperationException e, IODataResponseMessage response) { - Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count(), string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count = '{1}'", this.entryIndex, this.ChangedEntries.Count())); + Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count = '{1}'", this.entryIndex, this.ChangedEntries.Count())); Descriptor current = this.ChangedEntries[this.entryIndex]; HeaderCollection headers = null; @@ -848,7 +848,7 @@ private void HandleOperationResponseData(IODataResponseMessage response) /// stream containing the response payload. private void HandleOperationResponseData(IODataResponseMessage responseMsg, Stream responseStream) { - Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count(), string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count() = '{1}'", this.entryIndex, this.ChangedEntries.Count())); + Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count() = '{1}'", this.entryIndex, this.ChangedEntries.Count())); // Parse the response Descriptor current = this.ChangedEntries[this.entryIndex]; diff --git a/src/Microsoft.OData.Client/WebUtil.cs b/src/Microsoft.OData.Client/WebUtil.cs index 5860811159..c25175b83a 100644 --- a/src/Microsoft.OData.Client/WebUtil.cs +++ b/src/Microsoft.OData.Client/WebUtil.cs @@ -35,7 +35,7 @@ internal static partial class WebUtil #if PORTABLELIB private static MethodInfo getDefaultValueMethodInfo = typeof(WebUtil).GetMethodWithGenericArgs("GetDefaultValue", false /*isPublic*/, true /*isStatic*/, 1 /*genericArgCount*/); #else - private static MethodInfo getDefaultValueMethodInfo = (MethodInfo)typeof(WebUtil).GetMember("GetDefaultValue", BindingFlags.NonPublic | BindingFlags.Static).Single(m => ((MethodInfo)m).GetGenericArguments().Count() == 1); + private static MethodInfo getDefaultValueMethodInfo = (MethodInfo)typeof(WebUtil).GetMember("GetDefaultValue", BindingFlags.NonPublic | BindingFlags.Static).Single(m => ((MethodInfo)m).GetGenericArguments().Length == 1); #endif /// diff --git a/src/Microsoft.OData.Core/SelectedPropertiesNode.cs b/src/Microsoft.OData.Core/SelectedPropertiesNode.cs index db1e4bbd28..e873377e7e 100644 --- a/src/Microsoft.OData.Core/SelectedPropertiesNode.cs +++ b/src/Microsoft.OData.Core/SelectedPropertiesNode.cs @@ -341,7 +341,7 @@ internal IEnumerable GetSelectedNavigationProperties(IEd } if (this.selectionType == SelectionType.EntireSubtree || this.hasWildcard - || ((this.selectedProperties == null || this.selectedProperties.Count() == 0) && this.children.Values.All(n => n.isExpandedNavigationProperty))) + || ((this.selectedProperties == null || this.selectedProperties.Count == 0) && this.children.Values.All(n => n.isExpandedNavigationProperty))) { return structuredType.NavigationProperties(); } diff --git a/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs b/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs index 9677dd1ee3..a749c788bf 100644 --- a/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs +++ b/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs @@ -109,7 +109,7 @@ internal static KeyValuePair MatchSigna // we specifically want to find just the first function that matches the number of arguments, we don't care about // ambiguity here because we're already in an ambiguous case where we don't know what kind of types // those arguments are. - KeyValuePair found = nameSignatures.FirstOrDefault(pair => pair.Value.ArgumentTypes.Count() == argumentCount); + KeyValuePair found = nameSignatures.FirstOrDefault(pair => pair.Value.ArgumentTypes.Length == argumentCount); if (found.Equals(TypePromotionUtils.NotFoundKeyValuePair)) { throw new ODataException(ODataErrorStrings.FunctionCallBinder_CannotFindASuitableOverload(functionCallToken, argumentTypes.Count())); diff --git a/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs b/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs index a17bf1c41c..d70d55b922 100644 --- a/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs +++ b/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs @@ -78,7 +78,7 @@ internal static bool ResolveOperationImportFromList(string identifier, IList targetKeyPropertyList = targetEntityKeyProperties != null ? new ReadOnlyCollection(targetEntityKeyProperties.ToList()) : new ReadOnlyCollection(new List()); // should only get here if the number of raw parameters from the uri is different than the number of key properties for the target entity. - Debug.Assert(rawKeyValuesFromUri.ValueCount < targetKeyPropertyList.Count(), "rawKeyValuesFromUri.ValueCount < targetEntityKeyProperties.Count()"); + Debug.Assert(rawKeyValuesFromUri.ValueCount < targetKeyPropertyList.Count, "rawKeyValuesFromUri.ValueCount < targetEntityKeyProperties.Count()"); // if the raw key from the uri has positional values, there must be only one of them // its important to cache this value here because we'll change it when we add new diff --git a/src/Microsoft.OData.Edm/Csdl/EdmEnumValueParser.cs b/src/Microsoft.OData.Edm/Csdl/EdmEnumValueParser.cs index 35f733bbcd..c593ebe368 100644 --- a/src/Microsoft.OData.Edm/Csdl/EdmEnumValueParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/EdmEnumValueParser.cs @@ -53,7 +53,7 @@ internal static bool TryParseEnumMember(string value, IEdmModel model, EdmLocati enumType = new UnresolvedEnumType(enumTypeName, location); isUnresolved = true; } - else if (enumValues.Count() > 1 && (!enumType.IsFlags || !EdmEnumValueParser.IsEnumIntegerType(enumType))) + else if (enumValues.Length > 1 && (!enumType.IsFlags || !EdmEnumValueParser.IsEnumIntegerType(enumType))) { return false; } @@ -62,7 +62,7 @@ internal static bool TryParseEnumMember(string value, IEdmModel model, EdmLocati foreach (var enumValue in enumValues) { string[] path = enumValue.Split('/'); - if (path.Count() != 2) + if (path.Length != 2) { return false; } diff --git a/src/Microsoft.OData.Edm/Csdl/Parsing/Common/EdmXmlDocumentParser.cs b/src/Microsoft.OData.Edm/Csdl/Parsing/Common/EdmXmlDocumentParser.cs index 1a2845aa24..01aba5055a 100644 --- a/src/Microsoft.OData.Edm/Csdl/Parsing/Common/EdmXmlDocumentParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/Parsing/Common/EdmXmlDocumentParser.cs @@ -384,7 +384,7 @@ protected string ValidateEnumMembersPath(string path) foreach (var enumValue in enumValues) { string[] segments = enumValue.Split('/'); - if (!(segments.Count() == 2 && + if (!(segments.Length == 2 && EdmUtil.IsValidDottedName(segments[0]) && EdmUtil.IsValidUndottedName(segments[1]))) { @@ -412,7 +412,7 @@ private string ValidateTypeName(string name) { case CsdlConstants.Value_Collection: // 'Collection' on its own is a valid type string. - if (typeInformation.Count() == 1) + if (typeInformation.Length == 1) { return name; } @@ -424,7 +424,7 @@ private string ValidateTypeName(string name) break; case CsdlConstants.Value_Ref: // 'Ref' on its own is not a valid type string. - if (typeInformation.Count() == 1) + if (typeInformation.Length == 1) { this.ReportError(this.currentElement.Location, EdmErrorCode.InvalidTypeName, Edm.Strings.CsdlParser_InvalidTypeName(name)); return name; @@ -461,7 +461,7 @@ private string ValidateAlias(string name) private string ValidateEntitySetPath(string path) { string[] segments = path.Split('/'); - if (!(segments.Count() == 2 && + if (!(segments.Length == 2 && EdmUtil.IsValidDottedName(segments[0]) && EdmUtil.IsValidUndottedName(segments[1]))) { @@ -474,7 +474,7 @@ private string ValidateEntitySetPath(string path) private string ValidateEnumMemberPath(string path) { string[] segments = path.Split('/'); - if (!(segments.Count() == 2 && + if (!(segments.Length == 2 && EdmUtil.IsValidDottedName(segments[0]) && EdmUtil.IsValidUndottedName(segments[1]))) { diff --git a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs index d847cad91e..7c7cb64a7a 100644 --- a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs @@ -960,7 +960,7 @@ private CsdlTypeReference ParseTypeReference(string typeString, XmlElementValueC { case CsdlConstants.Value_Collection: { - string elementTypeName = typeInformation.Count() > 1 ? typeInformation[1] : typeString; + string elementTypeName = typeInformation.Length > 1 ? typeInformation[1] : typeString; elementType = new CsdlExpressionTypeReference( new CsdlCollectionType( this.ParseNamedTypeReference(elementTypeName, isNullable, parentLocation), parentLocation), isNullable, parentLocation); @@ -969,7 +969,7 @@ private CsdlTypeReference ParseTypeReference(string typeString, XmlElementValueC break; case CsdlConstants.Value_Ref: { - string elementTypeName = typeInformation.Count() > 1 ? typeInformation[1] : typeString; + string elementTypeName = typeInformation.Length > 1 ? typeInformation[1] : typeString; elementType = new CsdlExpressionTypeReference( new CsdlEntityReferenceType( this.ParseNamedTypeReference(elementTypeName, isNullable, parentLocation), parentLocation), CsdlConstants.Default_Nullable, parentLocation); diff --git a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsOperation.cs b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsOperation.cs index 32c9b0b53d..fd6fc7fb90 100644 --- a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsOperation.cs +++ b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsOperation.cs @@ -114,7 +114,7 @@ public IEdmOperationParameter FindParameter(string name) internal static string ParameterizedTargetName(IList parameters) { int index = 0; - int parameterCount = parameters.Count(); + int parameterCount = parameters.Count; StringBuilder sb = new StringBuilder("("); foreach (IEdmOperationParameter parameter in parameters) diff --git a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs index 179316caeb..05c5723585 100644 --- a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs +++ b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs @@ -142,7 +142,7 @@ private IEdmVocabularyAnnotatable ComputeTarget() Debug.Assert(this.annotationsContext != null, "Annotation must either have a target context or annotations context"); string target = this.annotationsContext.Annotations.Target; string[] targetSegments = target.Split('/'); - int targetSegmentsCount = targetSegments.Count(); + int targetSegmentsCount = targetSegments.Length; IEdmEntityContainer container; if (targetSegmentsCount == 1) @@ -386,7 +386,7 @@ private IEnumerable FindParameterizedOperationFromList(IEnumerabl List matchingOperations = new List(); foreach (IEdmOperation function in operations) { - if (function.Parameters.Count() != parameters.Count()) + if (function.Parameters.Count() != parameters.Length) { continue; } diff --git a/src/Microsoft.OData.Edm/EdmUtil.cs b/src/Microsoft.OData.Edm/EdmUtil.cs index 1a52ccff79..3d2c3ed3bc 100644 --- a/src/Microsoft.OData.Edm/EdmUtil.cs +++ b/src/Microsoft.OData.Edm/EdmUtil.cs @@ -295,7 +295,7 @@ internal static String JoinInternal(String separator, IEnumerable values) internal static bool IsQualifiedName(string name) { string[] nameTokens = name.Split('.'); - if (nameTokens.Count() < 2) + if (nameTokens.Length < 2) { return false; } diff --git a/src/Microsoft.OData.Edm/Validation/ValidationRules.cs b/src/Microsoft.OData.Edm/Validation/ValidationRules.cs index aa21ae47c9..c76cedc353 100644 --- a/src/Microsoft.OData.Edm/Validation/ValidationRules.cs +++ b/src/Microsoft.OData.Edm/Validation/ValidationRules.cs @@ -1037,7 +1037,7 @@ public static class ValidationRules } } - if (composableEscapeFunctions.Count() > 1) + if (composableEscapeFunctions.Count > 1) { string escapeFunctionString = String.Join(",", composableEscapeFunctions.Select(c => c.Name).ToArray()); context.AddError( @@ -1046,7 +1046,7 @@ public static class ValidationRules Strings.EdmModel_Validator_Semantic_EntityComposableBoundEscapeFunctionMustBeLessOne(entityType.FullName(), escapeFunctionString)); } - if (nonComposableEscapeFunctions.Count() > 1) + if (nonComposableEscapeFunctions.Count > 1) { string escapeFunctionString = String.Join(",", nonComposableEscapeFunctions.Select(c => c.Name).ToArray()); context.AddError( diff --git a/src/Microsoft.OData.Edm/Vocabularies/EdmExpressionEvaluator.cs b/src/Microsoft.OData.Edm/Vocabularies/EdmExpressionEvaluator.cs index 75937e3559..4d20057082 100644 --- a/src/Microsoft.OData.Edm/Vocabularies/EdmExpressionEvaluator.cs +++ b/src/Microsoft.OData.Edm/Vocabularies/EdmExpressionEvaluator.cs @@ -560,7 +560,7 @@ private IEdmValue Eval(IEdmExpression expression, IEdmStructuredValue context) if (target != null) { IList argumentExpressions = apply.Arguments.ToList(); - IEdmValue[] arguments = new IEdmValue[argumentExpressions.Count()]; + IEdmValue[] arguments = new IEdmValue[argumentExpressions.Count]; { int argumentIndex = 0; @@ -670,7 +670,7 @@ private IEdmValue Eval(IEdmExpression expression, IEdmStructuredValue context) var enumMembers = enumMemberExpression.EnumMembers.ToList(); IEdmEnumType enumType = enumMembers.First().DeclaringType; IEdmEnumTypeReference enumTypeReference = new EdmEnumTypeReference(enumType, false); - if (enumMembers.Count() == 1) + if (enumMembers.Count == 1) { return new EdmEnumValue(enumTypeReference, enumMemberExpression.EnumMembers.Single()); } diff --git a/src/PlatformHelper.cs b/src/PlatformHelper.cs index 4dc9451ca3..6d7f755d5f 100644 --- a/src/PlatformHelper.cs +++ b/src/PlatformHelper.cs @@ -735,7 +735,7 @@ internal static MethodInfo GetMethod(this Type type, string name, Type[] types) /// MethodInfo for the method that was found. internal static MethodInfo GetMethodWithGenericArgs(this Type type, string name, bool isPublic, bool isStatic, int genericArgCount) { - return type.GetRuntimeMethods().Single(m => m.Name == name && m.IsPublic == isPublic && m.IsStatic == isStatic && m.GetGenericArguments().Count() == genericArgCount); + return type.GetRuntimeMethods().Single(m => m.Name == name && m.IsPublic == isPublic && m.IsStatic == isStatic && m.GetGenericArguments().Length == genericArgCount); } /// From 5974f828e9d5ac79198bf42bf8efa996733699b1 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 10:27:58 +0200 Subject: [PATCH 16/27] Regenerate file. --- .../Parameterized.Microsoft.Spatial.cs | 180 ++++++++++++------ 1 file changed, 120 insertions(+), 60 deletions(-) diff --git a/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs b/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs index 4a72fbf7f5..2e21ee1ee6 100644 --- a/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs +++ b/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs @@ -18,8 +18,10 @@ internal static class Strings { /// /// A string like "No operations are registered. Please provide operations using SpatialImplementation.CurrentImplementation.Operations property." /// - internal static string SpatialImplementation_NoRegisteredOperations { - get { + internal static string SpatialImplementation_NoRegisteredOperations + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.SpatialImplementation_NoRegisteredOperations); } } @@ -27,15 +29,18 @@ internal static string SpatialImplementation_NoRegisteredOperations { /// /// A string like "The value '{0}' is not valid for the coordinate '{1}'." /// - internal static string InvalidPointCoordinate(object p0, object p1) { + internal static string InvalidPointCoordinate(object p0, object p1) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.InvalidPointCoordinate, p0, p1); } /// /// A string like "Access to the coordinate properties of an empty point is not supported." /// - internal static string Point_AccessCoordinateWhenEmpty { - get { + internal static string Point_AccessCoordinateWhenEmpty + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Point_AccessCoordinateWhenEmpty); } } @@ -43,8 +48,10 @@ internal static string Point_AccessCoordinateWhenEmpty { /// /// A string like "The builder cannot create an instance until all pipeline calls are completed." /// - internal static string SpatialBuilder_CannotCreateBeforeDrawn { - get { + internal static string SpatialBuilder_CannotCreateBeforeDrawn + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.SpatialBuilder_CannotCreateBeforeDrawn); } } @@ -52,15 +59,18 @@ internal static string SpatialBuilder_CannotCreateBeforeDrawn { /// /// A string like "Incorrect GML Format: The XmlReader instance encountered an unexpected element "{0}"." /// - internal static string GmlReader_UnexpectedElement(object p0) { + internal static string GmlReader_UnexpectedElement(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_UnexpectedElement, p0); } /// /// A string like "Incorrect GML Format: the XmlReader instance is expected to be at the start of a GML element." /// - internal static string GmlReader_ExpectReaderAtElement { - get { + internal static string GmlReader_ExpectReaderAtElement + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_ExpectReaderAtElement); } } @@ -68,15 +78,18 @@ internal static string GmlReader_ExpectReaderAtElement { /// /// A string like "Incorrect GML Format: unknown spatial type tag "{0}"." /// - internal static string GmlReader_InvalidSpatialType(object p0) { + internal static string GmlReader_InvalidSpatialType(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_InvalidSpatialType, p0); } /// /// A string like "Incorrect GML Format: a LinearRing element must not be empty." /// - internal static string GmlReader_EmptyRingsNotAllowed { - get { + internal static string GmlReader_EmptyRingsNotAllowed + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_EmptyRingsNotAllowed); } } @@ -84,8 +97,10 @@ internal static string GmlReader_EmptyRingsNotAllowed { /// /// A string like "Incorrect GML Format: a pos element must contain at least two coordinates." /// - internal static string GmlReader_PosNeedTwoNumbers { - get { + internal static string GmlReader_PosNeedTwoNumbers + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_PosNeedTwoNumbers); } } @@ -93,8 +108,10 @@ internal static string GmlReader_PosNeedTwoNumbers { /// /// A string like "Incorrect GML Format: a posList element must contain an even number of coordinates." /// - internal static string GmlReader_PosListNeedsEvenCount { - get { + internal static string GmlReader_PosListNeedsEvenCount + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_PosListNeedsEvenCount); } } @@ -102,43 +119,50 @@ internal static string GmlReader_PosListNeedsEvenCount { /// /// A string like "Incorrect GML Format: a srsName attribute must begin with the namespace "{0}"." /// - internal static string GmlReader_InvalidSrsName(object p0) { + internal static string GmlReader_InvalidSrsName(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_InvalidSrsName, p0); } /// /// A string like "The attribute '{0}' on element '{1}' is not supported." /// - internal static string GmlReader_InvalidAttribute(object p0, object p1) { + internal static string GmlReader_InvalidAttribute(object p0, object p1) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GmlReader_InvalidAttribute, p0, p1); } /// /// A string like "Expecting token type "{0}" with text "{1}" but found "{2}"." /// - internal static string WellKnownText_UnexpectedToken(object p0, object p1, object p2) { + internal static string WellKnownText_UnexpectedToken(object p0, object p1, object p2) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.WellKnownText_UnexpectedToken, p0, p1, p2); } /// /// A string like "Unexpected character '{0}' found in text." /// - internal static string WellKnownText_UnexpectedCharacter(object p0) { + internal static string WellKnownText_UnexpectedCharacter(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.WellKnownText_UnexpectedCharacter, p0); } /// /// A string like "Unknown Tagged Text "{0}"." /// - internal static string WellKnownText_UnknownTaggedText(object p0) { + internal static string WellKnownText_UnknownTaggedText(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.WellKnownText_UnknownTaggedText, p0); } /// /// A string like "The WellKnownTextReader is configured to allow only two dimensions, and a third dimension was encountered." /// - internal static string WellKnownText_TooManyDimensions { - get { + internal static string WellKnownText_TooManyDimensions + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.WellKnownText_TooManyDimensions); } } @@ -146,8 +170,10 @@ internal static string WellKnownText_TooManyDimensions { /// /// A string like "Invalid spatial data: An instance of spatial type can have only one unique CoordinateSystem for all of its coordinates." /// - internal static string Validator_SridMismatch { - get { + internal static string Validator_SridMismatch + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_SridMismatch); } } @@ -155,15 +181,18 @@ internal static string Validator_SridMismatch { /// /// A string like "Invalid spatial data: Invalid spatial type "{0}"." /// - internal static string Validator_InvalidType(object p0) { + internal static string Validator_InvalidType(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_InvalidType, p0); } /// /// A string like "Invalid spatial data: the spatial type "FullGlobe" cannot be part of a collection type." /// - internal static string Validator_FullGlobeInCollection { - get { + internal static string Validator_FullGlobeInCollection + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_FullGlobeInCollection); } } @@ -171,8 +200,10 @@ internal static string Validator_FullGlobeInCollection { /// /// A string like "Invalid spatial data: the spatial type "LineString" must contain at least two points." /// - internal static string Validator_LineStringNeedsTwoPoints { - get { + internal static string Validator_LineStringNeedsTwoPoints + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_LineStringNeedsTwoPoints); } } @@ -180,8 +211,10 @@ internal static string Validator_LineStringNeedsTwoPoints { /// /// A string like "Invalid spatial data: the spatial type "FullGlobe" cannot contain figures." /// - internal static string Validator_FullGlobeCannotHaveElements { - get { + internal static string Validator_FullGlobeCannotHaveElements + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_FullGlobeCannotHaveElements); } } @@ -189,36 +222,42 @@ internal static string Validator_FullGlobeCannotHaveElements { /// /// A string like "Invalid spatial data: only {0} levels of nesting are supported in collection types." /// - internal static string Validator_NestingOverflow(object p0) { + internal static string Validator_NestingOverflow(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_NestingOverflow, p0); } /// /// A string like "Invalid spatial data: the coordinates ({0} {1} {2} {3}) are not valid." /// - internal static string Validator_InvalidPointCoordinate(object p0, object p1, object p2, object p3) { + internal static string Validator_InvalidPointCoordinate(object p0, object p1, object p2, object p3) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_InvalidPointCoordinate, p0, p1, p2, p3); } /// /// A string like "Invalid spatial data: expected call to "{0}" but got call to "{1}"." /// - internal static string Validator_UnexpectedCall(object p0, object p1) { + internal static string Validator_UnexpectedCall(object p0, object p1) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_UnexpectedCall, p0, p1); } /// /// A string like "Invalid spatial data: expected call to "{0}" or "{1}" but got call to "{2}"." /// - internal static string Validator_UnexpectedCall2(object p0, object p1, object p2) { + internal static string Validator_UnexpectedCall2(object p0, object p1, object p2) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_UnexpectedCall2, p0, p1, p2); } /// /// A string like "Invalid spatial data: A polygon ring must contain at least four points, and the last point must be equal to the first point." /// - internal static string Validator_InvalidPolygonPoints { - get { + internal static string Validator_InvalidPolygonPoints + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_InvalidPolygonPoints); } } @@ -226,22 +265,26 @@ internal static string Validator_InvalidPolygonPoints { /// /// A string like "Invalid latitude coordinate {0}. A latitude coordinate must be a value between -90.0 and +90.0 degrees." /// - internal static string Validator_InvalidLatitudeCoordinate(object p0) { + internal static string Validator_InvalidLatitudeCoordinate(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_InvalidLatitudeCoordinate, p0); } /// /// A string like "Invalid longitude coordinate {0}. A longitude coordinate must be a value between -15069.0 and +15069.0 degrees" /// - internal static string Validator_InvalidLongitudeCoordinate(object p0) { + internal static string Validator_InvalidLongitudeCoordinate(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_InvalidLongitudeCoordinate, p0); } /// /// A string like "A geography operation was called while processing a geometric shape." /// - internal static string Validator_UnexpectedGeography { - get { + internal static string Validator_UnexpectedGeography + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_UnexpectedGeography); } } @@ -249,8 +292,10 @@ internal static string Validator_UnexpectedGeography { /// /// A string like "A geometry operation was called while processing a geographic shape." /// - internal static string Validator_UnexpectedGeometry { - get { + internal static string Validator_UnexpectedGeometry + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.Validator_UnexpectedGeometry); } } @@ -258,15 +303,18 @@ internal static string Validator_UnexpectedGeometry { /// /// A string like "Invalid GeoJSON. The '{0}' member is required, but was not found." /// - internal static string GeoJsonReader_MissingRequiredMember(object p0) { + internal static string GeoJsonReader_MissingRequiredMember(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_MissingRequiredMember, p0); } /// /// A string like "Invalid GeoJSON. A position must contain at least two and no more than four elements." /// - internal static string GeoJsonReader_InvalidPosition { - get { + internal static string GeoJsonReader_InvalidPosition + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_InvalidPosition); } } @@ -274,15 +322,18 @@ internal static string GeoJsonReader_InvalidPosition { /// /// A string like "Invalid GeoJSON. The value '{0}' is not a valid value for the 'type' member." /// - internal static string GeoJsonReader_InvalidTypeName(object p0) { + internal static string GeoJsonReader_InvalidTypeName(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_InvalidTypeName, p0); } /// /// A string like "Invalid GeoJSON. A null value was found in an array element where nulls are not allowed." /// - internal static string GeoJsonReader_InvalidNullElement { - get { + internal static string GeoJsonReader_InvalidNullElement + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_InvalidNullElement); } } @@ -290,8 +341,10 @@ internal static string GeoJsonReader_InvalidNullElement { /// /// A string like "Invalid GeoJSON. A non-numeric value was found in an array element where a numeric value was expected." /// - internal static string GeoJsonReader_ExpectedNumeric { - get { + internal static string GeoJsonReader_ExpectedNumeric + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_ExpectedNumeric); } } @@ -299,8 +352,10 @@ internal static string GeoJsonReader_ExpectedNumeric { /// /// A string like "Invalid GeoJSON. A primitive value was found in an array element where an array was expected." /// - internal static string GeoJsonReader_ExpectedArray { - get { + internal static string GeoJsonReader_ExpectedArray + { + get + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_ExpectedArray); } } @@ -308,35 +363,40 @@ internal static string GeoJsonReader_ExpectedArray { /// /// A string like "Invalid GeoJSON. The value '{0}' is not a recognized CRS type." /// - internal static string GeoJsonReader_InvalidCrsType(object p0) { + internal static string GeoJsonReader_InvalidCrsType(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_InvalidCrsType, p0); } /// /// A string like "Invalid GeoJSON. The value '{0}' is not a recognized CRS name." /// - internal static string GeoJsonReader_InvalidCrsName(object p0) { + internal static string GeoJsonReader_InvalidCrsName(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.GeoJsonReader_InvalidCrsName, p0); } /// /// A string like "Cannot read the value '{0}' for the property '{1}' as a quoted JSON string value." /// - internal static string JsonReaderExtensions_CannotReadPropertyValueAsString(object p0, object p1) { + internal static string JsonReaderExtensions_CannotReadPropertyValueAsString(object p0, object p1) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.JsonReaderExtensions_CannotReadPropertyValueAsString, p0, p1); } /// /// A string like "Cannot read the value '{0}' as a JSON object." /// - internal static string JsonReaderExtensions_CannotReadValueAsJsonObject(object p0) { + internal static string JsonReaderExtensions_CannotReadValueAsJsonObject(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.JsonReaderExtensions_CannotReadValueAsJsonObject, p0); } /// /// A string like "The time zone information is missing on the DateTimeOffset value '{0}'. A DateTimeOffset value must contain the time zone information." /// - internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) { + internal static string PlatformHelper_DateTimeOffsetMustContainTimeZone(object p0) + { return Microsoft.Spatial.TextRes.GetString(Microsoft.Spatial.TextRes.PlatformHelper_DateTimeOffsetMustContainTimeZone, p0); } From 50bd839beb13022815cb9bfb9ab07b785a86f9a9 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 10:44:53 +0200 Subject: [PATCH 17/27] Add // at the top of generated files. --- src/Microsoft.OData.Client/Microsoft.OData.Client.cs | 4 +++- .../Parameterized.Microsoft.OData.Client.cs | 4 +++- src/Microsoft.OData.Core/Microsoft.OData.Core.cs | 4 +++- .../Parameterized.Microsoft.OData.Core.cs | 4 +++- src/Microsoft.OData.Edm/Csdl/CsdlConstants.cs | 2 ++ src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs | 4 +++- src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs | 4 +++- src/Microsoft.Spatial/Microsoft.Spatial.cs | 4 +++- src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs | 4 +++- .../StringResourceGenerator/ResourceClassGenerator.ttinclude | 2 ++ .../StringResourceGenerator/ResourceClassGenerator2.ttinclude | 2 ++ tools/StringResourceGenerator/StringsClassGenerator.ttinclude | 2 ++ 12 files changed, 32 insertions(+), 8 deletions(-) diff --git a/src/Microsoft.OData.Client/Microsoft.OData.Client.cs b/src/Microsoft.OData.Client/Microsoft.OData.Client.cs index d3e6f4446a..5c30326b39 100644 --- a/src/Microsoft.OData.Client/Microsoft.OData.Client.cs +++ b/src/Microsoft.OData.Client/Microsoft.OData.Client.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs b/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs index 10f8213efb..7c81072644 100644 --- a/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs +++ b/src/Microsoft.OData.Client/Parameterized.Microsoft.OData.Client.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.OData.Core/Microsoft.OData.Core.cs b/src/Microsoft.OData.Core/Microsoft.OData.Core.cs index bd22fc149f..7751f99e56 100644 --- a/src/Microsoft.OData.Core/Microsoft.OData.Core.cs +++ b/src/Microsoft.OData.Core/Microsoft.OData.Core.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs b/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs index 99d818e82d..2c2a4b8b67 100644 --- a/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs +++ b/src/Microsoft.OData.Core/Parameterized.Microsoft.OData.Core.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.OData.Edm/Csdl/CsdlConstants.cs b/src/Microsoft.OData.Edm/Csdl/CsdlConstants.cs index f29927c787..f738ce61b7 100644 --- a/src/Microsoft.OData.Edm/Csdl/CsdlConstants.cs +++ b/src/Microsoft.OData.Edm/Csdl/CsdlConstants.cs @@ -1,3 +1,5 @@ +// + //--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. diff --git a/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs b/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs index aa211e76d1..ce799ecf24 100644 --- a/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs +++ b/src/Microsoft.OData.Edm/Microsoft.OData.Edm.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs b/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs index 5172ab484d..1d51bef85b 100644 --- a/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs +++ b/src/Microsoft.OData.Edm/Parameterized.Microsoft.OData.Edm.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.Spatial/Microsoft.Spatial.cs b/src/Microsoft.Spatial/Microsoft.Spatial.cs index c7cd660f12..6be4bfb8ab 100644 --- a/src/Microsoft.Spatial/Microsoft.Spatial.cs +++ b/src/Microsoft.Spatial/Microsoft.Spatial.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs b/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs index 2e21ee1ee6..bfc3258803 100644 --- a/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs +++ b/src/Microsoft.Spatial/Parameterized.Microsoft.Spatial.cs @@ -1,4 +1,6 @@ -//--------------------------------------------------------------------- +// + +//--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. // diff --git a/tools/StringResourceGenerator/ResourceClassGenerator.ttinclude b/tools/StringResourceGenerator/ResourceClassGenerator.ttinclude index c0bf603ee9..5a05e4c50c 100644 --- a/tools/StringResourceGenerator/ResourceClassGenerator.ttinclude +++ b/tools/StringResourceGenerator/ResourceClassGenerator.ttinclude @@ -38,6 +38,8 @@ // Step 2: Generate document header and common imports. // ************************************************************************ #> +// + //--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. diff --git a/tools/StringResourceGenerator/ResourceClassGenerator2.ttinclude b/tools/StringResourceGenerator/ResourceClassGenerator2.ttinclude index 6d431df65f..f79e2fe786 100644 --- a/tools/StringResourceGenerator/ResourceClassGenerator2.ttinclude +++ b/tools/StringResourceGenerator/ResourceClassGenerator2.ttinclude @@ -38,6 +38,8 @@ // Step 2: Generate document header and common imports. // ************************************************************************ #> +// + //--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. diff --git a/tools/StringResourceGenerator/StringsClassGenerator.ttinclude b/tools/StringResourceGenerator/StringsClassGenerator.ttinclude index 408e23cdf6..1beda84669 100644 --- a/tools/StringResourceGenerator/StringsClassGenerator.ttinclude +++ b/tools/StringResourceGenerator/StringsClassGenerator.ttinclude @@ -38,6 +38,8 @@ // Step 2: Generate document header and common imports. // ************************************************************************ #> +// + //--------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. From cbf94b9842db433c45adf57e4a558a269b536885 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 11:04:37 +0200 Subject: [PATCH 18/27] Fix CA1827: replace Count() == 0 with !Any and Count() > 0 with Any. --- src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs | 2 +- src/Microsoft.OData.Client/Metadata/ClientTypeAnnotation.cs | 2 +- src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs | 4 ++-- .../UriParser/Parsers/FunctionOverloadResolver.cs | 2 +- src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs | 2 +- src/Microsoft.OData.Edm/Csdl/SchemaWriter.cs | 2 +- .../Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs | 4 ++-- .../ExtensionMethods/ExtensionMethods.cs | 2 +- src/Microsoft.OData.Edm/Validation/InterfaceValidator.cs | 2 +- src/Microsoft.OData.Edm/Validation/ValidationHelper.cs | 6 +++--- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs b/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs index 2182cfb282..eff5192a79 100644 --- a/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs +++ b/src/Microsoft.OData.Client/Annotation/AnnotationHelper.cs @@ -258,7 +258,7 @@ private static IEdmVocabularyAnnotation GetOrInsertCachedMetadataAnnotationForTy var edmValueAnnotations = serviceModel.FindVocabularyAnnotations(edmVocabularyAnnotatable, term, qualifier) .Where(a => a.Qualifier == qualifier && a.Target == edmVocabularyAnnotatable); - if (edmValueAnnotations.Count() == 0) + if (!edmValueAnnotations.Any()) { edmValueAnnotation = GetOrInsertCachedMetadataAnnotationForType(context, type.GetBaseType(), term, qualifier); } diff --git a/src/Microsoft.OData.Client/Metadata/ClientTypeAnnotation.cs b/src/Microsoft.OData.Client/Metadata/ClientTypeAnnotation.cs index 52608294cc..e4e76a7d21 100644 --- a/src/Microsoft.OData.Client/Metadata/ClientTypeAnnotation.cs +++ b/src/Microsoft.OData.Client/Metadata/ClientTypeAnnotation.cs @@ -215,7 +215,7 @@ private static bool ShouldSerializeProperty(ClientTypeAnnotation type, ClientPro && property != type.MediaDataMember && !property.IsStreamLinkProperty && (type.MediaDataMember == null || type.MediaDataMember.MimeTypeProperty != property) - && property.PropertyInfo.GetCustomAttributes(typeof(IgnoreClientPropertyAttribute)).Count() == 0; + && !property.PropertyInfo.GetCustomAttributes(typeof(IgnoreClientPropertyAttribute)).Any(); } /// diff --git a/src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs b/src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs index 5f7d64efae..affaa69bbc 100644 --- a/src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs +++ b/src/Microsoft.OData.Core/Metadata/EdmLibraryExtensions.cs @@ -173,7 +173,7 @@ internal static IEnumerable FindBestOverloadBasedOnParamete { // The best match out of a list of candidates is the one that has the same number of (non-binding) parameters as specified. IEnumerable exactMatches = functions.Where(f => f.Operation.Parameters.Count() == parameters.Count()); - return exactMatches.Count() > 0 ? exactMatches : functions; + return exactMatches.Any() ? exactMatches : functions; } /// @@ -263,7 +263,7 @@ internal static IEnumerable FilterOverloadsBasedOnParameterCount( { // The best match out of a list of candidates is the one that has the same number of (non-binding) parameters as specified. IEnumerable exactMatches = operations.Where(f => f.Parameters.Count() == parameterCount + (f.IsBound ? 1 : 0)); - return exactMatches.Count() > 0 ? exactMatches : operations; + return exactMatches.Any() ? exactMatches : operations; } /// diff --git a/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs b/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs index d70d55b922..a5b7dba8fa 100644 --- a/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs +++ b/src/Microsoft.OData.Core/UriParser/Parsers/FunctionOverloadResolver.cs @@ -90,7 +90,7 @@ internal static bool ResolveOperationImportFromList(string identifier, IList 1 && parameterNames.Count == 0) { - candidateMatchingOperationImports = candidateMatchingOperationImports.Where(operationImport => operationImport.Operation.Parameters.Count() == 0); + candidateMatchingOperationImports = candidateMatchingOperationImports.Where(operationImport => !operationImport.Operation.Parameters.Any()); } if (!candidateMatchingOperationImports.HasAny()) diff --git a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs index 7c7cb64a7a..142279fcea 100644 --- a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs @@ -996,7 +996,7 @@ private CsdlTypeReference ParseTypeReference(string typeString, XmlElementValueC } else { - Debug.Assert(this.Errors.Count() > 0, "There should be an error reported for the missing required type attribute."); + Debug.Assert(this.Errors.Any(), "There should be an error reported for the missing required type attribute."); } elementType = new CsdlNamedTypeReference(String.Empty, isNullable, parentLocation); } diff --git a/src/Microsoft.OData.Edm/Csdl/SchemaWriter.cs b/src/Microsoft.OData.Edm/Csdl/SchemaWriter.cs index d55989eec1..f9c8eeefda 100644 --- a/src/Microsoft.OData.Edm/Csdl/SchemaWriter.cs +++ b/src/Microsoft.OData.Edm/Csdl/SchemaWriter.cs @@ -60,7 +60,7 @@ internal static bool TryWriteSchema(IEdmModel model, Func wri return false; } - if (schemas.Count() == 0) + if (!schemas.Any()) { errors = new EdmError[] { new EdmError(new CsdlLocation(0, 0), EdmErrorCode.NoSchemasProduced, Edm.Strings.Serializer_NoSchemasProduced) }; return false; diff --git a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs index 05c5723585..c39443df69 100644 --- a/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs +++ b/src/Microsoft.OData.Edm/Csdl/Semantics/CsdlSemanticsVocabularyAnnotation.cs @@ -303,7 +303,7 @@ private IEdmVocabularyAnnotatable ComputeTarget() private static IEdmOperationImport FindParameterizedOperationImport(string parameterizedName, Func> findFunctions, Func, IEdmOperationImport> ambiguityCreator) { IEnumerable matchingFunctions = findFunctions(parameterizedName); - if (matchingFunctions.Count() == 0) + if (!matchingFunctions.Any()) { return null; } @@ -331,7 +331,7 @@ private IEdmOperation FindParameterizedOperation(string parameterizedName, Func< string name = parameterizedName.Substring(0, openParen); string[] parameters = parameterizedName.Substring(openParen + 1, closeParen - (openParen + 1)).Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries); IEnumerable matchingFunctions = this.FindParameterizedOperationFromList(findFunctions(name).Cast(), parameters); - if (matchingFunctions.Count() == 0) + if (!matchingFunctions.Any()) { return null; } diff --git a/src/Microsoft.OData.Edm/ExtensionMethods/ExtensionMethods.cs b/src/Microsoft.OData.Edm/ExtensionMethods/ExtensionMethods.cs index 3b7ad0dab9..6ee3977602 100644 --- a/src/Microsoft.OData.Edm/ExtensionMethods/ExtensionMethods.cs +++ b/src/Microsoft.OData.Edm/ExtensionMethods/ExtensionMethods.cs @@ -987,7 +987,7 @@ public static bool TryFindContainerQualifiedOperationImports(this IEdmModel mode { operationImports = model.EntityContainer.FindOperationImportsExtended(simpleOperationName); - if (operationImports != null && operationImports.Count() > 0) + if (operationImports != null && operationImports.Any()) { return true; } diff --git a/src/Microsoft.OData.Edm/Validation/InterfaceValidator.cs b/src/Microsoft.OData.Edm/Validation/InterfaceValidator.cs index c1cb1bb2f7..8e2fc4484c 100644 --- a/src/Microsoft.OData.Edm/Validation/InterfaceValidator.cs +++ b/src/Microsoft.OData.Edm/Validation/InterfaceValidator.cs @@ -222,7 +222,7 @@ private static void CollectErrors(EdmError newError, ref List errors) private static bool IsCheckableBad(object element) { IEdmCheckable checkable = element as IEdmCheckable; - return checkable != null && checkable.Errors != null && checkable.Errors.Count() > 0; + return checkable != null && checkable.Errors != null && checkable.Errors.Any(); } private static EdmLocation GetLocation(object item) diff --git a/src/Microsoft.OData.Edm/Validation/ValidationHelper.cs b/src/Microsoft.OData.Edm/Validation/ValidationHelper.cs index 869aa45d05..473845b82d 100644 --- a/src/Microsoft.OData.Edm/Validation/ValidationHelper.cs +++ b/src/Microsoft.OData.Edm/Validation/ValidationHelper.cs @@ -41,17 +41,17 @@ internal static bool AddMemberNameToHashSet(IEdmNamedElement item, HashSetIntern internal static bool AllPropertiesAreNullable(IEnumerable properties) { - return properties.Where(p => !p.Type.IsNullable).Count() == 0; + return !properties.Where(p => !p.Type.IsNullable).Any(); } internal static bool HasNullableProperty(IEnumerable properties) { - return properties.Where(p => p.Type.IsNullable).Count() > 0; + return properties.Where(p => p.Type.IsNullable).Any(); } internal static bool PropertySetIsSubset(IEnumerable set, IEnumerable subset) { - return subset.Except(set).Count() <= 0; + return !subset.Except(set).Any(); } internal static bool PropertySetsAreEquivalent(IEnumerable set1, IEnumerable set2) From 97850571cddfd840623f3c093216255e707a8262 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 14:54:05 +0200 Subject: [PATCH 19/27] Fix xUnit2013: use Assert.Single. --- .../Microsoft.OData.Edm.Tests/Csdl/CsdlReaderTests.cs | 2 +- .../Microsoft.OData.Edm.Tests/Csdl/CsdlWriterTests.cs | 6 +++--- .../ExtensionMethods/ExtensionMethodTests.cs | 2 +- .../Vocabularies/CapabilitiesVocabularyTests.cs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlReaderTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlReaderTests.cs index 990d6e46c7..87c5ac7c5c 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlReaderTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlReaderTests.cs @@ -539,7 +539,7 @@ public void ParsingInvalidXmlWithMultipleEntityContainersShouldThrow() Action parseAction = () => CsdlReader.Parse(XElement.Parse(EdmxwithMultipleEntityContainers).CreateReader()); var exception = Assert.Throws(parseAction); Assert.Contains(Strings.CsdlParser_MetadataDocumentCannotHaveMoreThanOneEntityContainer, exception.Message); - Assert.Equal(1, exception.Errors.Count); + Assert.Single(exception.Errors); } [Fact] diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlWriterTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlWriterTests.cs index 222cc05a29..1e733484e6 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlWriterTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/CsdlWriterTests.cs @@ -795,7 +795,7 @@ public void CanWriteEdmSingletonWithEdmEntityTypeButValidationFailed() model.AddElement(container); IEnumerable errors; Assert.False(model.Validate(out errors)); - Assert.Equal(1, errors.Count()); + Assert.Single(errors); string csdlStr = GetCsdl(model, CsdlTarget.OData); Assert.Equal(expected, csdlStr); @@ -853,7 +853,7 @@ public void CanWriteEdmEntityTypeWithEdmPrimitiveTypeKeyButValidationFailed() model.AddElement(customer); IEnumerable errors; Assert.False(model.Validate(out errors)); - Assert.Equal(1, errors.Count()); + Assert.Single(errors); string csdlStr = GetCsdl(model, CsdlTarget.OData); Assert.Equal(expected, csdlStr); } @@ -937,7 +937,7 @@ public void CanWriteEdmTypeDefinitionWithEdmPrimitiveTypeButValidationFailed() model.AddElement(definition); IEnumerable errors; Assert.False(model.Validate(out errors)); - Assert.Equal(1, errors.Count()); + Assert.Single(errors); string csdlStr = GetCsdl(model, CsdlTarget.OData); Assert.Equal(expected, csdlStr); } diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/ExtensionMethods/ExtensionMethodTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/ExtensionMethods/ExtensionMethodTests.cs index 1cf59210b6..0c5bcfe67f 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/ExtensionMethods/ExtensionMethodTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/ExtensionMethods/ExtensionMethodTests.cs @@ -947,7 +947,7 @@ public void FindTypeForUndefinedTypeDoesnotGetIntoInfiniteSearchLoop() // Arrange - create the EdmModel without vacabulary models model = new EdmModel(false); - Assert.Equal(1, model.ReferencedModels.Count()); // We have the core model added by default + Assert.Single(model.ReferencedModels); // We have the core model added by default // Act unknownType = model.FindType("NS.UnKnownType"); diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs index e65de2326b..3766a956b4 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Vocabularies/CapabilitiesVocabularyTests.cs @@ -786,7 +786,7 @@ public void TestCapabilitiesVocabularyReferenceCoreVocabularyTypesAndTerms(strin // Core.Description var annotations = this.capVocModel.FindDeclaredVocabularyAnnotations(term).ToList(); - Assert.Equal(1, annotations.Count()); + Assert.Single(annotations); var description = annotations.SingleOrDefault(a => a.Term is CsdlSemanticsTerm && a.Term.Name == "Description"); Assert.NotNull(description); Assert.Equal("Org.OData.Core.V1", description.Term.Namespace); From 5ea56663678a0429bacb44e8886a1a6a62ec7c37 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 14:55:59 +0200 Subject: [PATCH 20/27] Fix xUnit2013: add FactAttribute. --- .../Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs index d85aab40ea..0fdc62c1ec 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs @@ -114,12 +114,14 @@ public void ValidateCorrectActionImportNameAndActionAttributeValueWrittenCorrect #endregion #region FunctionImport tests. + [Fact] public void ValidateCorrectFunctionNameAndFunctionAttributeValueWrittenCorrectly() { EdmFunctionImport functionImport = new EdmFunctionImport(defaultContainer, "GetStuff", defaultGetStuffFunction, new EdmPathExpression("Customers", "Orders"), false); TestWriteFunctionImportElementHeaderMethod(functionImport, @" Date: Wed, 17 Jun 2020 15:00:41 +0200 Subject: [PATCH 21/27] Replace DataServiceActionQuery.BeginExecute``1 with DataServiceActionQuery.BeginExecute. --- src/Microsoft.OData.Client/DataServiceActionQuery.cs | 2 +- src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceActionQuery.cs b/src/Microsoft.OData.Client/DataServiceActionQuery.cs index f49906a5bc..eadfc0d76f 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQuery.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQuery.cs @@ -70,7 +70,7 @@ public Task ExecuteAsync() return Context.ExecuteAsync(this.RequestUri, XmlConstants.HttpMethodPost, Parameters); } - /// Called to complete the . + /// Called to complete the . /// The result of the operation. /// An that represents the status of the asynchronous operation. /// This method should be used in combination with the BeginExecute overload which diff --git a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs index a539b72420..064f388d63 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs @@ -73,7 +73,7 @@ public Task> ExecuteAsync() return Context.ExecuteAsync(this.RequestUri, XmlConstants.HttpMethodPost, false, Parameters); } - /// Called to complete the . + /// Called to complete the . /// The results returned by the query operation. /// /// object. From e626c6a1b5b4a69bcb8db39af7b69a901654b535 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 15:03:36 +0200 Subject: [PATCH 22/27] Replace DataServiceContext.EndExecute``1 with DataServiceContext.EndExecute{TElement}. --- src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs | 2 +- src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs | 2 +- src/Microsoft.OData.Client/DataServiceContext.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs index 064f388d63..f869a9a9ca 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQueryOfT.cs @@ -78,7 +78,7 @@ public Task> ExecuteAsync() /// /// object. /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. + /// When did not originate from this instance. -or- When the method was previously called. /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] diff --git a/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs b/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs index 8f5fad9565..60a0ccb3a4 100644 --- a/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs +++ b/src/Microsoft.OData.Client/DataServiceActionQuerySingleOfT.cs @@ -78,7 +78,7 @@ public Task GetValueAsync() /// /// object. /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. + /// When did not originate from this instance. -or- When the method was previously called. /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index 51b025b453..aa9c267883 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -1819,7 +1819,7 @@ public virtual Task> ExecuteAsync(DataServiceQue /// object. /// The type returned by the query. /// When is null. - /// When did not originate from this instance. -or- When the method was previously called. + /// When did not originate from this instance. -or- When the method was previously called. /// When an error is raised either during execution of the request or when it converts the contents of the response message into objects. /// When the data service returns an HTTP 404: Resource Not Found error. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification = "Type is used to infer result")] From a69d2cce578b440c314b3fdb7ffa84b8c3e35533 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 15:17:56 +0200 Subject: [PATCH 23/27] Apply various stylecop fixes. --- src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs | 7 ++++++- src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs | 2 +- src/Microsoft.OData.Client/ALinq/ResourceBinder.cs | 7 +++++++ src/Microsoft.OData.Client/BatchSaveResult.cs | 3 ++- src/Microsoft.OData.Client/DataServiceContext.cs | 1 + .../Materialization/EntryValueMaterializationPolicy.cs | 4 ++++ .../StructuralValueMaterializationPolicy.cs | 3 +++ .../Serialization/ODataPropertyConverter.cs | 2 ++ src/Microsoft.OData.Core/Json/JsonValueUtils.cs | 4 ++-- src/Microsoft.OData.Core/ODataWriterCore.cs | 1 + .../UriParser/SemanticAst/SelectExpandClause.cs | 4 ++-- .../UriParser/SemanticAst/SelectExpandClauseExtensions.cs | 2 +- src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs | 1 + src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs | 1 + src/Microsoft.OData.Edm/Validation/Severity.cs | 1 + .../JsonLight/ODataJsonLightDeltaReaderTests.cs | 2 +- .../ScenarioTests/Roundtrip/ContextUrlWriterReaderTests.cs | 2 +- .../JsonLight/SingletonBatchRoundtripJsonLightTests.cs | 2 +- .../Roundtrip/JsonReaderWriterInjectionTests.cs | 2 +- .../Streaming/ODataJsonLightStreamReadingTests.cs | 2 +- .../UriParser/SegmentAssertions.cs | 2 +- .../Microsoft.Spatial.Tests/GeoJsonObjectReaderTests.cs | 2 +- .../Metadata/MetadataExtensionMethods.cs | 2 +- 23 files changed, 43 insertions(+), 16 deletions(-) diff --git a/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs b/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs index c4da02b875..d29c3f6769 100644 --- a/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs +++ b/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs @@ -129,6 +129,7 @@ internal override Expression VisitBinary(BinaryExpression b) if (_patterns.TryGetValue(visited.Left, out pattern) && pattern.Kind == PatternKind.Compare && IsConstantZero(visited.Right)) { ComparePattern comparePattern = (ComparePattern)pattern; + // handle relational operators BinaryExpression relationalExpression; if (TryCreateRelationalOperator(visited.NodeType, comparePattern.Left, comparePattern.Right, out relationalExpression)) @@ -174,7 +175,7 @@ internal override Expression VisitUnary(UnaryExpression u) if (!PrimitiveType.IsKnownNullableType(visited.Operand.Type) && !PrimitiveType.IsKnownNullableType(visited.Type) || visited.Operand.Type == visited.Type) { // x is not a collection of entity types - if(!(ClientTypeUtil.TypeOrElementTypeIsEntity(visited.Operand.Type) && ProjectionAnalyzer.IsCollectionProducingExpression(visited.Operand))) + if (!(ClientTypeUtil.TypeOrElementTypeIsEntity(visited.Operand.Type) && ProjectionAnalyzer.IsCollectionProducingExpression(visited.Operand))) { // x is not an enum type if (!visited.Operand.Type.IsEnum()) @@ -383,10 +384,13 @@ internal Expression VisitMethodCallNoRewrite(MethodCallExpression call) } MethodCallExpression normalizedResult; + // check for coalesce operators added by the VB compiler to predicate arguments normalizedResult = NormalizePredicateArgument(visited); + // check for type conversions in a Select that can be converted to Cast normalizedResult = NormalizeSelectWithTypeCast(normalizedResult); + // check for type conversion for Any/All/OfType source normalizedResult = NormalizeEnumerableSource(normalizedResult); @@ -623,6 +627,7 @@ private static bool TryMatchConvertSingleArgument(Expression expression, out Typ if (lambda.Parameters.Count == 1 && lambda.Body.NodeType == ExpressionType.Convert) { UnaryExpression convertExpression = (UnaryExpression)lambda.Body; + // Make sure the parameter being converted is the single lambda parameter if (convertExpression.Operand == lambda.Parameters[0]) { diff --git a/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs b/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs index 77e3546ed9..4c9a3e81da 100644 --- a/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs +++ b/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs @@ -81,7 +81,7 @@ private static void Analyze(LambdaExpression e, SelectExpandPathBuilder pb, Data bool knownEntityType = ClientTypeUtil.TypeOrElementTypeIsEntity(e.Body.Type); ParameterExpression pe = e.Parameters.Last(); bool isEntityParameter = ClientTypeUtil.TypeOrElementTypeIsEntity(pe.Type); - if(isEntityParameter) + if (isEntityParameter) { pb.PushParamExpression(pe); } diff --git a/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs b/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs index f3f1ee1bf2..0aa1461f28 100644 --- a/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs +++ b/src/Microsoft.OData.Client/ALinq/ResourceBinder.cs @@ -700,6 +700,7 @@ private static bool TryAnalyzeSelectManyCollector(ResourceExpression input, Expr result = null; } } + return result != null; } @@ -827,6 +828,7 @@ private static Expression LimitCardinality(MethodCallExpression mce, int maxCard AddSequenceQueryOption(rse, new TakeQueryOptionExpression(mce.Type, Expression.Constant(maxCardinality))); } } + return mce.Arguments[0]; } else if (mce.Arguments[0] is NavigationPropertySingletonExpression || mce.Arguments[0] is SingletonResourceExpression) @@ -1506,14 +1508,17 @@ internal override Expression VisitMethodCall(MethodCallExpression mce) { return AnalyzeExpand(mce, this.context); } + if (mce.Method.GetParameters().Any() && mce.Method.GetParameters()[0].ParameterType == t) { return AnalyzeFunc(mce, true); } + if (mce.Method.Name == AddQueryOptionMethodName && mce.Method.DeclaringType == t) { return AnalyzeAddCustomQueryOption(mce); } + if (mce.Method.Name == IncludeCountMethodName && mce.Method.DeclaringType == t) { return AnalyzeAddCountOption(mce); @@ -1773,6 +1778,7 @@ internal static bool MatchNonPrivateReadableProperty(Expression e, out PropertyI propInfo = null; target = null; + // must be member expression MemberExpression me = e as MemberExpression; if (me == null) @@ -1784,6 +1790,7 @@ internal static bool MatchNonPrivateReadableProperty(Expression e, out PropertyI if (PlatformHelper.IsProperty(me.Member)) { PropertyInfo pi = (PropertyInfo)me.Member; + // must be readable and non-private if (pi.CanRead && !TypeSystem.IsPrivate(pi)) { diff --git a/src/Microsoft.OData.Client/BatchSaveResult.cs b/src/Microsoft.OData.Client/BatchSaveResult.cs index dbf1d568f6..8d005f59eb 100644 --- a/src/Microsoft.OData.Client/BatchSaveResult.cs +++ b/src/Microsoft.OData.Client/BatchSaveResult.cs @@ -301,7 +301,7 @@ private ODataRequestMessageWrapper CreateBatchRequest() Uri requestUri = UriUtil.CreateUri(this.RequestInfo.BaseUriResolver.GetBaseUriWithSlash(), UriUtil.CreateUri("$batch", UriKind.Relative)); HeaderCollection headers = new HeaderCollection(); headers.SetRequestVersion(Util.ODataVersion4, this.RequestInfo.MaxProtocolVersionAsVersion); - if(useJsonBatch) + if (useJsonBatch) { headers.SetHeader(XmlConstants.HttpContentType, CreateApplicationJsonContentType()); } @@ -309,6 +309,7 @@ private ODataRequestMessageWrapper CreateBatchRequest() { headers.SetHeader(XmlConstants.HttpContentType, CreateMultiPartMimeContentType()); } + this.RequestInfo.Format.SetRequestAcceptHeaderForBatch(headers); return this.CreateTopLevelRequest(XmlConstants.HttpMethodPost, requestUri, headers, this.RequestInfo.HttpStack, null /*descriptor*/); diff --git a/src/Microsoft.OData.Client/DataServiceContext.cs b/src/Microsoft.OData.Client/DataServiceContext.cs index aa9c267883..fadaccce96 100644 --- a/src/Microsoft.OData.Client/DataServiceContext.cs +++ b/src/Microsoft.OData.Client/DataServiceContext.cs @@ -117,6 +117,7 @@ public class DataServiceContext /// read or write time-out value in seconds, 0 for default private int readWriteTimeout; + /// whether to use post-tunneling for PUT/DELETE private bool postTunneling; diff --git a/src/Microsoft.OData.Client/Materialization/EntryValueMaterializationPolicy.cs b/src/Microsoft.OData.Client/Materialization/EntryValueMaterializationPolicy.cs index fbea9b99be..4c0cbe1a99 100644 --- a/src/Microsoft.OData.Client/Materialization/EntryValueMaterializationPolicy.cs +++ b/src/Microsoft.OData.Client/Materialization/EntryValueMaterializationPolicy.cs @@ -606,6 +606,7 @@ private void MaterializeResolvedEntry(MaterializerEntry entry, bool includeLinks { this.MaterializeDynamicProperty(entry, link); } + continue; } @@ -662,6 +663,7 @@ private void MaterializeResolvedEntry(MaterializerEntry entry, bool includeLinks { this.MaterializeDynamicProperty(e, entry.ResolvedObject); } + continue; } @@ -739,6 +741,7 @@ private void MaterializeDynamicProperty(MaterializerEntry entry, ODataNestedReso { string collectionTypeName = linkState.Feed.TypeName; // TypeName represents a collection e.g. Collection(NS.Type) string collectionItemTypeName = CommonUtil.GetCollectionItemTypeName(collectionTypeName, false); + // Highly unlikely, but the method return null if the typeName argument does not meet certain expectations if (collectionItemTypeName == null) { @@ -759,6 +762,7 @@ private void MaterializeDynamicProperty(MaterializerEntry entry, ODataNestedReso this.Materialize(linkEntry, collectionItemType, false /*includeLinks*/); collection.Add(linkEntry.ResolvedObject); } + containerProperty.Add(link.Name, collection); } } diff --git a/src/Microsoft.OData.Client/Materialization/StructuralValueMaterializationPolicy.cs b/src/Microsoft.OData.Client/Materialization/StructuralValueMaterializationPolicy.cs index 14c8128554..3be1c5c7c3 100644 --- a/src/Microsoft.OData.Client/Materialization/StructuralValueMaterializationPolicy.cs +++ b/src/Microsoft.OData.Client/Materialization/StructuralValueMaterializationPolicy.cs @@ -330,6 +330,7 @@ internal void MaterializeDynamicProperty(ODataProperty property, object instance Debug.Assert(instance != null, "instance != null"); IDictionary containerProperty; + // Stop if owning type is not an open type // Or container property is not found // Or key with matching name already exists in the dictionary @@ -383,6 +384,7 @@ internal void MaterializeDynamicProperty(ODataProperty property, object instance if (collectionVal != null) { string collectionItemTypeName = CommonUtil.GetCollectionItemTypeName(collectionVal.TypeName, false); + // Highly unlikely, but the method return null if the typeName argument does not meet certain expectations if (collectionItemTypeName == null) { @@ -390,6 +392,7 @@ internal void MaterializeDynamicProperty(ODataProperty property, object instance } Type collectionItemType; + // ToNamedType will return true for primitive types if (!ClientConvert.ToNamedType(collectionItemTypeName, out collectionItemType)) { diff --git a/src/Microsoft.OData.Client/Serialization/ODataPropertyConverter.cs b/src/Microsoft.OData.Client/Serialization/ODataPropertyConverter.cs index 63f3fa5faa..285040e14f 100644 --- a/src/Microsoft.OData.Client/Serialization/ODataPropertyConverter.cs +++ b/src/Microsoft.OData.Client/Serialization/ODataPropertyConverter.cs @@ -750,11 +750,13 @@ private bool TryConvertDynamicPropertyValue(Type clientType, string dynamicPrope string typeNameInMetadata = this.requestInfo.ResolveNameFromType(clientType); string typeName = typeNameInMetadata; + // If type name not found in metadata but we're required to write client type, assume client and server typeName match if (typeNameInMetadata == null && shouldWriteClientType) { typeName = clientType.FullName; } + ODataEnumValue odataEnumValue = new ODataEnumValue(enumValue, typeName); odataEnumValue.TypeAnnotation = new ODataTypeAnnotation(typeName); odataValue = odataEnumValue; diff --git a/src/Microsoft.OData.Core/Json/JsonValueUtils.cs b/src/Microsoft.OData.Core/Json/JsonValueUtils.cs index b059ba4adf..0efecbe6c3 100644 --- a/src/Microsoft.OData.Core/Json/JsonValueUtils.cs +++ b/src/Microsoft.OData.Core/Json/JsonValueUtils.cs @@ -26,12 +26,12 @@ internal static class JsonValueUtils /// /// PositiveInfinitySymbol used in OData Json format /// - internal static readonly string ODataJsonPositiveInfinitySymbol = "INF"; + internal const string ODataJsonPositiveInfinitySymbol = "INF"; /// /// NegativeInfinitySymbol used in OData Json format /// - internal static readonly string ODataJsonNegativeInfinitySymbol = "-INF"; + internal const string ODataJsonNegativeInfinitySymbol = "-INF"; /// /// The NumberFormatInfo used in OData Json format. diff --git a/src/Microsoft.OData.Core/ODataWriterCore.cs b/src/Microsoft.OData.Core/ODataWriterCore.cs index 8a4cd62c85..44ebba19b7 100644 --- a/src/Microsoft.OData.Core/ODataWriterCore.cs +++ b/src/Microsoft.OData.Core/ODataWriterCore.cs @@ -1598,6 +1598,7 @@ await TaskUtils.GetTaskForSynchronousOperation(() => IEdmType itemType = EdmLibraryExtensions.GetPrimitiveTypeReference(primitiveValue.Value.GetType()).Definition; this.CurrentResourceSetValidator.ValidateResource(itemType); } + this.WritePrimitiveValue(primitiveValue); } ).FollowOnSuccessWithTask((t) => this.WriteEndAsync()); diff --git a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs index 68cc5d24fd..227d36b47e 100644 --- a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs +++ b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs @@ -92,10 +92,10 @@ internal void AddToSelectedItems(SelectItem itemToAdd, bool getOnlySubset =false { newSelectedItems.Add(selectedItem); } - else if(getOnlySubset) + else if (getOnlySubset) { var pathItem = selectedItem as PathSelectItem; - if(pathItem != null && pathItem.SelectAndExpand != null) + if (pathItem != null && pathItem.SelectAndExpand != null) { newSelectedItems.Add(selectedItem); } diff --git a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs index 840c8c4f0e..e06f2e164c 100644 --- a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs +++ b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs @@ -133,7 +133,7 @@ private static string GetPreviousSegments(string item) { int index = item.LastIndexOf('/'); - if(index > 0) + if (index > 0) { return item.Substring(0, index); } diff --git a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs index 142279fcea..23f739b65b 100644 --- a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs @@ -998,6 +998,7 @@ private CsdlTypeReference ParseTypeReference(string typeString, XmlElementValueC { Debug.Assert(this.Errors.Any(), "There should be an error reported for the missing required type attribute."); } + elementType = new CsdlNamedTypeReference(String.Empty, isNullable, parentLocation); } diff --git a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs index 619101eacb..6bc20d01b3 100644 --- a/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs +++ b/src/Microsoft.OData.Edm/Schema/EdmNavigationProperty.cs @@ -264,6 +264,7 @@ private static IEdmEntityType GetEntityType(IEdmTypeReference type) return entityType; } + private static IEdmComplexType GetComplexType(IEdmTypeReference type) { if (type.IsComplex()) diff --git a/src/Microsoft.OData.Edm/Validation/Severity.cs b/src/Microsoft.OData.Edm/Validation/Severity.cs index d1fbfe0e31..021bc797c7 100644 --- a/src/Microsoft.OData.Edm/Validation/Severity.cs +++ b/src/Microsoft.OData.Edm/Validation/Severity.cs @@ -6,6 +6,7 @@ namespace Microsoft.OData.Edm.Validation { + /// /// public enum Severity { diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/JsonLight/ODataJsonLightDeltaReaderTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/JsonLight/ODataJsonLightDeltaReaderTests.cs index 1292ae4200..7fe3670a53 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/JsonLight/ODataJsonLightDeltaReaderTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/JsonLight/ODataJsonLightDeltaReaderTests.cs @@ -964,7 +964,7 @@ public void ReadNestedDeltaResourceSetIn41DeletedEntry(bool isResponse) nestedResource = reader.Item as ODataResource; break; case ODataReaderState.DeltaResourceSetEnd: - if(nestedDeltaResourceSet == null) + if (nestedDeltaResourceSet == null) { nestedDeltaResourceSet = reader.Item as ODataDeltaResourceSet; } diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/ContextUrlWriterReaderTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/ContextUrlWriterReaderTests.cs index 2db0e36ea4..f6106002a3 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/ContextUrlWriterReaderTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/ContextUrlWriterReaderTests.cs @@ -1095,7 +1095,7 @@ public void IndividualPropertyWithComplexType() var odatareader = omReader.CreateODataResourceReader(); while(odatareader.Read()) { - if(odatareader.State == ODataReaderState.ResourceEnd) + if (odatareader.State == ODataReaderState.ResourceEnd) { Assert.NotNull(odatareader.Item as ODataResource); } diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonLight/SingletonBatchRoundtripJsonLightTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonLight/SingletonBatchRoundtripJsonLightTests.cs index 63e197aacf..19b662d810 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonLight/SingletonBatchRoundtripJsonLightTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonLight/SingletonBatchRoundtripJsonLightTests.cs @@ -1641,7 +1641,7 @@ private byte[] CreateReferenceUriBatchRequest(ODataVersion version, bool useInva { dependsOnIds = new string[] { "nonExistant" }; } - else if(useRequestIdOfGroupForDependsOnIds) + else if (useRequestIdOfGroupForDependsOnIds) { dependsOnIds = new string[] {"1", "2"}; } diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonReaderWriterInjectionTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonReaderWriterInjectionTests.cs index 876c8dbffb..da3775969d 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonReaderWriterInjectionTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Roundtrip/JsonReaderWriterInjectionTests.cs @@ -345,7 +345,7 @@ private static IList GetReadedResourceWithNestedInfo(string messa while (reader.Read()) { - if(reader.State == ODataReaderState.ResourceEnd) + if (reader.State == ODataReaderState.ResourceEnd) { resources.Add(reader.Item as ODataResource); } diff --git a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Streaming/ODataJsonLightStreamReadingTests.cs b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Streaming/ODataJsonLightStreamReadingTests.cs index bc87ed74e4..857d0736c7 100644 --- a/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Streaming/ODataJsonLightStreamReadingTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Core.Tests/ScenarioTests/Streaming/ODataJsonLightStreamReadingTests.cs @@ -1200,7 +1200,7 @@ private IEnumerable GetVariants(Func(this Operati Assert.NotNull(tmp); Assert.Equal(value, tmp); } - else if(typeof(TValue) == typeof(UriTemplateExpression)) + else if (typeof(TValue) == typeof(UriTemplateExpression)) { UriTemplateExpression actual = Assert.IsType(constantNode.Value); UriTemplateExpression expect = Assert.IsType(value); diff --git a/test/FunctionalTests/Microsoft.Spatial.Tests/GeoJsonObjectReaderTests.cs b/test/FunctionalTests/Microsoft.Spatial.Tests/GeoJsonObjectReaderTests.cs index 75e971474c..f0bf1045c5 100644 --- a/test/FunctionalTests/Microsoft.Spatial.Tests/GeoJsonObjectReaderTests.cs +++ b/test/FunctionalTests/Microsoft.Spatial.Tests/GeoJsonObjectReaderTests.cs @@ -928,7 +928,7 @@ private static IDictionary GetJsonMembers(SpatialType spatialTyp private static string GetGeoJsonTypeName(SpatialType spatialType) { - if(spatialType == SpatialType.Collection) + if (spatialType == SpatialType.Collection) { return "GeometryCollection"; } diff --git a/test/FunctionalTests/Tests/TestUtils/Common/Microsoft.Test.OData.Utils/Metadata/MetadataExtensionMethods.cs b/test/FunctionalTests/Tests/TestUtils/Common/Microsoft.Test.OData.Utils/Metadata/MetadataExtensionMethods.cs index f473a3ff3a..e5e52c552e 100644 --- a/test/FunctionalTests/Tests/TestUtils/Common/Microsoft.Test.OData.Utils/Metadata/MetadataExtensionMethods.cs +++ b/test/FunctionalTests/Tests/TestUtils/Common/Microsoft.Test.OData.Utils/Metadata/MetadataExtensionMethods.cs @@ -531,7 +531,7 @@ private static T GetPropertyValue(this IEdmModel model, IEdmStructuredValue c var annotationValue = annotations.Single().Value as IEdmRecordExpression; - if(annotationValue == null) + if (annotationValue == null) { throw new InvalidOperationException("Type " + contextType.ToTraceString() + " must have a single annotation containing a record expression with term " + term.ToTraceString()); } From 10d0c3a74719fe832e167b60098f40f9dcaec191 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 15:21:23 +0200 Subject: [PATCH 24/27] Fix xUnit2008: use Assert.Matches. --- .../Microsoft.OData.Edm.Tests/Csdl/EdmValueWriterTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/EdmValueWriterTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/EdmValueWriterTests.cs index d15c3af2d5..25eaa9edbd 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/EdmValueWriterTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/EdmValueWriterTests.cs @@ -62,7 +62,7 @@ public void DurationAsXmlWithValidDurationShouldNotContainYearOrMonth() foreach (var timeSpan in this.validTimeSpans) { var result = EdmValueWriter.DurationAsXml(timeSpan); - Assert.True(EdmValueParser.DayTimeDurationValidator.IsMatch(result)); + Assert.Matches(EdmValueParser.DayTimeDurationValidator, result); } } From 5ba2f32e67b132eab7e15d934a7bfe091cea9757 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 15:36:07 +0200 Subject: [PATCH 25/27] More various stylecop fixes. --- .../ALinq/ExpressionNormalizer.cs | 2 +- .../ALinq/ProjectionAnalyzer.cs | 2 +- .../ALinq/ReflectionUtil.cs | 4 ++-- .../ALinq/ResourceBinder.cs | 6 +++--- src/Microsoft.OData.Client/ArraySet.cs | 16 ++++++++-------- .../DataServiceClientFormat.cs | 2 +- .../MaterializeFromAtom.cs | 8 ++++---- .../Metadata/ClientTypeUtil.cs | 4 ++-- src/Microsoft.OData.Core/MediaTypeUtils.cs | 2 +- src/Microsoft.OData.Core/ODataWriterCore.cs | 5 ++--- .../UriParser/SemanticAst/SelectExpandClause.cs | 2 +- .../SemanticAst/SelectExpandClauseExtensions.cs | 4 ++-- .../Csdl/Parsing/CsdlDocumentParser.cs | 4 ++-- 13 files changed, 30 insertions(+), 31 deletions(-) diff --git a/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs b/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs index d29c3f6769..ba2afb5eb0 100644 --- a/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs +++ b/src/Microsoft.OData.Client/ALinq/ExpressionNormalizer.cs @@ -479,7 +479,7 @@ private static bool HasPredicateArgument(MethodCallExpression callExpression, ou // argument. As a result, we always set argumentOrdinal to 1 when there is a match and // we can safely ignore all methods taking fewer than 2 arguments SequenceMethod sequenceMethod; - if (2 <= callExpression.Arguments.Count && + if (callExpression.Arguments.Count >= 2 && ReflectionUtil.TryIdentifySequenceMethod(callExpression.Method, out sequenceMethod)) { switch (sequenceMethod) diff --git a/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs b/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs index 4c9a3e81da..35d221a9cf 100644 --- a/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs +++ b/src/Microsoft.OData.Client/ALinq/ProjectionAnalyzer.cs @@ -654,7 +654,7 @@ internal override Expression VisitBinary(BinaryExpression b) internal override Expression VisitTypeIs(TypeBinaryExpression b) { - if (ClientTypeUtil.TypeOrElementTypeIsEntity(b.Expression.Type ) || IsCollectionProducingExpression(b.Expression)) + if (ClientTypeUtil.TypeOrElementTypeIsEntity(b.Expression.Type) || IsCollectionProducingExpression(b.Expression)) { throw new NotSupportedException(Strings.ALinq_ExpressionNotSupportedInProjection(this.type, b.ToString())); } diff --git a/src/Microsoft.OData.Client/ALinq/ReflectionUtil.cs b/src/Microsoft.OData.Client/ALinq/ReflectionUtil.cs index 862e7d0da1..9f0c9b5a74 100644 --- a/src/Microsoft.OData.Client/ALinq/ReflectionUtil.cs +++ b/src/Microsoft.OData.Client/ALinq/ReflectionUtil.cs @@ -499,7 +499,7 @@ internal static string GetCanonicalMethodDescription(MethodInfo method) description.Append(")"); // include return type - if (null != method.ReturnType) + if (method.ReturnType != null) { description.Append("->"); AppendCanonicalTypeDescription(method.ReturnType, genericArgumentOrdinals, description); @@ -513,7 +513,7 @@ private static void AppendCanonicalTypeDescription(Type type, Dictionary(mce.Arguments[1]); - if (null == constantArg) + if (constantArg == null) { // UNSUPPORTED: A ConstantExpression is expected return mce; @@ -2954,7 +2954,7 @@ public bool Equals(PropertyInfo left, PropertyInfo right) // If either side is null, return false order (both can't be null because of // the previous check) - if (null == left || null == right) { return false; } + if (left == null || right == null) { return false; } // If the declaring type and the name of the property are the same, // both the property infos refer to the same property. @@ -2969,7 +2969,7 @@ public bool Equals(PropertyInfo left, PropertyInfo right) public int GetHashCode(PropertyInfo obj) { Debug.Assert(obj != null, "obj != null"); - return (null != obj) ? obj.GetHashCode() : 0; + return (obj != null) ? obj.GetHashCode() : 0; } #endregion diff --git a/src/Microsoft.OData.Client/ArraySet.cs b/src/Microsoft.OData.Client/ArraySet.cs index 5a3eafcea1..62e193327c 100644 --- a/src/Microsoft.OData.Client/ArraySet.cs +++ b/src/Microsoft.OData.Client/ArraySet.cs @@ -58,13 +58,13 @@ public T this[int index] /// true if actually added, false if a duplicate was discovered public bool Add(T item, Func equalityComparer) { - if ((null != equalityComparer) && this.Contains(item, equalityComparer)) + if ((equalityComparer != null) && this.Contains(item, equalityComparer)) { return false; } int index = this.count++; - if ((null == this.items) || (index == this.items.Length)) + if ((this.items == null) || (index == this.items.Length)) { // grow array in size, with minimum size being 32 Array.Resize(ref this.items, Math.Min(Math.Max(index, 16), Int32.MaxValue / 2) * 2); } @@ -84,7 +84,7 @@ public bool Add(T item, Func equalityComparer) /// true if the element is contained public bool Contains(T item, Func equalityComparer) { - return (0 <= this.IndexOf(item, equalityComparer)); + return (this.IndexOf(item, equalityComparer) >= 0); } /// @@ -126,7 +126,7 @@ public int IndexOf(T item, Func comparer) public int IndexOf(K item, Func select, Func comparer) { T[] array = this.items; - if (null != array) + if (array != null) { int length = this.count; for (int i = 0; i < length; ++i) @@ -148,7 +148,7 @@ public int IndexOf(K item, Func select, Func comparer) public T Remove(T item, Func equalityComparer) { int index = this.IndexOf(item, equalityComparer); - if (0 <= index) + if (index >= 0) { item = this.items[index]; this.RemoveAt(index); @@ -168,11 +168,11 @@ public void RemoveAt(int index) array[index] = array[lastIndex]; array[lastIndex] = default(T); - if ((0 == lastIndex) && (256 <= array.Length)) + if ((lastIndex == 0) && (array.Length >= 256)) { this.items = null; } - else if ((256 < array.Length) && (lastIndex < array.Length / 4)) + else if ((array.Length > 256) && (lastIndex < array.Length / 4)) { // shrink to half size when count is a quarter Array.Resize(ref this.items, array.Length / 2); } @@ -189,7 +189,7 @@ public void RemoveAt(int index) /// comparer public void Sort(Func selector, Func comparer) { - if (null != this.items) + if (this.items != null) { SelectorComparer scomp; scomp.Selector = selector; diff --git a/src/Microsoft.OData.Client/DataServiceClientFormat.cs b/src/Microsoft.OData.Client/DataServiceClientFormat.cs index f5010069c5..97859d87bd 100644 --- a/src/Microsoft.OData.Client/DataServiceClientFormat.cs +++ b/src/Microsoft.OData.Client/DataServiceClientFormat.cs @@ -174,7 +174,7 @@ internal void SetRequestAcceptHeaderForCount(HeaderCollection headers) internal void SetRequestAcceptHeaderForBatch(HeaderCollection headers) { bool useJsonBatch = headers.GetHeader(XmlConstants.HttpContentType).Equals(MimeApplicationJson, StringComparison.Ordinal); - this.SetAcceptHeaderAndCharset(headers, useJsonBatch? MimeApplicationJson : MimeMultiPartMixed); + this.SetAcceptHeaderAndCharset(headers, useJsonBatch ? MimeApplicationJson : MimeMultiPartMixed); } /// diff --git a/src/Microsoft.OData.Client/MaterializeFromAtom.cs b/src/Microsoft.OData.Client/MaterializeFromAtom.cs index 2d1cc4d303..5006f3d794 100644 --- a/src/Microsoft.OData.Client/MaterializeFromAtom.cs +++ b/src/Microsoft.OData.Client/MaterializeFromAtom.cs @@ -202,12 +202,12 @@ public void Dispose() { this.current = null; - if (null != this.materializer) + if (this.materializer != null) { this.materializer.Dispose(); } - if (null != this.writer) + if (this.writer != null) { this.writer.Dispose(); } @@ -333,7 +333,7 @@ private bool MoveNextInternal() result = true; } - if (null == this.current) + if (this.current == null) { if (this.expectingPrimitiveValue && this.moved) { @@ -489,7 +489,7 @@ internal static string ReadElementString(XmlReader reader, bool checkNullAttribu case XmlNodeType.CDATA: case XmlNodeType.Text: case XmlNodeType.SignificantWhitespace: - if (null != result) + if (result != null) { throw Error.InvalidOperation(Strings.Deserialize_MixedTextWithComment); } diff --git a/src/Microsoft.OData.Client/Metadata/ClientTypeUtil.cs b/src/Microsoft.OData.Client/Metadata/ClientTypeUtil.cs index 7965fbea92..eb5316af2a 100644 --- a/src/Microsoft.OData.Client/Metadata/ClientTypeUtil.cs +++ b/src/Microsoft.OData.Client/Metadata/ClientTypeUtil.cs @@ -184,9 +184,9 @@ internal static MethodInfo GetMethodForGenericType(Type propertyType, Type gener Debug.Assert(methodInfo != null, "should have found the method"); #if DEBUG - Debug.Assert(null != genericArguments, "null genericArguments"); + Debug.Assert(genericArguments != null, "null genericArguments"); ParameterInfo[] parameters = methodInfo.GetParameters(); - if (0 < parameters.Length) + if (parameters.Length > 0) { // following assert was disabled for Contains which returns bool //// Debug.Assert(typeof(void) == methodInfo.ReturnParameter.ParameterType, "method doesn't return void"); diff --git a/src/Microsoft.OData.Core/MediaTypeUtils.cs b/src/Microsoft.OData.Core/MediaTypeUtils.cs index b108d2a491..a41524e842 100644 --- a/src/Microsoft.OData.Core/MediaTypeUtils.cs +++ b/src/Microsoft.OData.Core/MediaTypeUtils.cs @@ -408,7 +408,7 @@ internal static ODataFormat GetFormatFromContentType(string contentTypeName, ODa } // We're calling the ToArray here since not all platforms support the string.Join which takes IEnumerable. - var str = String.Join(", ", mediaTypeResolver.GetMediaTypeFormats(supportedPayloadKinds[0]).ToList().Select(x=>x.MediaType)); + var str = String.Join(", ", mediaTypeResolver.GetMediaTypeFormats(supportedPayloadKinds[0]).ToList().Select(x => x.MediaType)); string supportedTypesAsString = String.Join(", ", supportedPayloadKinds.SelectMany(pk => mediaTypeResolver.GetMediaTypeFormats(pk).Select(mt => mt.MediaType.ToText())).ToArray()); throw new ODataContentTypeException(Strings.MediaTypeUtils_CannotDetermineFormatFromContentType(str, contentTypeName)); } diff --git a/src/Microsoft.OData.Core/ODataWriterCore.cs b/src/Microsoft.OData.Core/ODataWriterCore.cs index 44ebba19b7..646d0c2b06 100644 --- a/src/Microsoft.OData.Core/ODataWriterCore.cs +++ b/src/Microsoft.OData.Core/ODataWriterCore.cs @@ -1515,7 +1515,7 @@ await TaskUtils.GetTaskForSynchronousOperation(() => { this.EnterScope(deltaLink is ODataDeltaLink ? WriterState.DeltaLink : WriterState.DeltaDeletedLink, deltaLink); this.StartDeltaLink(deltaLink); - }).FollowOnSuccessWithTask((t)=>this.WriteEndAsync()); + }).FollowOnSuccessWithTask((t) => this.WriteEndAsync()); } /// @@ -1600,8 +1600,7 @@ await TaskUtils.GetTaskForSynchronousOperation(() => } this.WritePrimitiveValue(primitiveValue); - } - ).FollowOnSuccessWithTask((t) => this.WriteEndAsync()); + }).FollowOnSuccessWithTask((t) => this.WriteEndAsync()); }); } diff --git a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs index 227d36b47e..3ee9144ad1 100644 --- a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs +++ b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClause.cs @@ -71,7 +71,7 @@ public bool AllSelected /// Add a select item to the current list of selection items /// /// The item to add - internal void AddToSelectedItems(SelectItem itemToAdd, bool getOnlySubset =false) + internal void AddToSelectedItems(SelectItem itemToAdd, bool getOnlySubset = false) { ExceptionUtils.CheckArgumentNotNull(itemToAdd, "itemToAdd"); diff --git a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs index e06f2e164c..db3ae816ef 100644 --- a/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs +++ b/src/Microsoft.OData.Core/UriParser/SemanticAst/SelectExpandClauseExtensions.cs @@ -100,7 +100,7 @@ internal static List GetCurrentLevelSelectList(this SelectExpandClause s NamespaceQualifiedWildcardSelectItem namespaceQualifiedWildcard = selectItem as NamespaceQualifiedWildcardSelectItem; if (namespaceQualifiedWildcard != null) { - levelSelectList.Add(namespaceQualifiedWildcard.Namespace + ".*" ); + levelSelectList.Add(namespaceQualifiedWildcard.Namespace + ".*"); continue; } @@ -109,7 +109,7 @@ internal static List GetCurrentLevelSelectList(this SelectExpandClause s { IList pathSelectItems = GetSelectStringFromPathSelectItem(pathSelectItem); - for (int i = 0; i< pathSelectItems.Count; i++) + for (int i = 0; i < pathSelectItems.Count; i++) { levelSelectList.Add(pathSelectItems[i]); } diff --git a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs index 23f739b65b..8b1a8da4bd 100644 --- a/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs +++ b/src/Microsoft.OData.Edm/Csdl/Parsing/CsdlDocumentParser.cs @@ -1114,8 +1114,8 @@ private CsdlOperationParameter OnParameterElement(XmlElementInfo element, XmlEle XmlElementValue optionalAnnotationValue = childValues.Where(c => c is XmlElementValue && (c.ValueAs().Term == CoreVocabularyModel.OptionalParameterTerm.ShortQualifiedName() || - c.ValueAs().Term == CoreVocabularyModel.OptionalParameterTerm.FullName()) - ).FirstOrDefault(); + c.ValueAs().Term == CoreVocabularyModel.OptionalParameterTerm.FullName())) + .FirstOrDefault(); if (optionalAnnotationValue != null) { From 86f66f962d32230f09f008941874ecd4176b4fe7 Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 15:37:24 +0200 Subject: [PATCH 26/27] Fix CA1829: use property instead of method. --- src/Microsoft.OData.Client/SaveResult.cs | 4 ++-- .../UriParser/Binders/FunctionCallBinder.cs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Microsoft.OData.Client/SaveResult.cs b/src/Microsoft.OData.Client/SaveResult.cs index ae8c4692df..91b5f3402e 100644 --- a/src/Microsoft.OData.Client/SaveResult.cs +++ b/src/Microsoft.OData.Client/SaveResult.cs @@ -745,7 +745,7 @@ private void SetupMediaResourceRequest(HeaderCollection headers, DataServiceSave /// response object private void HandleOperationException(InvalidOperationException e, IODataResponseMessage response) { - Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count = '{1}'", this.entryIndex, this.ChangedEntries.Count())); + Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count = '{1}'", this.entryIndex, this.ChangedEntries.Count)); Descriptor current = this.ChangedEntries[this.entryIndex]; HeaderCollection headers = null; @@ -848,7 +848,7 @@ private void HandleOperationResponseData(IODataResponseMessage response) /// stream containing the response payload. private void HandleOperationResponseData(IODataResponseMessage responseMsg, Stream responseStream) { - Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count() = '{1}'", this.entryIndex, this.ChangedEntries.Count())); + Debug.Assert(this.entryIndex >= 0 && this.entryIndex < this.ChangedEntries.Count, string.Format(System.Globalization.CultureInfo.InvariantCulture, "this.entryIndex = '{0}', this.ChangedEntries.Count() = '{1}'", this.entryIndex, this.ChangedEntries.Count)); // Parse the response Descriptor current = this.ChangedEntries[this.entryIndex]; diff --git a/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs b/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs index a749c788bf..d82ea043cb 100644 --- a/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs +++ b/src/Microsoft.OData.Core/UriParser/Binders/FunctionCallBinder.cs @@ -112,7 +112,7 @@ internal static KeyValuePair MatchSigna KeyValuePair found = nameSignatures.FirstOrDefault(pair => pair.Value.ArgumentTypes.Length == argumentCount); if (found.Equals(TypePromotionUtils.NotFoundKeyValuePair)) { - throw new ODataException(ODataErrorStrings.FunctionCallBinder_CannotFindASuitableOverload(functionCallToken, argumentTypes.Count())); + throw new ODataException(ODataErrorStrings.FunctionCallBinder_CannotFindASuitableOverload(functionCallToken, argumentTypes.Length)); } else { From ba8fbbf9c7ddca233bd38aa276fbf70a4d3140dd Mon Sep 17 00:00:00 2001 From: Brecht Debaere Date: Wed, 17 Jun 2020 20:51:30 +0200 Subject: [PATCH 27/27] Revert "Fix xUnit2013: add FactAttribute." This reverts commit 5ea56663678a0429bacb44e8886a1a6a62ec7c37. --- .../Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs index 0fdc62c1ec..d85aab40ea 100644 --- a/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs +++ b/test/FunctionalTests/Microsoft.OData.Edm.Tests/Csdl/Serialization/EdmModelCsdlSchemaWriterTests.cs @@ -114,14 +114,12 @@ public void ValidateCorrectActionImportNameAndActionAttributeValueWrittenCorrect #endregion #region FunctionImport tests. - [Fact] public void ValidateCorrectFunctionNameAndFunctionAttributeValueWrittenCorrectly() { EdmFunctionImport functionImport = new EdmFunctionImport(defaultContainer, "GetStuff", defaultGetStuffFunction, new EdmPathExpression("Customers", "Orders"), false); TestWriteFunctionImportElementHeaderMethod(functionImport, @"