I have a table with the same ID in two records and it returns a single one repeated. I tried two ways and the same thing happens.
var x = db.SFI_Mix.Where(c => c.ID_Mix == id).Distinct().ToList();
and with
string sql = "SELECT * FROM SFI_MIX WHERE ID_MIX = '" + id + "'";
var x = db.SFI_Mix.SqlQuery(sql).ToList();
If I add Distinct () it returns only one. Am I doing something wrong?