var result = from c in dataContext.Customer
where (!c.IsDeleted)
select c;
This statement just creates a query, it is not executed until the ToList method is called. You could create the query in one part of your code and execute it in another, or execute it multiple times by calling ToList, or other methods.