Skip to content

A Diary project made with ASP.Net core and razor view.

Notifications You must be signed in to change notification settings

befkir/Diary-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

.Net CLI Usage

Purpose Command
To Create gitignore file dotnet new gitignore
To add diary migration add-migration CreateDiaryEntryTable
To comit migrations to database update-database
To seed diary migration add-migration seedingDiary
To comit migrations to database update-database

Bootstrap Using BootsWatch

  • Bootstrap URL
  • Override the default bootstrap/dist/css/bootstrap.css content with the newly downloaded bootstrap.css
  • Replace "bootstrap.min.css" with "bootstrap.css" on Views/Shared/_Layout.cshtml

Client Side Validation

  1. Add @section Scripts{<partial name="_ValidationScriptsPartial"/>} to the html
  2. Add <span asp-validation-for="Title" class="text-danger"></span> to the form group
  3. To show specific error message add anotation ErrorMessage inside parenthesis [Required(ErrorMessage ="Please enter a title!")] in the model

About

A Diary project made with ASP.Net core and razor view.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published