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 Bootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void ConfigureApplicationContainer(TinyIoCContainer container) | |
{ | |
container.Register(new Customers()); | |
} | |
} | |
public class Customers : DynamicRepository | |
{ |
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 SalesAppContextProvider : EFContextProvider<SalesAppContext> | |
{ | |
private readonly ServiceFactory _serviceFactory; | |
public SalesAppContextProvider(ServiceFactory serviceFactory) | |
{ | |
_serviceFactory = serviceFactory; | |
} | |
protected override bool BeforeSaveEntity(EntityInfo entityInfo) |
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
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 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 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 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 | |
|-- common/ | |
| |-- common.js | |
| |-- directives/ | |
| | |-- someCommonDirective.js | |
| | |-- someOtherCommonDirective.js | |
|-- customers/ | |
| |-- customerList.js | |
| |-- customerList.html | |
| |-- customerCreate.js |
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
"use strict"; | |
require("angular"); | |
require("angular-route"); | |
var home = require("./controllers/home"); | |
var testService = require("./services/testService"); | |
angular.module("app", ["ngRoute"]) | |
.config(function ($routeProvider) { | |
$routeProvider.when("/", { |
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
time1 will return the time the server started and won't change, ie will always be 27/06/2020 18:16:59 | |
time2 will work as I expected it to work, showing the current time the page was loaded |
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
export interface ErrorValue { | |
ErrorValue: string; | |
} | |
export interface ResultValue<T> { | |
ResultValue: T; | |
} | |
export interface ErrorResult { | |
Case: "Error"; |
OlderNewer