I have a database containing users and roles. The table Users has a reference to the table roles as each user is bin开发者_高级运维d to a role (one and only one).
I have a user control whose users I want to have them set a DataContext on to bind to a list of objects.In my control, however, I want to display that list in a Grid, but in a non-trivial order.The co
The following code is causing a \"This query contains references to items defined on a different data context\" error. My 2 data contexts are created with 2 nested using blocks around the code that ca
I would like to discard all changes made to linq tables (this means -- I use linq, and data are changed on client side, the data on server are intact). How to do this?
I need to find out if an object with a particular primary key is already attached to a DataContext and get the entity from the DataContext if it is attached.Is there any way at all to do thi开发者_开发
I have a program in which I am performing non-atomic updates to the database with a single DataContext (that is, the changes are submitted when the user clicks Save, not after each transaction).
I\'m working on a ASP.Net webform app and I am wondering how long I should keep my data context around. Currently I create a context on each page load, and that context is used in every db access for
I have a wpf app with the datacontext set to an instance of a viewmodel class. It all works fine except where I need to access a property of the viewmodel in a listbox with the datacontext set to a co
I use LINQ to SQL in a WPF project. I have made small changes in the database (changed datatype of the fields, which contain no data).
When you create a datacontext, its connection is closed until you retrieve objects a开发者_开发技巧nd it stays open when you retrieve objects in case you use deferred operators or late binding.