Skip to content

Instantly share code, notes, and snippets.

@wuanunet
wuanunet / CreatedAndModifiedDateInterceptor.cs
Created April 8, 2017 05:10 — forked from marisks/CreatedAndModifiedDateInterceptor.cs
Entity Framework soft delete, modiefied and created date interceptors
using System;
using System.Data.Entity.Core.Common.CommandTrees;
using System.Data.Entity.Core.Metadata.Edm;
using System.Data.Entity.Infrastructure.Interception;
using System.Linq;
public class CreatedAndModifiedDateInterceptor : IDbCommandTreeInterceptor
{
public const string CreatedColumnName = "Created";
public const string ModifiedColumnName = "Modified";
@wuanunet
wuanunet / ImageProcess.cs
Last active August 29, 2015 09:02 — forked from dinowang/ImageProcess.cs
A Simple Aggregated C# Image Process API with Fluent Interface
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace HexDigits.Drawing
@wuanunet
wuanunet / Order.cs
Last active August 29, 2015 09:01 — forked from dinowang/Order.cs
ASP.NET MVC QueryOption<T> implementation. depend on PagedList, PagedList.Mvc.
public enum Order
{
Ascending,
Descending
}