Questions tagged as 'c#'

3
answers

Variable Visualization in Visual Studio does not work

Good afternoon, could you help me, it's been a while since my Visual Studio is this way I know that I should be with a small group to visualize the object, this is disturbing a lot, I already thank you     
asked by 03.11.2017 / 16:33
1
answer

I need help to turn this SQL into a LINQ

I have the following SQL: select conferencia.tb_conferencia.con_codigo, con_pedido, count(coi_codigo) as countItens, count(distinct cic_conferencia_item) as countItensConferidos from conferencia.tb_conferencia left...
asked by 23.08.2017 / 14:58
1
answer

Is web service hosting the same as a site with pages?

I'm developing a mobile application with Xamarin. This application is a screen to authorize or not to discount above that authorized by the sellers. So I have a web service that goes in the bank and takes all the relevant information to the cl...
asked by 15.08.2017 / 15:21
1
answer

How to ignore files according to their extension in TFS?

In git you can use the .gitignore file to ignore some file extensions, but I wonder if this can also be done in Team Foundation Service or if there is something similar to skip files with certain extensions.     
asked by 23.08.2017 / 16:38
1
answer

Fill date and time in View mvc 5 razor

I have a registration form where I have a record date field that I currently fill in my save method, except that my server is hosted in another country where the field is being filled from the location of the hosting, quite different from where...
asked by 12.12.2018 / 19:27
1
answer

How to create an object in a Linq.Expressions.Expression and dynamically add properties to it in C #

Hello, I am creating a DataAnnotations library to extend the EntityFrameworkCore with structures that today only exist using FluentAPI. In one of them, I'm trying to recreate this block from FluentAPI: using Microsoft.EntityFrameworkCor...
asked by 11.12.2018 / 17:37
1
answer

Auto Relationship with Entity Framework 2.2

How do I make an Auto Relationship with EF Core 2.2? I found a link that teaches how to do with EF, but in EF it does not have the WithOptional method. public class Menu { public int Id { get; set; } public string Title { get; set;...
asked by 12.12.2018 / 17:44
1
answer

Simulate a Master / Detail report with foreach

I have a table as follows: public class Producao { string unidade; string profissional; string procedimento; } I can get all the records stored in the table and throw them in a listaProducao list. And list them by fore...
asked by 07.07.2017 / 04:56
1
answer

Use .NET Framework DLL in .NET Core

Can a .NET C # DLL compiled in .NET 4.6 be imported into a .NET Core program on Linux?     
asked by 17.12.2018 / 19:42
1
answer

Why can I invoke functions without parentheses in VB.NET?

In C #, this code does not compile: public static string Teste(){ string val = ""; return val.Trim; } Because the Teste function requires a return of type string , and Trim is a MethodGroup . That makes per...
asked by 21.07.2017 / 14:47