Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@PawelGerr
PawelGerr / badge.svg
Last active April 18, 2024 18:26
Thinktecture.Runtime.Extensions: Test results badge
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PawelGerr
PawelGerr / Project Dependency Graph Analyzer.cs
Created April 12, 2024 15:39
Project Dependency Graph Analyzer
using System.Diagnostics.CodeAnalysis;
using System.Xml.Linq;
using System.Xml.XPath;
const string path = @"./Thinktecture.EntityFrameworkCore.argr";
var graph = ProjectGraph.ParseGraph(path);
var sqlServerSamples = graph.Get("Thinktecture.EntityFrameworkCore.SqlServer.Samples");
var sqliteSamples = graph.Get("Thinktecture.EntityFrameworkCore.Sqlite.Samples");
public class EnumJsonConverter<TEnum, T> : JsonConverter<Enum<TEnum, T>>
where TEnum : Enum<TEnum, T>
{
public override void WriteJson(JsonWriter writer, Enum<TEnum, T> value, JsonSerializer serializer)
{
if (value == null)
{
writer.WriteNull();
}
else
public abstract class BulkInsertDataReader<T> : IDataReader
{
private readonly IReadOnlyCollection<SqlBulkCopyColumnMapping> _columnMappings;
private readonly IEnumerator<T> _enumerator;
protected T Current { get; private set; }
public int Depth { get; private set; }
public bool IsClosed { get; private set; }
public int RecordsAffected { get; private set; }
(function () {
'use strict';
window.ttBase = window.ttBase || {};
ttBase.module = angular.module('ttBase', []);
})();
(function () {
'use strict';
/**
* @constructor
*/
ttBase.MimeTypeLookup = function () {
this.getMimeType = function (fileName) {
if (!angular.isString(fileName)) {
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
namespace Thinktecture.Helpers
{
public class MimeTypeLookup
{
(function () {
'use strict';
/**
* @param $scope
* @param $parse
*/
function TtValidationController($scope, $parse) {
var context = null;
var controls = [];
(function () {
'use strict';
/**
* @param $scope
*/
function TtValidateController($scope) {
var validationKey = 'ttValidate-validate';
$scope.ngModel = null;
app = {};
app.module = angular.module('app', []);