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
/// <summary> | |
/// Provides projection mapping from an IQueryable sourceto a target type. | |
/// | |
/// This allows from strongly-typed mapping and querying only necessary fields from the database. | |
/// It takes the place of Domain -> ViewModel mapping as it allows the ViewModel to stay as | |
/// IQueryable. AutoMapper works on in-memory objects and will pull all full records to perform | |
/// a collection mapping. Use AutoMapper for Input -> Domain scenarios, but not DAL. | |
/// | |
/// Reference: http://devtrends.co.uk/blog/stop-using-automapper-in-your-data-access-code | |
/// </summary> |
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
/// <summary> | |
/// Helper methods for checking permissions on a controller. | |
/// </summary> | |
internal static class PermissionsHelper | |
{ | |
/// <summary> | |
/// Internal IsAuthorized helper | |
/// </summary> | |
/// <param name="context"></param> | |
/// <param name="targetControllerType"></param> |
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
/*--------------------------------------------------------------------------------------*/ | |
/* a quick way I like to use 960.gs, instead of having html classnames like .grid_5, etc. | |
/*-------------------------------------------------------------------------------------*/ | |
// self-explanatory defaults | |
$_containerwidth: 960px | |
$_columns: 16 | |
$_gutter: 10px | |
$_colspan: ($_containerwidth / $_columns) | |
$_colwidth: ( $_colspan - (2 * $_gutter)) |
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
/// <summary> | |
/// Delegate for events during the serializer cache. | |
/// </summary> | |
public delegate void SerializerCacheDelegate(); | |
/// <summary> | |
/// XML serialization helper | |
/// </summary> | |
public static class Xml | |
{ |
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
;// | |
// Grid extension. | |
// Adds default grid state perservation via localStorage. | |
// The grid container can specify a storage location by | |
// setting the data-store attribute to either: | |
// - local [default] | |
// - session | |
// - false Disables storage for this grid. | |
// | |
(function ($, kendo) { |
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
/* Copyright (c) 2010 Marcus Westin | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* | |
* The above copyright notice and this permission notice shall be included in |
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
/// <reference path="typings/jquery/jquery.d.ts" /> | |
/// <reference path="typings/kendo.all.d.ts" /> | |
interface JQuery { | |
kendoNotification(options: any): JQuery; | |
} | |
module core { | |
/** |
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
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Package"> | |
<PropertyGroup> | |
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir> | |
<Configuration Condition="$(Configuration) == ''">Release</Configuration> | |
<Platform Condition="$(Platform) == ''">AnyCPU</Platform> | |
<BuildDir>bin\$(Configuration)\</BuildDir> | |
<OutputPath>bin\$(Configuration)\</OutputPath> | |
<ProjectName Condition="$(ProjectName) == ''"></ProjectName> | |
<ProjectFile>$(ProjectName).csproj</ProjectFile> |
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
# Server and Project configs. | |
$CollectionUrl = "https://[TEAM FOUNDATION SERVER]/[PROJECT COLLECTION]" | |
$projects = ("[PROJECT 1]", "PROJECT 2") | |
# Work Item Locations | |
$baseLocation = Split-Path -parent $PSCommandPath | |
$witdLocation = $baseLocation + "\Core.Process\WorkItem Tracking\TypeDefinitions" | |
# Admin Import Command | |
$WitAdmin = "${env:ProgramFiles(x86)}\Microsoft Visual Studio 12.0\Common7\IDE\witadmin.exe" |
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
################################################## | |
# | |
################################################## | |
param( | |
[Parameter(Mandatory = $true)][String]$subscriptionId, | |
[Parameter(Mandatory = $true)][String]$storageAccountName, | |
[Parameter(Mandatory = $true)][String]$affinityGroupName, | |
[Parameter(Mandatory = $true)][String]$imageName = 'MSFT__Windows-Server-2012-Datacenter-201208.01-en.us-30GB.vhd', | |
[Parameter(Mandatory = $true)][String]$adminPassword, |
OlderNewer