4
Raven DB에서 테스트 데이터 생성의 선호되고 유지 보수 가능한 방법을 찾고 있습니다. 현재 우리 팀은 .NET 코드를 통해이를 수행 할 수있는 방법을 가지고 있습니다. 예제가 제공됩니다.Raven DB에서 테스트 데이터 생성
그러나 다른 옵션을 찾고 있습니다. 공유하십시오.
public void Execute()
{
using (var documentStore = new DocumentStore { ConnectionStringName = "RavenDb" })
{
documentStore.Conventions.DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites;
// Override the default key prefix generation strategy of Pascal case to lower case.
documentStore.Conventions.FindTypeTagName = type => DocumentConvention.DefaultTypeTagName(type).ToLower();
documentStore.Initialize();
InitializeData(documentStore);
}
}
편집 :Raven-overflow 정말 도움이됩니다. 올바른 장소를 지적 해 주셔서 감사합니다.