Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null Foreign Keys
Message
De
03/08/2015 02:29:21
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Desktop
Divers
Thread ID:
01622856
Message ID:
01622890
Vues:
31
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform