Page 1 of 1

Relation is not working

Posted: Fri 09 Oct 2009 09:40
by Zero-G.
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()

Posted: Tue 13 Oct 2009 11:09
by AndreyR
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.