mvc vs razor pages

core mvc์™€ razor pages ์˜ ์žฅ๋‹จ์ ๊ณผ ์–ด๋Š ๊ฒƒ์„ ๋” ๋งŽ์ด ์‚ฌ์šฉํ•˜๋Š”์ง€ ๊ถ๊ธˆํ•ด์š”.

์ข‹์•„์š” 1

asp.net mvc๊ฐ€ ์˜ค๋ž˜๋˜์—ˆ์œผ๋ฏ€๋กœ core๋„ mvc๊ฐ€ ๋งŽ์Šต๋‹ˆ๋‹ค.
๊ธฐ์กด ์›นํผ ๋ฐฉ์‹์œผ๋กœ ๊ตฌํ˜„๋œ ๊ณณ์„ .net core๋กœ ์˜ฎ๊ธด๋‹ค๋ฉด razor pages๊ฐ€ ํŽธํ• ๊ฒ๋‹ˆ๋‹ค.
mvc๋Š” ๋‹ค๋ฅธ ์–ธ์–ด์—๋„ ๋งŽ์ด ๊ตฌํ˜„๋˜์–ด ์žˆ์œผ๋ฏ€๋กœ java, php ๋ผ๋ผ๋ฒจ ๋“ฑ๋“ฑโ€ฆ ๋Œ€์„ธ์ž…๋‹ˆ๋‹ค.
mvc๋Š” ํ˜‘์—…์— ์ข‹๊ตฌ์š”.

์•„๋ž˜๋งํฌ๋ฅผ ์ฐธ์กฐํ•ด๋ณด์„ธ์š”.
https://www.ifourtechnolab.com/blog/razor-pages-vs-mvc-in-asp-net

razor pages๋Š” ์›นํผ์˜ .net core๋ฒ„์ „ ๊ฐ™์€ ๋Š๋‚Œ์ด ์žˆ์Šต๋‹ˆ๋‹ค.
์ œ ๊ฐœ์ธ์ ์œผ๋กœ๋Š” razor pages๋กœ ์ž‘์—…ํ•ฉ๋‹ˆ๋‹ค.

์ข‹์•„์š” 2

์ด ์›น์‚ฌ์ดํŠธ๊ฐ€ ๋ณด๊ธฐํŽธํ–ˆ์Šต๋‹ˆ๋‹ค. razor pages์ž…๋ฌธํ• ๋•Œ~
https://www.learnrazorpages.com/

๊ทธ๋ฆฌ๊ณ , razor pages๋กœ ์ž‘์—…ํ•˜๋ฉด ๊ฒฐ๊ตญ ํ”„๋ŸฐํŠธ๋Š” ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋ฅผ ์จ์•ผํ•˜๋Š”๋ฐ vue๋‚˜ svelte๊ฐ€ ์ข‹์„ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. vue๋งŒ ๊ฐ„๋‹จํžˆ ์จ๋ดค์Šต๋‹ˆ๋‹ค.

๊ทธ๋ฆฌ๊ณ , ๊ฐœ์ธ์ ์œผ๋กœ unobtrusive-ajax๋ฅผ ๋งŽ์ด ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
unobtrusive validation๋„ ์“ฐ๊ตฌ์š”. pagemodel์—์„œ binding๋œ property์˜ data annotation์„ ํด๋ผ์ด์–ธํŠธ์— ์ ์šฉํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ผ์ผ์ด ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ์ฒ˜๋ฆฌํ•  ํ•„์š”๊ฐ€ ์—†์–ด์ ธ ํŽธํ•ฉ๋‹ˆ๋‹ค.

remote validation๋„ ์ตœ๊ทผ ์ด์šฉ์ค‘์ž…๋‹ˆ๋‹ค.~

https://www.learnrazorpages.com/razor-pages/ajax/unobtrusive-ajax

https://www.learnrazorpages.com/razor-pages/ajax/partial-update

https://www.learnrazorpages.com/razor-pages/validation/remote-validation

์ข‹์•„์š” 4

@_jeonghwan ์™€โ€ฆ ์—ฌ๊ธฐ๋Š” ์ •๋ง ์–ด๋งˆ์–ด๋งˆํ•œ ์‚ฌ์ดํŠธ๋„ค์š”โ€ฆ
๊ฐ€๋ญ„์— ๋‹จ๋น„๊ฐ™์€ ์ •๋ณด ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค.

์ข‹์•„์š” 2