entity framework

Posted on 2014-08-26
Last Modified: 2014-09-11
The type 'Edm.Int32' of the member 'RepNumber' in the conceptual side type 'Company.B2B.Model.Incentive' does not match with the type 'System.String' of the member 'RepNumber'  on the object side type 'Company.B2B.Model.Incentive'.

I got this error because I recently change one class name 'RepNumber' from int to string on .cs wcf application. No error occur when it is debugged. and I have to make includeExceptionDetailInFaults="true"
to open above error.

The application is using wcf, and entity framework. I just don't know much about that and see any experts can help. Again, the only change we make is datatype from int to string. This error occurs when the service is consumed.
Question by:ITsolutionWizard
    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    I got this error because I recently change one class name 'RepNumber' from int to string If RepNumber is an int why did you change it to string?
    LVL 62

    Accepted Solution

    Hi ITsolutionWizard;

    To your statement, "I got this error because I recently change one class name 'RepNumber' from int to string on .cs wcf application", your database column data type must be of corresponding types in the application. Having a column RepNumber in the database as an int and the class mapping to that same column as a string are a mismatch of the data type. What do you wish to accomplish?

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now