I am learning how to use Linqpad. Please see the code below (Linqpad C# Program):
//UPDATE (c# Porgram)
void Main()
{
var v1 = Vendors.Single(x => x.BusinessEntityID == 1492);
v1.Name = "Hello"; //Australia Bike Retailer
SaveChanges();
}
It works as I would expect. I have two questions:
1) How does it work without the Linq To Entities Database context?
2) How would I delete v1?
Update
I have tried this following on from an answer below: