Exemple #1
0
 void IDbRecord.SetIdentity(long identity)
 {
     if (m_IdentityColumn.Value != null && m_IsIdentity32.HasValue)
     {
         if (m_IsIdentity32.Value)
         {
             m_Accessor.SetPropertyValue(m_Instance, m_IdentityColumn.Key, (int)identity);
         }
         else
         {
             m_Accessor.SetPropertyValue(m_Instance, m_IdentityColumn.Key, identity);
         }
     }
 }