Example #1
0
void Player::SetupFields()
{
	AddField( "id", &Player::Id, true, true, true );
	AddField( "name", &Player::Name );
	AddField( "description", &Player::Description, new DbText() );
	SetPrimaryKey( &Player::Id );
}
neTKVMRegAccess::neTKVMRegAccess(HKEY hNewPrKey, LPCTSTR lpzNewRegPath)
	: m_lpsRegPath(NULL), m_hkPrimaryHKey(0)
{
	SetPrimaryKey(hNewPrKey);
	if (SetRegPath(lpzNewRegPath) == FALSE)
	{
		throw neTKVMRegAccessConstructorFailedException();
	}
}
Example #3
0
void Character::SetupFields()
{
	AddField( "id", &Character::Id, true, true, true );
	AddField( "name", &Character::Name );
	SetPrimaryKey( &Character::Id );
}