Created
December 5, 2014 17:16
-
-
Save Imater/55559cdae040ed3cbacf to your computer and use it in GitHub Desktop.
save to raven db
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
var tmp = DataDocumentStore.Initialize(); | |
var session = tmp.OpenSession(); | |
for (var i = 0; i <= 10; i++) | |
{ | |
session.Store(new Note | |
{ | |
Title = "Save document1 №"+i | |
}); | |
session.SaveChanges(); | |
} | |
var t = session.Query<Note>().Where(x => x.Title == "Save document1 №10").Take(10100).ToList(); | |
session.Store(NotesFromDb.GetNotesFromDatabase()); | |
session.SaveChanges(); | |
var t2 = session.Query<RavenJObject>().Take(10100).ToList(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment