[nhusers] Re: Calling parent properties from inherited constructors

2009-08-26 Thread Seth Goldstein
Does anyone have any ideas on this one? We are completely stumped over here. On Aug 25, 12:00 pm, Seth Goldstein seth.d.goldst...@gmail.com wrote: I'm working on a simple project to reproduce the problem.  It won't quite compile because of various other little bits and pieces I don't have,

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-26 Thread Seth Goldstein
For what it's worth, I tried it in both 2.0.1 and 2.1.0 and both threw the same exception. It still works ok with 1.2.0. On Aug 26, 8:18 am, Seth Goldstein seth.d.goldst...@gmail.com wrote: Does anyone have any ideas on this one?  We are completely stumped over here. On Aug 25, 12:00 pm,

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-25 Thread Seth Goldstein
I'm working on a simple project to reproduce the problem. It won't quite compile because of various other little bits and pieces I don't have, but it should hopefully give you an idea of what we are dealing with. First, the unit test that reproduces the problem: http://pastebin.com/m21cc83c1

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread Seth Goldstein
The code is essentially: class ParentClass { private int _myProperty; ParentClass() { } public virtual int MyProperty() { get; set; } } class ChildClass : ParentClass { ChildClass() { int myPropertyValue = base.MyProperty() } } With mapping files similar to:

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread Stefan Steinegger
How does the line of code exactly look like, where the null reference exception occurs? And where is this line of code? On 24 Aug., 16:03, Seth Goldstein seth.d.goldst...@gmail.com wrote: The code is essentially: class ParentClass {   private int _myProperty;   ParentClass()   {   }  

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread Seth Goldstein
Sorry about the confusion. It is not an autoproperty. I was just trying to keep my sample code small. It is a full fledged property with a getter setter. On Aug 24, 9:39 am, José Romaniello jfromanie...@gmail.com wrote: MyProperty on ParentClass is an autoproperty? 2009/8/24 Seth

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread José Romaniello
MyProperty on ParentClass is an autoproperty? 2009/8/24 Seth Goldstein seth.d.goldst...@gmail.com field.camelcase-underscore --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups nhusers group. To post to this group,

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread Seth Goldstein
The null reference exception is on this line: // oops, this should have been this instead of base, don't think it matters // int myPropertyValue = this.MyProperty() In the constructor, this is actually a proxy to ChildClass and not an actual instance of ChildClass. And when I try to reference

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-24 Thread Fabio Maulo
2009/8/24 Stefan Steinegger stefan.steineg...@bluewin.ch How does the line of code exactly look like, where the null reference exception occurs? And where is this line of code? to not say... please send real code or, at least, valid code. (the code above does not compile) -- Fabio Maulo

[nhusers] Re: Calling parent properties from inherited constructors

2009-08-23 Thread Fabio Maulo
the code please 2009/8/21 Seth Goldstein seth.d.goldst...@gmail.com We have run into a problem with the latest version of NHibernate that has us totally stumped. We have an inherited table schema using joined-subclasses in the mapping file. And the business layer matches this schema. In