Scenerio:
I have a folder table with hierarchical records. The ID of the row is of type GUID. A ParentID on the tables stores the parent folder ID:
- ID (Guid)
- FolderName (varchar)
- ParentID (Guid)
Question:
What is the best practice for inserting a top-level folder? Should I make the parentID column null, or create a "top level" record (ID = Guid.Empty) and use that ID for top-level folders?