C# Class SchoolsNearMe.Models.RavenDbDumper

显示文件 Open project: MrKevHunter/SchoolsNearMe Class Usage Examples

Public Methods

Method Description
Export ( string file ) : void
Import ( string file ) : DumperStats
RavenDbDumper ( EmbeddableDocumentStore store ) : System

Private Methods

Method Description
FlushBatch ( List batch ) : void
GetAttachments ( int start ) : RavenJArray
Read ( Raven.Imports.Newtonsoft.Json.JsonReader jsonReader, string arrayName, Action process ) : void
StreamToBytes ( Stream input ) : byte[]

http://stackoverflow.com/a/221941/2608

WriteItemsFromDb ( Raven.Imports.Newtonsoft.Json.JsonWriter jsonWriter, string name, RavenJArray>.Func getBatchOfItems ) : void

Method Details

Export() public method

public Export ( string file ) : void
file string
return void

Import() public method

public Import ( string file ) : DumperStats
file string
return DumperStats

RavenDbDumper() public method

public RavenDbDumper ( EmbeddableDocumentStore store ) : System
store Raven.Client.Embedded.EmbeddableDocumentStore
return System