Questions tagged as 'c#'

1
answer

DLL import in C #

I joined a recent project that uses a nearby printer to print tax coupons. The last one who worked on the project used a DLL (if I'm not mistaken in C ++) that managed the printer. In the project, this DLL is imported through the following...
asked by 23.12.2016 / 19:33
2
answers

Doubts to query the mysql bank?

Is there a way to create a code to check if a new record exists in the database? EX: I've inserted id = 2, I need to create a code that will generate a notification every time a new id pops up.     
asked by 09.03.2017 / 23:57
2
answers

Data query file settings

I have some projects in my solution and in one of them I will have the settings configured with some parameters. My question is: If you referenced this project in others, can I read these parameters in each project?     
asked by 12.03.2017 / 18:22
1
answer

Help with an MVVM view

I'm reading the this tutorial on MVVM. But I do not understand the following: <Window x:Class = "MVVMDemo.MainWindow" xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x = "http://schemas.microsoft.com/winfx/...
asked by 06.12.2016 / 11:52
1
answer

Datapicker with @ Html.EditorFor

I have the following model [DisplayName("Data Inicial Contrato")] [Required] [DataType(DataType.Date)] [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")] public DateTime DataInicialContrato {...
asked by 08.12.2016 / 10:56
1
answer

Building DataGrid with C # WPF at runtime

I have a DataTable where I will store some data that the user informs and through it I want to pass the information to the DataGrid. gvDados.ItemsSource = dt.DefaultView; //Essa é a ligação entre o DataTable e a Grid In case the user inform...
asked by 09.02.2017 / 17:20
2
answers

RestSharp connected with Firebase but does not show result

I've made a service on C # and now I need to connect this service to my bank on FireBase . The following is the Library method for connecting to FireBase : public static void restAPI() { var client = new RestClient("https:/...
asked by 01.02.2017 / 17:51
2
answers

EF6: Error Recording

I have the following scenario that I'm having problem: Category: public class Categoria { public int Id { get; set; } public string Descricao { get; set; } public virtual ICollection<Produto> Produtos { get; set; } }...
asked by 31.10.2016 / 17:42
2
answers

Log Generation with NLog?

I am using NLog , and for each client logged into the system I would like to create a behavior for generating logs as follows: [nome-cliente-1]-[dataAtual].txt [nome-cliente-2]-[dataAtual].txt Ex: Joao-da-silva-01-11-2016.txt I would lik...
asked by 01.11.2016 / 14:32
1
answer

filter table asp.net mvc [closed]

I need to filter a table, which is in a partial view, depending on the parameter entered in a field, which is passed to the controller via ajax. How do I reload the table with the filter applied? Part of the index where this my partial <...
asked by 31.10.2016 / 17:01