/// <summary> /// Cast an entity of type global::Namespace.Foo.BaseType to its derived type global::Namespace.Foo.TestType /// </summary> /// <param name="_source">source entity</param> public static global::Namespace.Foo.TestTypeSingle CastToTestType(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace.Foo.BaseType> _source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace.Foo.TestType> query = _source.CastTo <global::Namespace.Foo.TestType>(); return(new global::Namespace.Foo.TestTypeSingle(_source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::AbstractEntityTypeWithoutKey.DSC.AbstractET to its derived type global::AbstractEntityTypeWithoutKey.DSC.DerivedET2 /// </summary> /// <param name="source">source entity</param> public static global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single CastToDerivedET2(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::AbstractEntityTypeWithoutKey.DSC.AbstractET> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::AbstractEntityTypeWithoutKey.DSC.DerivedET2> query = source.CastTo <global::AbstractEntityTypeWithoutKey.DSC.DerivedET2>(); return(new global::AbstractEntityTypeWithoutKey.DSC.DerivedET2Single(source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::OverrideOperations.DSC.ET to its derived type global::OverrideOperations.DSC.DerivedET /// </summary> /// <param name="source">source entity</param> public static global::OverrideOperations.DSC.DerivedETSingle CastToDerivedET(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::OverrideOperations.DSC.ET> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::OverrideOperations.DSC.DerivedET> query = source.CastTo <global::OverrideOperations.DSC.DerivedET>(); return(new global::OverrideOperations.DSC.DerivedETSingle(source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::Sitecore.Commerce.Core.Commands.CommerceCommand to its derived type global::Sitecore.Commerce.Plugin.Carts.UpdateCartLineCommand /// </summary> /// <param name="source">source entity</param> public static global::Sitecore.Commerce.Plugin.Carts.UpdateCartLineCommandSingle CastToUpdateCartLineCommand(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Sitecore.Commerce.Core.Commands.CommerceCommand> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::Sitecore.Commerce.Plugin.Carts.UpdateCartLineCommand> query = source.CastTo <global::Sitecore.Commerce.Plugin.Carts.UpdateCartLineCommand>(); return(new global::Sitecore.Commerce.Plugin.Carts.UpdateCartLineCommandSingle(source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::Sitecore.Commerce.Core.Component to its derived type global::Sitecore.Commerce.Plugin.Carts.TemporaryCartComponent /// </summary> /// <param name="source">source entity</param> public static global::Sitecore.Commerce.Plugin.Carts.TemporaryCartComponentSingle CastToTemporaryCartComponent(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Sitecore.Commerce.Core.Component> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::Sitecore.Commerce.Plugin.Carts.TemporaryCartComponent> query = source.CastTo <global::Sitecore.Commerce.Plugin.Carts.TemporaryCartComponent>(); return(new global::Sitecore.Commerce.Plugin.Carts.TemporaryCartComponentSingle(source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::Foo.EntityBase to its derived type global::Foo.EntityType /// </summary> /// <param name="_source">source entity</param> public static global::Foo.EntityTypeSingle CastToEntityType(this global::Microsoft.OData.Client.DataServiceQuerySingle<global::Foo.EntityBase> _source) { global::Microsoft.OData.Client.DataServiceQuerySingle<global::Foo.EntityType> query = _source.CastTo<global::Foo.EntityType>(); return new global::Foo.EntityTypeSingle(_source.Context, query.GetPath(null)); }
/// <summary> /// Cast an entity of type global::Namespace1.DSC.EntityBase to its derived type global::Namespace1.DSC.EntityType /// </summary> /// <param name="source">source entity</param> public static global::Namespace1.DSC.EntityTypeSingle CastToEntityType(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace1.DSC.EntityBase> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace1.DSC.EntityType> query = source.CastTo <global::Namespace1.DSC.EntityType>(); return(new global::Namespace1.DSC.EntityTypeSingle(source.Context, query.GetPath(null))); }
/// <summary> /// Cast an entity of type global::ExampleODataFromDocumentDb.Client.House to its derived type global::ExampleODataFromDocumentDb.Client.HouseHistory /// </summary> /// <param name="source">source entity</param> public static global::ExampleODataFromDocumentDb.Client.HouseHistorySingle CastToHouseHistory(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::ExampleODataFromDocumentDb.Client.House> source) { global::Microsoft.OData.Client.DataServiceQuerySingle <global::ExampleODataFromDocumentDb.Client.HouseHistory> query = source.CastTo <global::ExampleODataFromDocumentDb.Client.HouseHistory>(); return(new global::ExampleODataFromDocumentDb.Client.HouseHistorySingle(source.Context, query.GetPath(null))); }