Skip to content

Instantly share code, notes, and snippets.

@dasch88
dasch88 / webpack.config.js
Last active March 29, 2017 00:30
Webpack configuration for Aurelia
const path = require('path');
const webpack = require('webpack');
const { AureliaPlugin } = require('aurelia-webpack-plugin');
module.exports = {
context: __dirname + '/src',
entry: { 'main': 'aurelia-bootstrapper' },
@dasch88
dasch88 / EFExtensions.cs
Last active September 4, 2018 01:02 — forked from ondravondra/EFExtensions.cs
C# extension for executing upsert (MERGE SQL command) in EF with MSSQL. Automatically retrieves keys from entity, and combines script into single statement for IEnumerable.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;