Questions tagged as '.net'

1
answer

Dispose in Unit Of Work

I have a web application and I'm using repository * and Unit Of Work . In some examples I saw that after performing some change operation on the bank we should call the Dispose() method. Instantiated UnitOfWork : priv...
asked by 04.12.2017 / 13:23
0
answers

Error: The entity types 'CustomRole' and 'AspNetRoles' can not share table 'AspNetRoles'

I've created the entire Identity structure to work with INT instead of GUID. Using DataBase First and included in the database, with a create script, the Identity tables modified (just changed AspNetUsers). but every time I call: userManage...
asked by 22.11.2017 / 23:25
2
answers

Write and retrieve information in files

How do I write data to a file and then retrieve it? I have an enrollment system. Start a folder in Windows and within it I generate the registrations sequentially. I finish and go home and the next day, I will generate new set of registrati...
asked by 21.07.2015 / 13:53
0
answers

Email sending is leaving the path of the attachments in the body of the email

I would like some help! I made a class to send e-mails in my application, where reports will be generated to be sent in PDF and XML format, but the e-mail is being sent with the path of the files in the body of the e-mail. and in my code there i...
asked by 08.11.2017 / 03:25
0
answers

Access FK attribute in Framewokr entity

I have the class Cliente which has a IList<Produto> and the produto class has a ClienteId (which is the FK) and a Cliente Cliente { get; set; } attribute. How do I access the Nome attribute of C...
asked by 16.10.2017 / 23:26
1
answer

Accessing MySQL with C #

I am creating a simple Form that has 3 TextBoxes and 3 buttons and I want to save the information entered in Textboxes in a table. I have already created querys all within a class acessoBD , but I can not acc...
asked by 24.09.2015 / 03:00
0
answers

Ignore files in the obj \ Debug folder

I have a problem, every time I check in visual studio lists these files: I created a file (.tfignore) to try to ignore them but it did not work: \packages \obj \bin \_design\.sass-cache \_design\scss What am I doing wrong? Does...
asked by 22.09.2017 / 21:17
2
answers

Is there anything in MVC that is equivalent to asp: repeater of Web Forms?

I am putting together a form where some fields may or may not be repeated, for example:    Course 1: Course [input text] Institution [input text] Completion year [input text]    Course 2: Course [inpu...
asked by 14.09.2017 / 20:40
1
answer

Display image saved in the database and allow the user to change the image

I am retrieving the information from the database and checking if the GIF and Image fields are null or not to show the user the best option in View Edit. Anyway, here's the code where I make this check: <div class="col-xs-12 col-md-4 col...
asked by 28.08.2017 / 17:41
1
answer

What is the difference between GetKeyState () and GetAsyncKeyState ()?

I have always used GetKeyState() to know if the user is pressing a key, but I see that many people use GetAsyncKeyState() more. With this I got the following doubts: What's the difference between the 2? When should I use e...
asked by 15.08.2017 / 22:32