Posts by Diogo Teixeira • 79 points
7 posts
-
6
votes2
answers140
viewsQ: How do I access getters and sub-class setters?
In this application we have the class Automóvel: public class Automovel { private String marca; private String matricula; private String anoConstrucao; private Motor motor; private int preco = 0;…
-
-1
votes1
answer92
viewsQ: I’m trying to customize my bootstrap template but there are no changes to the page
I’m in visual studio working on ASP.NET-MVC and I have a bootstrap template for my website. I wanted to add a blurred background image to my login page. I put this code in the css file: bg.wallpaper…
-
1
votes1
answer29
viewsQ: How to store records in tables when they have Foreign Keys?
My database has 6 tables: --Movies table MovieID int PK, MovieName varchar(50) MovieDescription text, MovieCategory varchar(50), MovieYear varchar(4), ParticipationID) --Series table SeriesData (…
-
0
votes1
answer28
viewsQ: I am doing a search system in my movie view and gave an error regarding the Web request
(I decided to make another post, as advice of another user) In my Movies view there is a list of all the movies you have in the database and I added um botão, uma caixa de texto e 2 radio…
-
-2
votes2
answers65
viewsQ: I’m trying to do a research boot on my view, but tell me it can’t be null
I’m trying to make a search button on mine view of films, but gives me a mistake to say that I can’t have a zero value. Why? And what do I have to do? Controller: public ActionResult Index(string…
-
0
votes2
answers228
viewsQ: Can I create a Foreign Key between 3 tables?
I have 3 main tables in my database: Actors, Moviesdata and Seriesdata. Each film and each series has its own actors, but series and films can share the same actor. How do I create a key Foreign…
sqlasked Diogo Teixeira 79 -
-1
votes1
answer33
viewsQ: I can only output a database record. How do I output all the records I have in the database?
public ActionResult Index() { PAPEntities db = new PAPEntities(); MoviesData movie = db.MoviesData.SingleOrDefault(x => x.MovieID == 1); List<MovieViewModels> MovieVM = new…