/// <summary> /// Deprecated Method for adding a new object to the Persona EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPersona(Persona persona) { base.AddObject("Persona", persona); }
/// <summary> /// Create a new Persona object. /// </summary> /// <param name="idPersona">Initial value of the IdPersona property.</param> /// <param name="identificacion">Initial value of the Identificacion property.</param> /// <param name="idTipoPersona">Initial value of the IdTipoPersona property.</param> /// <param name="idEmpresa">Initial value of the IdEmpresa property.</param> /// <param name="nombreRazonSocial">Initial value of the NombreRazonSocial property.</param> /// <param name="tipoIdentificacion">Initial value of the TipoIdentificacion property.</param> /// <param name="direccion">Initial value of the direccion property.</param> /// <param name="telefonoMovil">Initial value of the TelefonoMovil property.</param> /// <param name="telefonoCasa">Initial value of the TelefonoCasa property.</param> /// <param name="mail">Initial value of the mail property.</param> /// <param name="idEstado">Initial value of the IdEstado property.</param> public static Persona CreatePersona(global::System.Int32 idPersona, global::System.Decimal identificacion, global::System.Int32 idTipoPersona, global::System.Int32 idEmpresa, global::System.String nombreRazonSocial, global::System.Int32 tipoIdentificacion, global::System.String direccion, global::System.Decimal telefonoMovil, global::System.Decimal telefonoCasa, global::System.String mail, global::System.Int32 idEstado) { Persona persona = new Persona(); persona.IdPersona = idPersona; persona.Identificacion = identificacion; persona.IdTipoPersona = idTipoPersona; persona.IdEmpresa = idEmpresa; persona.NombreRazonSocial = nombreRazonSocial; persona.TipoIdentificacion = tipoIdentificacion; persona.direccion = direccion; persona.TelefonoMovil = telefonoMovil; persona.TelefonoCasa = telefonoCasa; persona.mail = mail; persona.IdEstado = idEstado; return persona; }