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
var n,i,r;(function(t){function e(n,t){return d.call(n,t)}function l(n,t){var o,s,u,e,h,y,c,b,i,l,p,k,r=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&w.test(n[h])&&(n[h]=n[h].replace(w,"")),n[0].charAt(0)==="."&&r&&(k=r.slice(0,r.length-1),n=k.concat(n)),i=0;i<n.length;i++)if(p=n[i],p===".")n.splice(i,1),i-=1;else if(p==="..")if(i===0||i===1&&n[2]===".."||n[i-1]==="..")continue;else i>0&&(n.splice(i-1,2),i-=2);n=n.join("/")}if((r||v)&&a){for(o=n.split("/"),i=o.length;i>0;i-=1){if(s=o.slice(0,i).join("/"),r)for(l=r.length;l>0;l-=1)if(u=a[r.slice(0,l).join("/")],u&&(u=u[s],u)){e=u;y=i;break}if(e)break;!c&&v&&v[s]&&(c=v[s],b=i)}!e&&c&&(e=c,y=b);e&&(o.splice(0,y,e),n=o.join("/"))}return n}function b(n,i){return function(){var r=g.call(arguments,0);return typeof r[0]!="string"&&r.length===1&&r.push(null),o.apply(t,r.concat([n,i]))}}function nt(n){return function(t){return l(t,n)}}function tt(n){return function(t){u[n]=t}}function a(n){if(e(h,n)){var i=h[n];delete h[n |
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 ReplicationWithTriggers : ReplicationBase | |
{ | |
public class DeleteTrigger : AbstractDeleteTrigger | |
{ | |
public override void OnDelete(string key, TransactionInformation transactionInformation) | |
{ | |
using (Database.DisableAllTriggersForCurrentThread()) | |
{ | |
RavenJObject doc = new RavenJObject(); | |
doc.Add("DocId", RavenJToken.FromObject(key)); |
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.ComponentModel.Composition.Hosting; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text.RegularExpressions; | |
using Lucene.Net.Analysis; | |
using Raven.Client.Indexes; | |
using Raven.Database.Indexing; | |
using Raven.Database.Indexing.Collation; |
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 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 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.Linq; | |
using System.Text; | |
using EPiServer.Core; | |
using EPiServer; | |
using EPiServer.Filters; | |
using EPiServer.Globalization; | |
namespace M2B |
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
param( | |
[parameter(Mandatory=$true)] | |
[string[]] | |
$ravenUrl, | |
[parameter(Mandatory=$true)] | |
[string[]] | |
$backupDir, | |
[parameter(Mandatory=$true)] | |
[string[]] | |
$ravenBackupTool |
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.Linq; | |
using System.Text; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Raven.Client.Document; | |
using Raven.Client.Embedded; | |
using Raven.Client.Linq; | |
using System.Diagnostics; | |
using Raven.Abstractions.Indexing; |