Top "Datacontext" questions

A DataContext is used in WPF, Silverlight and various other .NET technologies.

FrameworkElement`s DataContext Property does NOT inherit down the element tree

Hello WPF Pros at least I hope some of you read this! DataContext is a property on FrameworkElement (base class …

wpf datacontext inheritance frameworkelement
Can I stop the dbml designer from adding a connection string to the dbml file?

We have a custom function AppSettings.GetConnectionString() which is always called to determine the connection string that should be used. …

c# linq-to-sql connection-string datacontext
Entity Framework model change error

I am getting the error "The model backing the 'DataContext' context has changed since the database was created. Consider using …

asp.net-mvc-4 entity-framework-5 datacontext
Differences between .CreateObjectSet<T>, .Set<T>, and .CreateQuery<T>?

I am writing a generic repository for entity framework and am confused as to what the difference between these calls …

entity-framework generics datacontext
Default physical location of Data base created in Entity Framework codefirst approach

I am learning Entity Framework. I created a demo app using Entity framework code first approach (without specifying any connection …

c# entity-framework datacontext
Unable to create an object of type 'MyContext'. For the different patterns supported at design time

I have ConsoleApplication on .NET Core and also i added my DbContext to dependencies, but howewer i have an error: …

c# entity-framework sqlite .net-core datacontext
LinqToSql declare and instantiate DataContext best practice?

What's the best practice in terms of setting up my DataContext for easy access in my extended LinqToSql classes? For …

.net vb.net linq-to-sql datacontext
Difference between setting DataContext=this in constructor and Binding to {RelativeSource Self} in WPF?

Next code works as expected: AskWindow.xaml: <Window x:Class='AskWPF.AskWindow' xmlns:x='http://schemas.microsoft.com/winfx/2006/…

c# wpf xaml datacontext relativesource
ItemSource vs Datacontext in wpf

Can any one give me the difference between Itemsource and DataContext of Listview in WPF? With example

wpf datacontext itemsource
page.DataContext not inherited from parent Frame?

I have a Page page in a Frame frame, with frame.DataContext = "foo". (page.Parent as Frame).DataContext is "foo". …

c# wpf binding datacontext msdn