ãã©ã³ã¶ã¯ã·ã§ã³åé¢ã¬ãã« ï¼ãã©ã³ã¶ã¯ã·ã§ã³ã¶ããã¬ãã«ï¼ã¾ã㯠åé¢ã¬ãã« (è±: Isolation) ã¨ã¯ããã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ä¸ã§ã®ä¸æ¬å¦çï¼ãã©ã³ã¶ã¯ã·ã§ã³ï¼ãè¤æ°åæã«è¡ãããå ´åã«ãã©ãã»ã©ã®ä¸è²«æ§ãæ£ç¢ºæ§ã§å®è¡ãããã4段éã§å®ç¾©ãããã®ã§ãããéé¢ã¬ãã« ã ç¬ç«æ§ã¬ãã«ã¨ãå¼ã°ããããã©ã³ã¶ã¯ã·ã§ã³ãå®ç¾©ã¥ããACIDç¹æ§ã®ãã¡,I(Isolation; åé¢æ§, ç¬ç«æ§)ã«é¢ããæ¦å¿µã§ããã ãã¼ã¿ãã¼ã¹ã¸ã®èªã¿æ¸ãï¼ãã©ã³ã¶ã¯ã·ã§ã³å¦çï¼ã«ã¯å¦çæéãçºçãããè¤æ°ã®ãã©ã³ã¶ã¯ã·ã§ã³å¦çä¾é ¼ããã¼ã¿ãã¼ã¹ç®¡çã·ã¹ãã ã¸è¡ãããã¨ããããããå¦çãã1ã¤ã®æ¹æ³ã¯é次çï¼Serialï¼ã«1ã¤ãã¤ãã©ã³ã¶ã¯ã·ã§ã³ãå¦çããæ¹æ³ã§ããããã©ã³ã¶ã¯ã·ã§ã³å¦çã«å¦çæéãããããã¨ãããå¾ã«è¡ãããå¦çã¯å ã«è¡ãããå¦çãå®äºããã¾ã§ã®éãå¾ ã¡ãã®ç¶æ ã«ãªã£ã¦ãã¾ãã å¾
.NETã¢ããªã±ã¼ã·ã§ã³ã®ã¢ã¼ããã¯ãã£ããã¬ã¼ã ã¯ã¼ã¯ãè¨è¨ã«å½¹ç«ã¤æ å ±ãä¸å¿ã«ç´¹ä»ãã¦ãã¾ããã¾ãæ¥åã·ã¹ãã ã«å½¹ç«ã¡ãããªã¦ã¼ãã£ãªãã£ããã¦ãã¦ããµã³ãã«ã³ã¼ãã¤ãã§å ¬éãã¦ãã¾ããè¨èªã¯C#ã¨VB.NETãæ±ã£ã¦ãã¾ãã å®ç¨çãªæ¥åã·ã¹ãã ã§ããã°ãå®çµããæ¥åå¦çãèå¥ããçºæ³¨IDãäºç´çªå·ãªã©ã®ã¦ãã¼ã¯ãªçªå·ãå¿ è¦ã§ããããã®çªå·ã¯ã·ã¹ãã ã§çºè¡ï¼æ¡çªï¼ããå¿ è¦ããããçªå·ã®çºè¡æ¹æ³ã«ã¯ã次ã®ãããªæ¹æ³ãããã æ¡1ãã°ãã¼ãã«ã¦ãã¼ã¯IDï¼GUIDï¼Globally Unique Identifierï¼ãçºè¡ãã æ¡2ãDBã®ã·ã¼ã±ã³ã¹çªå·ãå©ç¨ãã æ¡3ãããã°ã©ã ã§é£çªãçºè¡ãã æ¡1ã¯.NETã®ã©ã¤ãã©ãªã使ã£ã¦32æ¡ã®çªå·ãèªåã§çºè¡ãã¦ãããæ¹æ³ã§ãããç°¡åã«å®è£ ã§ããã¡ãªãããããããçªå·èªèº«ã«æå³ãæããããã¨ãã§ããªããããçºè¡ãããé åºã種å¥ãããããªã
DBã®ãã¼ã¿åé¤ã«ã¤ãã¦æçµæ´æ°:2010.01.01 ç©çåé¤ã¨è«çåé¤ ç©çåé¤ã¨ã¯ DELETEæã使ç¨ãã¦ãã¼ãã«ãããã¼ã¿ãå®å ¨ã«åé¤ããã㨠è«çåé¤ã¨ã¯ ãã¼ãã«ã«ãåé¤ãã©ã°ããªã©ã®ãã£ã¼ã«ããä½æãã¦ãããåé¤å¦çæã«åé¤ãã©ã°ãç«ã¦ã¦æ¤ç´¢æ¡ä»¶ããå¤ããã¨ã§ä»®æ³çã«ãã¼ã¿ã亡ãè ã¨ãã¦æ±ãã㨠è±èªåã§ã¯Soft Deleteã¨å¼ã°ããããã è«çåé¤ã®ã¡ãªããã»ãã¡ãªãã ã¡ãªãã 誤æä½ã§ãã¼ã¿ãåé¤ãããå ´åã§ãç°¡åã«ãã¼ã¿ã復æ§å¯è½ ãã¡ãªãã æ¤ç´¢æã«WHEREå¥ã«ãã©ã°ã®ç¢ºèªãå¿ è¦ã«ãªãçºãSQLãè¥å¹²è¤éã«ãªã åé¤å¦çãUPDATEæã§è¡ãçºãä½ã¨ãªãç´æã«åããï¼ãã種ã®ã¤ã³ãã¼ãã³ã¹ãã¹ãããï¼ ã¬ã³ã¼ããå¢å ãç¶ããçºãã¼ã¿ãã¼ã¹ã®ã³ã¹ãããã©ã¼ãã³ã¹ãæãªãæãããã åé¤ãã©ã°ãèæ ®ããåãDBè¨è¨ãè¥å¹²è¤éã«ãªã ãã¼ã¿ã«å人æ å ±ãå«ã¾ããå ´å
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}