#pragma warning disable 1591
//------------------------------------------------------------------------------
// <auto-generated>
//     Este código fue generado por una herramienta.
//     Versión de runtime:4.0.30319.1
//
//     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 lnqAccionistaDataContext : 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 lnqAccionistaDataContext() : 
				base(global::HCM.DataAccess.Properties.Settings.Default.SIHCEI_SBXConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public lnqAccionistaDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqAccionistaDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqAccionistaDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqAccionistaDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_iPersonasAccionista")]
		public ISingleResult<sp_iPersonasAccionistaResult> sp_iPersonasAccionista([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iPersonaId, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iCveRegimenFiscal, [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="VarChar(26)")] string sPrimerNombre, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(26)")] string sSegundoNombre, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Decimal(15,2)")] System.Nullable<decimal> pParticipacion, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Consec", DbType="Int")] System.Nullable<int> consec, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="UAlta", DbType="Int")] System.Nullable<int> uAlta)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iPersonaId, iCveRegimenFiscal, sApellidoPaterno, sApellidoMaterno, sPrimerNombre, sSegundoNombre, pParticipacion, iOperacionId, consec, uAlta);
			return ((ISingleResult<sp_iPersonasAccionistaResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.sp_getAccionista")]
		public ISingleResult<sp_getAccionistaResult> sp_getAccionista([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iOperacionId, [global::System.Data.Linq.Mapping.ParameterAttribute(Name="Consec", DbType="Int")] System.Nullable<int> consec)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iOperacionId, consec);
			return ((ISingleResult<sp_getAccionistaResult>)(result.ReturnValue));
		}
	}
	
	public partial class sp_iPersonasAccionistaResult
	{
		
		private int _iParticipeId;
		
		private int _Consec;
		
		public sp_iPersonasAccionistaResult()
		{
		}
		
		[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;
				}
			}
		}
	}
	
	public partial class sp_getAccionistaResult
	{
		
		private int _iPersonaId;
		
		private int _iPadrePersonaId;
		
		private int _iCveClasifTipoPersonaId;
		
		private int _iCveRegimenFiscal;
		
		private string _sApellidoPaterno;
		
		private string _sApellidoMaterno;
		
		private string _sPrimerNombre;
		
		private string _sSegundoNombre;
		
		private System.Nullable<decimal> _pParticipacion;
		
		private int _Consec;
		
		public sp_getAccionistaResult()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPersonaId", DbType="Int NOT NULL")]
		public int iPersonaId
		{
			get
			{
				return this._iPersonaId;
			}
			set
			{
				if ((this._iPersonaId != value))
				{
					this._iPersonaId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPadrePersonaId", DbType="Int NOT NULL")]
		public int iPadrePersonaId
		{
			get
			{
				return this._iPadrePersonaId;
			}
			set
			{
				if ((this._iPadrePersonaId != value))
				{
					this._iPadrePersonaId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iCveClasifTipoPersonaId", DbType="Int NOT NULL")]
		public int iCveClasifTipoPersonaId
		{
			get
			{
				return this._iCveClasifTipoPersonaId;
			}
			set
			{
				if ((this._iCveClasifTipoPersonaId != value))
				{
					this._iCveClasifTipoPersonaId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iCveRegimenFiscal", DbType="Int NOT NULL")]
		public int iCveRegimenFiscal
		{
			get
			{
				return this._iCveRegimenFiscal;
			}
			set
			{
				if ((this._iCveRegimenFiscal != value))
				{
					this._iCveRegimenFiscal = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sApellidoPaterno", DbType="VarChar(26)")]
		public string sApellidoPaterno
		{
			get
			{
				return this._sApellidoPaterno;
			}
			set
			{
				if ((this._sApellidoPaterno != value))
				{
					this._sApellidoPaterno = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sApellidoMaterno", DbType="VarChar(26)")]
		public string sApellidoMaterno
		{
			get
			{
				return this._sApellidoMaterno;
			}
			set
			{
				if ((this._sApellidoMaterno != value))
				{
					this._sApellidoMaterno = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sPrimerNombre", DbType="VarChar(26)")]
		public string sPrimerNombre
		{
			get
			{
				return this._sPrimerNombre;
			}
			set
			{
				if ((this._sPrimerNombre != value))
				{
					this._sPrimerNombre = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sSegundoNombre", DbType="VarChar(26)")]
		public string sSegundoNombre
		{
			get
			{
				return this._sSegundoNombre;
			}
			set
			{
				if ((this._sSegundoNombre != value))
				{
					this._sSegundoNombre = 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="_Consec", DbType="Int NOT NULL")]
		public int Consec
		{
			get
			{
				return this._Consec;
			}
			set
			{
				if ((this._Consec != value))
				{
					this._Consec = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
