Blazor Typscript Entity ๋ณ€ํ™˜

์ตœ๊ทผ Blazor ํ† ์ด ํ”„๋กœ์ ํŠธ๋ฅผ ์‹œ์ž‘ํ•˜๋ฉด์„œ Typescript๋ฅผ ์ฒ˜์Œ ๋„์ž…ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.

ํ‰์†Œ ํŒจํ„ด๋Œ€๋กœ Entityframework core์—์„œ code-first ๋ฐฉ์‹์œผ๋กœ entity (entity class)๋ฅผ ์ •์˜ ํ•œ ๋‹ค์Œ ์ด๋ฅผ automapper๋ฅผ ์ด์šฉํ•ด Model class๋กœ ๋ฉ”ํ•‘ํ•˜๋Š” ๊ณผ์ •๊นŒ์ง€๋Š” ๋ณ„ ๋ฌธ์ œ๊ฐ€ ์—†์—ˆ์œผ๋‚˜ ์ด entity class๋ฅผ app.d.ts์— ํƒ€์ž…์Šคํฌ๋ฆฝํŠธ class๋กœ ๋ฉ”ํ•‘ํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์„ ์ˆ˜ ์—†์–ด ์งˆ๋ฌธ๋“œ๋ฆฝ๋‹ˆ๋‹ค.
๋ถ„๋ช… ์ด ์ •๋„ ์ž‘์—…๋Ÿ‰์ด๋ฉด ์—…๊ณ„์—์„œ ์ผ๋ฐ˜์ ์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ํ‘œ์ค€์ด ์žˆ์„๊ฑฐ ๊ฐ™์€๋ฐ ์—ด์‹ฌํžˆ ๊ฒ€์ƒ‰์„ํ•ด๋„ ๋‹ต์„ ์ฐพ์„์ˆ˜๊ฐ€ ์—†๋„ค์š”. :disappointed_relieved:

1 Like