This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void ExecuteMigrationScripts(IEnumerable<KeyValuePair<IMigrationScriptFile, string>> scripts, Action<DbTransaction, long> updateVersionAction) | |
{ | |
using (DbTransaction tran = Database.BeginTransaction()) | |
{ | |
IMigrationScriptFile currentScript = null; | |
try | |
{ | |
foreach (var script in scripts) | |
{ | |
currentScript = script.Key; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static DrawingVisual CreateVisual() | |
{ | |
var noBorderPen = new Pen(new SolidColorBrush(Colors.Transparent), 0); | |
var selectionPen = new Pen(new SolidColorBrush(Colors.Yellow), 20 * 2); | |
var drawingVisual = new DrawingVisual(); | |
using (var dc = drawingVisual.RenderOpen()) | |
{ | |
StreamGeometry geometry = new StreamGeometry(); |