Hi I need help,
I have a List of Ids . I need to delete multiple rows from my table using List of Ids in where clause.
My query is Like this
delete from mytable where mytable.Id in (list.GroupBy(x=> x.Id).Select(group=>group.First()));
It show syntax error.
And I dont like to put the delete query in loop to achieve this.
Please help me to solve this. Thanks in advance