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
44 lines (39 loc) · 1.75 KB
/
Copy pathSQLiteDataStore.cs
File metadata and controls
44 lines (39 loc) · 1.75 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
// 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.Infrastructure;
using Microsoft.Data.Entity.Query;
using Microsoft.Data.Entity.Relational;
using Microsoft.Data.Entity.Relational.Query;
using Microsoft.Data.Entity.Relational.Update;
using Microsoft.Data.Entity.SQLite.Query;
using Microsoft.Data.Entity.SQLite.Utilities;
namespace Microsoft.Data.Entity.SQLite
{
public class SQLiteDataStore : RelationalDataStore
{
public SQLiteDataStore(
[NotNull] DbContextConfiguration configuration,
[NotNull] SQLiteConnection connection,
[NotNull] CommandBatchPreparer batchPreparer,
[NotNull] SQLiteBatchExecutor batchExecutor)
: base(configuration, connection, batchPreparer, batchExecutor)
{
}
protected override RelationalValueReaderFactory ValueReaderFactory
{
get { return new RelationalObjectArrayValueReaderFactory(); }
}
protected override RelationalQueryCompilationContext CreateQueryCompilationContext(
ILinqOperatorProvider linqOperatorProvider,
IResultOperatorHandler resultOperatorHandler,
IQueryMethodProvider queryMethodProvider)
{
Check.NotNull(linqOperatorProvider, "linqOperatorProvider");
Check.NotNull(resultOperatorHandler, "resultOperatorHandler");
Check.NotNull(queryMethodProvider, "queryMethodProvider");
return new SQLiteQueryCompilationContext(
Model, linqOperatorProvider, resultOperatorHandler, queryMethodProvider);
}
}
}