title: EntityFramework pence to pounds
body: <p>I'm building a WPF application. I made my database using Code-First.</p>
  
  <p>I need to insert prices of items in pence (e.g. 500), but when prices will be displayed they should be in pounds (5,00).</p>
  
  <p>I tried to do the "conversion" in the setter of my property</p>
  
  <pre><code>public decimal Price
  {
     get { return price; }
     set { price = value/100 ;}
  }
  </code></pre>
  
  <p>But, for some reason, when I drop manually the database, the values in my <code>ListView</code> are shown some times like 0,05 and other times like 500,00. Something must be wrong with this method.</p>
  
  <p>How can I tell my database to consider last 2 numbers of my value as decimal?</p>