Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用_docStore.Conventions.IdentityPartsSeparator = "-";了普通的文档 ID,用于在 mvc 中使用它,但是当我使用修订文档 ID 时。我得到带有“/”的ID。有没有办法自定义修订 ID?
_docStore.Conventions.IdentityPartsSeparator = "-";
不,因为约定只是客户端约定。RavenDB 服务器无法知道您已经更改了约定。版本控制包从服务器端触发器运行。