Association to Inheritance Error (The argument 'rowType' was the wrong value. )

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
jgoodlet
Posts: 2
Joined: Wed 08 Jun 2016 06:43

Association to Inheritance Error (The argument 'rowType' was the wrong value. )

Post by jgoodlet » Mon 01 Aug 2016 02:47

In Entity Developer i have a 1 to 1 Association to a TPH inherited class. The Linqconnect template generates fine but at runtime i encounter the error. The argument 'rowType' was the wrong value.
An association to the base class seems fine. I can't seem to find any information on what is causing the issue. Any help would be appreciated.

This is the error output
The argument 'rowType' was the wrong value.

at Devart.Data.Linq.Engine.de.a(MetaType A_0, ITable A_1, IList`1 A_2)
at Devart.Data.Linq.Engine.bf.a.a(ak A_0, SqlSelect A_1, SqlSelect& A_2, MetaDataMember& A_3)
at Devart.Data.Linq.Engine.bf.a.a(SqlSelect A_0)
at Devart.Data.Linq.Engine.SqlVisitor.a(ba A_0)
at Devart.Data.Linq.Engine.bf.a(SqlNode A_0, de A_1, TypeSystemProvider A_2, SqlFactory A_3, DataSourceInfo A_4, IDataServices A_5, Boolean& A_6)
at Devart.Data.Linq.Engine.dk.a(SqlNode A_0, ai& A_1)
at Devart.Data.Linq.Engine.dk.d(Expression A_0)
at Devart.Data.Linq.Engine.dk.f(Expression A_0)
at Devart.Data.Linq.Engine.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
at Shopfloor.Data.Resource.get_view() in c:\development\Projects\ShopFloor.Core\ShopFloor.Core\Models\ShopfloorSupport.cs:line 2327
at Shopfloor.Data.Resource.get_status() in c:\development\Projects\ShopFloor.Core\ShopFloor.Core\Models\ShopfloorSupport.cs:line 1965
at Shopfloor.Data.Resource.get_message() in c:\development\Projects\ShopFloor.Core\ShopFloor.Core\Models\ShopfloorSupport.cs:line 2158
at Shopfloor.Core.Controllers.BaseController.OnActionExecuting(ActionExecutingContext filterContext) in c:\development\Projects\ShopFloor.Core\ShopFloor.Core\Controllers\BaseController.cs:line 162
at System.Web.Mvc.Async.AsyncControllerActionInvoker.InvokeActionMethodFilterAsynchronously(IActionFilter filter, ActionExecutingContext preContext, Func`1 nextInChain)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass37.<BeginInvokeActionMethodWithFilters>b__31(AsyncCallback asyncCallback, Object asyncState)
at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`1.Begin(AsyncCallback callback, Object state, Int32 timeout)
at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate`1 endDelegate, Object tag, Int32 timeout)
at System.Web.Mvc.Async.AsyncResultWrapper.Begin[TResult](AsyncCallback callback, Object state, BeginInvokeDelegate beginDelegate, EndInvokeDelegate`1 endDelegate, Object tag)
at System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass25.<BeginInvokeAction>b__1e(AsyncCallback asyncCallback, Object asyncState)

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Association to Inheritance Error (The argument 'rowType' was the wrong value. )

Post by Shalex » Mon 01 Aug 2016 13:26

Please send us a small test project with the corresponding DDL/DML script for reproducing. In case of >2MB attachment, we recommend either using some file exchange server (send us the corresponding link) or uploading a test project to our FTP server (the credentials will be provided by email request).

Post Reply