Questions tagged as 'c#'

1
answer

C # XML digital signature, ill-formed reference element

I have a c # code that generates an xml with the digital signature, but when calling the function signedXml.ComputeSignature() it shows the following error:    Malformed Reference Element. However, I searched for this error and...
asked by 09.04.2018 / 20:34
0
answers

Diagram of classes from classes already created does not appear the relationship

When I create a class diagram in VS2017 from existing classes, the relationship link does not appear. namespace CloudEye.Domain { public class Car { public CarPlate CarPlate { get; private set; } public double Capacity...
asked by 14.04.2018 / 16:12
0
answers

Problems returning an IQueryable list to convert it with Automapper

I have a function that returns me a list of people with their personal / legal relationships. I have a PersonViewModel that is already mapped in the Autommapper layer ... When I call the GetJoinAll () function it has to return an IQueryable of P...
asked by 10.04.2018 / 00:39
0
answers

Is it possible to set header and footer using RazorPDF2?

I'm looking for a PDF generator that meets some needs. These are: Convert HTML to PDF PDF cover may have margin other than the margin of other PDF pages Ability to set header and footer for all pages In some tests I was able to set on...
asked by 11.04.2018 / 14:24
0
answers

Show Image in DataTable asp.net MVC

I'm having trouble displaying an Image in the datatable in my application. I get the name of the image but it does not display. "columns": [ { "data": "Id", "name": "Id", "autoWidth": true }, { "d...
asked by 08.04.2018 / 16:01
1
answer

How not to save m value in the if case list (true)

I have a foreach going through my list and I want it to be true if it shows a message saying that this value already exists in the list and DO NOT STORE this value in the list, someone knows how to do ?? foreach (Agendamento agenda in Agenda...
asked by 08.04.2018 / 19:28
2
answers

How to use the where clause with linq?

I need to make a join between the person and person tables so that the Entity Framework core brings a corresponding record. I'll be clearer: In the Person Person table, I classify my people record using an enum. I did this to save the Ids of...
asked by 05.04.2018 / 16:55
1
answer

Error in accented words using HttpCookie

My method of recovering cookies is bringing words with an unconfigured accent. //Para gravar um Cookie private static void Set(string key, string value) { var encValue = value; var cookie = new HttpCookie(key, v...
asked by 04.04.2018 / 22:20
0
answers

Help with meta language to write code in html made in C #

I have a problem with a code for a meta language. It takes the string with the code in the target language and then saves it, with XDocument in an html document. My question is this: When I was using it in a test program, I gave an error...
asked by 05.04.2018 / 20:53
0
answers

What folder structure for the dll project in .NET framework I'm going to play in the main project

I have a vs2017 solution with a main project that will use a dll project as a reference. I created the model, business and repository folders in the dll project Main project use the dll in the main class. What goes into each folder in the...
asked by 05.04.2018 / 19:42