Error using Unsigned long and Fluent mapping

2 posts, 0 answers
  1. Grant Drury-Green
    Grant Drury-Green avatar
    23 posts
    Member since:
    Jul 2009

    Posted 15 Mar 2012 Link to this post

    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

  2. Zoran
    Zoran avatar
    534 posts

    Posted 20 Mar 2012 Link to this post

    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.

    the Telerik team
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
Back to Top