title: How to store int with leading Zero in Database with EntityFramework?
body: <p>I have integer a with <code>"10115"</code> and I able to convert that into string using below code.</p>
  
  <pre><code>int a = 10115;    
  string sixd = a.ToString("D6");
  </code></pre>
  
  <p>and using this code I able to convert <code>10115</code> into <code>010115</code>.</p>
  
  <p>but when I convert <code>010115</code> into integer using below code but that always convert into <code>10115</code> so any trick to convert that into <code>010115</code> in <code>int</code>.</p>
  
  <pre><code>int b = Convert.ToInt32(010115); 
  </code></pre>
  
  <p>so any trick to store <code>010115</code> into integer ? and same in  <code>"010115"</code> format not in 10115 if any one have idea so please help me.</p>
  
  <p>And also I want to store same value in database <code>"010115"</code> in column where type is integer. </p>