I am working with a supplied xsd. I have generated it into a bunch of
data objects. I can manipulate them correctly in code. I am having
trouble getting NH to map them.
The classes are approximately:
partial partial class BaseNameType{ public FirstName; public
LastName; }
public partial class NameOfRecordType : BaseNameType {public
NameOfRecordTypeType Type; }
public partial class StudentPersonalType { public public partial
class StudentPersonalType Name; }
I map it thus:
<property name="Name"
type="AssemblyName.Services.BaseDataObjects.NameOfRecordType,
AssemblyName">
<column name="Type"/>
<column name="LastName"/>
<column name="FirstName"/>
</property>
Now that I am an expert on generating schema from my NH mapping, I am
able to look at what NH thinks it is doing. In this case, it Bombs and
tells me it cannot determine the type of LastName. When I remove the
names, it generates a schema. Especially, it generates the Type
column.
As far as I can figure, this should work. Any thoughts?
tqii
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.