Questions tagged as 'c#'

1
answer

I can not implement an SfDataGrid

Trying to follow a tutorial here to create a SfDataGrid, but it is not working. I'm full of doubts on how to implement. My Model Class namespace Autorizador.Model { public class LiberacaoGrid { private double...
asked by 09.10.2017 / 12:40
0
answers

1: 1 relationship with abstract class in EF

Okay, everyone? I have the following problem: I have two Person and Property classes that may have an address, but the < strong> Person can have 0: N Address and Property 0: 1 . Knowing this I've transformed the Address class into...
asked by 12.10.2017 / 20:41
1
answer

Why does the one-to-many relationship in the Entity Framework default default work?

[Table(name: "cliente", Schema = "estudo")] public class Cliente : Base { [Key, Column("COD_CLIENTE")] [Required] public override Int64 Id { get; set; } [Column("CLI_NOME")] [Required] public virtual String Nome { get; se...
asked by 14.10.2017 / 20:23
0
answers

Create instance of an object by Activator.CreateInstanceFrom C #

I need to instantiate the PaisMapper class with the following scenario. DLL running: Projeto.ERP.Desktop In Form I run the _repositorioPais.MapperEntity.ToEntityForToEntityGrid(paises).ToList(); method Within the MapperEnti...
asked by 05.10.2017 / 16:56
1
answer

Update a CSV line without having to go through it all C #

Would you like to update a specific line of the CSV file? I have the information of which line I want to add information, I currently have the code that runs through the file and when it arrives on the line I want it updates the line and continu...
asked by 05.10.2017 / 20:47
1
answer

Windows service sharing information with a Rest

Is it possible for a Windows Service to exchange information with a Web Service Rest? If so, is this a good practice or not? Why the question? I just have to do the following. When a flag in the database is changed from 0 to 1, it should trigger...
asked by 05.10.2017 / 23:57
2
answers

Error trying to write comboBox and MaskTextBox

I have a form with two fields: 1 ComboBox that I put the type of people (Physique or Juridica); 1 MaskTextBox with CPF; AtfirstIdonotknowwhat'sbestifyousavethevalueoftheIndexofthecomboboxoritstext.BecausethenwhenIgosearchingIwillneedto...
asked by 18.10.2017 / 20:49
1
answer

Error while executing Migrations

Friends, I have two DeliveryFee and City entities, where DeliveryFee has a City FK, when I went to remove the relationship between the two and I managed the Migration it returned the following error.    'FK_dbo.DeliveryFees_dbo.Cities_Cities_...
asked by 02.10.2017 / 19:58
0
answers

Request Not Authorized or Over QueryLimit - GoogleLocationService

Follow the code below: var locationService = new GoogleLocationService(); var point = locationService.GetLatLongFromAddress("Rua Osasco - Amador Bueno, Itapevi - SP, Brasil"); Error:    System.Net.WebException: 'Request Not Authorized or...
asked by 04.10.2017 / 21:19
0
answers

Slow Entity C # when saving image

I'm having a slow system that I created in C # using Entity Framework. At the moment I am going to save a record from an attachment, I am compressing the file. Before I check if it is .jpg or .pdf (only extensions accepted by the system). The fi...
asked by 04.10.2017 / 20:35