Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
如何设置自增的主键?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Richardz Richardz  
View profile   Translate to Translated (View Original)
 More options Dec 5 2006, 11:02 pm
From: "Richardz Richardz" <RichardZ2...@gmail.com>
Date: Wed, 06 Dec 2006 04:02:37 -0000
Local: Tues, Dec 5 2006 11:02 pm
Subject: 如何设置自增的主键?
请问如何在NBear中如何设置自增的主键?

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Teddy  
View profile   Translate to Translated (View Original)
 More options Dec 5 2006, 11:04 pm
From: Teddy <shijie...@gmail.com>
Date: Wed, 6 Dec 2006 12:04:52 +0800
Local: Tues, Dec 5 2006 11:04 pm
Subject: Re: 如何设置自增的主键?

如下定义就可以了,定义只读的int或long的主键,将自动映射为自增长字段:

[PrimaryKey]
int ID { get; }

Teddy

On 12/6/06, Richardz Richardz <RichardZ2...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google