[ASP.NET] 데이터 베이스 조회, JSON리턴

using System.Data; using System.Data.SqlClient; using Newtonsoft.Json; public class HomeController : Controller { private readonly string _connectionString; public HomeController(IConfiguration configuration) { _connectionString = configuration.GetConnectionString("DefaultConnection"); } public IActionResult Index() { using (SqlConnection…

0 Comments

[ASP.NET] 엔드 포인트 CRUD

VS 에서 엔드포인트 CRUD 로 API 컨트롤러를 생성하면 모델에 생성됨 using Microsoft.AspNetCore.OpenApi; using Microsoft.AspNetCore.Http.HttpResults; namespace CoreMVCProject.Models { public class BookCate { public int idx { get; set; } public string?…

0 Comments

[ASP.NET] Dapper Query 관련

In Dapper, the Query method has various overloads, and it returns IEnumerable. The choice of which method to use depends on your specific needs and preferences. Here are some commonly…

0 Comments

[ASP.NET] Dapper

https://holjjack.tistory.com/80 Dapper는 객체 관계형 매퍼입니다. 응용 프로그램의 .NET 개체를 관계형 데이터베이스에 매핑하거나 그 반대로 매핑합니다. 샘플 코드의 첫 번째 부분은 탄력적 데이터베이스 클라이언트 라이브러리를 Dapper 기반 애플리케이션과 통합하는 방법을 보여줍니다.…

0 Comments

[ASP.NET] 핫 리로드 hot reload

.NET CLI 핫 리로드는 다음 명령을 사용하여 활성화됩니다 dotnet watch. .NET CLI복사 dotnet watch 앱을 강제로 다시 빌드하고 다시 시작하려면 명령 셸에서 키보드 조합 Ctrl+ 를 사용하세요.R 무례한 편집이라고 하는 지원되지 않는 코드 편집이…

0 Comments

ASP.NET 웹 개발 관련

https://www.c-sharpcorner.com/article/single-page-application-using-asp-net-mvc-and-jquery/ https://medium.com/@alfatih.hergun/a-simple-way-to-make-an-spa-web-app-in-asp-net-core-mvc-0976664fae08 https://yaraba.tistory.com/494 http://www.egocube.pe.kr/translation/content/asp-net-web-api/201305270001 https://blog.naver.com/okcharles/222138969070 .net core MVC https://nameybs.tistory.com/22 https://ch-phillip.tistory.com/40 https://learn.microsoft.com/ko-kr/aspnet/core/tutorials/first-web-api?view=aspnetcore-8.0&tabs=visual-studio-code

0 Comments

[MSSQL] ISNULL

https://gent.tistory.com/373 SQL Server에서는 NULL 값을 치환하기 위해서는 ISNULL 함수를 사용한다. 오라클에서 NVL 함수와 MySQL의 IFNULL 함수와 동일한 기능을 수행한다.  오라클의 NVL2와 동일한 함수는 없지만, IIF 함수 또는 CASE 문을 활용하여 비슷한 기능을 수행할 수 있으니 아래의…

0 Comments

[MSSQL] UNION, UNION ALL, 유니온

https://blog.naver.com/diceworld/220148969511  - UNION 문이란?  ​   두개 이상의 쿼리 결과를 하나의 테이블로 합쳐서 표시하는데 이용됩니다.​  - MSSQL UNION 사용방법  ​   [쿼리문1] UNION [쿼리문2]​  - UNION 특징     쿼리문1과 쿼리문2의 컬럼수는 동일해야 한다.   쿼리문1과 쿼리문2의 컬럼타입은 같거나…

0 Comments

[MSSQL] 한글 포함 필드 셀렉트

select idx, m_name, m_id, m_pmobile , case when patindex('%[ㄱ-힇%]', m_pmobile ) > 0 then 'Y' else 'N' end as Hangul_YN FROM member_tbl WHERE case when patindex('%[ㄱ-힇%]', m_pmobile ) > 0…

0 Comments

[JavaScript] ES6 문법

https://hanamon.kr/javascript-es6-%EB%AC%B8%EB%B2%95/ [JavaScript] ES6 문법 알아보기 ES란, ECMAScript의 약자이며 자바스크립트의 표준, 규격을 나타내는 용어이다. 뒤에 숫자는 버전을 뜻하고 ES5는 2009년 ES6는 2015년에 출시되었다. 1. let, const 키워드 블로스코프를 가지고 재선언 불가 재할당 가능한…

0 Comments

End of content

No more pages to load