#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     Este código fue generado por una herramienta.
//     Versión de runtime:4.0.30319.296
//
//     Los cambios en este archivo podrían causar un comportamiento incorrecto y se perderán si
//     se vuelve a generar el código.
// </auto-generated>
//------------------------------------------------------------------------------

namespace HCM.DataAccess.Context
{
	using System.Data.Linq;
	using System.Data.Linq.Mapping;
	using System.Data;
	using System.Collections.Generic;
	using System.Reflection;
	using System.Linq;
	using System.Linq.Expressions;
	using System.ComponentModel;
	using System;
	
	
	[global::System.Data.Linq.Mapping.DatabaseAttribute(Name="SIHCEI_SBX")]
	public partial class CreditoEmpresarialDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Definiciones de métodos de extensibilidad
    partial void OnCreated();
    #endregion
		
		public CreditoEmpresarialDataContext() : 
				base(global::HCM.DataAccess.Properties.Settings.Default.SIHCEI_SBXConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public CreditoEmpresarialDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public CreditoEmpresarialDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public CreditoEmpresarialDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public CreditoEmpresarialDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.stp_ListarCreditoEmpresarialBajaWere")]
		public ISingleResult<stp_ListarCreditoEmpresarialBajaWereResult> stp_ListarCreditoEmpresarialBajaWere([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOperacionId);
			return ((ISingleResult<stp_ListarCreditoEmpresarialBajaWereResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_uCreditoEmpresarial")]
		public int sp_uCreditoEmpresarial(
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOpcion, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintDestinoCredID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintTasaRefID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintMetodologiaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintTipoAltaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintTipoCreditoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintClasificaLegID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintTipoDispCredID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintPeriodicidadInt, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintPreferenciaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintTipoLinRevID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintTipoBajaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintPeriodicidadCap, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintOperFormaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintExpedienCompID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintInfoRecuperaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iInstitutoFondea, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintClasificacionContaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintTipoCreditoIDPromo, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Decimal(9,2)")] System.Nullable<decimal> decPorGarantiaFon)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOpcion, iOperacionId, sintDestinoCredID, sintTasaRefID, tintMetodologiaID, tintTipoAltaID, sintTipoCreditoID, sintClasificaLegID, tintTipoDispCredID, tintPeriodicidadInt, tintPreferenciaID, tintTipoLinRevID, tintTipoBajaID, tintPeriodicidadCap, tintOperFormaID, tintExpedienCompID, tintInfoRecuperaID, iInstitutoFondea, sintClasificacionContaID, sintTipoCreditoIDPromo, decPorGarantiaFon);
			return ((int)(result.ReturnValue));
		}
	}
	
	public partial class stp_ListarCreditoEmpresarialBajaWereResult
	{
		
		private int _iOperacionId;
		
		private System.Nullable<short> _sintDestinoCredID;
		
		private System.Nullable<short> _sintTasaRefID;
		
		private System.Nullable<byte> _tintMetodologiaID;
		
		private System.Nullable<byte> _tintTipoAltaID;
		
		private System.Nullable<short> _sintTipoCreditoID;
		
		private System.Nullable<short> _sintClasificaLegID;
		
		private System.Nullable<byte> _tintTipoDispCredID;
		
		private System.Nullable<byte> _tintPeriodicidadInt;
		
		private System.Nullable<byte> _tintPreferenciaID;
		
		private System.Nullable<byte> _tintTipoLinRevID;
		
		private System.Nullable<byte> _tintTipoBajaID;
		
		private System.Nullable<byte> _tintPeriodicidadCap;
		
		private System.Nullable<byte> _tintOperFormaID;
		
		private System.Nullable<byte> _tintExpedienCompID;
		
		private System.Nullable<byte> _tintInfoRecuperaID;
		
		private System.Nullable<short> _sintInstitucionID;
		
		private System.Nullable<short> _sintClasificacionContaID;
		
		private System.Nullable<decimal> _decPorGarantiaFon;
		
		private System.Nullable<short> _sintClasificacionContaID1;
		
		private System.Nullable<short> _sintTipoCreditoIDPromo;
		
		public stp_ListarCreditoEmpresarialBajaWereResult()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iOperacionId", DbType="Int NOT NULL")]
		public int iOperacionId
		{
			get
			{
				return this._iOperacionId;
			}
			set
			{
				if ((this._iOperacionId != value))
				{
					this._iOperacionId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintDestinoCredID", DbType="SmallInt")]
		public System.Nullable<short> sintDestinoCredID
		{
			get
			{
				return this._sintDestinoCredID;
			}
			set
			{
				if ((this._sintDestinoCredID != value))
				{
					this._sintDestinoCredID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintTasaRefID", DbType="SmallInt")]
		public System.Nullable<short> sintTasaRefID
		{
			get
			{
				return this._sintTasaRefID;
			}
			set
			{
				if ((this._sintTasaRefID != value))
				{
					this._sintTasaRefID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintMetodologiaID", DbType="TinyInt")]
		public System.Nullable<byte> tintMetodologiaID
		{
			get
			{
				return this._tintMetodologiaID;
			}
			set
			{
				if ((this._tintMetodologiaID != value))
				{
					this._tintMetodologiaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTipoAltaID", DbType="TinyInt")]
		public System.Nullable<byte> tintTipoAltaID
		{
			get
			{
				return this._tintTipoAltaID;
			}
			set
			{
				if ((this._tintTipoAltaID != value))
				{
					this._tintTipoAltaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintTipoCreditoID", DbType="SmallInt")]
		public System.Nullable<short> sintTipoCreditoID
		{
			get
			{
				return this._sintTipoCreditoID;
			}
			set
			{
				if ((this._sintTipoCreditoID != value))
				{
					this._sintTipoCreditoID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintClasificaLegID", DbType="SmallInt")]
		public System.Nullable<short> sintClasificaLegID
		{
			get
			{
				return this._sintClasificaLegID;
			}
			set
			{
				if ((this._sintClasificaLegID != value))
				{
					this._sintClasificaLegID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTipoDispCredID", DbType="TinyInt")]
		public System.Nullable<byte> tintTipoDispCredID
		{
			get
			{
				return this._tintTipoDispCredID;
			}
			set
			{
				if ((this._tintTipoDispCredID != value))
				{
					this._tintTipoDispCredID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintPeriodicidadInt", DbType="TinyInt")]
		public System.Nullable<byte> tintPeriodicidadInt
		{
			get
			{
				return this._tintPeriodicidadInt;
			}
			set
			{
				if ((this._tintPeriodicidadInt != value))
				{
					this._tintPeriodicidadInt = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintPreferenciaID", DbType="TinyInt")]
		public System.Nullable<byte> tintPreferenciaID
		{
			get
			{
				return this._tintPreferenciaID;
			}
			set
			{
				if ((this._tintPreferenciaID != value))
				{
					this._tintPreferenciaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTipoLinRevID", DbType="TinyInt")]
		public System.Nullable<byte> tintTipoLinRevID
		{
			get
			{
				return this._tintTipoLinRevID;
			}
			set
			{
				if ((this._tintTipoLinRevID != value))
				{
					this._tintTipoLinRevID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTipoBajaID", DbType="TinyInt")]
		public System.Nullable<byte> tintTipoBajaID
		{
			get
			{
				return this._tintTipoBajaID;
			}
			set
			{
				if ((this._tintTipoBajaID != value))
				{
					this._tintTipoBajaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintPeriodicidadCap", DbType="TinyInt")]
		public System.Nullable<byte> tintPeriodicidadCap
		{
			get
			{
				return this._tintPeriodicidadCap;
			}
			set
			{
				if ((this._tintPeriodicidadCap != value))
				{
					this._tintPeriodicidadCap = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintOperFormaID", DbType="TinyInt")]
		public System.Nullable<byte> tintOperFormaID
		{
			get
			{
				return this._tintOperFormaID;
			}
			set
			{
				if ((this._tintOperFormaID != value))
				{
					this._tintOperFormaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintExpedienCompID", DbType="TinyInt")]
		public System.Nullable<byte> tintExpedienCompID
		{
			get
			{
				return this._tintExpedienCompID;
			}
			set
			{
				if ((this._tintExpedienCompID != value))
				{
					this._tintExpedienCompID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintInfoRecuperaID", DbType="TinyInt")]
		public System.Nullable<byte> tintInfoRecuperaID
		{
			get
			{
				return this._tintInfoRecuperaID;
			}
			set
			{
				if ((this._tintInfoRecuperaID != value))
				{
					this._tintInfoRecuperaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintInstitucionID", DbType="SmallInt")]
		public System.Nullable<short> sintInstitucionID
		{
			get
			{
				return this._sintInstitucionID;
			}
			set
			{
				if ((this._sintInstitucionID != value))
				{
					this._sintInstitucionID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintClasificacionContaID", DbType="SmallInt")]
		public System.Nullable<short> sintClasificacionContaID
		{
			get
			{
				return this._sintClasificacionContaID;
			}
			set
			{
				if ((this._sintClasificacionContaID != value))
				{
					this._sintClasificacionContaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_decPorGarantiaFon", DbType="Decimal(9,2)")]
		public System.Nullable<decimal> decPorGarantiaFon
		{
			get
			{
				return this._decPorGarantiaFon;
			}
			set
			{
				if ((this._decPorGarantiaFon != value))
				{
					this._decPorGarantiaFon = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintClasificacionContaID1", DbType="SmallInt")]
		public System.Nullable<short> sintClasificacionContaID1
		{
			get
			{
				return this._sintClasificacionContaID1;
			}
			set
			{
				if ((this._sintClasificacionContaID1 != value))
				{
					this._sintClasificacionContaID1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintTipoCreditoIDPromo", DbType="SmallInt")]
		public System.Nullable<short> sintTipoCreditoIDPromo
		{
			get
			{
				return this._sintTipoCreditoIDPromo;
			}
			set
			{
				if ((this._sintTipoCreditoIDPromo != value))
				{
					this._sintTipoCreditoIDPromo = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
