Update SqlCE database Linq-to-Sql?

This way should work: ctx.Users. Attach(user) ctx. Refresh(RefreshMode.

KeepCurrentValues, user) 'this line is important ctx.SubmitChanges() This is my console test app(it works), in C# though: class Program { public static void Main(string args) { var t = new Test(); Customer c = t.GetCustomer(); c. CompanyName = "X"; t. AttachCustomer(c); } class Test { public Customer GetCustomer() { Customer cust; using(DataContext db = new DataContext()) { cust = db.Customers.

Where(x => x. CustomerID == "ALFKI").Single(); db.Dispose(); } return cust; } public void AttachCustomer(Customer cx) { using (DataContext db = new DataContext()) { db.Customers. Attach(cx); db.

Refresh(RefreshMode. KeepCurrentValues, cx); db.SubmitChanges(); db.Dispose(); } } } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions