Groups
Groups
Sign in
Groups
Groups
NBear Google Group
Conversations
About
Send feedback
Help
如何设置自增的主键?
5 views
Skip to first unread message
Richardz Richardz
unread,
Dec 5, 2006, 11:02:37 PM
12/5/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NBear Google Group
请问如何在NBear中如何设置自增的主键?
Teddy
unread,
Dec 5, 2006, 11:04:52 PM
12/5/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nbear...@googlegroups.com
如下定义就可以了,定义只读的int或long的主键,将自动映射为自增长字段:
[PrimaryKey]
int ID { get; }
Teddy
On 12/6/06,
Richardz Richardz
<
Richar...@gmail.com
> wrote:
请问如何在NBear中如何设置自增的主键?
Reply all
Reply to author
Forward
0 new messages