entity framework

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.
LVL 1
ITsolutionWizardAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
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?
0
Fernando SotoRetiredCommented:
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?
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.