If you are married or you are in a durable relationship with a British Citizen who has lived and worked in another EU country you could apply for a Family Permit Visa under the EU regulations, in order to guarantee entry to the UK in this category.
You need to show that you are married to a British Citizen and they have lived in another EU Country in order to work, study or live in UK as self sufficient in exercising their free movement rights.
If you apply for a Family Permit, you need to show that you are in a genuine relationship with each other and that your British Partner continuous to be a qualified person in UK.
You would be granted 6 months entry clearance and you can apply for a Residence card upon arriving to the UK.