I want to update some records in a SQL table based non their primary ID. It is a simple query:
context.Database.ExecuteSqlRawAsync("UPDATE [FileInfos] SET [DeleteTimeUtc] = {0} WHERE FileId IN ({1});", parameters: parameters);
The first parameter is a date time parameter, that I create like this:
object[] parameters = {
    new SqlParameter("@now", SqlDbType.DateTime)
    {
        Value = DateTime.UtcNow
    }
};
I do not know how to create the second parameter ( I assume I can pass them as string in the SQL query, but maybe there is a better solution ).
 
     
    