Код: Выделить всё
Update [ActivityTask] Set GroupID = "1" Where ActivityID = aid AND TaskID = tid ;
Я действительно застрял в том, как продолжить... я получил метод вставки:
Код: Выделить всё
public void Insert(ModelSQL.ActivityTask act)
{
context.ActivityTasks.AddObject(act);
}
Код: Выделить всё
public void Update(int gid , int aid , int tid)
{
Update( new { x => x.GroupID == gid }).Where(x => x.activityID == aid && x.taskID == tid);
}
Подробнее здесь: https://stackoverflow.com/questions/190 ... expression
Мобильная версия