Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Need examples for Entityframework.HierarchyId

I found EF.HierarchyId on NuGet. Looks like EF6.1.1 supports it now?

Wondering if there are any documentation I can see about how to use it. For example:

-does it work with edmx? may it import models with hierarchyId column?

-some linq examples? what commands are supported?

Thank you.

like image 951
Tom Avatar asked Dec 20 '22 12:12

Tom


1 Answers

From version 6.1.3-alpha1 you can add multiple entities, no more ArgumentException "At least one object must implement IComparable." (This is the same as version 6.1.2, only contains the fix for this problem) But I can't reproduce the "And finding by key is not working." problem.

If you want to create the model from database you need to install a custom version of EntityFramework Tools. The source code is on CodePlex: https://entityframework.codeplex.com/SourceControl/network/forks/zgabi/EfHierarchyId Edmx should work, if you find any problem, please report it to zavarkog(X)gmail.com

like image 127
zgabi Avatar answered Feb 08 '23 06:02

zgabi