36 lines
1.3 KiB
C#
36 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Entity;
|
|
using System.Data.SqlClient;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ULA.Cathay.CreditoModel.StoreProcedures
|
|
{
|
|
public class StoreProceduresCredito:DbContext
|
|
{
|
|
public StoreProceduresCredito()
|
|
: base(new Ultimus.Utilitarios.ObtieneParametros().GetValueKeyRegedit("BPMCORPORATIVO", true))
|
|
{
|
|
Configuration.ProxyCreationEnabled = false;
|
|
Configuration.LazyLoadingEnabled = true;
|
|
}
|
|
|
|
public IEnumerable<IncidentesActivosClienteJOSN> SP_ObtenerIncidentesActivosCliente(string NumIdentificacion)
|
|
{
|
|
return this.Database.SqlQuery<IncidentesActivosClienteJOSN>(
|
|
"exec dbo.ObtenerIncidentesActivosCliente @NumIdentificacionCliente",
|
|
new SqlParameter("@NumIdentificacionCliente", NumIdentificacion)
|
|
);
|
|
}
|
|
|
|
public IEnumerable<IncidentesActivosClienteJOSN> SP_ObtenerIncidentesActivosLineaCredito(string IdLinea)
|
|
{
|
|
return this.Database.SqlQuery<IncidentesActivosClienteJOSN>(
|
|
"exec dbo.ObtenerIncidentesActivosLineaCredito @IdLinea",
|
|
new SqlParameter("@IdLinea", IdLinea)
|
|
);
|
|
}
|
|
}
|
|
}
|