Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Is there a way to call a stored procedure with Dapper?

I am very impressed with the results of Dapper Micro ORM for stackoverflow.com. I am considering it for my …

.net stored-procedures orm dapper
How can I create database tables from XSD files?

I have a set of XSDs from which I generate data access classes, stored procedures and more. What I don't …

.net sql database xsd code-generation
FirstOrDefault: Default value other than null

As I understand it, in Linq the method FirstOrDefault() can return a Default value of something other than null. What …

.net linq
Image UriSource and Data Binding

I'm trying to bind a list of custom objects to a WPF Image like this: <Image> <Image.…

.net wpf data-binding xaml
How to navigate a few folders up?

One option would be to do System.IO.Directory.GetParent() a few times. Is there a more graceful way of …

c# .net console-application
How to make a copy of an object in C#

Let's say that I have a class: class obj { int a; int b; } and then I have this code: obj …

c# .net clone
Populating a ComboBox using C#

I would like to populate a combobox with the following: Visible item / Item Value English / En Italian / It Spainish / Sp …

c# .net winforms combobox
Paging with LINQ for objects

How would you implement paging in a LINQ query? Actually for the time being, I would be satisfied if the …

c# .net linq paging
ASP.NET MVC Razor pass model to layout

What I see is a string Layout property. But how can I pass a model to layout explicitly?

c# .net asp.net-mvc razor
Show row number in row header of a DataGridView

Is it possible to show row number in the row header of a DataGridView? I'm trying with this code, but …

c# .net winforms datagridview