.NET Interactive with SQL!| .NET Notebooks in Visual Studio Code

.NET Interactive with SQL!| .NET Notebooks in Visual Studio Code

efcore를 통한 linq2sql작업 가능합니다.

image

https://devblogs.microsoft.com/dotnet/net-interactive-with-sql-net-notebooks-in-visual-studio-code/

4개의 좋아요

기존에 .NET Interactive 쓰고 있었는데 이제 EF Core까지 가능하군요!

1개의 좋아요

글을 올린뒤 테스트해보니 identity 패키지 관련 오류가 있어서 efcore context 생성 작업이 안되어 이슈등록을 했더니 2달반만에 패치가 되었단 내용을 받았습니다. 고마울따름입니다. 간단한 DB작업을 쉽게 할수 있게 되어 기쁘네요~~

#i "nuget:https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json"
#r "nuget:Microsoft.DotNet.Interactive.SqlServer,*-*"
#!connect mssql --create-dbcontext --kernel-name RazorPagesEF "Persist Security Info=False; Integrated Security=false; Initial Catalog=RazorPages-CRUD; Server=****; User Id=***; Password=***;"
RazorPagesEF.Products.Where(p => p.Id == 7).FirstOrDefault().Display();
RazorPagesEF.Products.Display();
#!sql-RazorPagesEF

select * from Product

간단한 테스트내용을 캡쳐 하여


올립니다.

3개의 좋아요

굿굿입니다! ^^

2개의 좋아요