Questions tagged as 'c#'

1
answer

How to force the occurrence of an event from an extension method?

I'm creating an application in C # and I'm using the INotifyPropertyChanged interface like this: public class Test: INotifyPropertyChanged { private int foo; public int Foo { get => foo; set => Set(ref foo, value); }...
asked by 04.12.2018 / 16:26
1
answer

Ignore files at the time of sending to repository

I have a .net core project on bitbucket and I use visual studio 2017 to do the operations next to the repository. The problem is that even though I have not made any changes to the project, when I give rebuild it identifies 90 files on th...
asked by 28.12.2018 / 12:22
1
answer

I can not insert into DB with entity

This is my embed code. Why does it make a mistake? What should I do? public int abreOsParceiro(string os, string cnpj, string dataAbertura, string dataVisita, string tecnico) { WEBEntities db = new WEBEntities();...
asked by 26.05.2014 / 21:13
1
answer

How to pass a string value to a type in Entity

In my entity mapping, the fields that are FK look like this: public virtual T_Acao T_Acao { get; set; } public virtual ICollection<T_OsParceiro> T_OsParceiro { get; set; } public virtual T_ProximaAcao T_ProximaAcao { get; set; } In my...
asked by 02.06.2014 / 21:23
1
answer

Join with lambda expression only

With LINQ without problems. Now, how do I join with two or more tables? Below the join attempt I could not go through to the end. Two tables ( T_Acao and T_ProximaAcao ). Field in join is IDAcao var res...
asked by 27.05.2014 / 16:34
1
answer

No insert in the table is inserting everything, even what I do not want

When I give savechanges() , it writes to all tables and I would like only one. How I do? The Acao and ProximaAcao tables also inserts log. public T_TarefaParceiro geraIdParceiro() { WEBEntities db = new WEBEntities();...
asked by 02.06.2014 / 22:28
1
answer

Calling C # dll function (VS2010) using COM in Delphi 5 does not pass the parameters correctly

Good morning, I created using UnmanagedExports a dll in C # (Visual Studio 2010) to be consumed in a form delphi 5, as follows: C #: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; usin...
asked by 31.10.2018 / 14:12
1
answer

Does ASMX Web Service contain any events for the end of the request?

I would like to have SaveChanges run at the end of all requests to my Web Service. can anybody help me?     
asked by 19.02.2014 / 14:19
2
answers

DLL distribution

I created a COM DLL in C # VS2010 to be distributed with another application in Delphi. This DLL only consumes in WEB Services. On the machine where the DLL was built, there is no error. But in the distribution when the DLL methods are exec...
asked by 20.02.2014 / 15:02
3
answers

Route for static pages in MVC

I have a question in the ASP.Net MVC application: Structure Views | +-- Home | | | +-- Index.cshtml | | | +-- Page.cshtml | +-- Users | | | +-- Details.cshtml...
asked by 22.02.2014 / 16:24