I am working on a project that is on .NET Framework 4 and when I enter the Update-Database command in the package manager console, I encounter this error:
Keyword not supported: 'initial catalog'
My connection string in app.config:
<connectionStrings>
<add name="DocsControlDBConnectionString"
connectionString="Data Source=.;Initial Catalog=DocsControl_DB;Integrated Security=True"
providerName="System.Data.SqlServerCe.4.0"/>
</connectionStrings>
And my DbContext:
public class Context : DbContext
{
public Context() : base("DocsControlDBConnectionString")
{
}
public DbSet<Document> Documents { get; set; }
public DbSet<ActivityTime> ActivityTimes { get; set; }
public DbSet<Approver> Approvers { get; set; }
public DbSet<CustomFormat> CustomFormats { get; set; }
public DbSet<Delete> Deletes { get; set; }
public DbSet<DocumentName> DocumentNames { get; set; }
public DbSet<EditDate> EditDates { get; set; }
public DbSet<EditNumber> EditNumbers { get; set; }
public DbSet<PDFFile> PDFFiles { get; set; }
public DbSet<Producer> Producers { get; set; }
public DbSet<Review> Reviews { get; set; }
public DbSet<Models.Type> Types { get; set; }
public DbSet<UserRole> UserRoles { get; set; }
public DbSet<WordFile> WordFiles { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
base.OnModelCreating(modelBuilder);
}
}
Please guide me