/// <summary>
 /// Get an entity of type global::NamespaceInKeywords.@event.@[email protected] as global::NamespaceInKeywords.@event.@[email protected] specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::NamespaceInKeywords.@event.@[email protected] ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::NamespaceInKeywords.@event.@[email protected]> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::NamespaceInKeywords.@event.@[email protected](source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#2
0
 /// <summary>
 /// Get an entity of type global::Simple.Double.TestType2 as global::Simple.Double.TestType2Single specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::Simple.Double.TestType2Single ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Simple.Double.TestType2> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::Simple.Double.TestType2Single(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
 /// <summary>
 /// Get an entity of type global::AbstractEntityTypeWithoutKey.DSC.DerivedET2 as global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::AbstractEntityTypeWithoutKey.DSC.DerivedET2> source,
                                                                               string id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#4
0
 /// <summary>
 /// Get an entity of type global::TestODataCore.WeatherForecast as global::TestODataCore.WeatherForecastSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::TestODataCore.WeatherForecastSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::TestODataCore.WeatherForecast> source, global::System.Collections.Generic.IDictionary <string, object> keys)
 {
     return(new global::TestODataCore.WeatherForecastSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#5
0
 /// <summary>
 /// Get an entity of type global::namespacePrefix.Namespace.Foo.SingleType as global::namespacePrefix.Namespace.Foo.SingleTypeSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::namespacePrefix.Namespace.Foo.SingleTypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::namespacePrefix.Namespace.Foo.SingleType> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::namespacePrefix.Namespace.Foo.SingleTypeSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
        /// <summary>
        /// There are no comments for BulkInsert in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceActionQuery <global::ProductService.Models.Supplier> BulkInsert(this global::Microsoft.OData.Client.DataServiceQuery <global::ProductService.Models.Supplier> source, global::System.Collections.Generic.ICollection <string> suppliers)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery <global::ProductService.Models.Supplier>(source.Context, source.AppendRequestUri("Default.BulkInsert"), new global::Microsoft.OData.Client.BodyOperationParameter("suppliers", suppliers)));
        }
 /// <summary>
 /// Get an entity of type global::ProductApp.ProductService.Models.Supplier as global::ProductApp.ProductService.Models.SupplierSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::ProductApp.ProductService.Models.SupplierSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::ProductApp.ProductService.Models.Supplier> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::ProductApp.ProductService.Models.SupplierSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#8
0
 /// <summary>
 /// Get an entity of type global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.Product as global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.ProductSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.ProductSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.Product> source,
                                                                                                                      int id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.ProductSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#9
0
        public static global::Microsoft.OData.Client.DataServiceActionQuery AddProduct(this global::Microsoft.OData.Client.DataServiceQuery <global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.Product> source, global::Microsoft.Test.OData.Services.TestServices.PluggableFormatServiceReference.Product Value, bool Override)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery(source.Context, source.AppendRequestUri("Microsoft.Test.OData.Services.PluggableFormat.AddProduct"), new global::Microsoft.OData.Client.BodyOperationParameter("Value", Value),
                                                                             new global::Microsoft.OData.Client.BodyOperationParameter("Override", Override)));
        }
示例#10
0
        /// <summary>
        /// There are no comments for ActionBoundToCollectionOfEntity in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceActionQuery <global::OverrideOperations.DSC.ET> ActionBoundToCollectionOfEntity(this global::Microsoft.OData.Client.DataServiceQuery <global::OverrideOperations.DSC.DerivedET> source, string p1)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery <global::OverrideOperations.DSC.ET>(source.Context, source.AppendRequestUri("OverrideOperations.DSC.ActionBoundToCollectionOfEntity"), new global::Microsoft.OData.Client.BodyOperationParameter("p1", p1)));
        }
 /// <summary>
 /// Get an entity of type global::BlueYonder.Companion.Entities.LocationDTO as global::BlueYonder.Companion.Entities.LocationDTOSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="locationId">The value of locationId</param>
 public static global::BlueYonder.Companion.Client.DataTransferObjects.LocationDTOSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::BlueYonder.Companion.Client.DataTransferObjects.LocationDTO> source,
                                                                                               int locationId)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "LocationId", locationId }
     };
     return(new global::BlueYonder.Companion.Client.DataTransferObjects.LocationDTOSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#12
0
        /// <summary>
        /// There are no comments for FunctionBoundToCollectionOfEntity in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceQuery <global::OverrideOperations.DSC.ET> FunctionBoundToCollectionOfEntity(this global::Microsoft.OData.Client.DataServiceQuery <global::OverrideOperations.DSC.DerivedET> source, string p1)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(source.CreateFunctionQuery <global::OverrideOperations.DSC.ET>("OverrideOperations.DSC.FunctionBoundToCollectionOfEntity", false, new global::Microsoft.OData.Client.UriOperationParameter("p1", p1)));
        }
示例#13
0
 /// <summary>
 /// Get an entity of type global::OverrideOperations.DSC.DerivedET as global::OverrideOperations.DSC.DerivedETSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::OverrideOperations.DSC.DerivedETSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::OverrideOperations.DSC.DerivedET> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::OverrideOperations.DSC.DerivedETSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#14
0
 /// <summary>
 /// Get an entity of type global::AbstractEntityTypeWithoutKey.DSC.DerivedET2 as global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single specified by key from an entity set
 /// </summary>
 /// <param name="_source">source entity set</param>
 /// <param name="_keys">dictionary with the names and values of keys</param>
 public static global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::AbstractEntityTypeWithoutKey.DSC.DerivedET2> _source, global::System.Collections.Generic.IDictionary <string, object> _keys)
 {
     return(new global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))));
 }
示例#15
0
 /// <summary>
 /// Get an entity of type global::ODataClientSample.ODataActionSample.Customer as global::ODataClientSample.ODataActionSample.CustomerSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::ODataClientSample.ODataActionSample.CustomerSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::ODataClientSample.ODataActionSample.Customer> source,
                                                                                int id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::ODataClientSample.ODataActionSample.CustomerSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
 /// <summary>
 /// Get an entity of type global::DupNames.DSC.DupWithTypeName1 as global::DupNames.DSC.DupWithTypeName1Single specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::DupNames.DSC.DupWithTypeName1Single ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::DupNames.DSC.DupWithTypeName1> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::DupNames.DSC.DupWithTypeName1Single(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#17
0
        public static global::Microsoft.OData.Client.DataServiceActionQuerySingle <bool> IsEmailAvailable(this global::Microsoft.OData.Client.DataServiceQuery <global::ODataClientSample.ODataActionSample.Customer> source, string email)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <bool>(source.Context, source.AppendRequestUri("Extra.IsEmailAvailable"), new global::Microsoft.OData.Client.BodyOperationParameter("email", email)));
        }
示例#18
0
 /// <summary>
 /// Get an entity of type global::EIV.Demo.Model.Country as global::EIV.Demo.Model.CountrySingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::EIV.Demo.Model.CountrySingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::EIV.Demo.Model.Country> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::EIV.Demo.Model.CountrySingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
 /// <summary>
 /// Get an entity of type global::ODataNetIssue1726Repro01.Models.Product as global::ODataNetIssue1726Repro01.Models.ProductSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::ODataNetIssue1726Repro01.Models.ProductSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::ODataNetIssue1726Repro01.Models.Product> source, global::System.Collections.Generic.IDictionary <string, object> keys)
 {
     return(new global::ODataNetIssue1726Repro01.Models.ProductSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
 /// <summary>
 /// Get an entity of type global::Event.String.Int.TestType1 as global::Event.String.Int.TestType1Single specified by key from an entity set
 /// </summary>
 /// <param name="_source">source entity set</param>
 /// <param name="_keys">dictionary with the names and values of keys</param>
 public static global::Event.String.Int.TestType1Single ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Event.String.Int.TestType1> _source, global::System.Collections.Generic.IDictionary <string, object> _keys)
 {
     return(new global::Event.String.Int.TestType1Single(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))));
 }
 /// <summary>
 /// Get an entity of type global::TestUnexpectedElementsAndAttributes.TestType as global::TestUnexpectedElementsAndAttributes.TestTypeSingle specified by key from an entity set
 /// </summary>
 /// <param name="_source">source entity set</param>
 /// <param name="keyProp">The value of keyProp</param>
 public static global::TestUnexpectedElementsAndAttributes.TestTypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::TestUnexpectedElementsAndAttributes.TestType> _source,
                                                                                int keyProp)
 {
     global::System.Collections.Generic.IDictionary <string, object> _keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "KeyProp", keyProp }
     };
     return(new global::TestUnexpectedElementsAndAttributes.TestTypeSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))));
 }
示例#22
0
 /// <summary>
 /// Get an entity of type global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForConstWithDefaultValuePlus as global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForConstWithDefaultValuePlusSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keys">dictionary with the names and values of keys</param>
 public static global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForConstWithDefaultValuePlusSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForConstWithDefaultValuePlus> source, global::System.Collections.Generic.Dictionary <string, object> keys)
 {
     return(new global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForConstWithDefaultValuePlusSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#23
0
 /// <summary>
 /// Get an entity of type global::NamespacePrefixWithSingleNamespace.TestType as global::NamespacePrefixWithSingleNamespace.TestTypeSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="keyProp">The value of keyProp</param>
 public static global::NamespacePrefixWithSingleNamespace.TestTypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::NamespacePrefixWithSingleNamespace.TestType> source,
                                                                               int keyProp)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "KeyProp", keyProp }
     };
     return(new global::NamespacePrefixWithSingleNamespace.TestTypeSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#24
0
 /// <summary>
 /// Get an entity of type global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForNullAsElementPlus as global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForNullAsElementPlusSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForNullAsElementPlusSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForNullAsElementPlus> source,
                                                                                                                                       int id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::Microsoft.OData.Client.TDDUnitTests.Tests.Annotation.ConstantAnnotationProxy.ETForNullAsElementPlusSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#25
0
 /// <summary>
 /// Get an entity of type global::FinanceAppClient.FinanceAppService.Models.Transaction as global::FinanceAppClient.FinanceAppService.Models.TransactionSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::FinanceAppClient.FinanceAppService.Models.TransactionSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::FinanceAppClient.FinanceAppService.Models.Transaction> source,
                                                                                         int id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::FinanceAppClient.FinanceAppService.Models.TransactionSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#26
0
 /// <summary>
 /// Get an entity of type global::ExampleODataFromDocumentDb.Client.HouseHistory as global::ExampleODataFromDocumentDb.Client.HouseHistorySingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::ExampleODataFromDocumentDb.Client.HouseHistorySingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::ExampleODataFromDocumentDb.Client.HouseHistory> source,
                                                                                  string id)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::ExampleODataFromDocumentDb.Client.HouseHistorySingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
示例#27
0
 /// <summary>
 /// Get an entity of type global::NamespaceInKeywords.@event.@[email protected] as global::NamespaceInKeywords.@event.@[email protected] specified by key from an entity set
 /// </summary>
 /// <param name="_source">source entity set</param>
 /// <param name="keyProp">The value of keyProp</param>
 public static global::NamespaceInKeywords.@event.@[email protected] ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::NamespaceInKeywords.@event.@[email protected]> _source,
                                                                                     int keyProp)
 {
     global::System.Collections.Generic.IDictionary <string, object> _keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "KeyProp", keyProp }
     };
     return(new global::NamespaceInKeywords.@event.@[email protected](_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))));
 }
 /// <summary>
 /// Get an entity of type global::Foo.NamespacePrefixWithDoubleNamespaces2.EntityType as global::Foo.NamespacePrefixWithDoubleNamespaces2.EntityTypeSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="id">The value of id</param>
 public static global::Foo.NamespacePrefixWithDoubleNamespaces2.EntityTypeSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Foo.NamespacePrefixWithDoubleNamespaces2.EntityType> source,
                                                                                       global::System.Guid id)
 {
     global::System.Collections.Generic.IDictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Id", id }
     };
     return(new global::Foo.NamespacePrefixWithDoubleNamespaces2.EntityTypeSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }
 /// <summary>
 /// Get an entity of type global::Namespace1.DSC.EntityBase as global::Namespace1.DSC.EntityBaseSingle specified by key from an entity set
 /// </summary>
 /// <param name="_source">source entity set</param>
 /// <param name="_keys">dictionary with the names and values of keys</param>
 public static global::Namespace1.DSC.EntityBaseSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::Namespace1.DSC.EntityBase> _source, global::System.Collections.Generic.IDictionary <string, object> _keys)
 {
     return(new global::Namespace1.DSC.EntityBaseSingle(_source.Context, _source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(_source.Context, _keys))));
 }
 /// <summary>
 /// Get an entity of type global::EFCoreSecurityODataConsoleClient.ContactRecord as global::EFCoreSecurityODataConsoleClient.ContactRecordSingle specified by key from an entity set
 /// </summary>
 /// <param name="source">source entity set</param>
 /// <param name="index">The value of index</param>
 public static global::EFCoreSecurityODataConsoleClient.ContactRecordSingle ByKey(this global::Microsoft.OData.Client.DataServiceQuery <global::EFCoreSecurityODataConsoleClient.ContactRecord> source,
                                                                                  int index)
 {
     global::System.Collections.Generic.Dictionary <string, object> keys = new global::System.Collections.Generic.Dictionary <string, object>
     {
         { "Index", index }
     };
     return(new global::EFCoreSecurityODataConsoleClient.ContactRecordSingle(source.Context, source.GetKeyPath(global::Microsoft.OData.Client.Serializer.GetKeyString(source.Context, keys))));
 }