forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSQLiteDataStore.cs
More file actions
61 lines (56 loc) · 2.58 KB
/
Copy pathSQLiteDataStore.cs
File metadata and controls
61 lines (56 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using JetBrains.Annotations;
using Microsoft.Data.Entity.ChangeTracking;
using Microsoft.Data.Entity.Metadata;
using Microsoft.Data.Entity.Query;
using Microsoft.Data.Entity.Relational;
using Microsoft.Data.Entity.Relational.Query;
using Microsoft.Data.Entity.Relational.Query.Methods;
using Microsoft.Data.Entity.SQLite.Query;
using Microsoft.Data.Entity.SQLite.Utilities;
using Microsoft.Data.Entity.Utilities;
using Microsoft.Framework.Logging;
namespace Microsoft.Data.Entity.SQLite
{
public class SQLiteDataStore : RelationalDataStore
{
public SQLiteDataStore(
[NotNull] StateManager stateManager,
[NotNull] LazyRef<IModel> model,
[NotNull] EntityKeyFactorySource entityKeyFactorySource,
[NotNull] EntityMaterializerSource entityMaterializerSource,
[NotNull] ClrCollectionAccessorSource collectionAccessorSource,
[NotNull] ClrPropertySetterSource propertySetterSource,
[NotNull] SQLiteConnection connection,
[NotNull] SQLiteCommandBatchPreparer batchPreparer,
[NotNull] SQLiteBatchExecutor batchExecutor,
[NotNull] ILoggerFactory loggerFactory)
: base(stateManager, model, entityKeyFactorySource, entityMaterializerSource,
collectionAccessorSource, propertySetterSource, connection, batchPreparer, batchExecutor, loggerFactory)
{
}
protected override RelationalValueReaderFactory ValueReaderFactory
{
get { return new RelationalObjectArrayValueReaderFactory(); }
}
protected override RelationalQueryCompilationContext CreateQueryCompilationContext(
ILinqOperatorProvider linqOperatorProvider,
IResultOperatorHandler resultOperatorHandler,
IQueryMethodProvider queryMethodProvider,
IMethodCallTranslator methodCallTranslator)
{
Check.NotNull(linqOperatorProvider, "linqOperatorProvider");
Check.NotNull(resultOperatorHandler, "resultOperatorHandler");
Check.NotNull(queryMethodProvider, "queryMethodProvider");
return new SQLiteQueryCompilationContext(
Model,
Logger,
linqOperatorProvider,
resultOperatorHandler,
EntityMaterializerSource,
queryMethodProvider,
methodCallTranslator);
}
}
}