private void ProcessPropertyEntityKey(Entity entity, @class newClass, ITable table)
        {
            var keyProperties = entity.Key.Properties;

            bool isSingleColumnPK = keyProperties.Count() == 1;

            if (isSingleColumnPK)
            {
                id newClassId = SetupSingleColumnPrimaryKey(entity);
                newClass.SetId(newClassId);
            }
            else
            {
                compositeid cId = GetCompositeIDWithProperties(table, entity);
                newClass.SetCompositeId(cId);
            }
        }
 private void ProcessEntityKey(Entity entity, @class newClass, ITable table)
 {
     // We do nothing with EntityKeyType.Empty, as there is nothing to do.
     if (entity.Key.KeyType == EntityKeyType.Properties)
         ProcessPropertyEntityKey(entity, newClass, table);
     else if (entity.Key.KeyType == EntityKeyType.Component)
     {
         compositeid cId = GetCompositeIDWithComponent(entity.Key.Component);
         newClass.SetCompositeId(cId);
     }
 }