oliota / Projeto-MVC

Projeto C# de exemplo utilizando MVC 5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Projeto-MVC

Projeto C# de exemplo utilizando MVC 5

FVCproductions

Configurações do banco de dados

No Sql Server é necessário criar a base de dados, favor executar os script abaixo

Scripts

create database BDProjetoMVC
go

use BDProjetoMVC
go

create table Empresas
(
  Id int primary key identity,
  NomeFantasia varchar(60) not null ,
  UF varchar(2) not null ,
  CNPJ varchar(60) not null 
)
 

create table Fornecedores
(
  Id int primary key identity,
  Empresa int	not null ,
  Nome varchar(60) not null ,
  CpfCnpj varchar(60) not null ,
  DataCadastro datetime not null ,
  RG varchar(60),
  DataNascimento datetime,
  FOREIGN KEY (Empresa) REFERENCES Empresas(Id)
)

create table Telefones
(
  Id int primary key identity,
  Fornecedor int not null ,
  Numero varchar(60) not null 
  FOREIGN KEY (Fornecedor) REFERENCES Fornecedores(Id)
)

No visual studio localize a solution do projeto

No projeto aberto localize o arquivo WebConfig

É necessario alterar o connectionString com as definições da maquina Substituir o "LAPTOP-URIUHHVG\SQLEXPRESS"

<connectionStrings>
  <add name="BDProjetoMVC" connectionString="Data Source=LAPTOP-URIUHHVG\SQLEXPRESS; Initial Catalog=BDProjetoMVC; Integrated Security=True; MultipleActiveResultSets=True;"
    providerName="System.Data.SqlClient" />
</connectionStrings>

Recompile a solução no modo debug

INSERT YOUR GRAPHIC HERE

Execute a solução no modo release

INSERT YOUR GRAPHIC HERE

Layout do sistema

INSERT YOUR GRAPHIC HERE

INSERT YOUR GRAPHIC HERE

INSERT YOUR GRAPHIC HERE

INSERT YOUR GRAPHIC HERE

INSERT YOUR GRAPHIC HERE

About

Projeto C# de exemplo utilizando MVC 5


Languages

Language:CSS 71.1%Language:JavaScript 19.1%Language:C# 5.1%Language:HTML 4.6%Language:ASP 0.0%