I need to select data from a database using LINQ to SQL. There is a condition that I should select only the record with the identifier not containing “0000” at the beginning (the entire identification number has six digits).
For example, when I want to select data starting with "0000", I will use:
var idList = (from s in db.TABLE where s.ID.StartsWith("0000") select s.ID );
but I need to use the method more like NotStartsWith or NotContains instead of StartsWith . Is it possible?
c # linq-to-sql
zgorawski
source share