Posts by AlamBique • 533 points
24 posts
-
-1
votes2
answers48
viewsQ: How do you make a left DIV the same height as a large right DIV?
I have a page of type one-page with 3 columns. The central column has the content of the site. And the right and left columns need to repeat an image vertically throughout the page height. <body…
-
1
votes0
answers153
viewsQ: Entity Linq consultation in many-to-many relationship
I inherited a bank that is untouchable... despite having some very "strange" things. For example I have the following situation that would represent an n-n relationship but the relationship does not…
-
0
votes0
answers322
viewsQ: Error: The Entity types 'Customrole' and 'Aspnetroles' cannot share table 'Aspnetroles'
People created the whole structure Identity to work with INT instead of GUID. Using Database First and included in the database, with a create script, the modified Identity tables (I only changed…
-
0
votes1
answer211
viewsQ: Help to write to USERS and Aspnetusers at once
Help please. I’ve spent my whole day redoing various parts of the system, trying a lot of different solutions but ended up without ideas. I have a solution with several applications. One of these…
-
1
votes1
answer341
viewsQ: Aspnet.Identity Creating user with Role
It’s the first time I’m working with Entity and Identity and I’m confused about how to persist my user. Basically I have a table User, with several relationships with the bank and Id int) I have the…
-
1
votes1
answer160
viewsQ: Generic CRUD in Entity Framework with unspecified entity
I’m trying to make a generic CRUD for my project. However as I used Databasefirst I do not see how to have a generic class of Entity that can be inherited. Because it doesn’t make any sense,…
-
1
votes1
answer185
viewsQ: Why does this @Html.Dropdownlistfor not accept htmlAttributes?
I have a read-only view in some cases. I don’t want to use javascript as it can be disabled on the user side. At last... When I do this (for testing) it works perfectly. <div…
-
2
votes1
answer891
viewsQ: Can I edit Identity’s Aspnetusers table?
Galera I have a project that has a table of USUARIOS. And now we’re migrating to AspNet.Identity which already has a table but called AspNetUser and with your own fields. And my table USUARIOS have…
-
4
votes2
answers91
viewsQ: Checking whether data persisted successfully
What would be the best way to get one bool indicating whether the method Add() and then SaveChanges() was successfully performed? Am I trying like this? Is that right? public bool…
-
1
votes1
answer191
viewsQ: Run method of one nested class as property in another in C#
I have the following class: public class Feliz : IFeliz { //public algumas propeiedades e tals... { get; set; } public bool EstaFeliz() { //Faz alguma coisa... } } And she’s a property in another…
-
7
votes2
answers684
viewsQ: Use of interfaces in domain classes?
The project analyst I’m working on as a C# programmer vigorously defends the concept of SOLID in development. And it says that one of the requirements to use it is to have interfaces for everything.…
-
0
votes0
answers151
viewsQ: ASP.MVC ENTITY Code First (odd problem)
I do not know if I am doing something wrong (probably yes). But EF is persisting the data in a BD and in a table that it creates alone. I’ve repeated this step-by-step twice and the result is the…
-
5
votes1
answer362
viewsQ: What is the best validation strategy before data persists?
I’m used to . NET using C# and Entityframework. And there in the Entity we have the dataanotations. When I create the entity in C#, for example person, just put the datanotaations and the Entity…
-
2
votes1
answer178
viewsQ: Generic Class Receiving a Generic List>?
In c# I can implement a generic class where 1 of the received attributes is a List<>? object something like: public class Negocio<TEnt, TDto, TDao, TList<coisas>> So you can call…
-
1
votes1
answer396
viewsQ: Entity Framework vs SQL Injection (security?)
Hello! I’m new to development so excuse me if the question is silly. If it’s thanks link’s with references so I can better inform myself. As much as I understand the concept and the use of SQL…
-
3
votes2
answers8342
viewsQ: Quotation marks inside quotation marks and again inside other quotation marks?
I have a string variable called [Content] and I want to assign it the tag of a button that calls a javascript. I’m trying this way: Conteudo = "<input id='btnOculta_" + lin + "' type='button'…
-
3
votes2
answers1400
viewsQ: Vertical alignment with CSS?
I’m trying to display an image and next to it a text. My problem is that this text should be aligned with the bottom of the image, but only appears aligned to the top. I have tried many codes and…
-
0
votes0
answers50
viewsQ: Is there a difference in performance between returning an image in the Controller or in the View?
I just learned how to search and display an image from the database. I managed to do it two ways: First: Through an Actionresult in my Controller: public ActionResult RetornaImagemDoBanco(int id) {…
-
1
votes1
answer61
viewsQ: Receiving Request in View
Hello! I am trying to receive a filter parameter in my view with the following code on Controller: public ActionResult Cadastro(int? idParente) { var tab_Documentos_Parente =…
-
1
votes2
answers213
viewsQ: help for View to pass multiple lines to a Controller
Guys, I have a simple model for studies. There are 3 tables, Person, Allergy and Personal Allergy. Since a person can have several allergies. My role model is: public partial class Pessoa {…
-
2
votes1
answer196
viewsQ: ASP.NET.MVC Basic doubt - Registration with "subform"?
I’m working on my first ASP.MVC project with C# and I’m playing with student registration. On the student registration page there is a Checkbox that when marked (I imagined) should enable the…
asp.net-mvcasked AlamBique 533 -
1
votes2
answers733
viewsQ: ASP.NET MVC Entity - Scaffolding for more than one table simultaneously
I saw that an ASP.NET MVC project with C# has 2 magic tools that are Entityframework and Scaffolding. With them it is possible in a few minutes to have all the features of registration with in the…
-
0
votes2
answers2110
viewsA: How to implement the Gentelella Bootstrap Admin theme?
So... I found everything I needed here: Youtube video entitled "Plantilla Bootstrap en Proyecto ASP.NET MVC" (obviously in Spanish) There are many steps: Adding the files to the project, setting…
-
0
votes2
answers2110
viewsQ: How to implement the Gentelella Bootstrap Admin theme?
Guys I’m starting now with web development in Visual Studio. I already understood the MVC, I have some knowledge of HTML and I started to study the bootstrap. I discovered on the web this beautiful…