Skip to content

Instantly share code, notes, and snippets.

@Maxstupo
Maxstupo / CustomerRepository.cs
Last active February 8, 2023 20:47
Concept for a Data Access Layer using SQLite, Dapper, and the Repository Pattern.
using Dapper;
using Dal;
using System.Collections.Generic;
using System.Threading.Tasks;
// Example implementation of the GenericRepository
// Our model.
public class Customer {
@Maxstupo
Maxstupo / Win32FileScanner.cs
Last active April 23, 2020 05:40
C# FileScanner using FindFirstFile and FindNextFile with optional directory statistics
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
namespace Maxstupo.Utility {
public enum FileType {
File = 0,
Folder = 1