Hi,
I have setup Entity Framework in my WPF application and have used the example, but it keeps telling me that the object Context I am using is not allowed even though I am using the DBContext that the Entity Framework wizard created for me.
Below is my xaml:
<UserControl
...
<xmlns:data="clr-namespace:Stats.Data"
...
<Grid>
<telerik:RadEntityFrameworkDataSource Name="statsDS" QueryName="Client">
<telerik:RadEntityFrameworkDataSource.ObjectContext>
<data:StatsEntities/>
</telerik:RadEntityFrameworkDataSource.ObjectContext>
<telerik:RadEntityFrameworkDataSource>
<telerik:RadGridView itemsSource="{Binding DataView, Elementname=statsDS}"/>
</Grid>
</UserControl>
StatsEntities is the DBContext within my Entity Framework model.
I have setup Entity Framework in my WPF application and have used the example, but it keeps telling me that the object Context I am using is not allowed even though I am using the DBContext that the Entity Framework wizard created for me.
Below is my xaml:
<UserControl
...
<xmlns:data="clr-namespace:Stats.Data"
...
<Grid>
<telerik:RadEntityFrameworkDataSource Name="statsDS" QueryName="Client">
<telerik:RadEntityFrameworkDataSource.ObjectContext>
<data:StatsEntities/>
</telerik:RadEntityFrameworkDataSource.ObjectContext>
<telerik:RadEntityFrameworkDataSource>
<telerik:RadGridView itemsSource="{Binding DataView, Elementname=statsDS}"/>
</Grid>
</UserControl>
StatsEntities is the DBContext within my Entity Framework model.