Relation is not working

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Relation is not working

Post by Zero-G. » Fri 09 Oct 2009 09:40

Hey

I have created a association between two tables. The fields, where CHAR(2) Fields. - (in mySQL they have a Foreign Key)
When I try to explore the LinQ Query, where I have this association, I get the following stacktrace:

Code: Select all

   bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   bei System.Number.ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt)
   bei System.String.System.IConvertible.ToInt64(IFormatProvider provider)
   bei System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   bei System.Convert.ChangeType(Object value, Type conversionType)
   bei Devart.Data.Linq.h.a(Type A_0, Object A_1, Type A_2, Object& A_3)
   bei Devart.Data.Linq.Provider.DefferedEntity`4.a(TKeyQuery A_0)
   bei Devart.Data.Linq.Provider.DeferredSource`2.b()
   bei System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   bei System.Data.Linq.EntityRef`1.get_Entity()

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 13 Oct 2009 11:09

Please check that the types on the ends of the association coincide.
If so, please post here or send us the generated EntityRef property with attributes.

Post Reply