DotNet4Neo4j / Neo4j.AspNet.Identity

Custom ASP.NET Identity provider for the Neo4j Graph Database
MIT License
23 stars 17 forks source link

Roles #6

Closed bashanam closed 9 years ago

bashanam commented 9 years ago

Why didn't you use the network power to connect users the the same "role" node ?

cskardon commented 9 years ago

I can't say why it wasn't originally other than the fact that Neo4jClient serializes IEnumerable elements auto-magically, and so it didn't need to be done.

However, the most recent version of the code (not in Nuget, but checked in) does implement Roles in this way.

(u:User)-[:IN_ROLE]->(r:Role)

Where role simply has 'Name' as a property.