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 BusinessQuery() | |
{ | |
Map = prods => from prod in prods | |
select new | |
{ | |
Language = prod.Language, | |
Categories = prod.Categories, | |
Areas = prod.Areas, | |
Date = prod.Dates != null ? prod.Dates.Select(x => x.Date).DefaultIfEmpty() : null, | |
Subjects = prod.Subjects, |
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.Linq; | |
using Raven.Abstractions.Indexing; | |
using Raven.Client; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; | |
using Raven.Client.Linq; | |
namespace RavenDBProjectionTest |
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
:: Install choco .exe and add choco to PATH | |
@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" | |
:: Install all the packages | |
:: choose: visual studio, office, .net core, .net, rider tools | |
:::: Dev tools | |
choco install git.install -y | |
choco install gitkraken | |
choco install vscode -y |
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 Raven.Client.Documents.Session.Loaders; | |
namespace LesserKnownFeatures | |
{ | |
public class Company | |
{ | |
public string Id { get; set; } | |
public string ExternalId { get; set; } |
NewerOlder