Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Support SQL Server HierarchyId data type

$
0
0
Hi zgabi,

thank you for fast reply. I have sent you the download link via PM.

This is step by step, what i do (VS 2013):
  1. New project - ASP.NET Web Application - MVC
  2. Models - Add - ADO.NET Entity Data Model "HidTestModel" - Generate from database
    (hierarchyId is ignored by generator - OK)
  3. PM> Install-Package EntityFrameworkWithHierarchyId -Pre
  4. Manually add hierarchyId field to Category.cs
  5. Add the query to HomeController.cs
  6. Run project - it throws System.NotSupportedException exception.

And second issue:
  1. It seems that there is some collision between Microsoft.AspNet.Identity.EntityFramework and EntityFrameworkWithHierarchyId.
    File: Models - IdentityModels.cs
    ApplicationDbContext - throws EntityFramework assembly not referenced error during compilation
    When EntityFrameworkWithHierarchyId is uninstalled it works fine.

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>