diff options
author | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-09 08:21:02 -0800 |
---|---|---|
committer | Andrew Arnott <andrewarnott@gmail.com> | 2009-12-09 08:21:02 -0800 |
commit | 95e53149714c77ca1450a81144a8a07f4a78ea49 (patch) | |
tree | d31376af3055dae0ecbc3955b0d8ef6bdc254347 /projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs | |
parent | 0b0fd99c855880ec9f905f72840dd5783c8b624d (diff) | |
download | DotNetOpenAuth-95e53149714c77ca1450a81144a8a07f4a78ea49.zip DotNetOpenAuth-95e53149714c77ca1450a81144a8a07f4a78ea49.tar.gz DotNetOpenAuth-95e53149714c77ca1450a81144a8a07f4a78ea49.tar.bz2 |
Fixed entity set names to take their plural form consistently.
Diffstat (limited to 'projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs')
-rw-r--r-- | projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs b/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs index be53180..4ae50ce 100644 --- a/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs +++ b/projecttemplates/RelyingPartyLogic/OAuthServiceProviderTokenManager.cs @@ -30,7 +30,7 @@ namespace RelyingPartyLogic { /// <exception cref="KeyNotFoundException">Thrown if the consumer key cannot be found.</exception> public IConsumerDescription GetConsumer(string consumerKey) { try { - return Database.DataContext.Consumer.First(c => c.ConsumerKey == consumerKey); + return Database.DataContext.Consumers.First(c => c.ConsumerKey == consumerKey); } catch (InvalidOperationException) { throw new KeyNotFoundException(); } @@ -47,7 +47,7 @@ namespace RelyingPartyLogic { /// been authorized, has expired or does not exist. /// </returns> public bool IsRequestTokenAuthorized(string requestToken) { - return Database.DataContext.IssuedToken.OfType<IssuedRequestToken>().Any( + return Database.DataContext.IssuedTokens.OfType<IssuedRequestToken>().Any( t => t.Token == requestToken && t.User != null); } @@ -65,7 +65,7 @@ namespace RelyingPartyLogic { /// </remarks> public IServiceProviderRequestToken GetRequestToken(string token) { try { - return Database.DataContext.IssuedToken.OfType<IssuedRequestToken>().First(tok => tok.Token == token); + return Database.DataContext.IssuedTokens.OfType<IssuedRequestToken>().First(tok => tok.Token == token); } catch (InvalidOperationException) { throw new KeyNotFoundException(); } @@ -85,7 +85,7 @@ namespace RelyingPartyLogic { /// </remarks> public IServiceProviderAccessToken GetAccessToken(string token) { try { - return Database.DataContext.IssuedToken.OfType<IssuedAccessToken>().First(tok => tok.Token == token); + return Database.DataContext.IssuedTokens.OfType<IssuedAccessToken>().First(tok => tok.Token == token); } catch (InvalidOperationException) { throw new KeyNotFoundException(); } |