Skip to content

Instantly share code, notes, and snippets.

@sergiogarciadev
sergiogarciadev / StackOverflow_Sample.cs
Last active February 20, 2023 01:54
Entity Framework sample for stack overflow.
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFSample
{
public class AccountBalanceByDate
@brazilnut2000
brazilnut2000 / gitignore template.txt
Last active July 21, 2025 03:08
GIT: gitignore template for c# development
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
@Mpdreamz
Mpdreamz / gist:4077718
Created November 15, 2012 09:46
Find Locks (SQL SERVER)
SELECT
t1.resource_type,
t1.resource_database_id,
t1.resource_associated_entity_id,
t1.request_mode,
t1.request_session_id,
t2.blocking_session_id,
o1.name 'object name',
o1.type_desc 'object descr',
p1.partition_id 'partition id',
@kmorcinek
kmorcinek / .gitignore
Last active July 16, 2025 18:18
.gitignore for C# projects
# The following command works for downloading when using Git for Windows:
# curl -LOf http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
#
# Download this file using PowerShell v3 under Windows with the following comand:
# Invoke-WebRequest https://gist.githubusercontent.com/kmorcinek/2710267/raw/ -OutFile .gitignore
#
# or wget:
# wget --no-check-certificate http://gist.githubusercontent.com/kmorcinek/2710267/raw/.gitignore
# User-specific files