BerkeleyDB cs 中的复合键
我想使用 BerkeleyDB 应用程序构建一个 B 树文件,我的密钥由结构中包含的三个字段组成:
struct Key
{
int PC;
DateTime D;
int Path;
}
问题是如何在 BerkeleyDB 中使用 csharp 编程创建这样的复合密钥。
I want to build a B-tree file using the BerkeleyDB application, my key is composed of three fields which contained in a structure:
struct Key
{
int PC;
DateTime D;
int Path;
}
The question is how to create such composite key by using csharp programming in BerkeleyDB.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不使用 c#,但你必须自己从三把钥匙中制作一把。只需将整个结构写为固定长度的密钥即可。
I don't use c#, but you will have to make one key out of the three yourself. Just write out the entire structure as a fixed length key.