Generate both collection and property
Posted: Wed 24 Sep 2014 07:35
Using NHibernate template, Entity Developer 5.7.441
Is it possible to generate both the collection and the property for a foreign key relationship. For example our Manager table has a foreign key to the Office table, when I generate I get a 'public virtual Office Office' but do not get the OfficeCode property.
I realize this may be non-standard but I'd like both if possible (and even better if I could specify that the property was able to be generated as readonly).
Thank you for your help
Is it possible to generate both the collection and the property for a foreign key relationship. For example our Manager table has a foreign key to the Office table, when I generate I get a 'public virtual Office Office' but do not get the OfficeCode property.
I realize this may be non-standard but I'd like both if possible (and even better if I could specify that the property was able to be generated as readonly).
Thank you for your help
