我正在尝试使用.Net驱动程序Neo4j为Neo4jClient实现对象模型。我收到编译错误
此类型在不同的通用实例
'IRelationshipAllowingParticipantNode<Person>'
和'IRelationshipAllowingParticipantNode<Company>'
实现或继承相同的接口。在此版本的F#中不允许这样做。
这是这些接口的实现(来自Neo4jClient源代码)
public interface IRelationshipAllowingParticipantNode<out TNode>
{
}
public interface IRelationshipAllowingSourceNode<out TNode>
: IRelationshipAllowingParticipantNode<TNode>
{
}
public interface IRelationshipAllowingTargetNode<out TNode>
: IRelationshipAllowingParticipantNode<TNode>
{
}
这是我的课程,无法编译
type FollowRelationship(target) =
inherit Relationship(target)
interface IRelationshipAllowingSourceNode<Person>
interface IRelationshipAllowingTargetNode<Company>
override this.RelationshipTypeKey
with get() = "follow"
怎么在这里?我怎样才能避免这个错误?我可以使用F#中的Neo4jClient库吗?