Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
114 views

When using linq2sql to access a database, I create a new DataContext. As far as I understand, the underlying DBConnection is pooled, and may be reused. using (var dc = new DB_DataContext()) { //...
HugoRune's user avatar
  • 13.9k
0 votes
0 answers
297 views

I have a TreeView like so: <controls:TreeView x:Name="treeView"/> I try to bind the Datacontext of a different control to the Datacontext of the selected TreeViewItem. How would I go about that?...
Ruben Bohnet's user avatar
1 vote
0 answers
205 views

I need a button that insert my meteor template into summernote editor. I have a custom summernote button: var MyButton = function (context) { var ui = $.summernote.ui; var button = ui....
Арсений Еремеев's user avatar
4 votes
2 answers
4k views

When I am trying to bind Datacontext of Window by DataContext="{Binding RelativeSource={RelativeSource Self}}" it is not working, how if I do the same thing in code-behind, it is working quite fine. ...
Shabana's user avatar
  • 89
1 vote
1 answer
304 views

In our project, we have multiple System.Data.Linq.DataContext objects for the different Windows forms. When databound controls on the form are changed (like the Name), we enable or disable the Save ...
user avatar
-1 votes
2 answers
790 views

I have a MainWindowView that has a grid with 2 columns each having 1 UserControl View. MainWindowView constructor creates instance of MainWindowVM and sets the data context to this new instance. this....
ItsTheJourney's user avatar
0 votes
1 answer
154 views

I would like to make a page that contains two sub-pages of options. The problem I've encountered is that I can't access the objects from sub-pages of the main page. I should note that I use only ...
Toody's user avatar
  • 87
0 votes
1 answer
400 views

Some my script updates local data from external resources, get part of data, update and then get next part of data... my update code is: public void UpdateDrivers(List<Domain.POCO.Vistracks....
Oleg Sh's user avatar
  • 9,089
1 vote
1 answer
75 views

There are 2 or 3 errors that are thrown sometimes in my ASP website. This usually happens when I go from a page to another very quickly. Usually, when I give it time, it does not They are all related ...
bMain's user avatar
  • 354
1 vote
1 answer
5k views

We have a huge list (say 100,000) which needs to be converted to DataTable for SqlBulkcopy. Can you guide what could be the fastest way to do this without using for loop? For now we are doing it ...
Oxygen's user avatar
  • 859
0 votes
1 answer
173 views

I have a ViewModel that handle a view called "WorkSpace". Now without going into non-useful details, to create a new tab inside my TabControl contained in this workspace, i raise an event with the ...
Daniele Sartori's user avatar
2 votes
2 answers
2k views

I experiment with the order of setting the DataContext property in the default constructor in WPF. <StackPanel> <ListBox ItemsSource="{Binding MyItems, PresentationTraceSources....
David762's user avatar
  • 495
0 votes
1 answer
276 views

I have a problem with the system for ordering products. Scenario: Two separate browsers Two separate accounts (after logging in a separate session id) when clicked, grouped, and enabled in the connect ...
Pixelo's user avatar
  • 27
0 votes
0 answers
104 views

I'm using Linq on a third part database and I have DataContext that contains all my tables I've used so far. I'm trying to add another table and have run into what I think is a database design issue, ...
Bernie Hunt's user avatar
2 votes
1 answer
419 views

I’m trying to get details about the business when I get a deal. I want to translate this query: select d.*, b.* from deals d inner join business b on b.id = d.businessId where d.IsEvent = true I ...
kfir's user avatar
  • 830
3 votes
2 answers
11k views

I've finally started implementing Linq in our old API so I started making all the classes associated with our Tables and DB classes for the Database I followed an online guid but I can't get it ...
Jamie Vangeysel's user avatar
0 votes
0 answers
113 views

I'm messing with LINQ, and I'm trying to save lines of code. I created a variable in settings to indicate if I'm in Stage or Production, and I need to be able to switch between the two versions of the ...
MLangford's user avatar
1 vote
2 answers
2k views

I've got a page where a DataTemplate is being used to bind to the model for that content, e.g.: <DataTemplate x:DataType="models:MyDataType"> ... content ... </DataTemplate> In that ...
Philip Colmer's user avatar
0 votes
2 answers
212 views

I try to call a function in a callback and do something with the class context(this). But when calling the callback function, it doesn't have any context. this is undefined. I tried a few things with ...
Flo's user avatar
  • 3,107
1 vote
3 answers
770 views

What if I have an object with a 100 properties that changed? This would be horrible to code and prone to missing some properties. Is there a different way of updating a record than to do it manually?...
Ruan's user avatar
  • 4,324
0 votes
1 answer
332 views

I create an application, which uses a local database, which is stored in the AppData folder. I created a DataContext to get the data: private NorthWindDataContext northWindDataContext = new ...
daniel59's user avatar
  • 916
1 vote
1 answer
745 views

I want to create a WPF Application with a SQL-Connection to a Database. For my test application I'm using the NorthWind database. I followed this Tutorial on MSDN to create the DataContext class and ...
daniel59's user avatar
  • 916
0 votes
2 answers
1k views

I have the interface. public interface IRepository<T> where T : class { void Add(T entity); void Update(T entity); void Delete(T entity); void Delete(Expression<Func<T, bool&...
Bigeyes's user avatar
  • 1,686
2 votes
2 answers
5k views

This my view.xaml: <Grid> <Grid.RowDefinitions> <RowDefinition Height=".5*"/> <RowDefinition Height="0.5*"/> </Grid.RowDefinitions> <Grid ...
GANI's user avatar
  • 2,059
2 votes
0 answers
240 views

dear lovely community, I need some help with .NET Service Reference stuff for OData services. The webservices (Odata endpoints) for information download are located on container ships with different ...
Tim van Peterson's user avatar

1
3 4
5
6 7
30