#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 lnqPersonasDataContext : System.Data.Linq.DataContext
	{
		
		private static System.Data.Linq.Mapping.MappingSource mappingSource = new AttributeMappingSource();
		
    #region Definiciones de métodos de extensibilidad
    partial void OnCreated();
    partial void Inserttbl_Personas_Domicilios(tbl_Personas_Domicilios instance);
    partial void Updatetbl_Personas_Domicilios(tbl_Personas_Domicilios instance);
    partial void Deletetbl_Personas_Domicilios(tbl_Personas_Domicilios instance);
    partial void Inserttbl_Personas_Identificaciones(tbl_Personas_Identificaciones instance);
    partial void Updatetbl_Personas_Identificaciones(tbl_Personas_Identificaciones instance);
    partial void Deletetbl_Personas_Identificaciones(tbl_Personas_Identificaciones instance);
    #endregion
		
		public lnqPersonasDataContext() : 
				base(global::HCM.DataAccess.Properties.Settings.Default.SIHCEI_SBXConnectionString, mappingSource)
		{
			OnCreated();
		}
		
		public lnqPersonasDataContext(string connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqPersonasDataContext(System.Data.IDbConnection connection) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqPersonasDataContext(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public lnqPersonasDataContext(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) : 
				base(connection, mappingSource)
		{
			OnCreated();
		}
		
		public System.Data.Linq.Table<tbl_Personas_Domicilios> tbl_Personas_Domicilios
		{
			get
			{
				return this.GetTable<tbl_Personas_Domicilios>();
			}
		}
		
		public System.Data.Linq.Table<tbl_Personas_Identificaciones> tbl_Personas_Identificaciones
		{
			get
			{
				return this.GetTable<tbl_Personas_Identificaciones>();
			}
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.stp_getBuscaPersona")]
		public ISingleResult<stp_getBuscaPersonaResult> stp_getBuscaPersona([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(200)")] string vchNombre, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(15)")] string vchRFC)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), vchNombre, vchRFC);
			return ((ISingleResult<stp_getBuscaPersonaResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.stp_setDatosClienteBajaWare")]
		public int stp_setDatosClienteBajaWare(
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintAreaCaptura, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(1)")] string vchNegocio, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iPersonaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(100)")] string vchPrimerNombre, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(50)")] string vchApellidoPaterno, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(50)")] string vchApellidoMaterno, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(15)")] string vchRFC, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintActividadEconomicaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintTamDeudorID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> sintTipoAcreditadoRelacionadoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> sintRiesgoIndustriaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> sintRiesgoFinancieroID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintRiesgoExperPagoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> intEjecutivoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(15)")] string vchTelefono, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintSucursalBancariaID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(Name="Industria", DbType="SmallInt")] System.Nullable<short> industria, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> intEntidadGobiernoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Decimal(4,2)")] System.Nullable<decimal> decCalificacionBC, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintNombreGrupoEconomicoID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintPersonalidadJurFisMoral, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintSectorID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintNumeroEmpleados, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Decimal(10,2)")] System.Nullable<decimal> decIngresoBruto, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(8)")] string vchFolioConsultaBuro, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(8)")] string vchFechaConsultaBuro, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] System.Nullable<short> sintComprobanteIngresosID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintSectorLabID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(100)")] string vchNombreCNBV, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="TinyInt")] System.Nullable<byte> tintRelAcredID, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="SmallInt")] ref System.Nullable<short> sinError, 
					[global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(500)")] ref string vchMensaje)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), sintAreaCaptura, vchNegocio, iPersonaID, vchPrimerNombre, vchApellidoPaterno, vchApellidoMaterno, vchRFC, sintActividadEconomicaID, tintTamDeudorID, sintTipoAcreditadoRelacionadoID, sintRiesgoIndustriaID, sintRiesgoFinancieroID, tintRiesgoExperPagoID, intEjecutivoID, vchTelefono, sintSucursalBancariaID, industria, intEntidadGobiernoID, decCalificacionBC, sintNombreGrupoEconomicoID, sintPersonalidadJurFisMoral, sintSectorID, sintNumeroEmpleados, decIngresoBruto, vchFolioConsultaBuro, vchFechaConsultaBuro, sintComprobanteIngresosID, tintSectorLabID, vchNombreCNBV, tintRelAcredID, sinError, vchMensaje);
			sinError = ((System.Nullable<short>)(result.GetParameterValue(30)));
			vchMensaje = ((string)(result.GetParameterValue(31)));
			return ((int)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.stp_getDatosClienteBajaWare")]
		public ISingleResult<stp_getDatosClienteBajaWareResult> stp_getDatosClienteBajaWare([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> iPersonaID, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(1)")] string vchNegocio)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), iPersonaID, vchNegocio);
			return ((ISingleResult<stp_getDatosClienteBajaWareResult>)(result.ReturnValue));
		}
		
		[global::System.Data.Linq.Mapping.FunctionAttribute(Name="dbo.stp_getDomicilioPersona")]
		public ISingleResult<stp_getDomicilioPersonaResult> stp_getDomicilioPersona([global::System.Data.Linq.Mapping.ParameterAttribute(DbType="Int")] System.Nullable<int> intPersonaID, [global::System.Data.Linq.Mapping.ParameterAttribute(DbType="VarChar(1)")] string vchNegocio)
		{
			IExecuteResult result = this.ExecuteMethodCall(this, ((MethodInfo)(MethodInfo.GetCurrentMethod())), intPersonaID, vchNegocio);
			return ((ISingleResult<stp_getDomicilioPersonaResult>)(result.ReturnValue));
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tbl_Personas_Domicilios")]
	public partial class tbl_Personas_Domicilios : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _iDomicilioId;
		
		private int _iPersonaId;
		
		private int _iPadrePersonaId;
		
		private int _iTipoDomicilioId;
		
		private string _sCalle;
		
		private string _sNumInterior;
		
		private string _sNumExterior;
		
		private string _sColonia;
		
		private string _sDelegMpo;
		
		private string _sCiudad;
		
		private string _sEstado;
		
		private string _sCodigoPostal;
		
		private System.Nullable<int> _iPais;
		
		private string _sEntreCalle1;
		
		private string _sEntreCalle2;
		
		private System.Nullable<int> _iViveenCasa;
		
		private System.Nullable<int> _iTipoVivienda;
		
		private System.Nullable<System.DateTime> _iFechaInicioRecidencia;
		
		private System.Nullable<int> _iTipoAsentamiento;
		
		private System.Nullable<int> _iTipoConservacion;
		
		private string _CUV;
		
		private string _Domicilio_Adicional;
		
		private System.Nullable<int> _iMunicipioDelegacionId;
		
		private System.Nullable<int> _iCiudadId;
		
		private System.DateTime _FAlta;
		
		private System.Nullable<int> _UAlta;
		
		private System.Nullable<System.DateTime> _FInactivo;
		
		private System.Nullable<decimal> _pAO;
		
		private System.Nullable<int> _CIV;
		
		private System.Nullable<int> _iEstadoId;
		
		private System.Nullable<int> _iLocalidadId;
		
		private System.Nullable<short> _sintLocalidadID;
		
    #region Definiciones de métodos de extensibilidad
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OniDomicilioIdChanging(int value);
    partial void OniDomicilioIdChanged();
    partial void OniPersonaIdChanging(int value);
    partial void OniPersonaIdChanged();
    partial void OniPadrePersonaIdChanging(int value);
    partial void OniPadrePersonaIdChanged();
    partial void OniTipoDomicilioIdChanging(int value);
    partial void OniTipoDomicilioIdChanged();
    partial void OnsCalleChanging(string value);
    partial void OnsCalleChanged();
    partial void OnsNumInteriorChanging(string value);
    partial void OnsNumInteriorChanged();
    partial void OnsNumExteriorChanging(string value);
    partial void OnsNumExteriorChanged();
    partial void OnsColoniaChanging(string value);
    partial void OnsColoniaChanged();
    partial void OnsDelegMpoChanging(string value);
    partial void OnsDelegMpoChanged();
    partial void OnsCiudadChanging(string value);
    partial void OnsCiudadChanged();
    partial void OnsEstadoChanging(string value);
    partial void OnsEstadoChanged();
    partial void OnsCodigoPostalChanging(string value);
    partial void OnsCodigoPostalChanged();
    partial void OniPaisChanging(System.Nullable<int> value);
    partial void OniPaisChanged();
    partial void OnsEntreCalle1Changing(string value);
    partial void OnsEntreCalle1Changed();
    partial void OnsEntreCalle2Changing(string value);
    partial void OnsEntreCalle2Changed();
    partial void OniViveenCasaChanging(System.Nullable<int> value);
    partial void OniViveenCasaChanged();
    partial void OniTipoViviendaChanging(System.Nullable<int> value);
    partial void OniTipoViviendaChanged();
    partial void OniFechaInicioRecidenciaChanging(System.Nullable<System.DateTime> value);
    partial void OniFechaInicioRecidenciaChanged();
    partial void OniTipoAsentamientoChanging(System.Nullable<int> value);
    partial void OniTipoAsentamientoChanged();
    partial void OniTipoConservacionChanging(System.Nullable<int> value);
    partial void OniTipoConservacionChanged();
    partial void OnCUVChanging(string value);
    partial void OnCUVChanged();
    partial void OnDomicilio_AdicionalChanging(string value);
    partial void OnDomicilio_AdicionalChanged();
    partial void OniMunicipioDelegacionIdChanging(System.Nullable<int> value);
    partial void OniMunicipioDelegacionIdChanged();
    partial void OniCiudadIdChanging(System.Nullable<int> value);
    partial void OniCiudadIdChanged();
    partial void OnFAltaChanging(System.DateTime value);
    partial void OnFAltaChanged();
    partial void OnUAltaChanging(System.Nullable<int> value);
    partial void OnUAltaChanged();
    partial void OnFInactivoChanging(System.Nullable<System.DateTime> value);
    partial void OnFInactivoChanged();
    partial void OnpAOChanging(System.Nullable<decimal> value);
    partial void OnpAOChanged();
    partial void OnCIVChanging(System.Nullable<int> value);
    partial void OnCIVChanged();
    partial void OniEstadoIdChanging(System.Nullable<int> value);
    partial void OniEstadoIdChanged();
    partial void OniLocalidadIdChanging(System.Nullable<int> value);
    partial void OniLocalidadIdChanged();
    partial void OnsintLocalidadIDChanging(System.Nullable<short> value);
    partial void OnsintLocalidadIDChanged();
    #endregion
		
		public tbl_Personas_Domicilios()
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iDomicilioId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iDomicilioId
		{
			get
			{
				return this._iDomicilioId;
			}
			set
			{
				if ((this._iDomicilioId != value))
				{
					this.OniDomicilioIdChanging(value);
					this.SendPropertyChanging();
					this._iDomicilioId = value;
					this.SendPropertyChanged("iDomicilioId");
					this.OniDomicilioIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPersonaId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iPersonaId
		{
			get
			{
				return this._iPersonaId;
			}
			set
			{
				if ((this._iPersonaId != value))
				{
					this.OniPersonaIdChanging(value);
					this.SendPropertyChanging();
					this._iPersonaId = value;
					this.SendPropertyChanged("iPersonaId");
					this.OniPersonaIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPadrePersonaId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iPadrePersonaId
		{
			get
			{
				return this._iPadrePersonaId;
			}
			set
			{
				if ((this._iPadrePersonaId != value))
				{
					this.OniPadrePersonaIdChanging(value);
					this.SendPropertyChanging();
					this._iPadrePersonaId = value;
					this.SendPropertyChanged("iPadrePersonaId");
					this.OniPadrePersonaIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iTipoDomicilioId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iTipoDomicilioId
		{
			get
			{
				return this._iTipoDomicilioId;
			}
			set
			{
				if ((this._iTipoDomicilioId != value))
				{
					this.OniTipoDomicilioIdChanging(value);
					this.SendPropertyChanging();
					this._iTipoDomicilioId = value;
					this.SendPropertyChanged("iTipoDomicilioId");
					this.OniTipoDomicilioIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCalle", DbType="VarChar(80) NOT NULL", CanBeNull=false)]
		public string sCalle
		{
			get
			{
				return this._sCalle;
			}
			set
			{
				if ((this._sCalle != value))
				{
					this.OnsCalleChanging(value);
					this.SendPropertyChanging();
					this._sCalle = value;
					this.SendPropertyChanged("sCalle");
					this.OnsCalleChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNumInterior", DbType="VarChar(25) NOT NULL", CanBeNull=false)]
		public string sNumInterior
		{
			get
			{
				return this._sNumInterior;
			}
			set
			{
				if ((this._sNumInterior != value))
				{
					this.OnsNumInteriorChanging(value);
					this.SendPropertyChanging();
					this._sNumInterior = value;
					this.SendPropertyChanged("sNumInterior");
					this.OnsNumInteriorChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNumExterior", DbType="VarChar(25)")]
		public string sNumExterior
		{
			get
			{
				return this._sNumExterior;
			}
			set
			{
				if ((this._sNumExterior != value))
				{
					this.OnsNumExteriorChanging(value);
					this.SendPropertyChanging();
					this._sNumExterior = value;
					this.SendPropertyChanged("sNumExterior");
					this.OnsNumExteriorChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sColonia", DbType="VarChar(255)")]
		public string sColonia
		{
			get
			{
				return this._sColonia;
			}
			set
			{
				if ((this._sColonia != value))
				{
					this.OnsColoniaChanging(value);
					this.SendPropertyChanging();
					this._sColonia = value;
					this.SendPropertyChanged("sColonia");
					this.OnsColoniaChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sDelegMpo", DbType="VarChar(50)")]
		public string sDelegMpo
		{
			get
			{
				return this._sDelegMpo;
			}
			set
			{
				if ((this._sDelegMpo != value))
				{
					this.OnsDelegMpoChanging(value);
					this.SendPropertyChanging();
					this._sDelegMpo = value;
					this.SendPropertyChanged("sDelegMpo");
					this.OnsDelegMpoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCiudad", DbType="VarChar(40)")]
		public string sCiudad
		{
			get
			{
				return this._sCiudad;
			}
			set
			{
				if ((this._sCiudad != value))
				{
					this.OnsCiudadChanging(value);
					this.SendPropertyChanging();
					this._sCiudad = value;
					this.SendPropertyChanged("sCiudad");
					this.OnsCiudadChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sEstado", DbType="VarChar(40)")]
		public string sEstado
		{
			get
			{
				return this._sEstado;
			}
			set
			{
				if ((this._sEstado != value))
				{
					this.OnsEstadoChanging(value);
					this.SendPropertyChanging();
					this._sEstado = value;
					this.SendPropertyChanged("sEstado");
					this.OnsEstadoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCodigoPostal", DbType="VarChar(5)")]
		public string sCodigoPostal
		{
			get
			{
				return this._sCodigoPostal;
			}
			set
			{
				if ((this._sCodigoPostal != value))
				{
					this.OnsCodigoPostalChanging(value);
					this.SendPropertyChanging();
					this._sCodigoPostal = value;
					this.SendPropertyChanged("sCodigoPostal");
					this.OnsCodigoPostalChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPais", DbType="Int")]
		public System.Nullable<int> iPais
		{
			get
			{
				return this._iPais;
			}
			set
			{
				if ((this._iPais != value))
				{
					this.OniPaisChanging(value);
					this.SendPropertyChanging();
					this._iPais = value;
					this.SendPropertyChanged("iPais");
					this.OniPaisChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sEntreCalle1", DbType="VarChar(20)")]
		public string sEntreCalle1
		{
			get
			{
				return this._sEntreCalle1;
			}
			set
			{
				if ((this._sEntreCalle1 != value))
				{
					this.OnsEntreCalle1Changing(value);
					this.SendPropertyChanging();
					this._sEntreCalle1 = value;
					this.SendPropertyChanged("sEntreCalle1");
					this.OnsEntreCalle1Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sEntreCalle2", DbType="VarChar(20)")]
		public string sEntreCalle2
		{
			get
			{
				return this._sEntreCalle2;
			}
			set
			{
				if ((this._sEntreCalle2 != value))
				{
					this.OnsEntreCalle2Changing(value);
					this.SendPropertyChanging();
					this._sEntreCalle2 = value;
					this.SendPropertyChanged("sEntreCalle2");
					this.OnsEntreCalle2Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iViveenCasa", DbType="Int")]
		public System.Nullable<int> iViveenCasa
		{
			get
			{
				return this._iViveenCasa;
			}
			set
			{
				if ((this._iViveenCasa != value))
				{
					this.OniViveenCasaChanging(value);
					this.SendPropertyChanging();
					this._iViveenCasa = value;
					this.SendPropertyChanged("iViveenCasa");
					this.OniViveenCasaChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iTipoVivienda", DbType="Int")]
		public System.Nullable<int> iTipoVivienda
		{
			get
			{
				return this._iTipoVivienda;
			}
			set
			{
				if ((this._iTipoVivienda != value))
				{
					this.OniTipoViviendaChanging(value);
					this.SendPropertyChanging();
					this._iTipoVivienda = value;
					this.SendPropertyChanged("iTipoVivienda");
					this.OniTipoViviendaChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iFechaInicioRecidencia", DbType="DateTime")]
		public System.Nullable<System.DateTime> iFechaInicioRecidencia
		{
			get
			{
				return this._iFechaInicioRecidencia;
			}
			set
			{
				if ((this._iFechaInicioRecidencia != value))
				{
					this.OniFechaInicioRecidenciaChanging(value);
					this.SendPropertyChanging();
					this._iFechaInicioRecidencia = value;
					this.SendPropertyChanged("iFechaInicioRecidencia");
					this.OniFechaInicioRecidenciaChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iTipoAsentamiento", DbType="Int")]
		public System.Nullable<int> iTipoAsentamiento
		{
			get
			{
				return this._iTipoAsentamiento;
			}
			set
			{
				if ((this._iTipoAsentamiento != value))
				{
					this.OniTipoAsentamientoChanging(value);
					this.SendPropertyChanging();
					this._iTipoAsentamiento = value;
					this.SendPropertyChanged("iTipoAsentamiento");
					this.OniTipoAsentamientoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iTipoConservacion", DbType="Int")]
		public System.Nullable<int> iTipoConservacion
		{
			get
			{
				return this._iTipoConservacion;
			}
			set
			{
				if ((this._iTipoConservacion != value))
				{
					this.OniTipoConservacionChanging(value);
					this.SendPropertyChanging();
					this._iTipoConservacion = value;
					this.SendPropertyChanged("iTipoConservacion");
					this.OniTipoConservacionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CUV", DbType="VarChar(30)")]
		public string CUV
		{
			get
			{
				return this._CUV;
			}
			set
			{
				if ((this._CUV != value))
				{
					this.OnCUVChanging(value);
					this.SendPropertyChanging();
					this._CUV = value;
					this.SendPropertyChanged("CUV");
					this.OnCUVChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Domicilio_Adicional", DbType="VarChar(50)")]
		public string Domicilio_Adicional
		{
			get
			{
				return this._Domicilio_Adicional;
			}
			set
			{
				if ((this._Domicilio_Adicional != value))
				{
					this.OnDomicilio_AdicionalChanging(value);
					this.SendPropertyChanging();
					this._Domicilio_Adicional = value;
					this.SendPropertyChanged("Domicilio_Adicional");
					this.OnDomicilio_AdicionalChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iMunicipioDelegacionId", DbType="Int")]
		public System.Nullable<int> iMunicipioDelegacionId
		{
			get
			{
				return this._iMunicipioDelegacionId;
			}
			set
			{
				if ((this._iMunicipioDelegacionId != value))
				{
					this.OniMunicipioDelegacionIdChanging(value);
					this.SendPropertyChanging();
					this._iMunicipioDelegacionId = value;
					this.SendPropertyChanged("iMunicipioDelegacionId");
					this.OniMunicipioDelegacionIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iCiudadId", DbType="Int")]
		public System.Nullable<int> iCiudadId
		{
			get
			{
				return this._iCiudadId;
			}
			set
			{
				if ((this._iCiudadId != value))
				{
					this.OniCiudadIdChanging(value);
					this.SendPropertyChanging();
					this._iCiudadId = value;
					this.SendPropertyChanged("iCiudadId");
					this.OniCiudadIdChanged();
				}
			}
		}
		
		[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.OnFAltaChanging(value);
					this.SendPropertyChanging();
					this._FAlta = value;
					this.SendPropertyChanged("FAlta");
					this.OnFAltaChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_UAlta", DbType="Int")]
		public System.Nullable<int> UAlta
		{
			get
			{
				return this._UAlta;
			}
			set
			{
				if ((this._UAlta != value))
				{
					this.OnUAltaChanging(value);
					this.SendPropertyChanging();
					this._UAlta = value;
					this.SendPropertyChanged("UAlta");
					this.OnUAltaChanged();
				}
			}
		}
		
		[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.OnFInactivoChanging(value);
					this.SendPropertyChanging();
					this._FInactivo = value;
					this.SendPropertyChanged("FInactivo");
					this.OnFInactivoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_pAO", DbType="Decimal(15,2)")]
		public System.Nullable<decimal> pAO
		{
			get
			{
				return this._pAO;
			}
			set
			{
				if ((this._pAO != value))
				{
					this.OnpAOChanging(value);
					this.SendPropertyChanging();
					this._pAO = value;
					this.SendPropertyChanged("pAO");
					this.OnpAOChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CIV", DbType="Int")]
		public System.Nullable<int> CIV
		{
			get
			{
				return this._CIV;
			}
			set
			{
				if ((this._CIV != value))
				{
					this.OnCIVChanging(value);
					this.SendPropertyChanging();
					this._CIV = value;
					this.SendPropertyChanged("CIV");
					this.OnCIVChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iEstadoId", DbType="Int")]
		public System.Nullable<int> iEstadoId
		{
			get
			{
				return this._iEstadoId;
			}
			set
			{
				if ((this._iEstadoId != value))
				{
					this.OniEstadoIdChanging(value);
					this.SendPropertyChanging();
					this._iEstadoId = value;
					this.SendPropertyChanged("iEstadoId");
					this.OniEstadoIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iLocalidadId", DbType="Int")]
		public System.Nullable<int> iLocalidadId
		{
			get
			{
				return this._iLocalidadId;
			}
			set
			{
				if ((this._iLocalidadId != value))
				{
					this.OniLocalidadIdChanging(value);
					this.SendPropertyChanging();
					this._iLocalidadId = value;
					this.SendPropertyChanged("iLocalidadId");
					this.OniLocalidadIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintLocalidadID", DbType="SmallInt")]
		public System.Nullable<short> sintLocalidadID
		{
			get
			{
				return this._sintLocalidadID;
			}
			set
			{
				if ((this._sintLocalidadID != value))
				{
					this.OnsintLocalidadIDChanging(value);
					this.SendPropertyChanging();
					this._sintLocalidadID = value;
					this.SendPropertyChanged("sintLocalidadID");
					this.OnsintLocalidadIDChanged();
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.tbl_Personas_Identificaciones")]
	public partial class tbl_Personas_Identificaciones : INotifyPropertyChanging, INotifyPropertyChanged
	{
		
		private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
		
		private int _iIdentificacionId;
		
		private int _iPersonaId;
		
		private int _iPadrePersonaId;
		
		private int _iCveTipoIdentificacion;
		
		private string _sCampo1;
		
		private string _sCampo2;
		
		private string _sCampo3;
		
		private System.Nullable<System.DateTime> _dFechaExpedicion;
		
		private System.Nullable<System.DateTime> _dFechaVencimiento;
		
		private System.Nullable<int> _iLugarExpedicion;
		
		private System.Nullable<int> _iCatAdicional;
		
		private System.DateTime _FAlta;
		
		private int _UAlta;
		
		private System.Nullable<System.DateTime> _FInactivo;
		
		private System.Nullable<int> _iPais;
		
		private System.Nullable<int> _iEmpleoId;
		
    #region Definiciones de métodos de extensibilidad
    partial void OnLoaded();
    partial void OnValidate(System.Data.Linq.ChangeAction action);
    partial void OnCreated();
    partial void OniIdentificacionIdChanging(int value);
    partial void OniIdentificacionIdChanged();
    partial void OniPersonaIdChanging(int value);
    partial void OniPersonaIdChanged();
    partial void OniPadrePersonaIdChanging(int value);
    partial void OniPadrePersonaIdChanged();
    partial void OniCveTipoIdentificacionChanging(int value);
    partial void OniCveTipoIdentificacionChanged();
    partial void OnsCampo1Changing(string value);
    partial void OnsCampo1Changed();
    partial void OnsCampo2Changing(string value);
    partial void OnsCampo2Changed();
    partial void OnsCampo3Changing(string value);
    partial void OnsCampo3Changed();
    partial void OndFechaExpedicionChanging(System.Nullable<System.DateTime> value);
    partial void OndFechaExpedicionChanged();
    partial void OndFechaVencimientoChanging(System.Nullable<System.DateTime> value);
    partial void OndFechaVencimientoChanged();
    partial void OniLugarExpedicionChanging(System.Nullable<int> value);
    partial void OniLugarExpedicionChanged();
    partial void OniCatAdicionalChanging(System.Nullable<int> value);
    partial void OniCatAdicionalChanged();
    partial void OnFAltaChanging(System.DateTime value);
    partial void OnFAltaChanged();
    partial void OnUAltaChanging(int value);
    partial void OnUAltaChanged();
    partial void OnFInactivoChanging(System.Nullable<System.DateTime> value);
    partial void OnFInactivoChanged();
    partial void OniPaisChanging(System.Nullable<int> value);
    partial void OniPaisChanged();
    partial void OniEmpleoIdChanging(System.Nullable<int> value);
    partial void OniEmpleoIdChanged();
    #endregion
		
		public tbl_Personas_Identificaciones()
		{
			OnCreated();
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iIdentificacionId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iIdentificacionId
		{
			get
			{
				return this._iIdentificacionId;
			}
			set
			{
				if ((this._iIdentificacionId != value))
				{
					this.OniIdentificacionIdChanging(value);
					this.SendPropertyChanging();
					this._iIdentificacionId = value;
					this.SendPropertyChanged("iIdentificacionId");
					this.OniIdentificacionIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPersonaId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iPersonaId
		{
			get
			{
				return this._iPersonaId;
			}
			set
			{
				if ((this._iPersonaId != value))
				{
					this.OniPersonaIdChanging(value);
					this.SendPropertyChanging();
					this._iPersonaId = value;
					this.SendPropertyChanged("iPersonaId");
					this.OniPersonaIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPadrePersonaId", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iPadrePersonaId
		{
			get
			{
				return this._iPadrePersonaId;
			}
			set
			{
				if ((this._iPadrePersonaId != value))
				{
					this.OniPadrePersonaIdChanging(value);
					this.SendPropertyChanging();
					this._iPadrePersonaId = value;
					this.SendPropertyChanged("iPadrePersonaId");
					this.OniPadrePersonaIdChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iCveTipoIdentificacion", DbType="Int NOT NULL", IsPrimaryKey=true)]
		public int iCveTipoIdentificacion
		{
			get
			{
				return this._iCveTipoIdentificacion;
			}
			set
			{
				if ((this._iCveTipoIdentificacion != value))
				{
					this.OniCveTipoIdentificacionChanging(value);
					this.SendPropertyChanging();
					this._iCveTipoIdentificacion = value;
					this.SendPropertyChanged("iCveTipoIdentificacion");
					this.OniCveTipoIdentificacionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCampo1", DbType="VarChar(50)")]
		public string sCampo1
		{
			get
			{
				return this._sCampo1;
			}
			set
			{
				if ((this._sCampo1 != value))
				{
					this.OnsCampo1Changing(value);
					this.SendPropertyChanging();
					this._sCampo1 = value;
					this.SendPropertyChanged("sCampo1");
					this.OnsCampo1Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCampo2", DbType="VarChar(50)")]
		public string sCampo2
		{
			get
			{
				return this._sCampo2;
			}
			set
			{
				if ((this._sCampo2 != value))
				{
					this.OnsCampo2Changing(value);
					this.SendPropertyChanging();
					this._sCampo2 = value;
					this.SendPropertyChanged("sCampo2");
					this.OnsCampo2Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCampo3", DbType="VarChar(50)")]
		public string sCampo3
		{
			get
			{
				return this._sCampo3;
			}
			set
			{
				if ((this._sCampo3 != value))
				{
					this.OnsCampo3Changing(value);
					this.SendPropertyChanging();
					this._sCampo3 = value;
					this.SendPropertyChanged("sCampo3");
					this.OnsCampo3Changed();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_dFechaExpedicion", DbType="DateTime")]
		public System.Nullable<System.DateTime> dFechaExpedicion
		{
			get
			{
				return this._dFechaExpedicion;
			}
			set
			{
				if ((this._dFechaExpedicion != value))
				{
					this.OndFechaExpedicionChanging(value);
					this.SendPropertyChanging();
					this._dFechaExpedicion = value;
					this.SendPropertyChanged("dFechaExpedicion");
					this.OndFechaExpedicionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_dFechaVencimiento", DbType="DateTime")]
		public System.Nullable<System.DateTime> dFechaVencimiento
		{
			get
			{
				return this._dFechaVencimiento;
			}
			set
			{
				if ((this._dFechaVencimiento != value))
				{
					this.OndFechaVencimientoChanging(value);
					this.SendPropertyChanging();
					this._dFechaVencimiento = value;
					this.SendPropertyChanged("dFechaVencimiento");
					this.OndFechaVencimientoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iLugarExpedicion", DbType="Int")]
		public System.Nullable<int> iLugarExpedicion
		{
			get
			{
				return this._iLugarExpedicion;
			}
			set
			{
				if ((this._iLugarExpedicion != value))
				{
					this.OniLugarExpedicionChanging(value);
					this.SendPropertyChanging();
					this._iLugarExpedicion = value;
					this.SendPropertyChanged("iLugarExpedicion");
					this.OniLugarExpedicionChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iCatAdicional", DbType="Int")]
		public System.Nullable<int> iCatAdicional
		{
			get
			{
				return this._iCatAdicional;
			}
			set
			{
				if ((this._iCatAdicional != value))
				{
					this.OniCatAdicionalChanging(value);
					this.SendPropertyChanging();
					this._iCatAdicional = value;
					this.SendPropertyChanged("iCatAdicional");
					this.OniCatAdicionalChanged();
				}
			}
		}
		
		[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.OnFAltaChanging(value);
					this.SendPropertyChanging();
					this._FAlta = value;
					this.SendPropertyChanged("FAlta");
					this.OnFAltaChanged();
				}
			}
		}
		
		[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.OnUAltaChanging(value);
					this.SendPropertyChanging();
					this._UAlta = value;
					this.SendPropertyChanged("UAlta");
					this.OnUAltaChanged();
				}
			}
		}
		
		[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.OnFInactivoChanging(value);
					this.SendPropertyChanging();
					this._FInactivo = value;
					this.SendPropertyChanged("FInactivo");
					this.OnFInactivoChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPais", DbType="Int")]
		public System.Nullable<int> iPais
		{
			get
			{
				return this._iPais;
			}
			set
			{
				if ((this._iPais != value))
				{
					this.OniPaisChanging(value);
					this.SendPropertyChanging();
					this._iPais = value;
					this.SendPropertyChanged("iPais");
					this.OniPaisChanged();
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iEmpleoId", DbType="Int")]
		public System.Nullable<int> iEmpleoId
		{
			get
			{
				return this._iEmpleoId;
			}
			set
			{
				if ((this._iEmpleoId != value))
				{
					this.OniEmpleoIdChanging(value);
					this.SendPropertyChanging();
					this._iEmpleoId = value;
					this.SendPropertyChanged("iEmpleoId");
					this.OniEmpleoIdChanged();
				}
			}
		}
		
		public event PropertyChangingEventHandler PropertyChanging;
		
		public event PropertyChangedEventHandler PropertyChanged;
		
		protected virtual void SendPropertyChanging()
		{
			if ((this.PropertyChanging != null))
			{
				this.PropertyChanging(this, emptyChangingEventArgs);
			}
		}
		
		protected virtual void SendPropertyChanged(String propertyName)
		{
			if ((this.PropertyChanged != null))
			{
				this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
			}
		}
	}
	
	public partial class stp_getBuscaPersonaResult
	{
		
		private int _iPersonaId;
		
		private string _sApellidoPaterno;
		
		private string _sApellidoMaterno;
		
		private string _sPrimerNombre;
		
		private string _sSegundoNombre;
		
		private string _vchRFC;
		
		private int _iCveRegimenFiscal;
		
		public stp_getBuscaPersonaResult()
		{
		}
		
		[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="_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="_vchRFC", DbType="VarChar(50)")]
		public string vchRFC
		{
			get
			{
				return this._vchRFC;
			}
			set
			{
				if ((this._vchRFC != value))
				{
					this._vchRFC = 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;
				}
			}
		}
	}
	
	public partial class stp_getDatosClienteBajaWareResult
	{
		
		private int _iPersonaId;
		
		private string _sPrimerNombre;
		
		private string _sApellidoPaterno;
		
		private string _sApellidoMaterno;
		
		private string _sNombreCompleto;
		
		private string _vhRFC;
		
		private short _sintActividadID;
		
		private byte _tintTamDeudorID;
		
		private byte _TipoAcreditadoRelacionadoID;
		
		private int _EjecutivoID;
		
		private string _vchTelefono;
		
		private short _intSucursalID;
		
		private short _intIndustriaID;
		
		private int _intEntidadGobierno;
		
		private byte _tintRiesgoIndustriaID;
		
		private byte _tintRiesgoFinancieroID;
		
		private byte _sintExperienciaPago;
		
		private int _NombreGrupoEconomicoID;
		
		private int _sintPersonalidadJuridica;
		
		private short _SectorEconomicoID;
		
		private short _sintNumeroEmpleados;
		
		private decimal _decIngresosBrutos;
		
		private string _vchFolioConsultaBuro;
		
		private System.DateTime _sdatFechaConsulta;
		
		private short _ComprobanteIngresosID;
		
		private byte _SectorLaboralID;
		
		private string _NombreCNBV;
		
		private byte _RelacionAcreditadoID;
		
		public stp_getDatosClienteBajaWareResult()
		{
		}
		
		[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="_sPrimerNombre", DbType="VarChar(53) NOT NULL", CanBeNull=false)]
		public string sPrimerNombre
		{
			get
			{
				return this._sPrimerNombre;
			}
			set
			{
				if ((this._sPrimerNombre != value))
				{
					this._sPrimerNombre = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sApellidoPaterno", DbType="VarChar(26) NOT NULL", CanBeNull=false)]
		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) NOT NULL", CanBeNull=false)]
		public string sApellidoMaterno
		{
			get
			{
				return this._sApellidoMaterno;
			}
			set
			{
				if ((this._sApellidoMaterno != value))
				{
					this._sApellidoMaterno = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNombreCompleto", DbType="VarChar(104)")]
		public string sNombreCompleto
		{
			get
			{
				return this._sNombreCompleto;
			}
			set
			{
				if ((this._sNombreCompleto != value))
				{
					this._sNombreCompleto = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_vhRFC", DbType="VarChar(50) NOT NULL", CanBeNull=false)]
		public string vhRFC
		{
			get
			{
				return this._vhRFC;
			}
			set
			{
				if ((this._vhRFC != value))
				{
					this._vhRFC = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintActividadID", DbType="SmallInt NOT NULL")]
		public short sintActividadID
		{
			get
			{
				return this._sintActividadID;
			}
			set
			{
				if ((this._sintActividadID != value))
				{
					this._sintActividadID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintTamDeudorID", DbType="TinyInt NOT NULL")]
		public byte tintTamDeudorID
		{
			get
			{
				return this._tintTamDeudorID;
			}
			set
			{
				if ((this._tintTamDeudorID != value))
				{
					this._tintTamDeudorID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_TipoAcreditadoRelacionadoID", DbType="TinyInt NOT NULL")]
		public byte TipoAcreditadoRelacionadoID
		{
			get
			{
				return this._TipoAcreditadoRelacionadoID;
			}
			set
			{
				if ((this._TipoAcreditadoRelacionadoID != value))
				{
					this._TipoAcreditadoRelacionadoID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EjecutivoID", DbType="Int NOT NULL")]
		public int EjecutivoID
		{
			get
			{
				return this._EjecutivoID;
			}
			set
			{
				if ((this._EjecutivoID != value))
				{
					this._EjecutivoID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_vchTelefono", DbType="VarChar(255) NOT NULL", CanBeNull=false)]
		public string vchTelefono
		{
			get
			{
				return this._vchTelefono;
			}
			set
			{
				if ((this._vchTelefono != value))
				{
					this._vchTelefono = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_intSucursalID", DbType="SmallInt NOT NULL")]
		public short intSucursalID
		{
			get
			{
				return this._intSucursalID;
			}
			set
			{
				if ((this._intSucursalID != value))
				{
					this._intSucursalID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_intIndustriaID", DbType="SmallInt NOT NULL")]
		public short intIndustriaID
		{
			get
			{
				return this._intIndustriaID;
			}
			set
			{
				if ((this._intIndustriaID != value))
				{
					this._intIndustriaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_intEntidadGobierno", DbType="Int NOT NULL")]
		public int intEntidadGobierno
		{
			get
			{
				return this._intEntidadGobierno;
			}
			set
			{
				if ((this._intEntidadGobierno != value))
				{
					this._intEntidadGobierno = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintRiesgoIndustriaID", DbType="TinyInt NOT NULL")]
		public byte tintRiesgoIndustriaID
		{
			get
			{
				return this._tintRiesgoIndustriaID;
			}
			set
			{
				if ((this._tintRiesgoIndustriaID != value))
				{
					this._tintRiesgoIndustriaID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_tintRiesgoFinancieroID", DbType="TinyInt NOT NULL")]
		public byte tintRiesgoFinancieroID
		{
			get
			{
				return this._tintRiesgoFinancieroID;
			}
			set
			{
				if ((this._tintRiesgoFinancieroID != value))
				{
					this._tintRiesgoFinancieroID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintExperienciaPago", DbType="TinyInt NOT NULL")]
		public byte sintExperienciaPago
		{
			get
			{
				return this._sintExperienciaPago;
			}
			set
			{
				if ((this._sintExperienciaPago != value))
				{
					this._sintExperienciaPago = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NombreGrupoEconomicoID", DbType="Int NOT NULL")]
		public int NombreGrupoEconomicoID
		{
			get
			{
				return this._NombreGrupoEconomicoID;
			}
			set
			{
				if ((this._NombreGrupoEconomicoID != value))
				{
					this._NombreGrupoEconomicoID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintPersonalidadJuridica", DbType="Int NOT NULL")]
		public int sintPersonalidadJuridica
		{
			get
			{
				return this._sintPersonalidadJuridica;
			}
			set
			{
				if ((this._sintPersonalidadJuridica != value))
				{
					this._sintPersonalidadJuridica = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SectorEconomicoID", DbType="SmallInt NOT NULL")]
		public short SectorEconomicoID
		{
			get
			{
				return this._SectorEconomicoID;
			}
			set
			{
				if ((this._SectorEconomicoID != value))
				{
					this._SectorEconomicoID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintNumeroEmpleados", DbType="SmallInt NOT NULL")]
		public short sintNumeroEmpleados
		{
			get
			{
				return this._sintNumeroEmpleados;
			}
			set
			{
				if ((this._sintNumeroEmpleados != value))
				{
					this._sintNumeroEmpleados = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_decIngresosBrutos", DbType="Decimal(15,2) NOT NULL")]
		public decimal decIngresosBrutos
		{
			get
			{
				return this._decIngresosBrutos;
			}
			set
			{
				if ((this._decIngresosBrutos != value))
				{
					this._decIngresosBrutos = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_vchFolioConsultaBuro", DbType="VarChar(15) NOT NULL", CanBeNull=false)]
		public string vchFolioConsultaBuro
		{
			get
			{
				return this._vchFolioConsultaBuro;
			}
			set
			{
				if ((this._vchFolioConsultaBuro != value))
				{
					this._vchFolioConsultaBuro = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sdatFechaConsulta", DbType="SmallDateTime NOT NULL")]
		public System.DateTime sdatFechaConsulta
		{
			get
			{
				return this._sdatFechaConsulta;
			}
			set
			{
				if ((this._sdatFechaConsulta != value))
				{
					this._sdatFechaConsulta = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ComprobanteIngresosID", DbType="SmallInt NOT NULL")]
		public short ComprobanteIngresosID
		{
			get
			{
				return this._ComprobanteIngresosID;
			}
			set
			{
				if ((this._ComprobanteIngresosID != value))
				{
					this._ComprobanteIngresosID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SectorLaboralID", DbType="TinyInt NOT NULL")]
		public byte SectorLaboralID
		{
			get
			{
				return this._SectorLaboralID;
			}
			set
			{
				if ((this._SectorLaboralID != value))
				{
					this._SectorLaboralID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_NombreCNBV", DbType="VarChar(100) NOT NULL", CanBeNull=false)]
		public string NombreCNBV
		{
			get
			{
				return this._NombreCNBV;
			}
			set
			{
				if ((this._NombreCNBV != value))
				{
					this._NombreCNBV = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RelacionAcreditadoID", DbType="TinyInt NOT NULL")]
		public byte RelacionAcreditadoID
		{
			get
			{
				return this._RelacionAcreditadoID;
			}
			set
			{
				if ((this._RelacionAcreditadoID != value))
				{
					this._RelacionAcreditadoID = value;
				}
			}
		}
	}
	
	public partial class stp_getDomicilioPersonaResult
	{
		
		private int _iDomicilioId;
		
		private System.Nullable<short> _sintLocalidadID;
		
		private System.Nullable<int> _iEstadoId;
		
		private System.DateTime _FAlta;
		
		private System.Nullable<int> _iCiudadId;
		
		private System.Nullable<int> _iMunicipioDelegacionId;
		
		private System.Nullable<int> _iPais;
		
		private string _sCodigoPostal;
		
		private string _sEstado;
		
		private string _sCiudad;
		
		private string _sDelegMpo;
		
		private string _sColonia;
		
		private string _sNumExterior;
		
		private string _sNumInterior;
		
		private string _sCalle;
		
		private int _iPersonaId;
		
		private int _iTipoDomicilioId;
		
		private string _sDescCatalogo;
		
		public stp_getDomicilioPersonaResult()
		{
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iDomicilioId", DbType="Int NOT NULL")]
		public int iDomicilioId
		{
			get
			{
				return this._iDomicilioId;
			}
			set
			{
				if ((this._iDomicilioId != value))
				{
					this._iDomicilioId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sintLocalidadID", DbType="SmallInt")]
		public System.Nullable<short> sintLocalidadID
		{
			get
			{
				return this._sintLocalidadID;
			}
			set
			{
				if ((this._sintLocalidadID != value))
				{
					this._sintLocalidadID = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iEstadoId", DbType="Int")]
		public System.Nullable<int> iEstadoId
		{
			get
			{
				return this._iEstadoId;
			}
			set
			{
				if ((this._iEstadoId != value))
				{
					this._iEstadoId = 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="_iCiudadId", DbType="Int")]
		public System.Nullable<int> iCiudadId
		{
			get
			{
				return this._iCiudadId;
			}
			set
			{
				if ((this._iCiudadId != value))
				{
					this._iCiudadId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iMunicipioDelegacionId", DbType="Int")]
		public System.Nullable<int> iMunicipioDelegacionId
		{
			get
			{
				return this._iMunicipioDelegacionId;
			}
			set
			{
				if ((this._iMunicipioDelegacionId != value))
				{
					this._iMunicipioDelegacionId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_iPais", DbType="Int")]
		public System.Nullable<int> iPais
		{
			get
			{
				return this._iPais;
			}
			set
			{
				if ((this._iPais != value))
				{
					this._iPais = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCodigoPostal", DbType="VarChar(5)")]
		public string sCodigoPostal
		{
			get
			{
				return this._sCodigoPostal;
			}
			set
			{
				if ((this._sCodigoPostal != value))
				{
					this._sCodigoPostal = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sEstado", DbType="VarChar(40)")]
		public string sEstado
		{
			get
			{
				return this._sEstado;
			}
			set
			{
				if ((this._sEstado != value))
				{
					this._sEstado = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCiudad", DbType="VarChar(40)")]
		public string sCiudad
		{
			get
			{
				return this._sCiudad;
			}
			set
			{
				if ((this._sCiudad != value))
				{
					this._sCiudad = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sDelegMpo", DbType="VarChar(50)")]
		public string sDelegMpo
		{
			get
			{
				return this._sDelegMpo;
			}
			set
			{
				if ((this._sDelegMpo != value))
				{
					this._sDelegMpo = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sColonia", DbType="VarChar(255)")]
		public string sColonia
		{
			get
			{
				return this._sColonia;
			}
			set
			{
				if ((this._sColonia != value))
				{
					this._sColonia = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNumExterior", DbType="VarChar(25)")]
		public string sNumExterior
		{
			get
			{
				return this._sNumExterior;
			}
			set
			{
				if ((this._sNumExterior != value))
				{
					this._sNumExterior = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sNumInterior", DbType="VarChar(25) NOT NULL", CanBeNull=false)]
		public string sNumInterior
		{
			get
			{
				return this._sNumInterior;
			}
			set
			{
				if ((this._sNumInterior != value))
				{
					this._sNumInterior = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sCalle", DbType="VarChar(80) NOT NULL", CanBeNull=false)]
		public string sCalle
		{
			get
			{
				return this._sCalle;
			}
			set
			{
				if ((this._sCalle != value))
				{
					this._sCalle = value;
				}
			}
		}
		
		[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="_iTipoDomicilioId", DbType="Int NOT NULL")]
		public int iTipoDomicilioId
		{
			get
			{
				return this._iTipoDomicilioId;
			}
			set
			{
				if ((this._iTipoDomicilioId != value))
				{
					this._iTipoDomicilioId = value;
				}
			}
		}
		
		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_sDescCatalogo", DbType="VarChar(300)")]
		public string sDescCatalogo
		{
			get
			{
				return this._sDescCatalogo;
			}
			set
			{
				if ((this._sDescCatalogo != value))
				{
					this._sDescCatalogo = value;
				}
			}
		}
	}
}
#pragma warning restore 1591
