我正在尝试使用Entity Framework Tracing Provider
跟踪 EF 查询,我得到The 'data source' keyword is not supported
. 错误:
我在项目调用中有一个 DbContext test.domain
:
public partial class EFDbContext : DbContext
{
public DbSet<Product> Products { get; set; }
public EFDbContext()
: base(EFTracingProviderUtils.CreateTracedEntityConnection("name=EFDbContext"), true)
{
在我的test.web
项目中,我的 web.config 连接字符串是:
<connectionStrings>
<add name="EFDbContext" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=Store;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>