Skip to content

Commit

Permalink
WCF CTP 5
Browse files Browse the repository at this point in the history
  • Loading branch information
baio committed Apr 16, 2012
1 parent 0201e34 commit eaf9ee9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions Microsoft.Data.Services.Toolkit.csproj
Expand Up @@ -66,8 +66,12 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.CSharp" />
<Reference Include="Microsoft.Data.Services, Version=4.99.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Data.Services.Client, Version=4.99.2.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="Microsoft.Data.Services, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\libs\WCF\Microsoft.Data.Services.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Data.Services.Client, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\libs\WCF\Microsoft.Data.Services.Client.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
Expand Down
10 changes: 5 additions & 5 deletions QueryModel/ODataContext.cs
Expand Up @@ -202,17 +202,17 @@ public void SaveChanges()

if (_currentOperation == "CreateResource" || _currentOperation == "ModifyResource")
ExecuteMethodIfExists(repository, "Save", _currentEntity);

if (_currentOperation == "DeleteResource")
else if (_currentOperation == "DeleteResource")
ExecuteMethodIfExists(repository, "Remove", _currentEntity);

if (_currentOperation == "AddReferenceToCollection")
else if (_currentOperation == "AddReferenceToCollection")
ExecuteMethodIfExists(repository, "CreateRelation", _currentEntity, _currentRelatedEntity, batchContext.RelatedProperty);

if (_currentOperation == "RemoveReferenceFromCollection")
else if (_currentOperation == "RemoveReferenceFromCollection")
ExecuteMethodIfExists(repository, "DeleteRelation", _currentEntity, _currentRelatedEntity, batchContext.RelatedProperty);

if (_currentOperation == "SetReference")
else if (_currentOperation == "SetReference")
ExecuteMethodIfExists(repository, "SetRelation", _currentEntity, _currentRelatedEntity, batchContext.RelatedProperty);
}
}
Expand Down

0 comments on commit eaf9ee9

Please sign in to comment.