Я экспериментирую с RavenDB, встроенным в мое приложение. Я получаю "Тип" EmbeddableDocumentStore 'не определен " Ошибка. Однако у меня есть ссылка на Raven.Client.Embedded в моем проекте.RavenDB - нужен простой пример с помощью EmbeddableDocumentStore?
Вот мой VB.Net код:
Imports Raven.Client.Client
Imports Raven.Client
Sub Main()
Dim documentStore As EmbeddableDocumentStore = New EmbeddableDocumentStore()
documentStore.DataDirectory = "c:\dbdata"
documentStore.Initialize()
Dim session As Document.DocumentSession = documentStore.OpenSession()
session.Store(New LineItem With {
.draftpostingdate = Nothing,
.forumdate = "#12/1/2010#",
.pfvolume = Nothing,
.pfissue = Nothing,
.change = "change",
.sectiontext = "Revision",
.rs = Nothing,
.revisionid = 51438,
.mononum = "100249",
.webtype = "PCA"
})
session.SaveChanges()
Dim lineItems = session.Query(Of LineItem)()
For Each li As LineItem In lineItems
Console.WriteLine(li.mononum)
Next
End Sub
Отлично, поезд находится на правильном пути. Благодаря! – amgray789
Если это сработало, не забудьте отметить это как ответ: o) – codedog