Indeed. Create a separate file, for instance, EmployeeExtension.cs.
In this file, place the following code:
public partial class Employee
{
public decimal Salary
{
get { return Hours * Wage; }
}
}
LINQ to SQL and Entity Framework classes are generated with the partial keyword to allow you to split the definition over many files, because the designers knew that you will want to add members to the class that aren’t overwritten by continually autogenerating the base source file.