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.Reactive.Linq; | |
using System.Reactive.Subjects; | |
using System.Threading.Tasks; | |
namespace ConsoleApp5 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
<h2>Index</h2> | |
<div> | |
Test Url DI :@Url.Action(MVCTest.Dummy) | |
</div> |
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; | |
using Raven.Client.Document; | |
using Raven.Client.Indexes; | |
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; |
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; | |
using Raven.Client.Indexes; | |
using System; | |
using System.Linq; | |
namespace RavenDbTryout.DefaultIfEmpty | |
{ | |
public class IndexDefaultIfEmpty | |
{ | |
public void Run() | |
{ |
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
// The same principle can be applyed to pass Container scope to the Listener and extract events published by entities via change tracking. | |
// Has the nice addition to audit messages and can enable async dispatching | |
// register documentstore on container | |
cb.Register<IDocumentSession>(r => | |
{ | |
var s = r.Resolve<IDocumentStore>().OpenSession(database); | |
s.Advanced.ExternalState["ILifetimeScope"] = r.Resolve<ILifetimeScope>(); |
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
<#@ template debug="false" hostspecific="True" language="C#" #> | |
<#@ assembly name="$(TargetDir)TypeLite.dll" #> | |
<#@ assembly name="$(TargetDir)TypeLite.Net4.dll" #> | |
<#@ assembly name="$(TargetDir)$(TargetFileName)" #> | |
<#@ import namespace="TypeLite" #> | |
<#@ import namespace="TypeLite.Net4" #> | |
<#@ import namespace="TypeLite.TsModels" #> | |
<#@output extension=".d.ts"#> |
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 static class OrmLite_Extensions | |
{ | |
public static void Insert2<T>(this IDbConnection dbConn, params T[] objs) | |
where T : new() | |
{ | |
foreach (var obj in objs) | |
dbConn.Exec(dbCmd => OrmLiteConfig.DialectProvider.CreateParameterizedInsertStatement(obj, dbConn).ExecuteNonQuery() ); | |
} | |
public static void Update2<T>(this IDbConnection dbConn, params T[] objs) |