But generated means "Generated properties are properties which have
their values generated by the database".
But for event Id I need it to be autoincremented in C# code. Changes
in database (like triggers) are not desired.


On Sep 17, 2:11 am, Fabio Maulo <[email protected]> wrote:
> <property .... generated="insert"/>
> <column blah blah sql-type=""/>
>
>
>
>
>
> On Thu, Sep 16, 2010 at 5:48 AM, Yauhen <[email protected]> wrote:
> > Is there any way to use generator for non id column?
> > So for example I have 2 columns:
> > [IdentityColumn] [int] IDENTITY(1,1) NOT NULL,
> > [EventId] [int] NOT NULL,
>
> > first is primary key, second should be auto incremented (<generator
> > class="increment"/>).
> > And most desired it should be done in single transaction. Are there
> > any ways to describe this?
>
> > --
> > 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]<nhusers%[email protected]­>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/nhusers?hl=en.
>
> --
> 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.

Reply via email to