This file contains hidden or 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
app.js: | |
'use strict'; | |
angular.module('yeomanTestApp', [ | |
'ngCookies', | |
'ngResource', | |
'ngSanitize', | |
'ngRoute' | |
]) |
This file contains hidden or 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
container.RegisterSingle<IQueryProcessor, DynamicQueryProcessor>(); | |
container.RegisterManyForOpenGeneric(typeof(IQueryHandler<,>), Assembly.GetExecutingAssembly()); |
This file contains hidden or 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
PHP: | |
<? | |
session_start(); | |
if(isset($_POST['submitted'])) { | |
$name = trim($_POST['name']); | |
$phone = trim($_POST['phone']); | |
$email = trim($_POST['email']); | |
$comment = trim($_POST['comment']); |
This file contains hidden or 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 SalesAppContextProvider : EFContextProvider<SalesAppContext> | |
{ | |
private readonly ServiceFactory _serviceFactory; | |
public SalesAppContextProvider(ServiceFactory serviceFactory) | |
{ | |
_serviceFactory = serviceFactory; | |
} | |
protected override bool BeforeSaveEntity(EntityInfo entityInfo) |
This file contains hidden or 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 Bootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void ConfigureApplicationContainer(TinyIoCContainer container) | |
{ | |
container.Register(new Customers()); | |
} | |
} | |
public class Customers : DynamicRepository | |
{ |
NewerOlder