forked from smartstore/SmartStoreNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSqlCeDataProvider.cs
More file actions
44 lines (40 loc) · 1.17 KB
/
Copy pathSqlCeDataProvider.cs
File metadata and controls
44 lines (40 loc) · 1.17 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
using System.Data.Common;
using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using System.Data.SqlClient;
using SmartStore.Core.Data;
using SmartStore.Data.Setup;
using SmartStore.Data.Migrations;
namespace SmartStore.Data
{
public class SqlCeDataProvider : IEfDataProvider
{
/// <summary>
/// Get connection factory
/// </summary>
/// <returns>Connection factory</returns>
public virtual IDbConnectionFactory GetConnectionFactory()
{
return new SqlCeConnectionFactory("System.Data.SqlServerCe.4.0");
}
/// <summary>
/// A value indicating whether this data provider supports stored procedures
/// </summary>
public bool StoredProceduresSupported
{
get { return false; }
}
/// <summary>
/// Gets a support database parameter object (used by stored procedures)
/// </summary>
/// <returns>Parameter</returns>
public DbParameter GetParameter()
{
return new SqlParameter();
}
public string ProviderInvariantName
{
get { return "System.Data.SqlServerCe.4.0"; }
}
}
}