Skip to content

Commit 286a9d4

Browse files
setup datasources for future editing support
1 parent f5fac03 commit 286a9d4

File tree

6 files changed

+92
-20
lines changed

6 files changed

+92
-20
lines changed

DataSource.DataProviders.OData/DataSource.DataProviders.OData.Core/DataSource.DataProviders.OData.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414

1515
<ItemGroup>
1616
<Reference Include="Infragistics.Core">
17-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.dll</HintPath>
17+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.dll</HintPath>
1818
<SpecificVersion>false</SpecificVersion>
1919
</Reference>
2020
<Reference Include="Infragistics.Core.DataVisualization">
21-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.DataVisualization.dll</HintPath>
21+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.DataVisualization.dll</HintPath>
2222
<SpecificVersion>false</SpecificVersion>
2323
</Reference>
2424
<Reference Include="Infragistics.Core.Platform">
25-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.Platform.dll</HintPath>
25+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.Platform.dll</HintPath>
2626
<SpecificVersion>false</SpecificVersion>
2727
</Reference>
2828
</ItemGroup>

DataSource.DataProviders.OData/DataSource.DataProviders.OData/DataSource.DataProviders.OData.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="InfragisticsWPF4.DataVisualization.v19.2, Version=19.2.0.9000, Culture=neutral, PublicKeyToken=1102135f7483647e, processorArchitecture=MSIL">
35+
<Reference Include="InfragisticsWPF4.DataVisualization.v20.1, Version=20.1.0.9000, Culture=neutral, PublicKeyToken=1102135f7483647e, processorArchitecture=MSIL">
3636
<SpecificVersion>False</SpecificVersion>
37-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2019.2\Source\Build\InfragisticsWPF4.DataVisualization.v19.2.dll</HintPath>
37+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2020.1\Source\Build\InfragisticsWPF4.DataVisualization.v20.1.dll</HintPath>
3838
</Reference>
39-
<Reference Include="InfragisticsWPF4.v19.2, Version=19.2.0.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
39+
<Reference Include="InfragisticsWPF4.v20.1, Version=20.1.0.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
4040
<SpecificVersion>False</SpecificVersion>
41-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2019.2\Source\Build\InfragisticsWPF4.v19.2.dll</HintPath>
41+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2020.1\Source\Build\InfragisticsWPF4.v20.1.dll</HintPath>
4242
</Reference>
4343
<Reference Include="Microsoft.Data.Edm, Version=5.8.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4444
<HintPath>..\packages\Microsoft.Data.Edm.5.8.4\lib\net40\Microsoft.Data.Edm.dll</HintPath>

DataSource.DataProviders.SQLite/DataSource.DataProviders.SQLite.Core/DataSource.DataProviders.SQLite.Core.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616

1717
<ItemGroup>
1818
<Reference Include="Infragistics.Core">
19-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.dll</HintPath>
19+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.dll</HintPath>
2020
<SpecificVersion>false</SpecificVersion>
2121
</Reference>
2222
<Reference Include="Infragistics.Core.DataVisualization">
23-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.DataVisualization.dll</HintPath>
23+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.DataVisualization.dll</HintPath>
2424
<SpecificVersion>false</SpecificVersion>
2525
</Reference>
2626
<Reference Include="Infragistics.Core.Platform">
27-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2019.2\Source\Build\netstandard2.0\Infragistics.Core.Platform.dll</HintPath>
27+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\Xamarin\2020.1\Source\Build\netstandard2.0\Infragistics.Core.Platform.dll</HintPath>
2828
<SpecificVersion>false</SpecificVersion>
2929
</Reference>
3030
</ItemGroup>

DataSource.DataProviders.SQLite/DataSource.DataProviders.SQLite/DataSource.DataProviders.SQLite.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="InfragisticsWPF4.DataVisualization.v19.2, Version=19.2.0.9000, Culture=neutral, PublicKeyToken=1102135f7483647e, processorArchitecture=MSIL">
36-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2019.2\Source\Build\InfragisticsWPF4.DataVisualization.v19.2.dll</HintPath>
35+
<Reference Include="InfragisticsWPF4.DataVisualization.v20.1, Version=20.1.0.9000, Culture=neutral, PublicKeyToken=1102135f7483647e, processorArchitecture=MSIL">
36+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2020.1\Source\Build\InfragisticsWPF4.DataVisualization.v20.1.dll</HintPath>
3737
<SpecificVersion>False</SpecificVersion>
3838
</Reference>
39-
<Reference Include="InfragisticsWPF4.v19.2, Version=19.2.0.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
40-
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2019.2\Source\Build\InfragisticsWPF4.v19.2.dll</HintPath>
39+
<Reference Include="InfragisticsWPF4.v20.1, Version=20.1.0.9000, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb, processorArchitecture=MSIL">
40+
<HintPath>..\..\..\..\..\..\..\work\NetAdvantage\DEV\XAML\2020.1\Source\Build\InfragisticsWPF4.v20.1.dll</HintPath>
4141
<SpecificVersion>False</SpecificVersion>
4242
</Reference>
4343
<Reference Include="PresentationCore" />

DataSource.DataProviders.SQLite/SQLiteDataProvider/SQLiteVirtualDataSourceDataProvider.cs

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
using System.Reflection;
1212
#if !PCL
1313
using Infragistics.Controls.DataSource;
14+
using Infragistics.Controls.DataSource.Transactions;
1415
#endif
1516

1617
#if PCL
1718
using Infragistics.Core.Controls.DataSource;
19+
using Infragistics.Core.Controls.DataSource.Transactions;
1820
#endif
1921

2022
#if DATA_PRESENTER
@@ -23,8 +25,7 @@ namespace Reference.DataSources.OData
2325
namespace Infragistics.Controls.DataSource
2426
#endif
2527
{
26-
public class SQLiteVirtualDataSourceDataProvider
27-
: IDataSourceVirtualDataProvider
28+
public class SQLiteVirtualDataSourceDataProvider : IDataSourceVirtualDataProvider
2829
{
2930

3031
private SQLiteVirtualDataSourceDataProviderWorker _worker;
@@ -733,6 +734,42 @@ public DataSourceSchemaPropertyType ResolveSchemaPropertyType(string propertyPat
733734

734735
return DataSourceSchemaPropertyType.ObjectValue;
735736
}
737+
738+
private DataSourceBatchCompletedCallback _batchCompleted;
739+
public DataSourceBatchCompletedCallback BatchCompleted
740+
{
741+
get
742+
{
743+
return _batchCompleted;
744+
}
745+
set
746+
{
747+
_batchCompleted = value;
748+
}
749+
}
750+
751+
public void SetItemValue(object item, string valueName, object value)
752+
{
753+
// does nothing.
754+
}
755+
756+
public void RemoveItem(object item)
757+
{
758+
// does nothing.
759+
}
760+
761+
public void AddItem(object item)
762+
{
763+
// does nothing.
764+
}
765+
766+
public void CreateBatchRequest(TransactionState[] changes)
767+
{
768+
if (_worker != null)
769+
{
770+
_worker.CreateBatchRequest(changes);
771+
}
772+
}
736773
}
737774

738775

ODataDataProvider/ODataVirtualDataSourceDataProvider.cs

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
using System.Diagnostics;
1111
#if !PCL
1212
using Infragistics.Controls.DataSource;
13+
using Infragistics.Controls.DataSource.Transactions;
1314
#endif
1415

1516
#if PCL
1617
using Infragistics.Core.Controls.DataSource;
18+
using Infragistics.Core.Controls.DataSource.Transactions;
1719
#endif
1820

1921
#if DATA_PRESENTER
@@ -22,8 +24,7 @@ namespace Reference.DataSources.OData
2224
namespace Infragistics.Controls.DataSource
2325
#endif
2426
{
25-
public class ODataVirtualDataSourceDataProvider
26-
: IDataSourceVirtualDataProvider
27+
public class ODataVirtualDataSourceDataProvider : IDataSourceVirtualDataProvider
2728
{
2829

2930
private ODataVirtualDataSourceDataProviderWorker _worker;
@@ -668,7 +669,41 @@ public DataSourceSchemaPropertyType ResolveSchemaPropertyType(string propertyPat
668669

669670
return DataSourceSchemaPropertyType.ObjectValue;
670671
}
671-
}
672672

673-
673+
private DataSourceBatchCompletedCallback _batchCompleted;
674+
public DataSourceBatchCompletedCallback BatchCompleted
675+
{
676+
get
677+
{
678+
return _batchCompleted;
679+
}
680+
set
681+
{
682+
_batchCompleted = value;
683+
}
684+
}
685+
686+
public void SetItemValue(object item, string valueName, object value)
687+
{
688+
// does nothing.
689+
}
690+
691+
public void RemoveItem(object item)
692+
{
693+
// does nothing.
694+
}
695+
696+
public void AddItem(object item)
697+
{
698+
// does nothing.
699+
}
700+
701+
public void CreateBatchRequest(TransactionState[] changes)
702+
{
703+
if (_worker != null)
704+
{
705+
_worker.CreateBatchRequest(changes);
706+
}
707+
}
708+
}
674709
}

0 commit comments

Comments
 (0)