ASP.net_Editable_Demo.FakeDatabase.FakeDatabase C# (CSharp) Method

FakeDatabase() static private method

static private FakeDatabase ( ) : System
return System
        static FakeDatabase()
        { 
            //add two fake rows to our fake db
            Employee e = new Employee
            {
                EmpId = 1,
                FirstName = "Jake",
                LastName = "Drew",
                JobTitle = "Programmer",
                DOB = new DateTime(1980,12,23),
                Status = "Active"
            };
            Employee e2 = new Employee
            {
                EmpId = 2,
                FirstName = "Victoria",
                LastName = "McDowell-Drew",
                JobTitle = "Queen",
                DOB = new DateTime(1980, 3, 23),
                Status = "Inactive"
            };
            db.Add(db.Count + 1, e);
            keyIndex++;
            db.Add(db.Count + 1, e2);
            keyIndex++;
        }