Skip to content

Commit

Permalink
Updated Simple.Data and xunit packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
object committed Feb 20, 2012
1 parent f3c0f5c commit b75e241
Show file tree
Hide file tree
Showing 20 changed files with 107 additions and 98 deletions.
Binary file modified .nuget/NuGet.exe
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.Data.Azure.IntegrationTest/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
<package id="xunit" version="1.9.0.1566" />
</packages>
4 changes: 2 additions & 2 deletions Simple.Data.Azure.Test/Simple.Data.Azure.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.Data.Azure.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
<package id="xunit" version="1.9.0.1566" />
</packages>
21 changes: 13 additions & 8 deletions Simple.Data.Azure/AzureTableAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,25 @@ protected override void OnSetup()
{
base.OnSetup();
_helper = new RequestBuilder { UrlBase = Settings.Url, SharedKey = Settings.Key, Account = Settings.Account };
}

}

public override IEnumerable<IDictionary<string, object>> Find(string tableName, SimpleExpression criteria)
{
// TODO: initialize expression formatter with FindTable delegate
var filter = new ExpressionFormatter(null).Format(criteria);
var table = new AzureTable(tableName, _helper);
return table.Query(filter);
}
}

public override IDictionary<string, object> GetKey(string tableName, IDictionary<string, object> record)
{
throw new NotImplementedException();
}

public override IList<string> GetKeyNames(string tableName)
{
throw new NotImplementedException();
}

public override IDictionary<string, object> Get(string tableName, params object[] keyValues)
{
Expand All @@ -47,11 +57,6 @@ public override int Update(string tableName, IDictionary<string, object> data, S
throw new NotImplementedException();
}

public override int Update(string tableName, IDictionary<string, object> data)
{
throw new NotImplementedException();
}

public override int Delete(string tableName, SimpleExpression criteria)
{
throw new NotImplementedException();
Expand Down
4 changes: 2 additions & 2 deletions Simple.Data.Azure/Simple.Data.Azure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.Data.Azure/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
<Reference Include="Elmah">
<HintPath>..\packages\elmah.corelibrary.1.2\lib\Elmah.dll</HintPath>
</Reference>
<Reference Include="EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<HintPath>..\packages\EntityFramework.4.2.0.0\lib\net40\EntityFramework.dll</HintPath>
<Reference Include="EntityFramework, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\EntityFramework.4.3.0\lib\net40\EntityFramework.dll</HintPath>
</Reference>
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.DataAnnotations" />
Expand Down
109 changes: 55 additions & 54 deletions Simple.Data.OData.InMemoryService/Web.config
Original file line number Diff line number Diff line change
@@ -1,54 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.2.0.4000" newVersion="3.2.0.4000" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="elmah">
<section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah" />
<section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah" />
<section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah" />
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpModules>
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" />
</httpModules>
<httpHandlers>
<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" />
</httpHandlers>
</system.web>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
</modules>
<validation validateIntegratedModeConfiguration="false" />
<handlers>
<add name="Elmah" verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah" preCondition="integratedMode" />
</handlers>
</system.webServer>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.2.0.4000" newVersion="3.2.0.4000" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
10 changes: 5 additions & 5 deletions Simple.Data.OData.InMemoryService/packages.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="elmah" version="1.2.0.1" />
<package id="elmah.corelibrary" version="1.2" />
<package id="EntityFramework" version="4.2.0.0" />
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="elmah" version="1.2.0.1" />
<package id="elmah.corelibrary" version="1.2" />
<package id="EntityFramework" version="4.3.0" />
</packages>
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.Data.OData.IntegrationTest/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
<package id="xunit" version="1.9.0.1566" />
</packages>
18 changes: 10 additions & 8 deletions Simple.Data.OData/ODataTableAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ public override IEnumerable<IDictionary<string, object>> Find(string tableName,
return new ODataTable(tableName, _requestBuilder).Query(criteria);
}

public override IDictionary<string, object> GetKey(string tableName, IDictionary<string, object> record)
{
throw new NotImplementedException();
}

public override IList<string> GetKeyNames(string tableName)
{
throw new NotImplementedException();
}

public override IDictionary<string, object> Get(string tableName, params object[] keyValues)
{
// return new Finder(_requestBuilder, _expressionFormatter).Get(tableName, keyValues);
Expand Down Expand Up @@ -79,14 +89,6 @@ public override int Update(string tableName, IDictionary<string, object> data, S
return 0;
}

public override int Update(string tableName, IDictionary<string, object> data)
{
string[] keyFieldNames = _schema.FindTable(tableName).PrimaryKey.AsEnumerable().ToArray();
if (keyFieldNames.Length == 0)
throw new ODataAdapterException("No Primary Key found for implicit update");
return Update(tableName, data, GetCriteria(tableName, keyFieldNames, data));
}

public override int Delete(string tableName, SimpleExpression criteria)
{
// TODO: optimize
Expand Down
4 changes: 2 additions & 2 deletions Simple.Data.OData/Simple.Data.OData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.ComponentModel.Composition" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.Data.OData/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
</packages>
4 changes: 2 additions & 2 deletions Simple.OData.Test/Simple.OData.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.OData.Test/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
<package id="xunit" version="1.9.0.1566" />
</packages>
4 changes: 2 additions & 2 deletions Simple.OData/Simple.OData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Simple.Data, Version=0.14.0.1, Culture=neutral, processorArchitecture=MSIL">
<Reference Include="Simple.Data, Version=1.0.0.1, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Simple.Data.Core.0.14.0.1\lib\net40\Simple.Data.dll</HintPath>
<HintPath>..\packages\Simple.Data.Core.1.0.0-beta1\lib\net40\Simple.Data.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
2 changes: 1 addition & 1 deletion Simple.OData/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Simple.Data.Core" version="0.14.0.1" />
<package id="Simple.Data.Core" version="1.0.0-beta1" />
</packages>

0 comments on commit b75e241

Please sign in to comment.