- Right click on the ‘App_Code’ node, click ‘Add New Item…’
- In the opened dialog, choose 'Class', name it Employee.cs and click Add.
- Go to the newly created Employee class and paste the following code into it:
using NPersistence;
[Entity]
public class Employee
{
[Id]
public virtual string ID { get; set; }
[Basic]
public virtual string FirstName { get; set; }
[Basic]
public virtual string LastName { get; set; }
}