Questions tagged as 'c#'

1
answer

Seed Method for Many-to-Many Relationships

I am developing a simple application in MVC using Entity , being product register, I am using metodo seed to insert the values in the table, however in the Many-to-Many relationship I can not set the values in the auxi...
asked by 19.02.2018 / 18:36
0
answers

SqlBulkInserT- Import Excel worksheet

I have an application in dotnet to import spreadsheet, however I do not know why I am not able to insert the information into the database. My code is below. using System; using System.Collections.Generic; using System.Data; using System.Data....
asked by 19.02.2018 / 17:49
0
answers

Login to the eCac system with C #

I'm doing some research, and I'm logging into the ecac site using my company's certificate ... using Chrome I can log into the system without any problem because chrome asks for the certificate to authenticate the login. I tried to implement a...
asked by 19.02.2018 / 18:17
1
answer

How to bring all items that do not have reference to certain table [SQL]

I'm using NHibernate to do a sql query in C #, however I have a question. I have the following structure: public class Pessoa { public long Id {get; set;} public string Nome {get; set;} } public class Usuario { public long Id { //...
asked by 19.02.2018 / 19:21
1
answer

Problems with hotkeys to open and hide the interface using "Application.Current" (C # WPF)

The following code works without problem, I did it based on the code available on the internet of SirMestre, however it only opens / closes the MainWindow UI, I have already tried some things to work but the error or does not work in other UI's....
asked by 18.02.2018 / 14:25
1
answer

href with Submit in Asp.net core MVC

I have a _LoginPartial view where you have a link to EXIT (Log out of the system). <li role="presentation"> <a href="javascript:void(0)" role="menuitem"> <i class="icon wb-power" aria-hidden="true"></i> S...
asked by 18.02.2018 / 20:09
0
answers

INSERT with query in string Entity Framework

This is trying to give an insert in the table using a string containing a sql code ... when I use the DELETE command it runs perfectly now when I squeeze the insert no ... the insert runs straight into the database. Follow the code: public voi...
asked by 16.02.2018 / 21:08
0
answers

Application runs through visual studio, but does not run when run

I'm using visual studio 2017, I created an application with WPF, the application runs normally within visual studio in debug mode, but if I compile it and run from within the release folder, it does not start. It also does not start if you tr...
asked by 16.02.2018 / 17:48
0
answers

Truncate text inside a string with HTML tags

I have a string column in the database that stores a message. This message is an email, it is in html because when it is rendered by the browser the text can have different styles (size, color, etc ...). How can I count the number of characters...
asked by 16.02.2018 / 19:32
1
answer

How to set the TabItem Header in bold?

I have the following TabItem : <TabItem Header="TESTE" x:Name="planoCargaBalanca1" FontWeight="Bold"> I want the Header to be in bold , I tried to use FontWeight="Bold" but all my content was in bold. How to leave...
asked by 16.02.2018 / 18:49