Questions tagged as 'c#'

1
answer

Protect memory address

I'm developing a simple game. I want to protect the memory address where the player's score is located so that only a specific process can access it, thus preventing the user from changing or accessing this memory address with a cheat tool. Is t...
asked by 06.11.2017 / 01:56
0
answers

Error instantiating Context with Entity Framework

I'm getting the Entity Framework to learn, but when I run my code, it returns the following error:    System.TypeLoadException: 'Inheritance security rules have been   violated by the type: 'MySql.Data.Entity.MySqlEFConfiguration'. The types...
asked by 07.11.2017 / 00:37
2
answers

Linq C # with order

I have a LINQ query that lists the birthdays of the current month: Ramal[] RamalAniver = (from a in db.Ramais where a.sAniversario.Contains(DiaAniversario + "/" + MesAniversario) && a.bAtivo == tr...
asked by 07.11.2017 / 21:10
0
answers

Function to validate xml

I have this function to validate an xml: public static bool ValidarXML(string pathXML, string pathSchema, ref string retorno) { bool falhou; // Define o tipo de validação XmlReaderSettings settings = new XmlReaderS...
asked by 22.11.2018 / 13:45
1
answer

How to use DTO in ASP.NET CORE + DDD

I'm building an application following the DDD standards. I would like to know how to correctly use the default Data Transfer Object - DTO. With the little I read, I came to the conclusion: I'm using ViewModel (a representation of the entity t...
asked by 24.04.2018 / 22:54
2
answers

Navigation with Xamarin Forms default MVVM

I recently started studying Xamarin Forms. I have a question that can be clarified here: how to navigate between pages using MVVM? Should your navigation be on vm or view ? Example <?xml version="1.0" encoding="utf-8" ?> <Cont...
asked by 21.02.2017 / 10:17
1
answer

How do I make my form work with reCAPTCHA?

I'm saving the data for Ajax, but my reCaptcha is not working properly, the form is sent even without pressing inside Captcha. My Controller [HttpPost] [CaptchaValidator(PrivateKey= "secretKey", ErrorMessage="Captcha Invalido", Req...
asked by 18.09.2018 / 01:05
1
answer

Failure to communicate with PHP webservice

I'm trying to access a PHP webservice through an ASP.NET application ccbusca.pesqwebservice client = new ccbusca.pesqwebservice(); client.Url = "http://www.ccbusca.com.br/webservice.php"; ret = client.ws_pesqcpf("VISUALFIX01", "XXXX@", "302X"...
asked by 03.02.2017 / 04:11
0
answers

How to map two LIST properties using Automapper

RegisterNewPessoaCommand Class public class RegisterNewPessoaCommand { public RegisterNewPessoaCommand(PessoaNatureza pessoaNatureza, PessoaFisica pessoaFisica, PessoaJuridi...
asked by 11.09.2018 / 03:11
0
answers

How to get data from a table in a website?

I'm developing a program that captures the proxies and ports of this site, for the program to get the proxies I used regular expression and htmlagilitypack ... But how to get the doors? Since by expressions I would end up getting numbers that ar...
asked by 04.09.2018 / 10:25