vorrei tradurre questa richiesta in LINQ to SQL:Utilizzando "Is Null/non NULL" in LINQ to SQL
SELECT * from Agir where NouvelIncident='1' AND facturable is null
La mia prova:
public static List<Agir> GetINDEFAgir()
{
DataClassesActilogDataContext db = ContextSingleton.GetDataContext();
List<Agir> list;
var v = from i in db.Agir
where i.facturable is null && i.NouvelIncident == true
select i;
list = v.ToList();
return list;
}
Sembra che "è nullo" non è permesso in LINQ to SQL ... ho un errore.
Grazie in anticipo per il vostro aiuto