Fluent Nhibernate AutoMapping Inheritance and Ignoring an Abstract Property?

Fluent Nbernate has an ignore proprty method that you can use in the setup.

Fluent Nbernate has an ignore proprty method that you can use in the setup: . ForTypesThatDeriveFrom(p => p. IgnoreProperty(x => x.

Type)) By the way, we solved this problem by adding a Self property to the base class. This property will always return the correct (non-proxy) type: public virtual Product Self { get { return this; } }.

I have added the self property and this works. And I overrode the product mapping to ignore self. This works because the property is in the product class – sianabanana Jan 28 at 9:17 cant find ForTypesThatDeriveFrom.

When I google it, it looks like this is old syntax? – sianabanana Jan 28 at 9:21 If I do . Override(x => x.

IgnoreProperty(y => y. Type)) This doesn't work. It still complains about the inherited types – sianabanana Jan 28 at 9:22 And if I override them all... It still complains about MySql.Data.MySqlClient.

MySqlException: Unknown column 'this_. Type' in 'field list' It just maps it anyways. But it doesn't exist in the database.

– sianabanana Jan 28 at 9:24 What class has method ForTypesThatDeriveFrom? – Sly Jan 287 at 17:04.

Fluent NHibernate has an ignore proprty method that you can use in the setup.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions