Questions tagged as 'c#'

0
answers

Error while running Asp Net Core Application

I'm getting the following error:    An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.       One or more comp...
asked by 29.11.2018 / 17:34
0
answers

Error to map in EntityFramework

Good, I'm trying to map a database using the EntityFramework-Reverse-POCO-Code -First-Generator and one of my views has the following mapping: public VIEW_CODE_NAV_CustomerLedgerEntryMapping(string schema) { ToTable("VIEW_CODE_NAV_Cus...
asked by 06.12.2018 / 17:01
0
answers

Ignore property ICollection AutoMapper does not work

Personal I'm having trouble to ignore a property that is like ICollection and another one that is like Generic Class. Type I am ignoring in the Profile Map class Address, it works only when Mapea PersonAddressEditViewModel > Person, when mapp...
asked by 06.12.2018 / 21:29
0
answers

doubts with linq to entities

What would be the query in linq to entities: SELECT COUNT(cont) qtde_resp , pergunta , resposta FROM pesq_respostas WHERE id_pesquisa = 9 AND Tipo IN ('Intervalo', 'SimNao') GROUP BY pergunta...
asked by 06.12.2018 / 18:45
1
answer

Delete Regedit Windows Key

I'm doing a program in C # to automate a situation here in the company, but I'm experiencing problems with it I want to delete a windows registry key located in HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ MSLicensing In case I would like...
asked by 05.11.2018 / 20:49
0
answers

Binding between components with XAML and C #

I need that when selecting an item in a combobox, the textbox is released for editing and its completion is mandatory, as shown below: Thisbindingisactivebyclickingthenewbutton,whereIchangetheIsEditingpropertyofmyViewModelclass.classColectorsVi...
asked by 27.12.2018 / 17:45
0
answers

MVVMLight Event to Command using Model for the Command Parameter

I've been trying to use MVVMLight's Event to Command to link my ViewModel's commands to events such as TextChanged's TextBox, for example. But Event to Command automatically assumes that the Command Parameter is the Event Args of TextChanged. I...
asked by 07.11.2018 / 13:52
0
answers

Using NLog with PostgreSQL C #

I'm working on an application, and have some registry screens, and I want to add a log routine to the API of these records, type: do not add, update, and error occurrences (if any). The database that is being used is PostgreSQL and here comes...
asked by 27.12.2018 / 21:20
0
answers

Import Excel that does not have default to SQL SERVER with C # [closed]

I have the following scenario: I have an Excel spreadsheet that is provided by several private companies. This worksheet contains social security data. The problem is this: I have columns that refer to company data and columns that refer to the...
asked by 28.12.2018 / 12:10
0
answers

Colliders in Unity3D in C # [closed]

I would like to detect if my left cube is leaning against the side of my cube on the right, but I can not do that. Is there any method without having to create null objects, raycasts or Linecast that can help me do this?     
asked by 31.10.2018 / 16:22