c# - Automatically insert new record into child table when new record is added to parent table? -


i have 1 many relationship between idealog table , ideastatus table respectively. trying create application using lightswitch , c# allow user enter new idea idealog table. once record created want created in ideastatus table default status of submitted. far haven't been able find information online me this. nudge in right direction appreciated!

in lightswitch server project:

  1. locate data sources.
  2. locate parent table (.lsml) , open it.
  3. up top locate "write code" , click drop down arrow on right.
  4. select appropriate event. e.g. idealog_inserted
  5. insert record ideastatus table using entityframework (or sql, etc)

Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -