我有一个名为Employee的课程:
public enum EmploymentStatus
{ FullTime,PartTime,Unknown };
public class Employee
{
private long emplNbr;
private string name;
private EmploymentStatus st;
private double wage;
public long EmployeeNumber
{
get { return emplNbr; }
set { emplNbr = value; }
}
public string EmployeeName
{
get { return name; }
set { name = value; }
}
public EmploymentStatus Status
{
get { return st; }
set { st = value; }
}
public double HourlySalary
{
get { return wage; }
set { wage = value; }
}
}
我想学习如何在运行时使用此类生成LINQ查询 通过将对象传递给任何函数,void,..任何事情 指定查询类型(插入,更新,删除,选择) 并在运行时检索LINQ查询。