#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 lnqGarantiasDataContext : 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 lnqGarantiasDataContext() : 
				base(global::HCM.DataAccess.Properties.Settings.Default.SIHCEI_SBXConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public lnqGarantiasDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqGarantiasDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqGarantiasDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqGarantiasDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_iOperacionesGarantia")]
		public ISingleResult<sp_iOperacionesGarantiaResult> sp_iOperacionesGarantia([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iGarantiasId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintTipoGarantiaID, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Decimal(15,2)")] System.Nullable<decimal> nValorComercial, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintMonedaID, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Date")] System.Nullable<System.DateTime> datFechaValuacion, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintGradoPrelacion, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(100)")] string vchDescripcion, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Bit")] System.Nullable<bool> bitBursatilidad, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Bit")] System.Nullable<bool> bitLiquidez, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintInstitucionID, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="UAlta", DbType="Int")] System.Nullable<int> uAlta, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintIndividual)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iGarantiasId, iOperacionId, sintTipoGarantiaID, nValorComercial, sintMonedaID, datFechaValuacion, sintGradoPrelacion, vchDescripcion, bitBursatilidad, bitLiquidez, sintInstitucionID, uAlta, sintIndividual);
			return ((ISingleResult<sp_iOperacionesGarantiaResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_getOperacionesGarantia")]
		public ISingleResult<sp_getOperacionesGarantiaResult> sp_getOperacionesGarantia([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> sintIndividual)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOperacionId, sintIndividual);
			return ((ISingleResult<sp_getOperacionesGarantiaResult>)(result.ReturnValue));
		}
	}
	
	public partial class sp_iOperacionesGarantiaResult
	{
		
		private System.Nullable<int> _iGarantiasId;
		
		public sp_iOperacionesGarantiaResult()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iGarantiasId", DbType="Int")]
		public System.Nullable<int> iGarantiasId
		{
			get
			{
				return this._iGarantiasId;
			}
			set
			{
				if ((this._iGarantiasId != value))
				{
					this._iGarantiasId = value;
				}
			}
		}
	}
	
	public partial class sp_getOperacionesGarantiaResult
	{
		
		private int _iOperacionId;
		
		private System.Nullable<decimal> _dcSuperficie;
		
		private System.Nullable<int> _iFiguraJuridicaId;
		
		private System.Nullable<decimal> _nValorComercial;
		
		private string _sNumeroEscritura;
		
		private System.Nullable<bool> _bOrigenEjidal;
		
		private System.Nullable<int> _iEstatusJuridicoId;
		
		private System.DateTime _FAlta;
		
		private System.Nullable<System.DateTime> _FInactivo;
		
		private int _UAlta;
		
		private int _iGarantiasId;
		
		private System.Nullable<short> _sintInstitucionID;
		
		private string _strInstitucion;
		
		private System.Nullable<short> _sintTipoGarantiaID;
		
		private string _strTipoGrantia;
		
		private System.Nullable<short> _sintMonedaID;
		
		private string _strMoneda;
		
		private System.Nullable<System.DateTime> _datFechaValuacion;
		
		private System.Nullable<short> _sintGradoPrelacion;
		
		private string _vchDescripcion;
		
		private System.Nullable<bool> _bitBursatilidad;
		
		private System.Nullable<bool> _bitLiquidez;
		
		public sp_getOperacionesGarantiaResult()
		{
		}
		
		[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="_dcSuperficie", DbType="Decimal(18,0)")]
		public System.Nullable<decimal> dcSuperficie
		{
			get
			{
				return this._dcSuperficie;
			}
			set
			{
				if ((this._dcSuperficie != value))
				{
					this._dcSuperficie = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iFiguraJuridicaId", DbType="Int")]
		public System.Nullable<int> iFiguraJuridicaId
		{
			get
			{
				return this._iFiguraJuridicaId;
			}
			set
			{
				if ((this._iFiguraJuridicaId != value))
				{
					this._iFiguraJuridicaId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_nValorComercial", DbType="Decimal(15,2)")]
		public System.Nullable<decimal> nValorComercial
		{
			get
			{
				return this._nValorComercial;
			}
			set
			{
				if ((this._nValorComercial != value))
				{
					this._nValorComercial = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNumeroEscritura", DbType="VarChar(30)")]
		public string sNumeroEscritura
		{
			get
			{
				return this._sNumeroEscritura;
			}
			set
			{
				if ((this._sNumeroEscritura != value))
				{
					this._sNumeroEscritura = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_bOrigenEjidal", DbType="Bit")]
		public System.Nullable<bool> bOrigenEjidal
		{
			get
			{
				return this._bOrigenEjidal;
			}
			set
			{
				if ((this._bOrigenEjidal != value))
				{
					this._bOrigenEjidal = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iEstatusJuridicoId", DbType="Int")]
		public System.Nullable<int> iEstatusJuridicoId
		{
			get
			{
				return this._iEstatusJuridicoId;
			}
			set
			{
				if ((this._iEstatusJuridicoId != value))
				{
					this._iEstatusJuridicoId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FAlta", DbType="DateTime NOT NULL")]
		public System.DateTime FAlta
		{
			get
			{
				return this._FAlta;
			}
			set
			{
				if ((this._FAlta != value))
				{
					this._FAlta = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FInactivo", DbType="DateTime")]
		public System.Nullable<System.DateTime> FInactivo
		{
			get
			{
				return this._FInactivo;
			}
			set
			{
				if ((this._FInactivo != value))
				{
					this._FInactivo = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAlta", DbType="Int NOT NULL")]
		public int UAlta
		{
			get
			{
				return this._UAlta;
			}
			set
			{
				if ((this._UAlta != value))
				{
					this._UAlta = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iGarantiasId", DbType="Int NOT NULL")]
		public int iGarantiasId
		{
			get
			{
				return this._iGarantiasId;
			}
			set
			{
				if ((this._iGarantiasId != value))
				{
					this._iGarantiasId = 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="_strInstitucion", DbType="VarChar(160)")]
		public string strInstitucion
		{
			get
			{
				return this._strInstitucion;
			}
			set
			{
				if ((this._strInstitucion != value))
				{
					this._strInstitucion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintTipoGarantiaID", DbType="SmallInt")]
		public System.Nullable<short> sintTipoGarantiaID
		{
			get
			{
				return this._sintTipoGarantiaID;
			}
			set
			{
				if ((this._sintTipoGarantiaID != value))
				{
					this._sintTipoGarantiaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_strTipoGrantia", DbType="VarChar(175)")]
		public string strTipoGrantia
		{
			get
			{
				return this._strTipoGrantia;
			}
			set
			{
				if ((this._strTipoGrantia != value))
				{
					this._strTipoGrantia = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintMonedaID", DbType="SmallInt")]
		public System.Nullable<short> sintMonedaID
		{
			get
			{
				return this._sintMonedaID;
			}
			set
			{
				if ((this._sintMonedaID != value))
				{
					this._sintMonedaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_strMoneda", DbType="VarChar(60)")]
		public string strMoneda
		{
			get
			{
				return this._strMoneda;
			}
			set
			{
				if ((this._strMoneda != value))
				{
					this._strMoneda = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_datFechaValuacion", DbType="Date")]
		public System.Nullable<System.DateTime> datFechaValuacion
		{
			get
			{
				return this._datFechaValuacion;
			}
			set
			{
				if ((this._datFechaValuacion != value))
				{
					this._datFechaValuacion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintGradoPrelacion", DbType="SmallInt")]
		public System.Nullable<short> sintGradoPrelacion
		{
			get
			{
				return this._sintGradoPrelacion;
			}
			set
			{
				if ((this._sintGradoPrelacion != value))
				{
					this._sintGradoPrelacion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_vchDescripcion", DbType="VarChar(350)")]
		public string vchDescripcion
		{
			get
			{
				return this._vchDescripcion;
			}
			set
			{
				if ((this._vchDescripcion != value))
				{
					this._vchDescripcion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_bitBursatilidad", DbType="Bit")]
		public System.Nullable<bool> bitBursatilidad
		{
			get
			{
				return this._bitBursatilidad;
			}
			set
			{
				if ((this._bitBursatilidad != value))
				{
					this._bitBursatilidad = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_bitLiquidez", DbType="Bit")]
		public System.Nullable<bool> bitLiquidez
		{
			get
			{
				return this._bitLiquidez;
			}
			set
			{
				if ((this._bitLiquidez != value))
				{
					this._bitLiquidez = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
