Questions tagged as 'c#'

1
answer

How to insert arrays inside angular objects?

Let's say I have a vehicle object that has the following attributes converting my C # class to Json: { "UsuarioId": 0, "TipoId": 0, "MarcaId": 0, "ModeloId": 0, "VersaoId": 0, "Quilometragem": 0, "AnoFabricacao": 0, "AnoModelo...
asked by 26.01.2017 / 02:14
1
answer

Query the database through a text box

Hello, I'm currently in a part of a project where I have to search the database through a text box. For example I searched for "Joseph" and returned all the data contained in the database with the name "Joseph". You could also search for "Traver...
asked by 15.05.2017 / 11:10
1
answer

Thread occupying a lot of memory

Come on. I'm loading Buttons in a panel through the BackGroundWorker. That is, inside this BackGround I execute a query in the bank through EF and fill in the panel with the Buttons that contains information coming from this query. The more time...
asked by 08.04.2016 / 08:23
2
answers

Object error not instantiated

I have a model named ClientesModel . Inside it I have the fields: public int id { get; set; } public int codcli { get; set; } public string nome { get; set; } public string endereco { get; set; } public string nr {...
asked by 22.04.2016 / 21:17
2
answers

NOT IN in linq using a subquery

I'm using the answer as the basis on: link I need to make a query where it does not contain (NOT IN) the Ids coming from another query. The SQL Query is this: SELECT DISTINCT tbl_boleto.int_IDC, tbl_Admin.* //redução do código FROM...
asked by 08.03.2016 / 16:45
1
answer

Location and maps [closed]

Hello, I'm going to work on an application that will have to work with location and maps, basically the user will inform an address and it will appear to him nearby places, so I wanted to know + - the way of the stones for this, I was thinking ab...
asked by 03.01.2016 / 16:51
1
answer

List names in a query and send to a ViewModel

I wanted to list the names belonging to a group and send them to a ViewModel and be collected by a View (details). Problem:    'IQueryable' does not contain a definition for   'NameCategory' and in the extension method 'NameCategory'   accept...
asked by 07.01.2016 / 16:35
2
answers

How to implement and use the BinarySearch method?

How to implement and use the BinarySearch method of a List<T> ? I'm having difficulty implementing it and also how to use it in a practical way. Follow the example for illustration: int BuscaBinaria(List<string> lis...
asked by 23.12.2015 / 15:41
2
answers

Search in the Entity Framework as case sensitive

I am using Entity Framework 6, MySQL, ASP.NET MVC. The problem is this: when I search the form (my search view), the EF is differentiating capital from lowercase. When I query directly in MySQL, using SqlYog for example, it does not make any...
asked by 25.06.2016 / 15:56
2
answers

Regex remove some elements of the style attribute

I need to keep only some properties of the style attribute in tags present in a string of an html document, they will be placed in a whitelist, everything else will be removed. In the example below: <TD class=xl76 style="BORDER-TOP: windowt...
asked by 22.06.2016 / 20:15