Thanks Fabio. That was exactly what I was looking for!
<property name="OrderNumber" generated="insert" update="false">
<column name ="OrderNumber" sql-type="int identity" not-
null="true"/>
</property>
On Dec 19, 6:41 am, "Fabio Maulo" <[email protected]> wrote:
> put the <column> as a separate node and then use the sql-type tag.
>
> 2008/12/18 Greg Banister <[email protected]>
>
>
>
>
>
> > I'm wondering if there is a way to get SchemaExport to generate and
> > identity column for a generated property.
>
> > <id name="Id" column="Id" type="Guid">
> > <generator class="guid.comb" />
> > </id>
> > <property name="OrderNumber" column="OrderNumber" type="Int32"
> > generated="insert"/>
>
> > With the mapping above, ShcemaExport does not make the OrderNumber
> > column an Identity column.
>
> > Greg
>
> --
> Fabio Maulo
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---