This is a migrated thread and some comments may be shown as answers.

Error using Unsigned long and Fluent mapping

1 Answer 58 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Grant Drury-Green
Top achievements
Rank 1
Grant Drury-Green asked on 16 Mar 2012, 01:06 AM
Hi there,

Not sure if this is my issue, or a bug.

I'm working with an existing MySQL database, which has a table with a table with an unsigned BIGINT primary key.

When I set the model mapping type to "Fluent" is get the following error in the generated code:

Error   4   The call is ambiguous between the following methods or properties: 'Telerik.OpenAccess.Metadata.Fluent.MappingConfiguration<bc.CDS.Model.PlayerPackage>.HasProperty(System.Linq.Expressions.Expression<System.Func<bc.CDS.Model.PlayerPackage,decimal?>>)' and 'Telerik.OpenAccess.Metadata.Fluent.MappingConfiguration<bc.CDS.Model.PlayerPackage>.HasProperty(System.Linq.Expressions.Expression<System.Func<bc.CDS.Model.PlayerPackage,float>>)' C:\DEV\Clients\MoodMedia\ContentDeliverySystem\bc.CDS\bc.CDS.Model\EntitiesFluentMetadataSource.cs  102 4   bc.CDS.Model

For the mean time I'm reverting to Xml Mapping

1 Answer, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 20 Mar 2012, 05:59 PM
Hello Grant,

 At the moment there is no overload for the HasProperty method  that takes the ulong type as an argument. There is a workaround for this kind of configurations, however it can not be applied in the case where the code is auto-generated. We did log this as a bug in our backlog and we will have it fixed for our next internal release. In the meantime you already found the best way to workaround the problem by  using the XML mapping source.

Regards,
Zoran
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
Tags
General Discussions
Asked by
Grant Drury-Green
Top achievements
Rank 1
Answers by
Zoran
Telerik team
Share this question
or