datacontext
in Silverlight DataGrid, CheckBox's DataContext sometimes null when Checked/Unchecked
I have a DataGrid.One of the columns is a template with a CheckBox in it.When the Checked or Unchecked events trigger, (it happens with both) the CheckBox\'s DataContext is sometimes null, which cause[详细]
2023-03-15 13:09 分类:问答When clearing a root datacontext by removing from visual tree, binding further down the tree remains
[Silverlight] I have a large visual object tree I\'m removing from the visual tree (Grid.Children.Clear()), upon removal the DataContext of the root nulls out, but further down the tree a binding开发者[详细]
2023-03-15 04:15 分类:问答How to configure mvc mini profiler with Linq to SQL?
I have configured mini profiler with asp.net mvc application. I also want to profile my db so I hooked it with L2S datacontext as in this example.[详细]
2023-03-14 13:16 分类:问答I got a null reference exception on a Linq To SQL data context and I don't even really know where to start
I just deployed a users and roles asp database to a website and I\'m getting this exception Object reference not set to an instance of an object.[详细]
2023-03-14 08:29 分类:问答ASP.NET MVC 3 child request kicks in before Entity Framework DatabaseInitializer finished creating tables and seeding the db?
I have an ASP.NET mvc3 application which is using ninject for DI. The app is making use of Entity Framework 4 and a database initializer that also seeds custom data into the db.[详细]
2023-03-13 01:09 分类:问答Property in ViewModel not displayed in View
I have a ViewModel called MainWindowViewModel. In this I have a property that shows a modal window when an error occurs. This works fine as long as an error occurs during start-up.[详细]
2023-03-12 13:25 分类:问答Linq-to-SQL: foreign key not accessible until transaction is committed
I\'ve found that with Linq-to-SQL, when you create a new object you can not access a foreign-key member until you have called SubmitChanges on the context the new object is being \"created with.\" I u[详细]
2023-03-10 22:45 分类:问答MVC design issue
I\'m having an application using MVC. It has a canvas and property grid. When an item is selected in the canvas. The property grid should display its details.[详细]
2023-03-10 02:31 分类:问答Can I define eager loading per datacontext instead per query?
Is there a way to define eager loading per entire data conte开发者_JAVA技巧xt, so I could state something like this -- \"when using this data context when loading Customer always load associated City[详细]
2023-03-08 17:27 分类:问答How to generate DataContext for SQL Server Compact database?
I just started to use LINQ-to-SQL, so my problem may be trivial. We have a central database running on SQL Server 2005. There are distributed desktop .NET 4 applications which save measurement data i[详细]
2023-03-08 17:10 分类:问答