Open in app

Sign In

Write

Sign In

Rose Chang Dycd
Rose Chang Dycd

6 Followers

Home

About

Mar 12, 2022

Create Category

of ASP.NET Core (.Net 6) — 08 Now, we have to add a new Get action method in CategoryController.cs. Because we are not going to pass any data to the View, so the View() just left nothing in it. Then add a new View according to the method. Set up…

Mvc

3 min read

Create Category
Create Category
Mvc

3 min read


Mar 10, 2022

Bootswatch Theme/Bootstrap

of ASP.NET Core (.Net 6) — 07 Go to https://bootswatch.com/ and download the Solar them CSS file. Back to the application → CSS folder → click right-mouse → add a new item → style sheet → add.

Aspnet

3 min read

Bootswatch Theme/Bootstrap
Bootswatch Theme/Bootstrap
Aspnet

3 min read


Mar 9, 2022

All about the Category

of ASP.NET Core (.Net 6) — 06 Add a new controller by pressing right-mouse, add, controller.

Aspnet

4 min read

All about the Category
All about the Category
Aspnet

4 min read


Mar 6, 2022

Database, Entity Framework -3

of ASP.NET Core (.Net 6) — 05 Now the program.cs file has been confident, the next step is to create an actual table in the database. When you are using Entity Framework Core, the first that had migrations that you have to run, using Entity Framework to push the changes…

Aspnetcore

3 min read

Database, Entity Framework -3
Database, Entity Framework -3
Aspnetcore

3 min read


Feb 20, 2022

Database, Entity Framework -2

of ASP.NET Core (.Net 6) — 04 Based on the first article of the Database, Entity Framework -2 of ASP.NET Core (.Net 6), now we need to turn the application to use the DB context, which is defined in the ApplicationDbContext.cs. And then it has to use SQL server by…

Aspnetcore

3 min read

Database, Entity Framework -2
Database, Entity Framework -2
Aspnetcore

3 min read


Feb 20, 2022

Database, Entity Framework -1

of ASP.NET Core (.Net 6) — 03 When we work with any project, the mean beings are the heart of the application are the data. We need a database to store our data. So we will be using an SQL server to create a database and store all the data…

Aspnetcoremvc

5 min read

Database, Entity Framework -1
Database, Entity Framework -1
Aspnetcoremvc

5 min read


Feb 18, 2022

Action Result

of ASP.NET Core (.Net 6) — 02 When you will be working with a .Net core application, you will see the return type of action result. And it does not matter if you are using an MVC application or a Razor page application. In both cases, you can see we…

Aspnetcore

3 min read

Action Result
Action Result
Aspnetcore

3 min read


Feb 17, 2022

About the Tag Helpers

of ASP.NET Core (.Net 6) — 01 Tag helpers are brand new to ASP.NET Core. Microsoft looked at the success around libraries like Angular, React and decided that implementing and Angular directive-like experience in the new ASP.NET was so important to the adoption of .Net …

Aspnetcoremvc

2 min read

About the Tag Helpers
About the Tag Helpers
Aspnetcoremvc

2 min read


Sep 18, 2021

How to run a program on localhost

A Code Newbie’s everyday note. 楔子是因為我要在localhost跑program時,遇到沒有開發憑證,找了很多資料終於試成功,在這邊紀錄一下. Install mkcert (only once) brew install mkcert 2. Add mkcert to your local root CAs. mkcert -install 3. Generate a certificate for your site, signed by mkcert. mkcert localhost 4. run this command dotnet dev-certs https --trust 5. run this command dotnet dev-certs https --help Then you’re done! Reference: https://web.dev/how-to-use-local-https/

Mkcert

1 min read

Mkcert

1 min read

How to run a program on localhost

A Code Newbie’s everyday note.

楔子是因為我要在localhost跑program時,遇到沒有開發憑證,找了很多資料終於試成功,在這邊紀錄一下.

  1. Install mkcert (only once)
brew install mkcert

2. Add mkcert to your local root CAs.

mkcert -install

3. Generate a certificate for your site, signed by mkcert.

mkcert localhost

4. run this command

dotnet dev-certs https --trust

5. run this command

dotnet dev-certs https --help

Then you’re done!

Reference:

  1. https://web.dev/how-to-use-local-https/
  2. https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl?view=aspnetcore-3.1&tabs=visual-studio#troubleshoot-certificate-problems

--

--


Aug 24, 2021

.Net Razor Note

A Code Newbie notes for every day practices. 紮馬步先 1. Razor 中只有 HTML 及 C#兩種元素,二者的結合就形成了 Razor 語法。 2. C#程式區塊(Razor Code Block)是以@{…}包覆, 裡面是一般 C# 程式。 3. Razor Inline 表達式是指「C#變數穿插在 H …

Razor

6 min read

.Net Razor Note
.Net Razor Note
Razor

6 min read

Rose Chang Dycd

Rose Chang Dycd

6 Followers

Code Newbie

Following
  • 電扶梯走左邊 Podcast by Jacky

    電扶梯走左邊 Podcast by Jacky

  • 數據分析那些事

    數據分析那些事

  • Henry Feng

    Henry Feng

  • 朱騏

    朱騏

  • Sunny, Lee

    Sunny, Lee

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech