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
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
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
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
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
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