[fluent-nhib] Re: Mapping to a backing field with Fluent NHibernate v1.3.0.717

2011-10-05 Thread Mr Bretticus
The following works for me in version 1.0, so perhaps as James says the later changes broke it. public class Parent { private readonly IList _children = new List(); public virtual IEnumerable Children { get { return _children; } } } public class ParentMappingOverride : IAutoMappingOverri

[fluent-nhib] Re: Mapping to a backing field with Fluent NHibernate v1.3.0.717

2011-10-05 Thread heads5150
That gives me the error: System.ApplicationException : Error while trying to set property Assets > System.ArgumentException : Property set method not found. -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on th

[fluent-nhib] Re: Mapping to a backing field with Fluent NHibernate v1.3.0.717

2011-10-05 Thread heads5150
Changing the line HasMany(x => x.GetAssets()).Access. CamelCaseField(Prefix.Underscore).ReadOnly().AsBag(); HasMany(x => x.GetAssets()).ReadOnly().AsBag(); Gives me this error: System.ArgumentException : Not a member access Parameter name: expression @James Gregory Exporting the xml create

[fluent-nhib] AutoMap component collection

2011-10-05 Thread Jochen Jonckheere
Hi, I have a few entities that have an Address, in most of the classes they are mapped as component. This done via AutoMapping with: public override bool IsComponent(Type type) { return type == typeof(Address); } But one of my entities now needs a collection of Addresses, Au