Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Null Foreign Keys
Message
From
03/08/2015 02:29:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Microsoft SQL Server
Category:
Database design
Environment versions
SQL Server:
SQL Server 2012
Application:
Desktop
Miscellaneous
Thread ID:
01622856
Message ID:
01622890
Views:
32
>Well, the truth is I am trying to get my head around Entity Framework, so I need a database designed the way it "is done", as opposed to, as would say I guess, the way it makes sense :).
>
>I thought I had _the_ application with quintescencial simplicity, and here I am faced with a "complex" relation I doubt I'll be able put down EF's throat.
>
>Ah well. It takes time for an old dog (fox?) to change his ways.

Well if you have the time and patience, you may still do it in the insert trigger of the transaction record. Have a function which creates a PK, call it for transaction and stockitem record, assign as PK and FK into each, then allow save.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform