Helo folks!
I have some trouble to get this to work :
Explanation
database table have
Column: COOKIE
Values : selected: test1, test2 ,test3, selected1:pointer, socket ,burner ,EFE, stolen
Now i need to retrieve a string part "EFE" with LINQ to Entities ... i tryed on this way :
ContextEntitie db = new ContextEntitie()
List"<"string">" cookieToDelete = new List"<"string">"(); <-------- here i have allreayd "EFE" string..
public string cookieToWanish;
foreach(string cookie in cookieToDelete)
{
cookieToWanish = cookie;
var deleteCookie = db.Users.Single(co => co.COOKIE.Contains(cookieToWanish);
db.UserPreference.DeleteObject(deleteCookie);
}
db.SaveChanges();
The problem is that nothing happens i cant delete that par of string ..
please help!
Best Regards !
Xeptz