我正在尝试使用Entity Framework Tracing Provider
来跟踪EF查询,我得到The 'data source' keyword is not supported
。错误:
我在项目调用test.domain
中有一个DbContext:
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>