Ask a questionAsk a question
 

AnswerProblems with decimal property

  • Thursday, November 05, 2009 12:24 AMAnil Mujagic Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi,

    I have a really simple piece of code where I create new entity, set it's basic properties, add it to the context and call SaveChanges(). 

    Everything works fine until I add additional line where I assign a value to the decimal type property (which is defined as a decimal(38, 30) column in database (SQL Server 2005)).

    SaveChanges method gives me an error "Conversion overflows."

    Anyone knows what could be the problem?
    • Edited byAnil Mujagic Friday, November 06, 2009 7:49 PMit's decimal(38, 30) not (9, 2)
    •  

Answers

All Replies