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
// @markrendle 's proposal | |
dynamic manager; // To hold the aliased reference | |
var q = _db.Employees.Query() | |
.Join(_db.Employees.As("Manager"), out manager).On(manager.Id == _db.Employees.ManagerId) | |
.Select(_db.Employees.Name, manager.Name.As("Manager")); | |
// or this | |
var r= _db.Employees.Query( q => q | |
.Join( q.Managers = _db.Employees).On(q.Managers.Id == q.Employees.ManagerId) | |
.Select(q.Employees.Name,q.Manager.Name.As("Manager")) |
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
namespace Example.Domain.Implementation | |
{ | |
public class StockItem:Scritchy.CQRS.ScratchAR | |
{ | |
int Count = 0; | |
public void AddItems(int Count) | |
{ | |
Changes+= new Events.ItemsAdded { StockItemId = Id, Count = Count }; | |
} |
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
When a user registers with a unique username | |
Then that registration should be approved | |
Given a user registration with a certain username was approved | |
When a new user registers with the same username | |
Then that registration should be rejected |
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
01/12/2011 17:40 321.352.624 GLOBAL.msgs | |
01/12/2011 17:40 77.779.616 HEADER_TaskId_Tasks.1.msgs | |
01/12/2011 17:40 86.990.360 HEADER_TaskId_Tasks.2.msgs | |
01/12/2011 17:40 81.873.280 HEADER_TaskId_Tasks.3.msgs | |
01/12/2011 17:40 74.709.368 HEADER_TaskId_Tasks.4.msgs | |
5 bestand(en) 642.705.248 bytes |
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
<html> | |
<head> | |
<title>navigator.getUserMedia() Demo</title> | |
</head> | |
<body> | |
<h1>See yourself?</h1> | |
If your browser supports | |
<span style="font-family:monospace;">navigator.getUserMedia()</span> | |
you should see yourself below. If you don't see yourself, try | |
downloading the |
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
; com files are always loaded at 100h address | |
ORG 100h | |
start: ; make sure data segments and extra segments point | |
; to the same segment as the code, since this is a | |
; com app | |
MOV AX,CS | |
MOV DS,AX | |
MOV ES,AX |
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
using Scritchy.Domain; | |
namespace AnotherChat.Domain | |
{ | |
public class Room : AR | |
{ | |
int UserCount = 0; | |
public void JoinRoom(string UserId) | |
{ |
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
using System.Collections.Generic; | |
using MinimalisticCQRS.Infrastructure; | |
namespace MinimalisticCQRS.Domain | |
{ | |
public class Account : AR | |
{ | |
decimal Balance = 0; | |
bool IsEnabed = false; |
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 ResourceGroup:AR | |
{ | |
List<string> unprovisionedResources = new List<string>(); | |
public void ProvisionGroup(string[] ResourceIds) | |
{ | |
foreach (var id in ResourceIds) | |
{ | |
Apply(new UnprovisionedResourceAllocated(this.Id, ResourceId)); | |
} |
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
using MinimalisticCQRS.Infrastructure; | |
namespace Blommekes.Domain.Entities | |
{ | |
public class Order : AR | |
{ | |
private bool OrderClosed; | |
enum OrderStatus | |
{ |