"default"
DbContext
public class EmployeeContext : DbContext { public EmployeeContext() : base("name=default") { } public List<employee> Employees { get; set; } }
employee
class Program { static void Main(string[] args) { createEmp(); } static void createEmp() { var obj = new EmployeeContext(); Employee emp = new Employee(); emp.ID = 1; emp.Name = "Test"; obj.SaveChanges(); } }
employeecontext
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)