I have a program that adds a lot of new data to a database using Linq2SQL. In order to avoid DuplicateKeyExceptions, I check for the existence of the key, before trying to add a new value into the da
I\'m new to C# and ASP.NET MVC and i\'m trying to understand the repository pattern.I\'ve read a whole lot of articles, but I just don\'t understand how to use it.I\'m currently using LINQ to SQL to a
When I execute the following code I don\'t get any error, but it doesn\'t update the changes on the database either. I have 5 entries in the table user, and after executing the following code there is
The LINQ code returns a anonymous type how can I return a strong type of \"Customers\"? I am returning a anonymous type as I only want to select certain fields from the entity.
I have a table (I am using Entity Model) and filtered that table using LINQ query which is working fine.
What would it take to create a C# compilation error, when you use custom methods where Expression is expected?
I\'ve been experimenting with LINQ to SQL recently and have a quick question. The basic premise is I have a search request which contains a Make and Model which I use to search a DB containing cars.
It\'s a picture, an array of bytes which is in the Session. I can\'t seem to bind it to the automatically created model for my table, inside my DataContext. I\'m trying to do so using a FormView and a
I have a function that looks like this: try { _dbManager.InsertSearch(some data); } catch (Exception ex) { //do logging
I see tons of questions on LINQ to SQL vs Stored Procs. I\'m more curious about the benefits of using them in tandem as relates to object mapping.