StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Issues
»
Insert with Complex PK including identity field
Insert with Complex PK including identity field
Post Reply
Like
0
Insert with Complex PK including identity field
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Lukasz Kustusz
Lukasz Kustusz
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 29,
Visits: 125
Hello,
I'm running into problems trying to insert a record into a BO which has multi-field PK, where one of the fields is identity.
Initially I was getting the error as in post
http://forum.strataframe.net/Topic26039.aspx
. Problem is that when I set
PrimaryKeyIsUpdable=False
PrimaryKeyIsAutoIncremented=True
I get the following error:
"Cannot create INSERT command because a business object with PrimaryKeyIsAutoIncremented = True must have exactly 1 primary key field."
What else should I try?
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Insert with Complex PK including identity field
Lukasz Kustusz
-
14 Years Ago
OK, never mind. I recreated the key to include only the identity field...
Lukasz Kustusz
-
14 Years Ago
Glad you got is working. There are times when I have both an identity...
Greg McGuffey
-
14 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search