Permalink
Browse files

WCF CTP 5

  • Loading branch information...
1 parent 0201e34 commit eaf9ee9b7556b82177f18d2b980b9345efc3a109 @baio committed Apr 16, 2012
Showing with 11 additions and 7 deletions.
  1. +6 −2 Microsoft.Data.Services.Toolkit.csproj
  2. +5 −5 QueryModel/ODataContext.cs
@@ -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" />
View
@@ -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);
}
}

0 comments on commit eaf9ee9

Please sign in to comment.