Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to create a SPA model which is able to create, update, delete scheduled tasks in Visual Studio 2012 using MVC4 Hottowel SPA template. Here i have a demo class which I need to use in creating database but unable to get 1) the context of the database.
2) how to configure the database in this project. I tried with creating connection using (LocalDb)\v11.0 sql server but its showing error that entity framework 6 or above is not supported with this application.

public class JobDemo
    {
      public string JobName { get; set; }
      public string JobDescription { get; set; }
      public string Frequency { get; set; }
      public bool JobStatus { get; set; }
      public bool JobIsActive { get; set; }
      public DateTime LastModifiedOn { get; set; }
    }



This is my class which I wanna use to create database of scheduled tasks/jobs and then query on them

public class DemoDb : DbContext
    {
      public DbSet<JobDemo> Jobject { get; set; }
    
    }


The class is creating the DbContext of my JobDemo Class. But after that i am unable to create database connection which use my class and use the following attributes defined in my JobDemo class.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900