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; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using NUnit.Framework; | |
using Overby.Logger; | |
namespace Overby.Logging.Tests | |
{ | |
[TestFixture] | |
public class MultiThreadingTests |
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 Raven.Client.Document; | |
namespace RavenLinqpadDriver | |
{ | |
public interface IDocumentStoreInitializer | |
{ | |
DocumentStore CreateAndInitialize(); | |
} | |
} |
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 DynamicIndex : AbstractMultiMapIndexCreationTask<DynamicIndex.ReduceResult> | |
{ | |
public class ReduceResult | |
{ | |
public string Value { get; set; } | |
public int Count { get; set; } | |
} | |
public DynamicIndex() | |
{ |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Handlebars Test</title> | |
<style type="text/css"> | |
body | |
{ | |
font-family: Calibri; |
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 Raven.Client.Document; | |
namespace RavenLinqpadDriver | |
{ | |
public interface IConfigureDocumentStore | |
{ | |
/// <summary> | |
/// Completes configuration the DocumentStore. | |
/// </summary> | |
/// <param name="preConfiguredDocStore">A DocumentStore object that has been configured with the values from the connection properties dialog window.</param> |
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
// raven linqpad driver query sample | |
var goats = Query<Goat>().Where(x=> x.Name = "Bernie"); | |
goats.Dump("My Goats"); | |
foreach(var g in goats) | |
g.Name = "Harold"; | |
SaveChanges(); |
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; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Fasterflect; | |
using Raven.Client; | |
using Raven.Client.Connection.Profiling; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; |
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 Boobies : ICreateDocumentStore | |
{ | |
public IDocumentStore CreateDocumentStore(ConnectionInfo ci) | |
{ | |
// hard work here | |
} | |
} |
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 override IEnumerable<string> GetNamespacesToAdd() | |
{ | |
var namespaces = new List<String>(base.GetNamespacesToAdd()); | |
namespaces.AddRange(new[] | |
{ | |
"Raven.Client", | |
"Raven.Client.Document", | |
"Raven.Abstractions.Data", | |
"Raven.Client.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
select * from customers c | |
where c.DateJoined BETWEEN @a AND @b | |
union | |
select c.* from customers c | |
join invites i on i.CustomerId = c.Id |
OlderNewer