Skip to content

Instantly share code, notes, and snippets.

View ivan-marquez's full-sized avatar

Jose Ivan Marquez ivan-marquez

View GitHub Profile
@ivan-marquez
ivan-marquez / namespaces.js
Last active July 18, 2016 19:52
Namespace example
//#region "namespace fwpr.controls"
(function () {
this.fwpr = this.fwpr || {};
this.fwpr.controls = this.fwpr.controls || {};
var ns = this.fwpr.controls;
ns.getControl = function (fieldName) {
try {
@ivan-marquez
ivan-marquez / CreatedAndModifiedDateInterceptor.cs
Created April 14, 2016 03:01 — 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";