|
1 | 1 | using System; |
2 | 2 | using SharpRepository.Repository.Caching; |
3 | 3 | using Raven.Client.Document; |
| 4 | +using Raven.Client; |
4 | 5 |
|
5 | 6 | namespace SharpRepository.RavenDbRepository |
6 | 7 | { |
@@ -34,7 +35,7 @@ public RavenDbRepository(string url, ICachingStrategy<T, TKey> cachingStrategy = |
34 | 35 | /// </summary> |
35 | 36 | /// <param name="documentStore">The instantiated RavenDb Document Store.</param> |
36 | 37 | /// <param name="cachingStrategy">The caching strategy. Defaults to <see cref="NoCachingStrategy<T, TKey>" />.</param> |
37 | | - public RavenDbRepository(DocumentStore documentStore, ICachingStrategy<T, TKey> cachingStrategy = null) : base(documentStore, cachingStrategy) |
| 38 | + public RavenDbRepository(IDocumentStore documentStore, ICachingStrategy<T, TKey> cachingStrategy = null) : base(documentStore, cachingStrategy) |
38 | 39 | { |
39 | 40 | if (documentStore == null) throw new ArgumentNullException("documentStore"); |
40 | 41 | } |
@@ -69,7 +70,7 @@ public RavenDbRepository(string url, ICachingStrategy<T, string> cachingStrategy |
69 | 70 | /// </summary> |
70 | 71 | /// <param name="documentStore">The instantiated RavenDb Document Store.</param> |
71 | 72 | /// <param name="cachingStrategy">The caching strategy. Defaults to <see cref="NoCachingStrategy<T>" />.</param> |
72 | | - public RavenDbRepository(DocumentStore documentStore, ICachingStrategy<T, string> cachingStrategy = null) : base(documentStore, cachingStrategy) |
| 73 | + public RavenDbRepository(IDocumentStore documentStore, ICachingStrategy<T, string> cachingStrategy = null) : base(documentStore, cachingStrategy) |
73 | 74 | { |
74 | 75 | if (documentStore == null) throw new ArgumentNullException("documentStore"); |
75 | 76 | } |
|
0 commit comments