abe545 / CodeOnlyStoredProcedures

A library for easily calling Stored Procedures in .NET using only code (no xml or gui).
MIT License
4 stars 3 forks source link

Composite Keys not supported with AsHierarchical #102

Open JoeSqueo opened 4 years ago

JoeSqueo commented 4 years ago

Getting an exception when reading hierarchical data and that data is using Composite Keys. The error is 'Sequence contains more than one element'. Am I doing something incorrect, or is this just not supported.

Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable1 source) at CodeOnlyStoredProcedure.RowFactory.HierarchicalTypeRowFactory1.GetKeyProperty(Type type, IEnumerable1 props, IEnumerable1 interfaceProperties) at CodeOnlyStoredProcedure.RowFactory.HierarchicalTypeRowFactory`1..cctor()