목록
반응형
.Net 교육 (
반응형
7)
개발꿈나무

Blazor WebAssembly Project Blazor WebAssembly project 생성 Pages - Test.razor 파일 생성 @page "/test" @display @display @*@code { string display = $"..{1+2}...Test, URI(uniform), resource(content), identifier(HTTP)"; }*@ Pages - Test.razor.cs 파일 생성 - Test.razor 파일은 front, Test.razor.cs 파일은 back -> 실질적 코딩은 Test.razor.cs에서 namespace BlazorApp3.Pages; public partial class Test { string display = $"..{1 +..

깍두기의 하루,, Blazor Hosting mode 1. Server 2. Web Assembly ------ Server Hosting: Blazor Server Project 생성 Model coding: Data - WeatherForecast.cs 파일 수정 namespace DemoServer1.Data; public class WeatherForecast { public DateTime Date { get; set; } public int TemperatureC { get; set; } public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); public string? Summary { get; set; } } // Modet -> DTO..

.Net 6.0 ->add Scaffole에서 ERROR: design 부분이 누락되었기 때문 Solution ==> Defendencies - NuGet Package Manager - 'Microsoft.EntityFrameworkCore.Design' Install HTML4 vs HTML5 - Cookie를 쓰느냐 안 쓰느냐(4: 쿠키 사용, 5: 쿠키 사용X) ----- ASP.NET Core Web API 1. Create Console Project 2. Create Web-Server Project in Solution(Console 프로젝트 위에 utility를 올림): DB를 하지만 UI를 뺐다고 생각 - ASP.NET Core Wep API 3. Person.cs 파일 생성 globa..
C# Lab SharpLab Code [connection lost, reconnecting…] sharplab.io data => primitive(integer: calculation) / non-primitive(string/struct/class/record) - Primitive(mutable): 계산 가능한 변수 (ex. integer) - Non-Primitive(immutable): 계산 불가능한 변수 (ex.string) Type: ValueType(primitive) / Reference(non-primitive) ----- Immutable object string strS = "Hello, World!"; // S: group object라는 의미 char ch = strS[0]; ..
반복문 //String group object //string strS = "Hello, World!"; //String - interpolation string strS = $"Hello, World! {1} {2}"; WriteLine(strS); // loof statement_CPU Service for(int i = 0; i < strS.Length; i++) { Write(strS[i]); } WriteLine(); int idx = 0; while (idx < strS.Length) { Write(strS[idx++]); } WriteLine(); // iterator statement_Collection(group object) Service // foreach: C# keyword(not..

1. Web Application - MVC 프로젝트 생성 2. Model - person class(Person.cs) 생성 using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace webapplication1.Models { // POCO class(Plain Old CLR Object) [java에서는 POJO] // networkStream 방식1. json packet(C/S 방식) 2. service packet(일반적인 방법, Front-end/Back-end 방식) // NetworkStream에 service packet으로 보내기 위해 POCO class..

.Net 6.0 download Download .NET 6.0 (Linux, macOS, and Windows) .NET 6.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications. dotnet.microsoft.com using System; using static System.Console; Person person = new(); //WriteLine(person.Age = 20} //mutable일 때 age 값 변경 WriteLine(person = person with {..