Questions tagged as 'c#'

1
answer

Improved for Interface of stored with Dapper

I am writing a proposal to replace the data access layer of the company where I work, for this I am using a generic interface to execute stored procedures using Dapper ORM. My question is how could the code be improved? This is the interfa...
asked by 26.08.2016 / 17:32
1
answer

Apply a property to discriminate an inheritance in the Entity Framework

Since I can choose a field as TipoOperacionId to be a discriminator, I have the following code. public MovimientoMap() { ToTable("Movimientos"); HasKey(c => c.MovimientoId); Property(c => c.MovimientoId...
asked by 25.08.2016 / 21:58
0
answers

Error sending mail from asp.net c #

I have an application asp.net c# , which sends emails to a fixed address, such as outgoing mail use hotmail and send it a gmail . When I run the application in local mode I have no problems, but when I upload it to server i...
asked by 03.08.2016 / 20:07
1
answer

Insert Data (union of label and textbox)

In my interface I have 7 label with already predetermined data and 7 textbox, each textbox is linked to a label. What I want is that when you write a number in a textbox that is in front of the label only the value is inserted in the code that i...
asked by 04.08.2016 / 23:18
0
answers

IMAPX always returns an empty array of attachements

I'm trying to make a program to recover email attachments, I'm using the IMAPX2 library and a self-mail test account on my own mail server, the topic is programmed in c #, in fact it's my first program in c #. I have been able to retrieve inf...
asked by 13.09.2016 / 11:37
1
answer

How to add values of a datatable, depending on whether the following value is different from the current one? In MVC C #

I have the following datatable in the view, which lists certain data: <table id="table_listadoLineasComprobante" class="table table-striped table-bordered tableSection_2" style="margin-bottom: 0 !important;"> <thead> <tr sty...
asked by 14.09.2016 / 23:25
1
answer

Assign Cursor to List

How can I assign the results of a cursor to a List using SQL Server and Visual Studio ? The cursor is in a stored procedure, which must be called from the Controller: Stored Procedure CREATE PROCEDURE Lista_mun...
asked by 13.09.2016 / 05:16
1
answer

create SP in BD from EF

I know that from Entity Framework you can create a model and based on this model create a DB in a Database Management System, but in my case I require that at the time of creating the model you can also create functions that later based on this...
asked by 07.07.2016 / 15:52
1
answer

Dissociating a record from a table that keeps me many to many relationships

I am working with C # Entity Framwork approach Code First, I am working with a many-to-many relationship, in which I have an intermediate table where I keep relationships. My problem is when I want to delete one, I show the code public void Re...
asked by 28.06.2016 / 15:57
0
answers

Error generating classes vb.Net 2015 from xsd with xsd2code ++

The Spanish Tax Agency (AEAT) has published a series of xsd for the new system of Immediate Supply of Information (SII) that will come into force as of July 2017.
asked by 24.02.2017 / 17:26