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
const string sql = @" | |
-- Data Query | |
SELECT TOP 5 Album.AlbumId, Artist.Name, Album.Title | |
FROM Artist | |
INNER JOIN Album | |
ON Album.ArtistId = Artist.ArtistId | |
WHERE Album.Title LIKE @filter | |
ORDER BY Album.Title, Artist.Name; | |
-- Count Query |
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
function print(value) { | |
if (typeof(value) == 'string') | |
return WScript.stdout.write(value); | |
if (typeof(value) == 'number') { | |
if (isNaN(value)) | |
return WScript.stdout.write('NaN'); | |
return WScript.stdout.write(value); | |
} | |
if (value == null) | |
return print("null"); |
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 System.Data; | |
using System.Linq; | |
using Simple.Data.Ado; | |
namespace Simple.Data.Sql | |
{ | |
public static class DataReaderExtensions | |
{ | |
public static IEnumerable<IEnumerable<dynamic>> ToResultSets(this IDataReader reader) |
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
<?xml version="1.0" encoding="utf-8"?> | |
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" | |
assembly="ACC.Testing.Core" | |
namespace="ACC.Testing"> | |
<typedef class="ACC.Testing.Data.EncryptedString, ACC.Testing.Data" name="encrypted" /> | |
<class name="Account"> | |
<id name="Id"> | |
<generator class="guid.comb" /> | |
</id> |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.ServiceModel.Syndication; | |
using System.Text; | |
using System.Xml; | |
using Autofac; | |
using Moq; |
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
$(function () { | |
$('#chatBox').focus(); | |
var topic = new HermesClient("http://localhost:6156/") | |
.TryCreateGroup("Chat Server") | |
.TryCreateTopic("Weather Channel"); | |
topic.fail(function () { alert('Unable to connect to Hermes server'); }); | |
// Check for new messages every 1/2 second |
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
<script id="itemListTemplate" src="/Templates/itemList.tmpl.html" type="text/html"></script> |
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
<script type="text/javascript"> | |
model = @Model.ToJson(); | |
</script> |
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
NAnt 0.91 (Build 0.91.3881.0; alpha2; 8/17/2010) | |
Copyright (C) 2001-2010 Gerry Shaw | |
http://nant.sourceforge.net | |
Buildfile: file:///c:/myNcqrsBuilder/ncqrs-ncqrs-67366fc/MAIN.build | |
Target framework: Microsoft .NET Framework 4.0 | |
Target(s) specified: build | |
build: |
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
NAnt 0.91 (Build 0.91.3881.0; alpha2; 8/17/2010) | |
Copyright (C) 2001-2010 Gerry Shaw | |
http://nant.sourceforge.net | |
Buildfile: file:///c:/myNcqrsBuilder/ncqrs-ncqrs-67366fc/MAIN.build | |
Target framework: Microsoft .NET Framework 4.0 | |
Target(s) specified: build | |
build: |