Skip to content

Instantly share code, notes, and snippets.

View dsidirop's full-sized avatar
🎯
Focusing

Kyriakos (Dominick) Sidiropoulos dsidirop

🎯
Focusing
View GitHub Profile
@dsidirop
dsidirop / ExtendedSelectExtensions.cs
Last active December 20, 2020 22:13 — forked from apuchkov/ExtendedSelectExtensions.cs
ASP.NET MVC HTML DropList helper with a way to add custom attributes to options http://stackoverflow.com/a/34096927/1689049
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Web;
using System.Web.Mvc;
@dsidirop
dsidirop / README.md
Last active April 13, 2020 23:39 — forked from oznu/README.md
How to Bootcamp / Dual Boot Windows 10 on a mid-2011 iMac using USB

https://gist.github.com/oznu/8796d08d73315483c3b26e79a8e3d350

How to Install / Bootcamp Windows 10 on a mid-2011 iMac using USB

Apple has released support for bootcamping Windows 10, but only on 2012 Macs and later. Despite not being supported. it is possible to install Windows 10 on earlier iMacs and it seems to run quite well.

IMPORTANT: Unplug all external and physical hard drives (where possible) that you won't be installing to to avoid accidentally erasing them. Also make note of which drives and partitions remain (e.g. System and Storage hard drives), and be super careful to not erase the wrong one.

RECOVERY: If you nuke your machine, restore your time machine backup. Instructions here.

diff --git a/src/shared/Z.EF.Plus.BatchDelete.Shared/BatchDelete.cs b/src/shared/Z.EF.Plus.BatchDelete.Shared/BatchDelete.cs
index f919788..ef1a0ad 100644
--- a/src/shared/Z.EF.Plus.BatchDelete.Shared/BatchDelete.cs
+++ b/src/shared/Z.EF.Plus.BatchDelete.Shared/BatchDelete.cs
@@ -380,10 +380,15 @@ internal DbCommand CreateCommand<T>(ObjectQuery query, SchemaEntityType<T> entit
// GET command
var command = query.Context.CreateStoreCommand();
- bool isMySql = command.GetType().FullName.Contains("MySql");
- var isSqlCe = command.GetType().Name == "SqlCeCommand";
@dsidirop
dsidirop / dummyUtilService.js
Last active December 26, 2018 09:02
dummyUtilService.js
(function (self, $, undefined) {
"use strict";
self.foo = function (config) {
return $("<div>").dialog(config);
};
}(window.UtilService = window.UtilService || {}, jQuery));