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

2011-10-07 Thread James Gregory
I think you're right. This sounds like a breaking change in NHibernate :( -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/HlBf0FNjauoJ. To post to

[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] Re: Mapping to a backing field with Fluent NHibernate v1.3.0.717

2011-10-04 Thread James Gregory
Try removing your Access call all together. There was a change made around the 1.2 release where FNH would try to auto-detect the access strategy depending on your class design. I'm guessing something isn't quite working right there and it's prepending an extra underscore. -- You received this

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

2011-10-04 Thread Mr Bretticus
Try changing GetAssets() to a read-only property: Assets { get { return _assets; } } -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/hlBxb62HGlQJ