#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     Este código fue generado por una herramienta.
//     Versión de runtime:4.0.30319.269
//
//     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_tmp")]
	public partial class lnqParticipeDataContext : 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 lnqParticipeDataContext() : 
				base(global::HCM.DataAccess.Properties.Settings.Default.SIHCEI_SBXConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public lnqParticipeDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqParticipeDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqParticipeDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqParticipeDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_iPersonasParticipes")]
		public ISingleResult<sp_iPersonasParticipesResult> sp_iPersonasParticipes([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iPersonaId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(26)")] string sPrimerNombre, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(26)")] string sSegundoNombre, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(26)")] string sApellidoPaterno, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(26)")] string sApellidoMaterno, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iCveRegimenFiscal, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="RFC", DbType="VarChar(50)")] string rFC, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iParticipeTipoId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="UAlta", DbType="Int")] System.Nullable<int> uAlta)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOperacionId, iPersonaId, sPrimerNombre, sSegundoNombre, sApellidoPaterno, sApellidoMaterno, iCveRegimenFiscal, rFC, iParticipeTipoId, uAlta);
			return ((ISingleResult<sp_iPersonasParticipesResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_getParticipes")]
		public ISingleResult<sp_getParticipesResult> sp_getParticipes([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iParticipeTipoId)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOperacionId, iParticipeTipoId);
			return ((ISingleResult<sp_getParticipesResult>)(result.ReturnValue));
		}
	}
	
	public partial class sp_iPersonasParticipesResult
	{
		
		private int _Consec;
		
		public sp_iPersonasParticipesResult()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Consec", DbType="Int NOT NULL")]
		public int Consec
		{
			get
			{
				return this._Consec;
			}
			set
			{
				if ((this._Consec != value))
				{
					this._Consec = value;
				}
			}
		}
	}
	
	public partial class sp_getParticipesResult
	{
		
		private int _iOperacionId;
		
		private int _iParticipeId;
		
		private int _Consec;
		
		private string _Nombre;
		
		private string _RFC;
		
		private System.Nullable<decimal> _pParticipacion;
		
		private string _Tel1;
		
		private string _Tel2;
		
		private System.Nullable<int> _iTipoGarantiaId;
		
		private System.Nullable<int> _iRelacionEmpresaId;
		
		private System.Nullable<System.DateTime> _FInactivo;
		
		private System.Nullable<decimal> _MParticipacion;
		
		private System.Nullable<byte> _tintTipoAvalID;
		
		private System.Nullable<bool> _bitEstatus;
		
		public sp_getParticipesResult()
		{
		}
		
		[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="_iParticipeId", DbType="Int NOT NULL")]
		public int iParticipeId
		{
			get
			{
				return this._iParticipeId;
			}
			set
			{
				if ((this._iParticipeId != value))
				{
					this._iParticipeId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Consec", DbType="Int NOT NULL")]
		public int Consec
		{
			get
			{
				return this._Consec;
			}
			set
			{
				if ((this._Consec != value))
				{
					this._Consec = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Nombre", DbType="VarChar(107)")]
		public string Nombre
		{
			get
			{
				return this._Nombre;
			}
			set
			{
				if ((this._Nombre != value))
				{
					this._Nombre = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RFC", DbType="VarChar(50)")]
		public string RFC
		{
			get
			{
				return this._RFC;
			}
			set
			{
				if ((this._RFC != value))
				{
					this._RFC = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_pParticipacion", DbType="Decimal(15,2)")]
		public System.Nullable<decimal> pParticipacion
		{
			get
			{
				return this._pParticipacion;
			}
			set
			{
				if ((this._pParticipacion != value))
				{
					this._pParticipacion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tel1", DbType="VarChar(50)")]
		public string Tel1
		{
			get
			{
				return this._Tel1;
			}
			set
			{
				if ((this._Tel1 != value))
				{
					this._Tel1 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tel2", DbType="VarChar(50)")]
		public string Tel2
		{
			get
			{
				return this._Tel2;
			}
			set
			{
				if ((this._Tel2 != value))
				{
					this._Tel2 = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iTipoGarantiaId", DbType="Int")]
		public System.Nullable<int> iTipoGarantiaId
		{
			get
			{
				return this._iTipoGarantiaId;
			}
			set
			{
				if ((this._iTipoGarantiaId != value))
				{
					this._iTipoGarantiaId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iRelacionEmpresaId", DbType="Int")]
		public System.Nullable<int> iRelacionEmpresaId
		{
			get
			{
				return this._iRelacionEmpresaId;
			}
			set
			{
				if ((this._iRelacionEmpresaId != value))
				{
					this._iRelacionEmpresaId = 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="_MParticipacion", DbType="Decimal(15,2)")]
		public System.Nullable<decimal> MParticipacion
		{
			get
			{
				return this._MParticipacion;
			}
			set
			{
				if ((this._MParticipacion != value))
				{
					this._MParticipacion = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTipoAvalID", DbType="TinyInt")]
		public System.Nullable<byte> tintTipoAvalID
		{
			get
			{
				return this._tintTipoAvalID;
			}
			set
			{
				if ((this._tintTipoAvalID != value))
				{
					this._tintTipoAvalID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_bitEstatus", DbType="Bit")]
		public System.Nullable<bool> bitEstatus
		{
			get
			{
				return this._bitEstatus;
			}
			set
			{
				if ((this._bitEstatus != value))
				{
					this._bitEstatus = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
