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
public class Customer | |
{ | |
[Key] | |
public int ID { get; set; } | |
[Required] | |
public string FirstName { get; set; } | |
[Required] | |
public string LastName { get; set; } |
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
<local:ThemeAwarePanorama Title="my app" | |
LightBackground="/MyApp;component/Content/Images/Light/Background.jpg" | |
DarkBackground="/MyApp;component/Content/Images/Dark/Background.jpg"> | |
<!-- more xaml --> | |
</local:ThemeAwarePanorama> |
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
<#@ template debug="true" hostSpecific="true" #> | |
<#@ output extension=".cs" #> | |
<#@ Assembly Name="System.Core" #> | |
<#@ Assembly Name="System.Windows.Forms" #> | |
<#@ Assembly Name="System.Web.Mvc" #> | |
<#@ assembly name="$(SolutionDir)MyProject.WebApplication\bin\MyProject.WebApplication.dll" #> | |
<#@ import namespace="System" #> | |
<#@ import namespace="System.IO" #> | |
<#@ import namespace="System.Diagnostics" #> | |
<#@ import namespace="System.Linq" #> |
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
using NHibernate; | |
using NUnit.Framework; | |
namespace UnitTests | |
{ | |
public abstract class AbstractInMemoryDataFixture | |
{ | |
private ISession session; | |
[SetUp] |
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
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
namespace Quickstart.Web.Extensions | |
{ | |
public static class ObjectExtensions | |
{ | |
public static string ToJson(this object obj) | |
{ | |
JsonSerializerSettings serializerSettings = new JsonSerializerSettings |
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
@using Quickstart.Web.Extensions | |
@model Quickstart.Web.Models.Person | |
@section scripts | |
{ | |
<script type="text/javascript"> | |
var viewModel = ko.mapping.fromJS(@Html.Raw(Model.ToJson())); | |
ko.applyBindings(viewModel); | |
</script> | |
} |
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
@model Quickstart.Web.Models.Person | |
@section scripts | |
{ | |
<script type="text/javascript" src="/Scripts/ViewModels/AjaxModelLoading.js"></script> | |
<script type="text/javascript"> | |
var viewModel = new AjaxModelLoading("@Url.Action("AjaxModelLoading")"); | |
ko.applyBindings(viewModel); | |
viewModel.getRandomModel(); |
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
@using Quickstart.Web.Extensions | |
@model Quickstart.Web.Models.Person | |
@section scripts | |
{ | |
<script type="text/javascript" src="/Scripts/moment.min.js"></script> | |
<script type="text/javascript" src="/Scripts/knockout.bindings.date.js"></script> | |
<script type="text/javascript"> | |
var viewModel = ko.mapping.fromJS(@Html.Raw(Model.ToJson())); | |
ko.applyBindings(viewModel); |
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
define('module-id', ['array', 'of', 'dependencies'], function (array, of, dependencies) { | |
// Module definition | |
}); |
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
using System.Threading.Tasks; | |
using Microsoft.Owin; | |
public class BasicMiddleware : OwinMiddleware | |
{ | |
public BasicMiddleware(OwinMiddleware next) : base(next) | |
{ | |
} |
OlderNewer