Код: Выделить всё
protected void Page_Load(object sender, EventArgs e)
{
var MyList = GetPatientsFromDB(TheUserID);
}
Код: Выделить всё
MyModel
{
public int PatientID {get;set;}
}
Код: Выделить всё
MyOtherModel{
public int PatientID {get;set;}
public string Name {get;set;}
public string Region {get;set;}
}
Я начал с
Код: Выделить всё
public static List GetPatientInfo(List
{
using (..... MyDC = new... DataContext)
{
var OutputList = from f in MyDC.Table
where......?
}
Подробнее здесь: https://stackoverflow.com/questions/551 ... linq-query
Мобильная версия