1
내 응용 프로그램에 포함 된 RavenDB를 실험하고 있습니다. "형식 'EmbeddableDocumentStore'이 정의되지 않았습니다." 오류가 발생했습니다. 그러나, 내 프로젝트에는 Raven.Client.Exmbedded에 대한 참조가 있습니다. 내가 잘못된 프레임 워크를 대상으로 할 때 전에 비슷한 문제가 있었다RavenDB - EmbeddableDocumentStore를 사용하는 간단한 예제가 필요합니까?
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