https://github.com/miguelhp373/crud_livraria_aspnet
:book: Crud desenvolvido em Asp.net MVC para a disciplina de Programação Web da ETECVAV
https://github.com/miguelhp373/crud_livraria_aspnet
asp asp-net-mvc crud csharp etec razor visual-studio
Last synced: 3 months ago
JSON representation
:book: Crud desenvolvido em Asp.net MVC para a disciplina de Programação Web da ETECVAV
- Host: GitHub
- URL: https://github.com/miguelhp373/crud_livraria_aspnet
- Owner: miguelhp373
- License: mit
- Created: 2021-09-22T22:53:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-25T17:21:18.000Z (over 3 years ago)
- Last Synced: 2025-01-15T12:14:39.464Z (4 months ago)
- Topics: asp, asp-net-mvc, crud, csharp, etec, razor, visual-studio
- Language: C#
- Homepage:
- Size: 16.7 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebSite Livraria com Asp.Net Core MVC
Miguel Henrique Pereira 3M - PW3 - Professor Madureira - ETECVAV
25/09/2021
---
## Home

## Lista de Livros

## Editar Livros
![Untitled].github/Untitled%202.png)
## Detalhes

## Apagar

## Privacidade

---
## Código Fonte:
_Layout.cshtml
```html
@ViewData["Title"]
.navbar-brand {
font-size: 24px !important;
}.menu-left-nav > li > a {
text-decoration: none !important;
color: #ffff !important;
font-size: 20px !important;
transition: 0.2s;
}.menu-left-nav > li > a:hover {
filter: brightness(50%);
}
@RenderBody()
@await RenderSectionAsync("Scripts", required: false)```
index.cshtml
```html
@ViewData["Title"]
.navbar-brand {
font-size: 24px !important;
}.menu-left-nav > li > a {
text-decoration: none !important;
color: #ffff !important;
font-size: 20px !important;
transition: 0.2s;
}.menu-left-nav > li > a:hover {
filter: brightness(50%);
}
@RenderBody()
@await RenderSectionAsync("Scripts", required: false)```
models/Livro.cs
```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;namespace Project_Crud.Models
{
public class Livro
{
[Key]//anotação para identificar a chave primária
public int Id_Livro { get; set; }
[Required]
public string Titulo { get; set; }
[Required]
public string Editora { get; set; }
public int Isbn { get; set; }
public int Ano { get; set; }
[Required]
public string Autor { get; set; }
public double Preco { get; set; }
public string Categoria { get; set; }
}
}
```