//------------------------------------------------------------------------------
// <auto-generated>
//    This code was generated from a template.
//
//    Manual changes to this file may cause unexpected behavior in your application.
//    Manual changes to this file will be overwritten if the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.ComponentModel;
using System.Data.EntityClient;
using System.Data.Objects;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Runtime.Serialization;
using System.Xml.Serialization;

[assembly: EdmSchemaAttribute()]
#region EDM Relationship Metadata

[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_GrauAcademico", "GrauAcademico", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.GrauAcademico), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AreaCientifica_AreaCientifica", "AreaCientifica", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), "AreaCientifica1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Unidades_TipoUnidade", "TipoUnidade", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoUnidade), "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_GruposInvestigacao_Unidades", "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), "GruposInvestigacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.GruposInvestigacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.GruposInvestigacao), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ClasseDocumentoDespesa), "TipoDocumento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TipoDocumento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_MenuPages_MenuTabs", "MenuTabs", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.MenuTabs), "MenuPages", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MenuPages), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AreaCientificaML_AreaCientifica", "AreaCientifica", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), "AreaCientificaML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientificaML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AreaCientificaML_Idiomas", "Idioma", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Idioma), "AreaCientificaML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientificaML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturasML_Idiomas", "Idioma", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Idioma), "CandidaturaML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_EntidadeProgramaML_Idiomas", "Idioma", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Idioma), "EntidadeProgramaML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeProgramaML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_OverheadTipo", "OverheadTipo", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.OverheadTipo), "ProjectoOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoOverheads), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoOverheads), "VerbasOverheadValor", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasOverheadValor), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.VerbasMovimento), "VerbasOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasOverheads), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.VerbasOverheads), "VerbasOverheadValor", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasOverheadValor), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ChaveImputacao), "ChaveImputacaoRubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ChaveImputacaoRubricas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ChaveImputacaoRubricas), "MapaImputacaoRubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MapaImputacaoRubricas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.MapaImputacao), "MapaImputacaoRubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MapaImputacaoRubricas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoDocumentoIdentificacao), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_Unidades", "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_MapaImputacao_ChaveImputacao", "ChaveImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ChaveImputacao), "MapaImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MapaImputacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "SeguroPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.SeguroPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RegistoTarefas_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "RegistoTarefas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RegistoTarefas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), "TipoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TipoProjecto), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "CandidaturaOrcamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaOrcamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Rubricas_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "Rubricas1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RegistoTarefas_TipoTarefa", "TipoTarefa", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoTarefa), "RegistoTarefas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RegistoTarefas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.GrauAcademico), "CandidaturaEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "CandidaturaEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoBolsa), "CandidaturaEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "ProjectoEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoBolsa", "TipoBolsa", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoBolsa), "ProjectoEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_NomesPermissao", "Permissoes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Permissoes), "ViewsPermissoes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ViewsPermissoes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_Views", "View", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.View), "ViewsPermissoes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ViewsPermissoes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "Perfil_View_DefaultViewFK", "View", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.View), "Perfil", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Perfil), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "MenuPagesPermissions", "MenuPages", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MenuPages), "Perfil", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Perfil))]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "MenuTabsPermissions", "MenuTabs", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MenuTabs), "Perfil", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Perfil))]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "PerfilPermissao", "Permissoes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Permissoes), "Perfil", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Perfil))]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Seguros_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "Seguros", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Seguros), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Seguros_Seguradoras", "Seguradoras", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Seguradoras), "Seguros", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Seguros), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Seguros", "Seguros", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Seguros), "SeguroPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.SeguroPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), "CandidaturaFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), "CandidaturaFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoProjecto), "CandidaturaFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoFuncao", "Funcao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Funcao), "CandidaturaEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoFuncao", "Funcao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Funcao), "ProjectoEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoRecursoHumano), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ContratoAnexos_Contratos", "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), "ContratoAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ContratoAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_MotivoTermino", "MotivoTermino", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.MotivoTermino), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano1", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_TipoBolsa", "TipoBolsa", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoBolsa), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_Unidades", "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Seguros_Contratos", "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), "Seguros", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Seguros), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdiantamentoAnexos_Adiantamento", "Adiantamento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Adiantamento), "AdiantamentoAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdiantamentoAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Adiantamento_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "Adiantamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Adiantamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Adiantamento), "AdiantamentoCompensacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdiantamentoCompensacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.GruposInvestigacao), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoProjecto", "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoProjecto_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), "InternoProjectoDelegacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjectoDelegacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "InternoProjectoDelegacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjectoDelegacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), "InternoProjectoAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjectoAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoRubrica", "InternoRubrica", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.InternoRubrica), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoProjecto", "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), "InternoRubrica", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoRubrica), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoRubrica", "InternoRubrica", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.InternoRubrica), "InternoRubrica1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoRubrica), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoProjecto_Unidades", "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), "InternoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoProjecto), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaMedidas), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoProjecto), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_Paises", "Paises", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Paises), "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "RecebimentosAbate", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosAbate), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos1", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "RecebimentosAbate", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosAbate), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Recebimentos", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "RecebimentosPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosAnexos_Recebimentos", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "RecebimentosAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "AdiantamentoCompensacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdiantamentoCompensacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ContratoPeriodos_Contratos", "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), "ContratoPeriodos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ContratoPeriodos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "PagamentoEstado", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentoEstado), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "CandidaturaEstados", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEstados), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Adiantamento", "Adiantamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Adiantamento), "AdiantamentoEstado", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdiantamentoEstado), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "AdiantamentoEstado", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdiantamentoEstado), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosReceita_Recebimentos", "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), "RecebimentosReceita", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosReceita), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "PagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PagamentosParticipantes), "RecebimentosPagamentoParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosPagamentoParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Recebimentos_TiposRecebimento", "TiposRecebimento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TiposRecebimento), "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantes), "RecebimentosPagamentoParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosPagamentoParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TiposRecebimento), "RecebimentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantes), "RecebimentosParticipantesReceita", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantesReceita), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PagamentosParticipantes), "TranferenciasPagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TranferenciasPagamentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TransferenciasParticipantes), "TranferenciasPagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TranferenciasPagamentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "PedidosContraFaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PedidosContraFaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "PedidosContraFaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PedidosContraFaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "PagamentoEstado", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentoEstado), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentoQuestoes_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "PagamentoQuestao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentoQuestao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "Pagamentos1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_TipoPagamento", "TipoPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoPagamento), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "PedidosContraFaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PedidosContraFaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "RecebimentosPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "CandidaturaFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "ChaveImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ChaveImputacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoEntidade), "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "TipoBolsa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TipoBolsa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "TipoDocumento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TipoDocumento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "VerbasMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Adiantamento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "Adiantamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Adiantamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica", "AreaCientifica", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica1", "AreaCientifica", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaAnexos_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaEstados", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaEstados), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "CandidaturaOrcamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaOrcamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "CandidaturaOrcamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.CandidaturaOrcamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao1", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_TipoProjecto", "TipoProjecto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoProjecto), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Candidaturas_Unidades", "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Projectos_Candidaturas", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Contratos_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "Contratos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Contratos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Projectos_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Instituicao_TipoInstituicao", "TipoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoInstituicao), "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "ProjectoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoInstituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Unidades_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "Unidades", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Unidades), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "VerbasMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoRubrica_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "InternoRubrica", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoRubrica), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_MapaImputacao_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "MapaImputacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.MapaImputacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "PagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "PedidosContraFaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PedidosContraFaturas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoAnexos_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoAnexos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoAnexos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoEnvioEmailExclusoes", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoEnvioEmailExclusoes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoEquipa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoEquipa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoInstituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoOverheads), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Recebimentos_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "Recebimentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Recebimentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "RecebimentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RegistoTarefas_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "RegistoTarefas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RegistoTarefas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TipoTarefa_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "TipoTarefa", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TipoTarefa), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "TransferenciasParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TransferenciasParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "VerbasMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_VerbasOverheads_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "VerbasOverheads", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.VerbasOverheads), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "CandidaturaInstituicao", "Candidaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Candidaturas), "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao))]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "AdmDespesaExecutada", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmDespesaExecutada), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "AdmDespesaExecutada", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmDespesaExecutada), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "AdmOrcamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmOrcamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "AdmOrcamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmOrcamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "AdmPedidoPagamentoParceiras", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmPedidoPagamentoParceiras), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "AdmOrcamentoParceiras", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmOrcamentoParceiras), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "AdmOrcamentoParceiras", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmOrcamentoParceiras), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "AdmPedidoPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmPedidoPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "AdmPedidoPagamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.AdmPedidoPagamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_Estados", "Estados", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Estados), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_Pagamentos", "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_Rubricas", "Rubricas", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Rubricas), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento", "TipoDocumento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoDocumento), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento1", "TipoDocumento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoDocumento), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_InternoMovimento_Despesas", "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), "InternoMovimento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.InternoMovimento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TiposProcedimentoContratacaoPublica), "Despesas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Despesas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_Paises", "Paises", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Paises), "EntidadeFinanciadora", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.EntidadeFinanciadora), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Instituicao_Paises", "Paises", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.Paises), "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.PedidosContraFaturas), "Pagamentos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Pagamentos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.RegiaoIntervencao), "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoLogotipo_Projectos", "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), "ProjectoLogotipo", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoLogotipo), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.FundosFinanciamento), "ProjectoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoInstituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.FundosFinanciamento), "ProjectoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoInstituicao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), "ProgramaOperacionalLogotipo", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacionalLogotipo), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), "ProgramaQuadroLogotipo", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadroLogotipo), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamento), "PortalFontesFinanciamento1", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamento), "PortalFontesFinanciamentoML", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamentoML), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoAgregacaoPrograma), "ProgramaQuadro", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaQuadro), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.AreaCientifica), "PortalFontesAreasTematicas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesAreasTematicas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamento), "PortalFontesAreasTematicas", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesAreasTematicas), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesFinanciamento), "PortalFontesTipologiaProjeto", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesTipologiaProjeto), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.PortalTipologiaProjeto), "PortalFontesTipologiaProjeto", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PortalFontesTipologiaProjeto), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipoAgregacaoProgramaOperacional), "ProgramaOperacional", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProgramaOperacional), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.FundosFinanciamento), "ProjectoFundoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFundoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoInstituicao), "ProjectoFundoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFundoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "ProjectoFundoFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ProjectoFundoFinanciamento), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.FundosFinanciamento), "FundoFinanciamentoAgregacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.FundoFinanciamentoAgregacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TiposAgregacaoFundosFinancimento), "FundoFinanciamentoAgregacao", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.FundoFinanciamentoAgregacao), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "PagamentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.PagamentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "RecebimentosParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.RecebimentosParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Instituicao", "Instituicao", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.Instituicao), "TransferenciasParticipantes", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.TransferenciasParticipantes), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.TipoEstatutos), "UnidadesInvestigadoresEstatutos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.UnidadesInvestigadoresEstatutos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.UnidadeInvestigadores), "UnidadesInvestigadoresEstatutos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.UnidadesInvestigadoresEstatutos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_Projectos_TipologiaProjeto", "TipologiaProjeto", System.Data.Metadata.Edm.RelationshipMultiplicity.ZeroOrOne, typeof(UMinho.GestaoProjectos.DataAccess.TipologiaProjeto), "Projectos", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.Projectos), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.EstadoTimesheet), "ListagemTimesheet", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ListagemTimesheet), true)]
[assembly: EdmRelationshipAttribute("GestaoProjectosModel", "FK_RecursoHumano_RecursoHumano", "RecursoHumano", System.Data.Metadata.Edm.RelationshipMultiplicity.One, typeof(UMinho.GestaoProjectos.DataAccess.RecursoHumano), "ListagemTimesheet", System.Data.Metadata.Edm.RelationshipMultiplicity.Many, typeof(UMinho.GestaoProjectos.DataAccess.ListagemTimesheet), true)]

#endregion

namespace UMinho.GestaoProjectos.DataAccess
{
    #region Contexts
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    public partial class GestaoProjectosEntities : ObjectContext
    {
        #region Constructors
    
        /// <summary>
        /// Initializes a new GestaoProjectosEntities object using the connection string found in the 'GestaoProjectosEntities' section of the application configuration file.
        /// </summary>
        public GestaoProjectosEntities() : base("name=GestaoProjectosEntities", "GestaoProjectosEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new GestaoProjectosEntities object.
        /// </summary>
        public GestaoProjectosEntities(string connectionString) : base(connectionString, "GestaoProjectosEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        /// <summary>
        /// Initialize a new GestaoProjectosEntities object.
        /// </summary>
        public GestaoProjectosEntities(EntityConnection connection) : base(connection, "GestaoProjectosEntities")
        {
            this.ContextOptions.LazyLoadingEnabled = true;
            OnContextCreated();
        }
    
        #endregion
    
        #region Partial Methods
    
        partial void OnContextCreated();
    
        #endregion
    
        #region ObjectSet Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AreaCientifica> AreaCientifica
        {
            get
            {
                if ((_AreaCientifica == null))
                {
                    _AreaCientifica = base.CreateObjectSet<AreaCientifica>("AreaCientifica");
                }
                return _AreaCientifica;
            }
        }
        private ObjectSet<AreaCientifica> _AreaCientifica;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ContratoAnexos> ContratoAnexos
        {
            get
            {
                if ((_ContratoAnexos == null))
                {
                    _ContratoAnexos = base.CreateObjectSet<ContratoAnexos>("ContratoAnexos");
                }
                return _ContratoAnexos;
            }
        }
        private ObjectSet<ContratoAnexos> _ContratoAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Estados> Estados
        {
            get
            {
                if ((_Estados == null))
                {
                    _Estados = base.CreateObjectSet<Estados>("Estados");
                }
                return _Estados;
            }
        }
        private ObjectSet<Estados> _Estados;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<GrauAcademico> GrauAcademico
        {
            get
            {
                if ((_GrauAcademico == null))
                {
                    _GrauAcademico = base.CreateObjectSet<GrauAcademico>("GrauAcademico");
                }
                return _GrauAcademico;
            }
        }
        private ObjectSet<GrauAcademico> _GrauAcademico;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Idioma> Idioma
        {
            get
            {
                if ((_Idioma == null))
                {
                    _Idioma = base.CreateObjectSet<Idioma>("Idioma");
                }
                return _Idioma;
            }
        }
        private ObjectSet<Idioma> _Idioma;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<MapaImputacao> MapaImputacao
        {
            get
            {
                if ((_MapaImputacao == null))
                {
                    _MapaImputacao = base.CreateObjectSet<MapaImputacao>("MapaImputacao");
                }
                return _MapaImputacao;
            }
        }
        private ObjectSet<MapaImputacao> _MapaImputacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<MotivoTermino> MotivoTermino
        {
            get
            {
                if ((_MotivoTermino == null))
                {
                    _MotivoTermino = base.CreateObjectSet<MotivoTermino>("MotivoTermino");
                }
                return _MotivoTermino;
            }
        }
        private ObjectSet<MotivoTermino> _MotivoTermino;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoAnexos> ProjectoAnexos
        {
            get
            {
                if ((_ProjectoAnexos == null))
                {
                    _ProjectoAnexos = base.CreateObjectSet<ProjectoAnexos>("ProjectoAnexos");
                }
                return _ProjectoAnexos;
            }
        }
        private ObjectSet<ProjectoAnexos> _ProjectoAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecursoHumano> RecursoHumano
        {
            get
            {
                if ((_RecursoHumano == null))
                {
                    _RecursoHumano = base.CreateObjectSet<RecursoHumano>("RecursoHumano");
                }
                return _RecursoHumano;
            }
        }
        private ObjectSet<RecursoHumano> _RecursoHumano;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Seguradoras> Seguradoras
        {
            get
            {
                if ((_Seguradoras == null))
                {
                    _Seguradoras = base.CreateObjectSet<Seguradoras>("Seguradoras");
                }
                return _Seguradoras;
            }
        }
        private ObjectSet<Seguradoras> _Seguradoras;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoBolsa> TipoBolsa
        {
            get
            {
                if ((_TipoBolsa == null))
                {
                    _TipoBolsa = base.CreateObjectSet<TipoBolsa>("TipoBolsa");
                }
                return _TipoBolsa;
            }
        }
        private ObjectSet<TipoBolsa> _TipoBolsa;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoDocumento> TipoDocumento
        {
            get
            {
                if ((_TipoDocumento == null))
                {
                    _TipoDocumento = base.CreateObjectSet<TipoDocumento>("TipoDocumento");
                }
                return _TipoDocumento;
            }
        }
        private ObjectSet<TipoDocumento> _TipoDocumento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoUnidade> TipoUnidade
        {
            get
            {
                if ((_TipoUnidade == null))
                {
                    _TipoUnidade = base.CreateObjectSet<TipoUnidade>("TipoUnidade");
                }
                return _TipoUnidade;
            }
        }
        private ObjectSet<TipoUnidade> _TipoUnidade;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VerbasMovimento> VerbasMovimento
        {
            get
            {
                if ((_VerbasMovimento == null))
                {
                    _VerbasMovimento = base.CreateObjectSet<VerbasMovimento>("VerbasMovimento");
                }
                return _VerbasMovimento;
            }
        }
        private ObjectSet<VerbasMovimento> _VerbasMovimento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Logs> Logs
        {
            get
            {
                if ((_Logs == null))
                {
                    _Logs = base.CreateObjectSet<Logs>("Logs");
                }
                return _Logs;
            }
        }
        private ObjectSet<Logs> _Logs;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoEntidade> TipoEntidade
        {
            get
            {
                if ((_TipoEntidade == null))
                {
                    _TipoEntidade = base.CreateObjectSet<TipoEntidade>("TipoEntidade");
                }
                return _TipoEntidade;
            }
        }
        private ObjectSet<TipoEntidade> _TipoEntidade;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoInstituicao> TipoInstituicao
        {
            get
            {
                if ((_TipoInstituicao == null))
                {
                    _TipoInstituicao = base.CreateObjectSet<TipoInstituicao>("TipoInstituicao");
                }
                return _TipoInstituicao;
            }
        }
        private ObjectSet<TipoInstituicao> _TipoInstituicao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Unidades> Unidades
        {
            get
            {
                if ((_Unidades == null))
                {
                    _Unidades = base.CreateObjectSet<Unidades>("Unidades");
                }
                return _Unidades;
            }
        }
        private ObjectSet<Unidades> _Unidades;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<GruposInvestigacao> GruposInvestigacao
        {
            get
            {
                if ((_GruposInvestigacao == null))
                {
                    _GruposInvestigacao = base.CreateObjectSet<GruposInvestigacao>("GruposInvestigacao");
                }
                return _GruposInvestigacao;
            }
        }
        private ObjectSet<GruposInvestigacao> _GruposInvestigacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ClasseDocumentoDespesa> ClasseDocumentoDespesa
        {
            get
            {
                if ((_ClasseDocumentoDespesa == null))
                {
                    _ClasseDocumentoDespesa = base.CreateObjectSet<ClasseDocumentoDespesa>("ClasseDocumentoDespesa");
                }
                return _ClasseDocumentoDespesa;
            }
        }
        private ObjectSet<ClasseDocumentoDespesa> _ClasseDocumentoDespesa;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ErrosLog> ErrosLog
        {
            get
            {
                if ((_ErrosLog == null))
                {
                    _ErrosLog = base.CreateObjectSet<ErrosLog>("ErrosLog");
                }
                return _ErrosLog;
            }
        }
        private ObjectSet<ErrosLog> _ErrosLog;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<MenuPages> MenuPages
        {
            get
            {
                if ((_MenuPages == null))
                {
                    _MenuPages = base.CreateObjectSet<MenuPages>("MenuPages");
                }
                return _MenuPages;
            }
        }
        private ObjectSet<MenuPages> _MenuPages;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<MenuTabs> MenuTabs
        {
            get
            {
                if ((_MenuTabs == null))
                {
                    _MenuTabs = base.CreateObjectSet<MenuTabs>("MenuTabs");
                }
                return _MenuTabs;
            }
        }
        private ObjectSet<MenuTabs> _MenuTabs;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<EntityMappings> EntityMappings
        {
            get
            {
                if ((_EntityMappings == null))
                {
                    _EntityMappings = base.CreateObjectSet<EntityMappings>("EntityMappings");
                }
                return _EntityMappings;
            }
        }
        private ObjectSet<EntityMappings> _EntityMappings;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AreaCientificaML> AreaCientificaML
        {
            get
            {
                if ((_AreaCientificaML == null))
                {
                    _AreaCientificaML = base.CreateObjectSet<AreaCientificaML>("AreaCientificaML");
                }
                return _AreaCientificaML;
            }
        }
        private ObjectSet<AreaCientificaML> _AreaCientificaML;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaML> CandidaturaML
        {
            get
            {
                if ((_CandidaturaML == null))
                {
                    _CandidaturaML = base.CreateObjectSet<CandidaturaML>("CandidaturaML");
                }
                return _CandidaturaML;
            }
        }
        private ObjectSet<CandidaturaML> _CandidaturaML;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<EntidadeProgramaML> EntidadeProgramaML
        {
            get
            {
                if ((_EntidadeProgramaML == null))
                {
                    _EntidadeProgramaML = base.CreateObjectSet<EntidadeProgramaML>("EntidadeProgramaML");
                }
                return _EntidadeProgramaML;
            }
        }
        private ObjectSet<EntidadeProgramaML> _EntidadeProgramaML;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<OverheadTipo> OverheadTipo
        {
            get
            {
                if ((_OverheadTipo == null))
                {
                    _OverheadTipo = base.CreateObjectSet<OverheadTipo>("OverheadTipo");
                }
                return _OverheadTipo;
            }
        }
        private ObjectSet<OverheadTipo> _OverheadTipo;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoOverheads> ProjectoOverheads
        {
            get
            {
                if ((_ProjectoOverheads == null))
                {
                    _ProjectoOverheads = base.CreateObjectSet<ProjectoOverheads>("ProjectoOverheads");
                }
                return _ProjectoOverheads;
            }
        }
        private ObjectSet<ProjectoOverheads> _ProjectoOverheads;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VerbasOverheads> VerbasOverheads
        {
            get
            {
                if ((_VerbasOverheads == null))
                {
                    _VerbasOverheads = base.CreateObjectSet<VerbasOverheads>("VerbasOverheads");
                }
                return _VerbasOverheads;
            }
        }
        private ObjectSet<VerbasOverheads> _VerbasOverheads;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VerbasOverheadValor> VerbasOverheadValor
        {
            get
            {
                if ((_VerbasOverheadValor == null))
                {
                    _VerbasOverheadValor = base.CreateObjectSet<VerbasOverheadValor>("VerbasOverheadValor");
                }
                return _VerbasOverheadValor;
            }
        }
        private ObjectSet<VerbasOverheadValor> _VerbasOverheadValor;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Permissoes> Permissoes
        {
            get
            {
                if ((_Permissoes == null))
                {
                    _Permissoes = base.CreateObjectSet<Permissoes>("Permissoes");
                }
                return _Permissoes;
            }
        }
        private ObjectSet<Permissoes> _Permissoes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ChaveImputacao> ChaveImputacao
        {
            get
            {
                if ((_ChaveImputacao == null))
                {
                    _ChaveImputacao = base.CreateObjectSet<ChaveImputacao>("ChaveImputacao");
                }
                return _ChaveImputacao;
            }
        }
        private ObjectSet<ChaveImputacao> _ChaveImputacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ChaveImputacaoRubricas> ChaveImputacaoRubricas
        {
            get
            {
                if ((_ChaveImputacaoRubricas == null))
                {
                    _ChaveImputacaoRubricas = base.CreateObjectSet<ChaveImputacaoRubricas>("ChaveImputacaoRubricas");
                }
                return _ChaveImputacaoRubricas;
            }
        }
        private ObjectSet<ChaveImputacaoRubricas> _ChaveImputacaoRubricas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<MapaImputacaoRubricas> MapaImputacaoRubricas
        {
            get
            {
                if ((_MapaImputacaoRubricas == null))
                {
                    _MapaImputacaoRubricas = base.CreateObjectSet<MapaImputacaoRubricas>("MapaImputacaoRubricas");
                }
                return _MapaImputacaoRubricas;
            }
        }
        private ObjectSet<MapaImputacaoRubricas> _MapaImputacaoRubricas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoDocumentoIdentificacao> TipoDocumentoIdentificacao
        {
            get
            {
                if ((_TipoDocumentoIdentificacao == null))
                {
                    _TipoDocumentoIdentificacao = base.CreateObjectSet<TipoDocumentoIdentificacao>("TipoDocumentoIdentificacao");
                }
                return _TipoDocumentoIdentificacao;
            }
        }
        private ObjectSet<TipoDocumentoIdentificacao> _TipoDocumentoIdentificacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaOrcamento> CandidaturaOrcamento
        {
            get
            {
                if ((_CandidaturaOrcamento == null))
                {
                    _CandidaturaOrcamento = base.CreateObjectSet<CandidaturaOrcamento>("CandidaturaOrcamento");
                }
                return _CandidaturaOrcamento;
            }
        }
        private ObjectSet<CandidaturaOrcamento> _CandidaturaOrcamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<SeguroPagamento> SeguroPagamento
        {
            get
            {
                if ((_SeguroPagamento == null))
                {
                    _SeguroPagamento = base.CreateObjectSet<SeguroPagamento>("SeguroPagamento");
                }
                return _SeguroPagamento;
            }
        }
        private ObjectSet<SeguroPagamento> _SeguroPagamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoPagamento> TipoPagamento
        {
            get
            {
                if ((_TipoPagamento == null))
                {
                    _TipoPagamento = base.CreateObjectSet<TipoPagamento>("TipoPagamento");
                }
                return _TipoPagamento;
            }
        }
        private ObjectSet<TipoPagamento> _TipoPagamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PagamentoQuestao> PagamentoQuestao
        {
            get
            {
                if ((_PagamentoQuestao == null))
                {
                    _PagamentoQuestao = base.CreateObjectSet<PagamentoQuestao>("PagamentoQuestao");
                }
                return _PagamentoQuestao;
            }
        }
        private ObjectSet<PagamentoQuestao> _PagamentoQuestao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RegistoTarefas> RegistoTarefas
        {
            get
            {
                if ((_RegistoTarefas == null))
                {
                    _RegistoTarefas = base.CreateObjectSet<RegistoTarefas>("RegistoTarefas");
                }
                return _RegistoTarefas;
            }
        }
        private ObjectSet<RegistoTarefas> _RegistoTarefas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProgramaOperacional> ProgramaOperacional
        {
            get
            {
                if ((_ProgramaOperacional == null))
                {
                    _ProgramaOperacional = base.CreateObjectSet<ProgramaOperacional>("ProgramaOperacional");
                }
                return _ProgramaOperacional;
            }
        }
        private ObjectSet<ProgramaOperacional> _ProgramaOperacional;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProgramaQuadro> ProgramaQuadro
        {
            get
            {
                if ((_ProgramaQuadro == null))
                {
                    _ProgramaQuadro = base.CreateObjectSet<ProgramaQuadro>("ProgramaQuadro");
                }
                return _ProgramaQuadro;
            }
        }
        private ObjectSet<ProgramaQuadro> _ProgramaQuadro;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoProjecto> TipoProjecto
        {
            get
            {
                if ((_TipoProjecto == null))
                {
                    _TipoProjecto = base.CreateObjectSet<TipoProjecto>("TipoProjecto");
                }
                return _TipoProjecto;
            }
        }
        private ObjectSet<TipoProjecto> _TipoProjecto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<FonteFinanciamento> FonteFinanciamento
        {
            get
            {
                if ((_FonteFinanciamento == null))
                {
                    _FonteFinanciamento = base.CreateObjectSet<FonteFinanciamento>("FonteFinanciamento");
                }
                return _FonteFinanciamento;
            }
        }
        private ObjectSet<FonteFinanciamento> _FonteFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Rubricas> Rubricas
        {
            get
            {
                if ((_Rubricas == null))
                {
                    _Rubricas = base.CreateObjectSet<Rubricas>("Rubricas");
                }
                return _Rubricas;
            }
        }
        private ObjectSet<Rubricas> _Rubricas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoTarefa> TipoTarefa
        {
            get
            {
                if ((_TipoTarefa == null))
                {
                    _TipoTarefa = base.CreateObjectSet<TipoTarefa>("TipoTarefa");
                }
                return _TipoTarefa;
            }
        }
        private ObjectSet<TipoTarefa> _TipoTarefa;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                if ((_CandidaturaEquipa == null))
                {
                    _CandidaturaEquipa = base.CreateObjectSet<CandidaturaEquipa>("CandidaturaEquipa");
                }
                return _CandidaturaEquipa;
            }
        }
        private ObjectSet<CandidaturaEquipa> _CandidaturaEquipa;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoEquipa> ProjectoEquipa
        {
            get
            {
                if ((_ProjectoEquipa == null))
                {
                    _ProjectoEquipa = base.CreateObjectSet<ProjectoEquipa>("ProjectoEquipa");
                }
                return _ProjectoEquipa;
            }
        }
        private ObjectSet<ProjectoEquipa> _ProjectoEquipa;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ViewsPermissoes> ViewsPermissoes
        {
            get
            {
                if ((_ViewsPermissoes == null))
                {
                    _ViewsPermissoes = base.CreateObjectSet<ViewsPermissoes>("ViewsPermissoes");
                }
                return _ViewsPermissoes;
            }
        }
        private ObjectSet<ViewsPermissoes> _ViewsPermissoes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<View> View
        {
            get
            {
                if ((_View == null))
                {
                    _View = base.CreateObjectSet<View>("View");
                }
                return _View;
            }
        }
        private ObjectSet<View> _View;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Perfil> Perfil
        {
            get
            {
                if ((_Perfil == null))
                {
                    _Perfil = base.CreateObjectSet<Perfil>("Perfil");
                }
                return _Perfil;
            }
        }
        private ObjectSet<Perfil> _Perfil;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Seguros> Seguros
        {
            get
            {
                if ((_Seguros == null))
                {
                    _Seguros = base.CreateObjectSet<Seguros>("Seguros");
                }
                return _Seguros;
            }
        }
        private ObjectSet<Seguros> _Seguros;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                if ((_CandidaturaFinanciamento == null))
                {
                    _CandidaturaFinanciamento = base.CreateObjectSet<CandidaturaFinanciamento>("CandidaturaFinanciamento");
                }
                return _CandidaturaFinanciamento;
            }
        }
        private ObjectSet<CandidaturaFinanciamento> _CandidaturaFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Funcao> Funcao
        {
            get
            {
                if ((_Funcao == null))
                {
                    _Funcao = base.CreateObjectSet<Funcao>("Funcao");
                }
                return _Funcao;
            }
        }
        private ObjectSet<Funcao> _Funcao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectosAlocacaoDiaria> ProjectosAlocacaoDiaria
        {
            get
            {
                if ((_ProjectosAlocacaoDiaria == null))
                {
                    _ProjectosAlocacaoDiaria = base.CreateObjectSet<ProjectosAlocacaoDiaria>("ProjectosAlocacaoDiaria");
                }
                return _ProjectosAlocacaoDiaria;
            }
        }
        private ObjectSet<ProjectosAlocacaoDiaria> _ProjectosAlocacaoDiaria;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoRecursoHumano> TipoRecursoHumano
        {
            get
            {
                if ((_TipoRecursoHumano == null))
                {
                    _TipoRecursoHumano = base.CreateObjectSet<TipoRecursoHumano>("TipoRecursoHumano");
                }
                return _TipoRecursoHumano;
            }
        }
        private ObjectSet<TipoRecursoHumano> _TipoRecursoHumano;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Contratos> Contratos
        {
            get
            {
                if ((_Contratos == null))
                {
                    _Contratos = base.CreateObjectSet<Contratos>("Contratos");
                }
                return _Contratos;
            }
        }
        private ObjectSet<Contratos> _Contratos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Adiantamento> Adiantamento
        {
            get
            {
                if ((_Adiantamento == null))
                {
                    _Adiantamento = base.CreateObjectSet<Adiantamento>("Adiantamento");
                }
                return _Adiantamento;
            }
        }
        private ObjectSet<Adiantamento> _Adiantamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdiantamentoAnexos> AdiantamentoAnexos
        {
            get
            {
                if ((_AdiantamentoAnexos == null))
                {
                    _AdiantamentoAnexos = base.CreateObjectSet<AdiantamentoAnexos>("AdiantamentoAnexos");
                }
                return _AdiantamentoAnexos;
            }
        }
        private ObjectSet<AdiantamentoAnexos> _AdiantamentoAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProgramaMedidas> ProgramaMedidas
        {
            get
            {
                if ((_ProgramaMedidas == null))
                {
                    _ProgramaMedidas = base.CreateObjectSet<ProgramaMedidas>("ProgramaMedidas");
                }
                return _ProgramaMedidas;
            }
        }
        private ObjectSet<ProgramaMedidas> _ProgramaMedidas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<NumeradorOrcamento> NumeradorOrcamento
        {
            get
            {
                if ((_NumeradorOrcamento == null))
                {
                    _NumeradorOrcamento = base.CreateObjectSet<NumeradorOrcamento>("NumeradorOrcamento");
                }
                return _NumeradorOrcamento;
            }
        }
        private ObjectSet<NumeradorOrcamento> _NumeradorOrcamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<NumeradorAdiantamento> NumeradorAdiantamento
        {
            get
            {
                if ((_NumeradorAdiantamento == null))
                {
                    _NumeradorAdiantamento = base.CreateObjectSet<NumeradorAdiantamento>("NumeradorAdiantamento");
                }
                return _NumeradorAdiantamento;
            }
        }
        private ObjectSet<NumeradorAdiantamento> _NumeradorAdiantamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<NumeradorCompensacao> NumeradorCompensacao
        {
            get
            {
                if ((_NumeradorCompensacao == null))
                {
                    _NumeradorCompensacao = base.CreateObjectSet<NumeradorCompensacao>("NumeradorCompensacao");
                }
                return _NumeradorCompensacao;
            }
        }
        private ObjectSet<NumeradorCompensacao> _NumeradorCompensacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdiantamentoCompensacao> AdiantamentoCompensacao
        {
            get
            {
                if ((_AdiantamentoCompensacao == null))
                {
                    _AdiantamentoCompensacao = base.CreateObjectSet<AdiantamentoCompensacao>("AdiantamentoCompensacao");
                }
                return _AdiantamentoCompensacao;
            }
        }
        private ObjectSet<AdiantamentoCompensacao> _AdiantamentoCompensacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoMovimento> InternoMovimento
        {
            get
            {
                if ((_InternoMovimento == null))
                {
                    _InternoMovimento = base.CreateObjectSet<InternoMovimento>("InternoMovimento");
                }
                return _InternoMovimento;
            }
        }
        private ObjectSet<InternoMovimento> _InternoMovimento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoProjecto> InternoProjecto
        {
            get
            {
                if ((_InternoProjecto == null))
                {
                    _InternoProjecto = base.CreateObjectSet<InternoProjecto>("InternoProjecto");
                }
                return _InternoProjecto;
            }
        }
        private ObjectSet<InternoProjecto> _InternoProjecto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoProjectoDelegacao> InternoProjectoDelegacao
        {
            get
            {
                if ((_InternoProjectoDelegacao == null))
                {
                    _InternoProjectoDelegacao = base.CreateObjectSet<InternoProjectoDelegacao>("InternoProjectoDelegacao");
                }
                return _InternoProjectoDelegacao;
            }
        }
        private ObjectSet<InternoProjectoDelegacao> _InternoProjectoDelegacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoProjectoAnexos> InternoProjectoAnexos
        {
            get
            {
                if ((_InternoProjectoAnexos == null))
                {
                    _InternoProjectoAnexos = base.CreateObjectSet<InternoProjectoAnexos>("InternoProjectoAnexos");
                }
                return _InternoProjectoAnexos;
            }
        }
        private ObjectSet<InternoProjectoAnexos> _InternoProjectoAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoRubrica> InternoRubrica
        {
            get
            {
                if ((_InternoRubrica == null))
                {
                    _InternoRubrica = base.CreateObjectSet<InternoRubrica>("InternoRubrica");
                }
                return _InternoRubrica;
            }
        }
        private ObjectSet<InternoRubrica> _InternoRubrica;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<InternoNumeradorMovimento> InternoNumeradorMovimento
        {
            get
            {
                if ((_InternoNumeradorMovimento == null))
                {
                    _InternoNumeradorMovimento = base.CreateObjectSet<InternoNumeradorMovimento>("InternoNumeradorMovimento");
                }
                return _InternoNumeradorMovimento;
            }
        }
        private ObjectSet<InternoNumeradorMovimento> _InternoNumeradorMovimento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TemplatesEmails> TemplatesEmails
        {
            get
            {
                if ((_TemplatesEmails == null))
                {
                    _TemplatesEmails = base.CreateObjectSet<TemplatesEmails>("TemplatesEmails");
                }
                return _TemplatesEmails;
            }
        }
        private ObjectSet<TemplatesEmails> _TemplatesEmails;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                if ((_ProjectoFinanciamento == null))
                {
                    _ProjectoFinanciamento = base.CreateObjectSet<ProjectoFinanciamento>("ProjectoFinanciamento");
                }
                return _ProjectoFinanciamento;
            }
        }
        private ObjectSet<ProjectoFinanciamento> _ProjectoFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<LogGenerico> LogGenerico
        {
            get
            {
                if ((_LogGenerico == null))
                {
                    _LogGenerico = base.CreateObjectSet<LogGenerico>("LogGenerico");
                }
                return _LogGenerico;
            }
        }
        private ObjectSet<LogGenerico> _LogGenerico;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Paises> Paises
        {
            get
            {
                if ((_Paises == null))
                {
                    _Paises = base.CreateObjectSet<Paises>("Paises");
                }
                return _Paises;
            }
        }
        private ObjectSet<Paises> _Paises;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaAnexos> CandidaturaAnexos
        {
            get
            {
                if ((_CandidaturaAnexos == null))
                {
                    _CandidaturaAnexos = base.CreateObjectSet<CandidaturaAnexos>("CandidaturaAnexos");
                }
                return _CandidaturaAnexos;
            }
        }
        private ObjectSet<CandidaturaAnexos> _CandidaturaAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Recebimentos> Recebimentos
        {
            get
            {
                if ((_Recebimentos == null))
                {
                    _Recebimentos = base.CreateObjectSet<Recebimentos>("Recebimentos");
                }
                return _Recebimentos;
            }
        }
        private ObjectSet<Recebimentos> _Recebimentos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosAbate> RecebimentosAbate
        {
            get
            {
                if ((_RecebimentosAbate == null))
                {
                    _RecebimentosAbate = base.CreateObjectSet<RecebimentosAbate>("RecebimentosAbate");
                }
                return _RecebimentosAbate;
            }
        }
        private ObjectSet<RecebimentosAbate> _RecebimentosAbate;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosPagamento> RecebimentosPagamento
        {
            get
            {
                if ((_RecebimentosPagamento == null))
                {
                    _RecebimentosPagamento = base.CreateObjectSet<RecebimentosPagamento>("RecebimentosPagamento");
                }
                return _RecebimentosPagamento;
            }
        }
        private ObjectSet<RecebimentosPagamento> _RecebimentosPagamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosAnexos> RecebimentosAnexos
        {
            get
            {
                if ((_RecebimentosAnexos == null))
                {
                    _RecebimentosAnexos = base.CreateObjectSet<RecebimentosAnexos>("RecebimentosAnexos");
                }
                return _RecebimentosAnexos;
            }
        }
        private ObjectSet<RecebimentosAnexos> _RecebimentosAnexos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ContratoPeriodos> ContratoPeriodos
        {
            get
            {
                if ((_ContratoPeriodos == null))
                {
                    _ContratoPeriodos = base.CreateObjectSet<ContratoPeriodos>("ContratoPeriodos");
                }
                return _ContratoPeriodos;
            }
        }
        private ObjectSet<ContratoPeriodos> _ContratoPeriodos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PermissaoDespesas> PermissaoDespesas
        {
            get
            {
                if ((_PermissaoDespesas == null))
                {
                    _PermissaoDespesas = base.CreateObjectSet<PermissaoDespesas>("PermissaoDespesas");
                }
                return _PermissaoDespesas;
            }
        }
        private ObjectSet<PermissaoDespesas> _PermissaoDespesas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PagamentoEstado> PagamentoEstado
        {
            get
            {
                if ((_PagamentoEstado == null))
                {
                    _PagamentoEstado = base.CreateObjectSet<PagamentoEstado>("PagamentoEstado");
                }
                return _PagamentoEstado;
            }
        }
        private ObjectSet<PagamentoEstado> _PagamentoEstado;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<CandidaturaEstados> CandidaturaEstados
        {
            get
            {
                if ((_CandidaturaEstados == null))
                {
                    _CandidaturaEstados = base.CreateObjectSet<CandidaturaEstados>("CandidaturaEstados");
                }
                return _CandidaturaEstados;
            }
        }
        private ObjectSet<CandidaturaEstados> _CandidaturaEstados;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdiantamentoEstado> AdiantamentoEstado
        {
            get
            {
                if ((_AdiantamentoEstado == null))
                {
                    _AdiantamentoEstado = base.CreateObjectSet<AdiantamentoEstado>("AdiantamentoEstado");
                }
                return _AdiantamentoEstado;
            }
        }
        private ObjectSet<AdiantamentoEstado> _AdiantamentoEstado;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosReceita> RecebimentosReceita
        {
            get
            {
                if ((_RecebimentosReceita == null))
                {
                    _RecebimentosReceita = base.CreateObjectSet<RecebimentosReceita>("RecebimentosReceita");
                }
                return _RecebimentosReceita;
            }
        }
        private ObjectSet<RecebimentosReceita> _RecebimentosReceita;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<LogConsultaVerbetes> LogConsultaVerbetes
        {
            get
            {
                if ((_LogConsultaVerbetes == null))
                {
                    _LogConsultaVerbetes = base.CreateObjectSet<LogConsultaVerbetes>("LogConsultaVerbetes");
                }
                return _LogConsultaVerbetes;
            }
        }
        private ObjectSet<LogConsultaVerbetes> _LogConsultaVerbetes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PagamentosParticipantes> PagamentosParticipantes
        {
            get
            {
                if ((_PagamentosParticipantes == null))
                {
                    _PagamentosParticipantes = base.CreateObjectSet<PagamentosParticipantes>("PagamentosParticipantes");
                }
                return _PagamentosParticipantes;
            }
        }
        private ObjectSet<PagamentosParticipantes> _PagamentosParticipantes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosPagamentoParticipantes> RecebimentosPagamentoParticipantes
        {
            get
            {
                if ((_RecebimentosPagamentoParticipantes == null))
                {
                    _RecebimentosPagamentoParticipantes = base.CreateObjectSet<RecebimentosPagamentoParticipantes>("RecebimentosPagamentoParticipantes");
                }
                return _RecebimentosPagamentoParticipantes;
            }
        }
        private ObjectSet<RecebimentosPagamentoParticipantes> _RecebimentosPagamentoParticipantes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TiposRecebimento> TiposRecebimento
        {
            get
            {
                if ((_TiposRecebimento == null))
                {
                    _TiposRecebimento = base.CreateObjectSet<TiposRecebimento>("TiposRecebimento");
                }
                return _TiposRecebimento;
            }
        }
        private ObjectSet<TiposRecebimento> _TiposRecebimento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosParticipantesReceita> RecebimentosParticipantesReceita
        {
            get
            {
                if ((_RecebimentosParticipantesReceita == null))
                {
                    _RecebimentosParticipantesReceita = base.CreateObjectSet<RecebimentosParticipantesReceita>("RecebimentosParticipantesReceita");
                }
                return _RecebimentosParticipantesReceita;
            }
        }
        private ObjectSet<RecebimentosParticipantesReceita> _RecebimentosParticipantesReceita;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RecebimentosParticipantes> RecebimentosParticipantes
        {
            get
            {
                if ((_RecebimentosParticipantes == null))
                {
                    _RecebimentosParticipantes = base.CreateObjectSet<RecebimentosParticipantes>("RecebimentosParticipantes");
                }
                return _RecebimentosParticipantes;
            }
        }
        private ObjectSet<RecebimentosParticipantes> _RecebimentosParticipantes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TranferenciasPagamentosParticipantes> TranferenciasPagamentosParticipantes
        {
            get
            {
                if ((_TranferenciasPagamentosParticipantes == null))
                {
                    _TranferenciasPagamentosParticipantes = base.CreateObjectSet<TranferenciasPagamentosParticipantes>("TranferenciasPagamentosParticipantes");
                }
                return _TranferenciasPagamentosParticipantes;
            }
        }
        private ObjectSet<TranferenciasPagamentosParticipantes> _TranferenciasPagamentosParticipantes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TransferenciasParticipantes> TransferenciasParticipantes
        {
            get
            {
                if ((_TransferenciasParticipantes == null))
                {
                    _TransferenciasParticipantes = base.CreateObjectSet<TransferenciasParticipantes>("TransferenciasParticipantes");
                }
                return _TransferenciasParticipantes;
            }
        }
        private ObjectSet<TransferenciasParticipantes> _TransferenciasParticipantes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PedidosContraFaturas> PedidosContraFaturas
        {
            get
            {
                if ((_PedidosContraFaturas == null))
                {
                    _PedidosContraFaturas = base.CreateObjectSet<PedidosContraFaturas>("PedidosContraFaturas");
                }
                return _PedidosContraFaturas;
            }
        }
        private ObjectSet<PedidosContraFaturas> _PedidosContraFaturas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Pagamentos> Pagamentos
        {
            get
            {
                if ((_Pagamentos == null))
                {
                    _Pagamentos = base.CreateObjectSet<Pagamentos>("Pagamentos");
                }
                return _Pagamentos;
            }
        }
        private ObjectSet<Pagamentos> _Pagamentos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoEnvioEmailExclusoes> ProjectoEnvioEmailExclusoes
        {
            get
            {
                if ((_ProjectoEnvioEmailExclusoes == null))
                {
                    _ProjectoEnvioEmailExclusoes = base.CreateObjectSet<ProjectoEnvioEmailExclusoes>("ProjectoEnvioEmailExclusoes");
                }
                return _ProjectoEnvioEmailExclusoes;
            }
        }
        private ObjectSet<ProjectoEnvioEmailExclusoes> _ProjectoEnvioEmailExclusoes;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<EntidadeFinanciadora> EntidadeFinanciadora
        {
            get
            {
                if ((_EntidadeFinanciadora == null))
                {
                    _EntidadeFinanciadora = base.CreateObjectSet<EntidadeFinanciadora>("EntidadeFinanciadora");
                }
                return _EntidadeFinanciadora;
            }
        }
        private ObjectSet<EntidadeFinanciadora> _EntidadeFinanciadora;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Candidaturas> Candidaturas
        {
            get
            {
                if ((_Candidaturas == null))
                {
                    _Candidaturas = base.CreateObjectSet<Candidaturas>("Candidaturas");
                }
                return _Candidaturas;
            }
        }
        private ObjectSet<Candidaturas> _Candidaturas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Instituicao> Instituicao
        {
            get
            {
                if ((_Instituicao == null))
                {
                    _Instituicao = base.CreateObjectSet<Instituicao>("Instituicao");
                }
                return _Instituicao;
            }
        }
        private ObjectSet<Instituicao> _Instituicao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoInstituicao> ProjectoInstituicao
        {
            get
            {
                if ((_ProjectoInstituicao == null))
                {
                    _ProjectoInstituicao = base.CreateObjectSet<ProjectoInstituicao>("ProjectoInstituicao");
                }
                return _ProjectoInstituicao;
            }
        }
        private ObjectSet<ProjectoInstituicao> _ProjectoInstituicao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Projectos> Projectos
        {
            get
            {
                if ((_Projectos == null))
                {
                    _Projectos = base.CreateObjectSet<Projectos>("Projectos");
                }
                return _Projectos;
            }
        }
        private ObjectSet<Projectos> _Projectos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmProjeto> AdmProjeto
        {
            get
            {
                if ((_AdmProjeto == null))
                {
                    _AdmProjeto = base.CreateObjectSet<AdmProjeto>("AdmProjeto");
                }
                return _AdmProjeto;
            }
        }
        private ObjectSet<AdmProjeto> _AdmProjeto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmDespesaExecutada> AdmDespesaExecutada
        {
            get
            {
                if ((_AdmDespesaExecutada == null))
                {
                    _AdmDespesaExecutada = base.CreateObjectSet<AdmDespesaExecutada>("AdmDespesaExecutada");
                }
                return _AdmDespesaExecutada;
            }
        }
        private ObjectSet<AdmDespesaExecutada> _AdmDespesaExecutada;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmOrcamento> AdmOrcamento
        {
            get
            {
                if ((_AdmOrcamento == null))
                {
                    _AdmOrcamento = base.CreateObjectSet<AdmOrcamento>("AdmOrcamento");
                }
                return _AdmOrcamento;
            }
        }
        private ObjectSet<AdmOrcamento> _AdmOrcamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmPedidoPagamentoParceiras> AdmPedidoPagamentoParceiras
        {
            get
            {
                if ((_AdmPedidoPagamentoParceiras == null))
                {
                    _AdmPedidoPagamentoParceiras = base.CreateObjectSet<AdmPedidoPagamentoParceiras>("AdmPedidoPagamentoParceiras");
                }
                return _AdmPedidoPagamentoParceiras;
            }
        }
        private ObjectSet<AdmPedidoPagamentoParceiras> _AdmPedidoPagamentoParceiras;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmOrcamentoParceiras> AdmOrcamentoParceiras
        {
            get
            {
                if ((_AdmOrcamentoParceiras == null))
                {
                    _AdmOrcamentoParceiras = base.CreateObjectSet<AdmOrcamentoParceiras>("AdmOrcamentoParceiras");
                }
                return _AdmOrcamentoParceiras;
            }
        }
        private ObjectSet<AdmOrcamentoParceiras> _AdmOrcamentoParceiras;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<AdmPedidoPagamento> AdmPedidoPagamento
        {
            get
            {
                if ((_AdmPedidoPagamento == null))
                {
                    _AdmPedidoPagamento = base.CreateObjectSet<AdmPedidoPagamento>("AdmPedidoPagamento");
                }
                return _AdmPedidoPagamento;
            }
        }
        private ObjectSet<AdmPedidoPagamento> _AdmPedidoPagamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<Despesas> Despesas
        {
            get
            {
                if ((_Despesas == null))
                {
                    _Despesas = base.CreateObjectSet<Despesas>("Despesas");
                }
                return _Despesas;
            }
        }
        private ObjectSet<Despesas> _Despesas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TiposProcedimentoContratacaoPublica> TiposProcedimentoContratacaoPublica
        {
            get
            {
                if ((_TiposProcedimentoContratacaoPublica == null))
                {
                    _TiposProcedimentoContratacaoPublica = base.CreateObjectSet<TiposProcedimentoContratacaoPublica>("TiposProcedimentoContratacaoPublica");
                }
                return _TiposProcedimentoContratacaoPublica;
            }
        }
        private ObjectSet<TiposProcedimentoContratacaoPublica> _TiposProcedimentoContratacaoPublica;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<RegiaoIntervencao> RegiaoIntervencao
        {
            get
            {
                if ((_RegiaoIntervencao == null))
                {
                    _RegiaoIntervencao = base.CreateObjectSet<RegiaoIntervencao>("RegiaoIntervencao");
                }
                return _RegiaoIntervencao;
            }
        }
        private ObjectSet<RegiaoIntervencao> _RegiaoIntervencao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoLogotipo> ProjectoLogotipo
        {
            get
            {
                if ((_ProjectoLogotipo == null))
                {
                    _ProjectoLogotipo = base.CreateObjectSet<ProjectoLogotipo>("ProjectoLogotipo");
                }
                return _ProjectoLogotipo;
            }
        }
        private ObjectSet<ProjectoLogotipo> _ProjectoLogotipo;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<FundosFinanciamento> FundosFinanciamento
        {
            get
            {
                if ((_FundosFinanciamento == null))
                {
                    _FundosFinanciamento = base.CreateObjectSet<FundosFinanciamento>("FundosFinanciamento");
                }
                return _FundosFinanciamento;
            }
        }
        private ObjectSet<FundosFinanciamento> _FundosFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProgramaOperacionalLogotipo> ProgramaOperacionalLogotipo
        {
            get
            {
                if ((_ProgramaOperacionalLogotipo == null))
                {
                    _ProgramaOperacionalLogotipo = base.CreateObjectSet<ProgramaOperacionalLogotipo>("ProgramaOperacionalLogotipo");
                }
                return _ProgramaOperacionalLogotipo;
            }
        }
        private ObjectSet<ProgramaOperacionalLogotipo> _ProgramaOperacionalLogotipo;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProgramaQuadroLogotipo> ProgramaQuadroLogotipo
        {
            get
            {
                if ((_ProgramaQuadroLogotipo == null))
                {
                    _ProgramaQuadroLogotipo = base.CreateObjectSet<ProgramaQuadroLogotipo>("ProgramaQuadroLogotipo");
                }
                return _ProgramaQuadroLogotipo;
            }
        }
        private ObjectSet<ProgramaQuadroLogotipo> _ProgramaQuadroLogotipo;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PortalFontesFinanciamento> PortalFontesFinanciamento
        {
            get
            {
                if ((_PortalFontesFinanciamento == null))
                {
                    _PortalFontesFinanciamento = base.CreateObjectSet<PortalFontesFinanciamento>("PortalFontesFinanciamento");
                }
                return _PortalFontesFinanciamento;
            }
        }
        private ObjectSet<PortalFontesFinanciamento> _PortalFontesFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PortalFontesFinanciamentoML> PortalFontesFinanciamentoML
        {
            get
            {
                if ((_PortalFontesFinanciamentoML == null))
                {
                    _PortalFontesFinanciamentoML = base.CreateObjectSet<PortalFontesFinanciamentoML>("PortalFontesFinanciamentoML");
                }
                return _PortalFontesFinanciamentoML;
            }
        }
        private ObjectSet<PortalFontesFinanciamentoML> _PortalFontesFinanciamentoML;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PortalTipologiaProjeto> PortalTipologiaProjeto
        {
            get
            {
                if ((_PortalTipologiaProjeto == null))
                {
                    _PortalTipologiaProjeto = base.CreateObjectSet<PortalTipologiaProjeto>("PortalTipologiaProjeto");
                }
                return _PortalTipologiaProjeto;
            }
        }
        private ObjectSet<PortalTipologiaProjeto> _PortalTipologiaProjeto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoAgregacaoPrograma> TipoAgregacaoPrograma
        {
            get
            {
                if ((_TipoAgregacaoPrograma == null))
                {
                    _TipoAgregacaoPrograma = base.CreateObjectSet<TipoAgregacaoPrograma>("TipoAgregacaoPrograma");
                }
                return _TipoAgregacaoPrograma;
            }
        }
        private ObjectSet<TipoAgregacaoPrograma> _TipoAgregacaoPrograma;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PortalFontesAreasTematicas> PortalFontesAreasTematicas
        {
            get
            {
                if ((_PortalFontesAreasTematicas == null))
                {
                    _PortalFontesAreasTematicas = base.CreateObjectSet<PortalFontesAreasTematicas>("PortalFontesAreasTematicas");
                }
                return _PortalFontesAreasTematicas;
            }
        }
        private ObjectSet<PortalFontesAreasTematicas> _PortalFontesAreasTematicas;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<PortalFontesTipologiaProjeto> PortalFontesTipologiaProjeto
        {
            get
            {
                if ((_PortalFontesTipologiaProjeto == null))
                {
                    _PortalFontesTipologiaProjeto = base.CreateObjectSet<PortalFontesTipologiaProjeto>("PortalFontesTipologiaProjeto");
                }
                return _PortalFontesTipologiaProjeto;
            }
        }
        private ObjectSet<PortalFontesTipologiaProjeto> _PortalFontesTipologiaProjeto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoAgregacaoProgramaOperacional> TipoAgregacaoProgramaOperacional
        {
            get
            {
                if ((_TipoAgregacaoProgramaOperacional == null))
                {
                    _TipoAgregacaoProgramaOperacional = base.CreateObjectSet<TipoAgregacaoProgramaOperacional>("TipoAgregacaoProgramaOperacional");
                }
                return _TipoAgregacaoProgramaOperacional;
            }
        }
        private ObjectSet<TipoAgregacaoProgramaOperacional> _TipoAgregacaoProgramaOperacional;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ProjectoFundoFinanciamento> ProjectoFundoFinanciamento
        {
            get
            {
                if ((_ProjectoFundoFinanciamento == null))
                {
                    _ProjectoFundoFinanciamento = base.CreateObjectSet<ProjectoFundoFinanciamento>("ProjectoFundoFinanciamento");
                }
                return _ProjectoFundoFinanciamento;
            }
        }
        private ObjectSet<ProjectoFundoFinanciamento> _ProjectoFundoFinanciamento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<FundoFinanciamentoAgregacao> FundoFinanciamentoAgregacao
        {
            get
            {
                if ((_FundoFinanciamentoAgregacao == null))
                {
                    _FundoFinanciamentoAgregacao = base.CreateObjectSet<FundoFinanciamentoAgregacao>("FundoFinanciamentoAgregacao");
                }
                return _FundoFinanciamentoAgregacao;
            }
        }
        private ObjectSet<FundoFinanciamentoAgregacao> _FundoFinanciamentoAgregacao;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TiposAgregacaoFundosFinancimento> TiposAgregacaoFundosFinancimento
        {
            get
            {
                if ((_TiposAgregacaoFundosFinancimento == null))
                {
                    _TiposAgregacaoFundosFinancimento = base.CreateObjectSet<TiposAgregacaoFundosFinancimento>("TiposAgregacaoFundosFinancimento");
                }
                return _TiposAgregacaoFundosFinancimento;
            }
        }
        private ObjectSet<TiposAgregacaoFundosFinancimento> _TiposAgregacaoFundosFinancimento;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VW_InvestigadoresUnidades> VW_InvestigadoresUnidades
        {
            get
            {
                if ((_VW_InvestigadoresUnidades == null))
                {
                    _VW_InvestigadoresUnidades = base.CreateObjectSet<VW_InvestigadoresUnidades>("VW_InvestigadoresUnidades");
                }
                return _VW_InvestigadoresUnidades;
            }
        }
        private ObjectSet<VW_InvestigadoresUnidades> _VW_InvestigadoresUnidades;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VW_Funcionarios> VW_Funcionarios
        {
            get
            {
                if ((_VW_Funcionarios == null))
                {
                    _VW_Funcionarios = base.CreateObjectSet<VW_Funcionarios>("VW_Funcionarios");
                }
                return _VW_Funcionarios;
            }
        }
        private ObjectSet<VW_Funcionarios> _VW_Funcionarios;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VW_FuncionarioContrato> VW_FuncionarioContrato
        {
            get
            {
                if ((_VW_FuncionarioContrato == null))
                {
                    _VW_FuncionarioContrato = base.CreateObjectSet<VW_FuncionarioContrato>("VW_FuncionarioContrato");
                }
                return _VW_FuncionarioContrato;
            }
        }
        private ObjectSet<VW_FuncionarioContrato> _VW_FuncionarioContrato;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<VW_InvestigadoresUnidadesEstatutos> VW_InvestigadoresUnidadesEstatutos
        {
            get
            {
                if ((_VW_InvestigadoresUnidadesEstatutos == null))
                {
                    _VW_InvestigadoresUnidadesEstatutos = base.CreateObjectSet<VW_InvestigadoresUnidadesEstatutos>("VW_InvestigadoresUnidadesEstatutos");
                }
                return _VW_InvestigadoresUnidadesEstatutos;
            }
        }
        private ObjectSet<VW_InvestigadoresUnidadesEstatutos> _VW_InvestigadoresUnidadesEstatutos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipoEstatutos> TipoEstatutos
        {
            get
            {
                if ((_TipoEstatutos == null))
                {
                    _TipoEstatutos = base.CreateObjectSet<TipoEstatutos>("TipoEstatutos");
                }
                return _TipoEstatutos;
            }
        }
        private ObjectSet<TipoEstatutos> _TipoEstatutos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<UnidadeInvestigadores> UnidadeInvestigadores
        {
            get
            {
                if ((_UnidadeInvestigadores == null))
                {
                    _UnidadeInvestigadores = base.CreateObjectSet<UnidadeInvestigadores>("UnidadeInvestigadores");
                }
                return _UnidadeInvestigadores;
            }
        }
        private ObjectSet<UnidadeInvestigadores> _UnidadeInvestigadores;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<UnidadesInvestigadoresEstatutos> UnidadesInvestigadoresEstatutos
        {
            get
            {
                if ((_UnidadesInvestigadoresEstatutos == null))
                {
                    _UnidadesInvestigadoresEstatutos = base.CreateObjectSet<UnidadesInvestigadoresEstatutos>("UnidadesInvestigadoresEstatutos");
                }
                return _UnidadesInvestigadoresEstatutos;
            }
        }
        private ObjectSet<UnidadesInvestigadoresEstatutos> _UnidadesInvestigadoresEstatutos;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TipologiaProjeto> TipologiaProjeto
        {
            get
            {
                if ((_TipologiaProjeto == null))
                {
                    _TipologiaProjeto = base.CreateObjectSet<TipologiaProjeto>("TipologiaProjeto");
                }
                return _TipologiaProjeto;
            }
        }
        private ObjectSet<TipologiaProjeto> _TipologiaProjeto;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<EstadoTimesheet> EstadoTimesheets
        {
            get
            {
                if ((_EstadoTimesheets == null))
                {
                    _EstadoTimesheets = base.CreateObjectSet<EstadoTimesheet>("EstadoTimesheets");
                }
                return _EstadoTimesheets;
            }
        }
        private ObjectSet<EstadoTimesheet> _EstadoTimesheets;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<TemplateFile> TemplateFiles
        {
            get
            {
                if ((_TemplateFiles == null))
                {
                    _TemplateFiles = base.CreateObjectSet<TemplateFile>("TemplateFiles");
                }
                return _TemplateFiles;
            }
        }
        private ObjectSet<TemplateFile> _TemplateFiles;
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectSet<ListagemTimesheet> ListagemTimesheets
        {
            get
            {
                if ((_ListagemTimesheets == null))
                {
                    _ListagemTimesheets = base.CreateObjectSet<ListagemTimesheet>("ListagemTimesheets");
                }
                return _ListagemTimesheets;
            }
        }
        private ObjectSet<ListagemTimesheet> _ListagemTimesheets;

        #endregion

        #region AddTo Methods
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AreaCientifica EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAreaCientifica(AreaCientifica areaCientifica)
        {
            base.AddObject("AreaCientifica", areaCientifica);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ContratoAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToContratoAnexos(ContratoAnexos contratoAnexos)
        {
            base.AddObject("ContratoAnexos", contratoAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Estados EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToEstados(Estados estados)
        {
            base.AddObject("Estados", estados);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the GrauAcademico EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToGrauAcademico(GrauAcademico grauAcademico)
        {
            base.AddObject("GrauAcademico", grauAcademico);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Idioma EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToIdioma(Idioma idioma)
        {
            base.AddObject("Idioma", idioma);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the MapaImputacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMapaImputacao(MapaImputacao mapaImputacao)
        {
            base.AddObject("MapaImputacao", mapaImputacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the MotivoTermino EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMotivoTermino(MotivoTermino motivoTermino)
        {
            base.AddObject("MotivoTermino", motivoTermino);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoAnexos(ProjectoAnexos projectoAnexos)
        {
            base.AddObject("ProjectoAnexos", projectoAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecursoHumano EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecursoHumano(RecursoHumano recursoHumano)
        {
            base.AddObject("RecursoHumano", recursoHumano);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Seguradoras EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToSeguradoras(Seguradoras seguradoras)
        {
            base.AddObject("Seguradoras", seguradoras);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoBolsa EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoBolsa(TipoBolsa tipoBolsa)
        {
            base.AddObject("TipoBolsa", tipoBolsa);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoDocumento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoDocumento(TipoDocumento tipoDocumento)
        {
            base.AddObject("TipoDocumento", tipoDocumento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoUnidade EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoUnidade(TipoUnidade tipoUnidade)
        {
            base.AddObject("TipoUnidade", tipoUnidade);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VerbasMovimento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVerbasMovimento(VerbasMovimento verbasMovimento)
        {
            base.AddObject("VerbasMovimento", verbasMovimento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Logs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToLogs(Logs logs)
        {
            base.AddObject("Logs", logs);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoEntidade EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoEntidade(TipoEntidade tipoEntidade)
        {
            base.AddObject("TipoEntidade", tipoEntidade);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoInstituicao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoInstituicao(TipoInstituicao tipoInstituicao)
        {
            base.AddObject("TipoInstituicao", tipoInstituicao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Unidades EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToUnidades(Unidades unidades)
        {
            base.AddObject("Unidades", unidades);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the GruposInvestigacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToGruposInvestigacao(GruposInvestigacao gruposInvestigacao)
        {
            base.AddObject("GruposInvestigacao", gruposInvestigacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ClasseDocumentoDespesa EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToClasseDocumentoDespesa(ClasseDocumentoDespesa classeDocumentoDespesa)
        {
            base.AddObject("ClasseDocumentoDespesa", classeDocumentoDespesa);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ErrosLog EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToErrosLog(ErrosLog errosLog)
        {
            base.AddObject("ErrosLog", errosLog);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the MenuPages EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMenuPages(MenuPages menuPages)
        {
            base.AddObject("MenuPages", menuPages);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the MenuTabs EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMenuTabs(MenuTabs menuTabs)
        {
            base.AddObject("MenuTabs", menuTabs);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the EntityMappings EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToEntityMappings(EntityMappings entityMappings)
        {
            base.AddObject("EntityMappings", entityMappings);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AreaCientificaML EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAreaCientificaML(AreaCientificaML areaCientificaML)
        {
            base.AddObject("AreaCientificaML", areaCientificaML);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaML EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaML(CandidaturaML candidaturaML)
        {
            base.AddObject("CandidaturaML", candidaturaML);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the EntidadeProgramaML EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToEntidadeProgramaML(EntidadeProgramaML entidadeProgramaML)
        {
            base.AddObject("EntidadeProgramaML", entidadeProgramaML);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the OverheadTipo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToOverheadTipo(OverheadTipo overheadTipo)
        {
            base.AddObject("OverheadTipo", overheadTipo);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoOverheads EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoOverheads(ProjectoOverheads projectoOverheads)
        {
            base.AddObject("ProjectoOverheads", projectoOverheads);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VerbasOverheads EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVerbasOverheads(VerbasOverheads verbasOverheads)
        {
            base.AddObject("VerbasOverheads", verbasOverheads);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VerbasOverheadValor EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVerbasOverheadValor(VerbasOverheadValor verbasOverheadValor)
        {
            base.AddObject("VerbasOverheadValor", verbasOverheadValor);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Permissoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPermissoes(Permissoes permissoes)
        {
            base.AddObject("Permissoes", permissoes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ChaveImputacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToChaveImputacao(ChaveImputacao chaveImputacao)
        {
            base.AddObject("ChaveImputacao", chaveImputacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ChaveImputacaoRubricas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToChaveImputacaoRubricas(ChaveImputacaoRubricas chaveImputacaoRubricas)
        {
            base.AddObject("ChaveImputacaoRubricas", chaveImputacaoRubricas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the MapaImputacaoRubricas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToMapaImputacaoRubricas(MapaImputacaoRubricas mapaImputacaoRubricas)
        {
            base.AddObject("MapaImputacaoRubricas", mapaImputacaoRubricas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoDocumentoIdentificacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoDocumentoIdentificacao(TipoDocumentoIdentificacao tipoDocumentoIdentificacao)
        {
            base.AddObject("TipoDocumentoIdentificacao", tipoDocumentoIdentificacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaOrcamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaOrcamento(CandidaturaOrcamento candidaturaOrcamento)
        {
            base.AddObject("CandidaturaOrcamento", candidaturaOrcamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the SeguroPagamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToSeguroPagamento(SeguroPagamento seguroPagamento)
        {
            base.AddObject("SeguroPagamento", seguroPagamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoPagamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoPagamento(TipoPagamento tipoPagamento)
        {
            base.AddObject("TipoPagamento", tipoPagamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PagamentoQuestao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPagamentoQuestao(PagamentoQuestao pagamentoQuestao)
        {
            base.AddObject("PagamentoQuestao", pagamentoQuestao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RegistoTarefas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRegistoTarefas(RegistoTarefas registoTarefas)
        {
            base.AddObject("RegistoTarefas", registoTarefas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProgramaOperacional EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProgramaOperacional(ProgramaOperacional programaOperacional)
        {
            base.AddObject("ProgramaOperacional", programaOperacional);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProgramaQuadro EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProgramaQuadro(ProgramaQuadro programaQuadro)
        {
            base.AddObject("ProgramaQuadro", programaQuadro);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoProjecto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoProjecto(TipoProjecto tipoProjecto)
        {
            base.AddObject("TipoProjecto", tipoProjecto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the FonteFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToFonteFinanciamento(FonteFinanciamento fonteFinanciamento)
        {
            base.AddObject("FonteFinanciamento", fonteFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Rubricas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRubricas(Rubricas rubricas)
        {
            base.AddObject("Rubricas", rubricas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoTarefa EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoTarefa(TipoTarefa tipoTarefa)
        {
            base.AddObject("TipoTarefa", tipoTarefa);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaEquipa EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaEquipa(CandidaturaEquipa candidaturaEquipa)
        {
            base.AddObject("CandidaturaEquipa", candidaturaEquipa);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoEquipa EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoEquipa(ProjectoEquipa projectoEquipa)
        {
            base.AddObject("ProjectoEquipa", projectoEquipa);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ViewsPermissoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToViewsPermissoes(ViewsPermissoes viewsPermissoes)
        {
            base.AddObject("ViewsPermissoes", viewsPermissoes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the View EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToView(View view)
        {
            base.AddObject("View", view);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Perfil EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPerfil(Perfil perfil)
        {
            base.AddObject("Perfil", perfil);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Seguros EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToSeguros(Seguros seguros)
        {
            base.AddObject("Seguros", seguros);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaFinanciamento(CandidaturaFinanciamento candidaturaFinanciamento)
        {
            base.AddObject("CandidaturaFinanciamento", candidaturaFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Funcao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToFuncao(Funcao funcao)
        {
            base.AddObject("Funcao", funcao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectosAlocacaoDiaria EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectosAlocacaoDiaria(ProjectosAlocacaoDiaria projectosAlocacaoDiaria)
        {
            base.AddObject("ProjectosAlocacaoDiaria", projectosAlocacaoDiaria);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoRecursoHumano EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoRecursoHumano(TipoRecursoHumano tipoRecursoHumano)
        {
            base.AddObject("TipoRecursoHumano", tipoRecursoHumano);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Contratos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToContratos(Contratos contratos)
        {
            base.AddObject("Contratos", contratos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Adiantamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdiantamento(Adiantamento adiantamento)
        {
            base.AddObject("Adiantamento", adiantamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdiantamentoAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdiantamentoAnexos(AdiantamentoAnexos adiantamentoAnexos)
        {
            base.AddObject("AdiantamentoAnexos", adiantamentoAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProgramaMedidas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProgramaMedidas(ProgramaMedidas programaMedidas)
        {
            base.AddObject("ProgramaMedidas", programaMedidas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the NumeradorOrcamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToNumeradorOrcamento(NumeradorOrcamento numeradorOrcamento)
        {
            base.AddObject("NumeradorOrcamento", numeradorOrcamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the NumeradorAdiantamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToNumeradorAdiantamento(NumeradorAdiantamento numeradorAdiantamento)
        {
            base.AddObject("NumeradorAdiantamento", numeradorAdiantamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the NumeradorCompensacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToNumeradorCompensacao(NumeradorCompensacao numeradorCompensacao)
        {
            base.AddObject("NumeradorCompensacao", numeradorCompensacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdiantamentoCompensacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdiantamentoCompensacao(AdiantamentoCompensacao adiantamentoCompensacao)
        {
            base.AddObject("AdiantamentoCompensacao", adiantamentoCompensacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoMovimento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoMovimento(InternoMovimento internoMovimento)
        {
            base.AddObject("InternoMovimento", internoMovimento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoProjecto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoProjecto(InternoProjecto internoProjecto)
        {
            base.AddObject("InternoProjecto", internoProjecto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoProjectoDelegacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoProjectoDelegacao(InternoProjectoDelegacao internoProjectoDelegacao)
        {
            base.AddObject("InternoProjectoDelegacao", internoProjectoDelegacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoProjectoAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoProjectoAnexos(InternoProjectoAnexos internoProjectoAnexos)
        {
            base.AddObject("InternoProjectoAnexos", internoProjectoAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoRubrica EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoRubrica(InternoRubrica internoRubrica)
        {
            base.AddObject("InternoRubrica", internoRubrica);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the InternoNumeradorMovimento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInternoNumeradorMovimento(InternoNumeradorMovimento internoNumeradorMovimento)
        {
            base.AddObject("InternoNumeradorMovimento", internoNumeradorMovimento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TemplatesEmails EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTemplatesEmails(TemplatesEmails templatesEmails)
        {
            base.AddObject("TemplatesEmails", templatesEmails);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoFinanciamento(ProjectoFinanciamento projectoFinanciamento)
        {
            base.AddObject("ProjectoFinanciamento", projectoFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the LogGenerico EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToLogGenerico(LogGenerico logGenerico)
        {
            base.AddObject("LogGenerico", logGenerico);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Paises EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPaises(Paises paises)
        {
            base.AddObject("Paises", paises);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaAnexos(CandidaturaAnexos candidaturaAnexos)
        {
            base.AddObject("CandidaturaAnexos", candidaturaAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Recebimentos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentos(Recebimentos recebimentos)
        {
            base.AddObject("Recebimentos", recebimentos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosAbate EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosAbate(RecebimentosAbate recebimentosAbate)
        {
            base.AddObject("RecebimentosAbate", recebimentosAbate);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosPagamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosPagamento(RecebimentosPagamento recebimentosPagamento)
        {
            base.AddObject("RecebimentosPagamento", recebimentosPagamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosAnexos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosAnexos(RecebimentosAnexos recebimentosAnexos)
        {
            base.AddObject("RecebimentosAnexos", recebimentosAnexos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ContratoPeriodos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToContratoPeriodos(ContratoPeriodos contratoPeriodos)
        {
            base.AddObject("ContratoPeriodos", contratoPeriodos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PermissaoDespesas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPermissaoDespesas(PermissaoDespesas permissaoDespesas)
        {
            base.AddObject("PermissaoDespesas", permissaoDespesas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PagamentoEstado EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPagamentoEstado(PagamentoEstado pagamentoEstado)
        {
            base.AddObject("PagamentoEstado", pagamentoEstado);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the CandidaturaEstados EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturaEstados(CandidaturaEstados candidaturaEstados)
        {
            base.AddObject("CandidaturaEstados", candidaturaEstados);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdiantamentoEstado EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdiantamentoEstado(AdiantamentoEstado adiantamentoEstado)
        {
            base.AddObject("AdiantamentoEstado", adiantamentoEstado);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosReceita EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosReceita(RecebimentosReceita recebimentosReceita)
        {
            base.AddObject("RecebimentosReceita", recebimentosReceita);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the LogConsultaVerbetes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToLogConsultaVerbetes(LogConsultaVerbetes logConsultaVerbetes)
        {
            base.AddObject("LogConsultaVerbetes", logConsultaVerbetes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PagamentosParticipantes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPagamentosParticipantes(PagamentosParticipantes pagamentosParticipantes)
        {
            base.AddObject("PagamentosParticipantes", pagamentosParticipantes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosPagamentoParticipantes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosPagamentoParticipantes(RecebimentosPagamentoParticipantes recebimentosPagamentoParticipantes)
        {
            base.AddObject("RecebimentosPagamentoParticipantes", recebimentosPagamentoParticipantes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TiposRecebimento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTiposRecebimento(TiposRecebimento tiposRecebimento)
        {
            base.AddObject("TiposRecebimento", tiposRecebimento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosParticipantesReceita EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosParticipantesReceita(RecebimentosParticipantesReceita recebimentosParticipantesReceita)
        {
            base.AddObject("RecebimentosParticipantesReceita", recebimentosParticipantesReceita);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RecebimentosParticipantes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRecebimentosParticipantes(RecebimentosParticipantes recebimentosParticipantes)
        {
            base.AddObject("RecebimentosParticipantes", recebimentosParticipantes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TranferenciasPagamentosParticipantes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTranferenciasPagamentosParticipantes(TranferenciasPagamentosParticipantes tranferenciasPagamentosParticipantes)
        {
            base.AddObject("TranferenciasPagamentosParticipantes", tranferenciasPagamentosParticipantes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TransferenciasParticipantes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTransferenciasParticipantes(TransferenciasParticipantes transferenciasParticipantes)
        {
            base.AddObject("TransferenciasParticipantes", transferenciasParticipantes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PedidosContraFaturas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPedidosContraFaturas(PedidosContraFaturas pedidosContraFaturas)
        {
            base.AddObject("PedidosContraFaturas", pedidosContraFaturas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Pagamentos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPagamentos(Pagamentos pagamentos)
        {
            base.AddObject("Pagamentos", pagamentos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoEnvioEmailExclusoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoEnvioEmailExclusoes(ProjectoEnvioEmailExclusoes projectoEnvioEmailExclusoes)
        {
            base.AddObject("ProjectoEnvioEmailExclusoes", projectoEnvioEmailExclusoes);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the EntidadeFinanciadora EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToEntidadeFinanciadora(EntidadeFinanciadora entidadeFinanciadora)
        {
            base.AddObject("EntidadeFinanciadora", entidadeFinanciadora);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Candidaturas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToCandidaturas(Candidaturas candidaturas)
        {
            base.AddObject("Candidaturas", candidaturas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Instituicao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToInstituicao(Instituicao instituicao)
        {
            base.AddObject("Instituicao", instituicao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoInstituicao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoInstituicao(ProjectoInstituicao projectoInstituicao)
        {
            base.AddObject("ProjectoInstituicao", projectoInstituicao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Projectos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectos(Projectos projectos)
        {
            base.AddObject("Projectos", projectos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmProjeto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmProjeto(AdmProjeto admProjeto)
        {
            base.AddObject("AdmProjeto", admProjeto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmDespesaExecutada EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmDespesaExecutada(AdmDespesaExecutada admDespesaExecutada)
        {
            base.AddObject("AdmDespesaExecutada", admDespesaExecutada);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmOrcamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmOrcamento(AdmOrcamento admOrcamento)
        {
            base.AddObject("AdmOrcamento", admOrcamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmPedidoPagamentoParceiras EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmPedidoPagamentoParceiras(AdmPedidoPagamentoParceiras admPedidoPagamentoParceiras)
        {
            base.AddObject("AdmPedidoPagamentoParceiras", admPedidoPagamentoParceiras);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmOrcamentoParceiras EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmOrcamentoParceiras(AdmOrcamentoParceiras admOrcamentoParceiras)
        {
            base.AddObject("AdmOrcamentoParceiras", admOrcamentoParceiras);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the AdmPedidoPagamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToAdmPedidoPagamento(AdmPedidoPagamento admPedidoPagamento)
        {
            base.AddObject("AdmPedidoPagamento", admPedidoPagamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the Despesas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToDespesas(Despesas despesas)
        {
            base.AddObject("Despesas", despesas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TiposProcedimentoContratacaoPublica EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTiposProcedimentoContratacaoPublica(TiposProcedimentoContratacaoPublica tiposProcedimentoContratacaoPublica)
        {
            base.AddObject("TiposProcedimentoContratacaoPublica", tiposProcedimentoContratacaoPublica);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the RegiaoIntervencao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToRegiaoIntervencao(RegiaoIntervencao regiaoIntervencao)
        {
            base.AddObject("RegiaoIntervencao", regiaoIntervencao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoLogotipo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoLogotipo(ProjectoLogotipo projectoLogotipo)
        {
            base.AddObject("ProjectoLogotipo", projectoLogotipo);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the FundosFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToFundosFinanciamento(FundosFinanciamento fundosFinanciamento)
        {
            base.AddObject("FundosFinanciamento", fundosFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProgramaOperacionalLogotipo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProgramaOperacionalLogotipo(ProgramaOperacionalLogotipo programaOperacionalLogotipo)
        {
            base.AddObject("ProgramaOperacionalLogotipo", programaOperacionalLogotipo);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProgramaQuadroLogotipo EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProgramaQuadroLogotipo(ProgramaQuadroLogotipo programaQuadroLogotipo)
        {
            base.AddObject("ProgramaQuadroLogotipo", programaQuadroLogotipo);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PortalFontesFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPortalFontesFinanciamento(PortalFontesFinanciamento portalFontesFinanciamento)
        {
            base.AddObject("PortalFontesFinanciamento", portalFontesFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PortalFontesFinanciamentoML EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPortalFontesFinanciamentoML(PortalFontesFinanciamentoML portalFontesFinanciamentoML)
        {
            base.AddObject("PortalFontesFinanciamentoML", portalFontesFinanciamentoML);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PortalTipologiaProjeto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPortalTipologiaProjeto(PortalTipologiaProjeto portalTipologiaProjeto)
        {
            base.AddObject("PortalTipologiaProjeto", portalTipologiaProjeto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoAgregacaoPrograma EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoAgregacaoPrograma(TipoAgregacaoPrograma tipoAgregacaoPrograma)
        {
            base.AddObject("TipoAgregacaoPrograma", tipoAgregacaoPrograma);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PortalFontesAreasTematicas EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPortalFontesAreasTematicas(PortalFontesAreasTematicas portalFontesAreasTematicas)
        {
            base.AddObject("PortalFontesAreasTematicas", portalFontesAreasTematicas);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the PortalFontesTipologiaProjeto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToPortalFontesTipologiaProjeto(PortalFontesTipologiaProjeto portalFontesTipologiaProjeto)
        {
            base.AddObject("PortalFontesTipologiaProjeto", portalFontesTipologiaProjeto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoAgregacaoProgramaOperacional EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoAgregacaoProgramaOperacional(TipoAgregacaoProgramaOperacional tipoAgregacaoProgramaOperacional)
        {
            base.AddObject("TipoAgregacaoProgramaOperacional", tipoAgregacaoProgramaOperacional);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ProjectoFundoFinanciamento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToProjectoFundoFinanciamento(ProjectoFundoFinanciamento projectoFundoFinanciamento)
        {
            base.AddObject("ProjectoFundoFinanciamento", projectoFundoFinanciamento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the FundoFinanciamentoAgregacao EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToFundoFinanciamentoAgregacao(FundoFinanciamentoAgregacao fundoFinanciamentoAgregacao)
        {
            base.AddObject("FundoFinanciamentoAgregacao", fundoFinanciamentoAgregacao);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TiposAgregacaoFundosFinancimento EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTiposAgregacaoFundosFinancimento(TiposAgregacaoFundosFinancimento tiposAgregacaoFundosFinancimento)
        {
            base.AddObject("TiposAgregacaoFundosFinancimento", tiposAgregacaoFundosFinancimento);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VW_InvestigadoresUnidades EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVW_InvestigadoresUnidades(VW_InvestigadoresUnidades vW_InvestigadoresUnidades)
        {
            base.AddObject("VW_InvestigadoresUnidades", vW_InvestigadoresUnidades);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VW_Funcionarios EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVW_Funcionarios(VW_Funcionarios vW_Funcionarios)
        {
            base.AddObject("VW_Funcionarios", vW_Funcionarios);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VW_FuncionarioContrato EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVW_FuncionarioContrato(VW_FuncionarioContrato vW_FuncionarioContrato)
        {
            base.AddObject("VW_FuncionarioContrato", vW_FuncionarioContrato);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the VW_InvestigadoresUnidadesEstatutos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToVW_InvestigadoresUnidadesEstatutos(VW_InvestigadoresUnidadesEstatutos vW_InvestigadoresUnidadesEstatutos)
        {
            base.AddObject("VW_InvestigadoresUnidadesEstatutos", vW_InvestigadoresUnidadesEstatutos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipoEstatutos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipoEstatutos(TipoEstatutos tipoEstatutos)
        {
            base.AddObject("TipoEstatutos", tipoEstatutos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the UnidadeInvestigadores EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToUnidadeInvestigadores(UnidadeInvestigadores unidadeInvestigadores)
        {
            base.AddObject("UnidadeInvestigadores", unidadeInvestigadores);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the UnidadesInvestigadoresEstatutos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToUnidadesInvestigadoresEstatutos(UnidadesInvestigadoresEstatutos unidadesInvestigadoresEstatutos)
        {
            base.AddObject("UnidadesInvestigadoresEstatutos", unidadesInvestigadoresEstatutos);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TipologiaProjeto EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTipologiaProjeto(TipologiaProjeto tipologiaProjeto)
        {
            base.AddObject("TipologiaProjeto", tipologiaProjeto);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the EstadoTimesheets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToEstadoTimesheets(EstadoTimesheet estadoTimesheet)
        {
            base.AddObject("EstadoTimesheets", estadoTimesheet);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the TemplateFiles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToTemplateFiles(TemplateFile templateFile)
        {
            base.AddObject("TemplateFiles", templateFile);
        }
    
        /// <summary>
        /// Deprecated Method for adding a new object to the ListagemTimesheets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
        /// </summary>
        public void AddToListagemTimesheets(ListagemTimesheet listagemTimesheet)
        {
            base.AddObject("ListagemTimesheets", listagemTimesheet);
        }

        #endregion

        #region Function Imports
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="tabID">No Metadata Documentation available.</param>
        /// <param name="pageID">No Metadata Documentation available.</param>
        public ObjectResult<MenuPages> MenuGetTabPagesHier(Nullable<global::System.Int32> tabID, Nullable<global::System.Int32> pageID)
        {
            ObjectParameter tabIDParameter;
            if (tabID.HasValue)
            {
                tabIDParameter = new ObjectParameter("TabID", tabID);
            }
            else
            {
                tabIDParameter = new ObjectParameter("TabID", typeof(global::System.Int32));
            }
    
            ObjectParameter pageIDParameter;
            if (pageID.HasValue)
            {
                pageIDParameter = new ObjectParameter("PageID", pageID);
            }
            else
            {
                pageIDParameter = new ObjectParameter("PageID", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<MenuPages>("MenuGetTabPagesHier", tabIDParameter, pageIDParameter);
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="mergeOption"></param>
        /// <param name="tabID">No Metadata Documentation available.</param>
        /// <param name="pageID">No Metadata Documentation available.</param>
        public ObjectResult<MenuPages> MenuGetTabPagesHier(Nullable<global::System.Int32> tabID, Nullable<global::System.Int32> pageID, MergeOption mergeOption)
        {
            ObjectParameter tabIDParameter;
            if (tabID.HasValue)
            {
                tabIDParameter = new ObjectParameter("TabID", tabID);
            }
            else
            {
                tabIDParameter = new ObjectParameter("TabID", typeof(global::System.Int32));
            }
    
            ObjectParameter pageIDParameter;
            if (pageID.HasValue)
            {
                pageIDParameter = new ObjectParameter("PageID", pageID);
            }
            else
            {
                pageIDParameter = new ObjectParameter("PageID", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<MenuPages>("MenuGetTabPagesHier", mergeOption, tabIDParameter, pageIDParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public ObjectResult<ERP_Tipo_Doc> GET_ERP_TIPO_DOC()
        {
            return base.ExecuteFunction<ERP_Tipo_Doc>("GET_ERP_TIPO_DOC");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        /// <param name="transferencias">No Metadata Documentation available.</param>
        public ObjectResult<ERP_Despesa> GET_ERP_DESPESA(global::System.String centroResp, global::System.String subcen, Nullable<global::System.Boolean> transferencias)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            ObjectParameter transferenciasParameter;
            if (transferencias.HasValue)
            {
                transferenciasParameter = new ObjectParameter("Transferencias", transferencias);
            }
            else
            {
                transferenciasParameter = new ObjectParameter("Transferencias", typeof(global::System.Boolean));
            }
    
            return base.ExecuteFunction<ERP_Despesa>("GET_ERP_DESPESA", centroRespParameter, subcenParameter, transferenciasParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        public ObjectResult<ERP_OVERHEAD> GET_ERP_OVERHEAD(global::System.String centroResp, global::System.String subcen)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<ERP_OVERHEAD>("GET_ERP_OVERHEAD", centroRespParameter, subcenParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjecto">No Metadata Documentation available.</param>
        /// <param name="iDRecursoHumano">No Metadata Documentation available.</param>
        /// <param name="alocacao">No Metadata Documentation available.</param>
        /// <param name="dataInicial">No Metadata Documentation available.</param>
        /// <param name="dataFinal">No Metadata Documentation available.</param>
        /// <param name="dataInicialAnterior">No Metadata Documentation available.</param>
        /// <param name="dataFinalAnterior">No Metadata Documentation available.</param>
        public int ActualizarAlocacaoDiaria(Nullable<global::System.Int32> iDProjecto, Nullable<global::System.Int32> iDRecursoHumano, Nullable<global::System.Int32> alocacao, Nullable<global::System.DateTime> dataInicial, Nullable<global::System.DateTime> dataFinal, Nullable<global::System.DateTime> dataInicialAnterior, Nullable<global::System.DateTime> dataFinalAnterior)
        {
            ObjectParameter iDProjectoParameter;
            if (iDProjecto.HasValue)
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", iDProjecto);
            }
            else
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", typeof(global::System.Int32));
            }
    
            ObjectParameter iDRecursoHumanoParameter;
            if (iDRecursoHumano.HasValue)
            {
                iDRecursoHumanoParameter = new ObjectParameter("IDRecursoHumano", iDRecursoHumano);
            }
            else
            {
                iDRecursoHumanoParameter = new ObjectParameter("IDRecursoHumano", typeof(global::System.Int32));
            }
    
            ObjectParameter alocacaoParameter;
            if (alocacao.HasValue)
            {
                alocacaoParameter = new ObjectParameter("Alocacao", alocacao);
            }
            else
            {
                alocacaoParameter = new ObjectParameter("Alocacao", typeof(global::System.Int32));
            }
    
            ObjectParameter dataInicialParameter;
            if (dataInicial.HasValue)
            {
                dataInicialParameter = new ObjectParameter("DataInicial", dataInicial);
            }
            else
            {
                dataInicialParameter = new ObjectParameter("DataInicial", typeof(global::System.DateTime));
            }
    
            ObjectParameter dataFinalParameter;
            if (dataFinal.HasValue)
            {
                dataFinalParameter = new ObjectParameter("DataFinal", dataFinal);
            }
            else
            {
                dataFinalParameter = new ObjectParameter("DataFinal", typeof(global::System.DateTime));
            }
    
            ObjectParameter dataInicialAnteriorParameter;
            if (dataInicialAnterior.HasValue)
            {
                dataInicialAnteriorParameter = new ObjectParameter("DataInicialAnterior", dataInicialAnterior);
            }
            else
            {
                dataInicialAnteriorParameter = new ObjectParameter("DataInicialAnterior", typeof(global::System.DateTime));
            }
    
            ObjectParameter dataFinalAnteriorParameter;
            if (dataFinalAnterior.HasValue)
            {
                dataFinalAnteriorParameter = new ObjectParameter("DataFinalAnterior", dataFinalAnterior);
            }
            else
            {
                dataFinalAnteriorParameter = new ObjectParameter("DataFinalAnterior", typeof(global::System.DateTime));
            }
    
            return base.ExecuteFunction("ActualizarAlocacaoDiaria", iDProjectoParameter, iDRecursoHumanoParameter, alocacaoParameter, dataInicialParameter, dataFinalParameter, dataInicialAnteriorParameter, dataFinalAnteriorParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjecto">No Metadata Documentation available.</param>
        /// <param name="iDRecursoHumano">No Metadata Documentation available.</param>
        /// <param name="dataInicial">No Metadata Documentation available.</param>
        /// <param name="dataFinal">No Metadata Documentation available.</param>
        public int RemoverAlocacaoDiaria(Nullable<global::System.Int32> iDProjecto, Nullable<global::System.Int32> iDRecursoHumano, Nullable<global::System.DateTime> dataInicial, Nullable<global::System.DateTime> dataFinal)
        {
            ObjectParameter iDProjectoParameter;
            if (iDProjecto.HasValue)
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", iDProjecto);
            }
            else
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", typeof(global::System.Int32));
            }
    
            ObjectParameter iDRecursoHumanoParameter;
            if (iDRecursoHumano.HasValue)
            {
                iDRecursoHumanoParameter = new ObjectParameter("IDRecursoHumano", iDRecursoHumano);
            }
            else
            {
                iDRecursoHumanoParameter = new ObjectParameter("IDRecursoHumano", typeof(global::System.Int32));
            }
    
            ObjectParameter dataInicialParameter;
            if (dataInicial.HasValue)
            {
                dataInicialParameter = new ObjectParameter("DataInicial", dataInicial);
            }
            else
            {
                dataInicialParameter = new ObjectParameter("DataInicial", typeof(global::System.DateTime));
            }
    
            ObjectParameter dataFinalParameter;
            if (dataFinal.HasValue)
            {
                dataFinalParameter = new ObjectParameter("DataFinal", dataFinal);
            }
            else
            {
                dataFinalParameter = new ObjectParameter("DataFinal", typeof(global::System.DateTime));
            }
    
            return base.ExecuteFunction("RemoverAlocacaoDiaria", iDProjectoParameter, iDRecursoHumanoParameter, dataInicialParameter, dataFinalParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        public int ERP_SINCRONIZA(global::System.String centroResp, global::System.String subcen)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            return base.ExecuteFunction("ERP_SINCRONIZA", centroRespParameter, subcenParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        /// <param name="entidadeFinaciadora">No Metadata Documentation available.</param>
        /// <param name="data">No Metadata Documentation available.</param>
        /// <param name="iD">No Metadata Documentation available.</param>
        /// <param name="skip">No Metadata Documentation available.</param>
        /// <param name="take">No Metadata Documentation available.</param>
        public ObjectResult<VERBAS_Factura_Recibo> SSP_VERBAS_GET_FACTURARECIBO(global::System.String centroResp, global::System.String subcen, global::System.String entidadeFinaciadora, Nullable<global::System.DateTime> data, global::System.String iD, Nullable<global::System.Int32> skip, Nullable<global::System.Int32> take)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            ObjectParameter entidadeFinaciadoraParameter;
            if (entidadeFinaciadora != null)
            {
                entidadeFinaciadoraParameter = new ObjectParameter("EntidadeFinaciadora", entidadeFinaciadora);
            }
            else
            {
                entidadeFinaciadoraParameter = new ObjectParameter("EntidadeFinaciadora", typeof(global::System.String));
            }
    
            ObjectParameter dataParameter;
            if (data.HasValue)
            {
                dataParameter = new ObjectParameter("Data", data);
            }
            else
            {
                dataParameter = new ObjectParameter("Data", typeof(global::System.DateTime));
            }
    
            ObjectParameter iDParameter;
            if (iD != null)
            {
                iDParameter = new ObjectParameter("ID", iD);
            }
            else
            {
                iDParameter = new ObjectParameter("ID", typeof(global::System.String));
            }
    
            ObjectParameter skipParameter;
            if (skip.HasValue)
            {
                skipParameter = new ObjectParameter("Skip", skip);
            }
            else
            {
                skipParameter = new ObjectParameter("Skip", typeof(global::System.Int32));
            }
    
            ObjectParameter takeParameter;
            if (take.HasValue)
            {
                takeParameter = new ObjectParameter("Take", take);
            }
            else
            {
                takeParameter = new ObjectParameter("Take", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<VERBAS_Factura_Recibo>("SSP_VERBAS_GET_FACTURARECIBO", centroRespParameter, subcenParameter, entidadeFinaciadoraParameter, dataParameter, iDParameter, skipParameter, takeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codigoUnidade">No Metadata Documentation available.</param>
        public ObjectResult<SSP_GetUnidadeEscola_Result> SSP_GetUnidadeEscola_Result(global::System.String codigoUnidade)
        {
            ObjectParameter codigoUnidadeParameter;
            if (codigoUnidade != null)
            {
                codigoUnidadeParameter = new ObjectParameter("CodigoUnidade", codigoUnidade);
            }
            else
            {
                codigoUnidadeParameter = new ObjectParameter("CodigoUnidade", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSP_GetUnidadeEscola_Result>("SSP_GetUnidadeEscola_Result", codigoUnidadeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="nmec">No Metadata Documentation available.</param>
        public ObjectResult<Nullable<global::System.Int32>> GetGrauAcademico(global::System.String nmec)
        {
            ObjectParameter nmecParameter;
            if (nmec != null)
            {
                nmecParameter = new ObjectParameter("Nmec", nmec);
            }
            else
            {
                nmecParameter = new ObjectParameter("Nmec", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Nullable<global::System.Int32>>("GetGrauAcademico", nmecParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDCandidatura">No Metadata Documentation available.</param>
        public int RemoverCandidatura(Nullable<global::System.Int32> iDCandidatura)
        {
            ObjectParameter iDCandidaturaParameter;
            if (iDCandidatura.HasValue)
            {
                iDCandidaturaParameter = new ObjectParameter("IDCandidatura", iDCandidatura);
            }
            else
            {
                iDCandidaturaParameter = new ObjectParameter("IDCandidatura", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction("RemoverCandidatura", iDCandidaturaParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="ano">No Metadata Documentation available.</param>
        /// <param name="iDDespesa">No Metadata Documentation available.</param>
        public ObjectResult<global::System.String> SSP_VERBAS_GET_DESCRICAO_DESPESA(Nullable<global::System.Int32> ano, Nullable<global::System.Int32> iDDespesa)
        {
            ObjectParameter anoParameter;
            if (ano.HasValue)
            {
                anoParameter = new ObjectParameter("Ano", ano);
            }
            else
            {
                anoParameter = new ObjectParameter("Ano", typeof(global::System.Int32));
            }
    
            ObjectParameter iDDespesaParameter;
            if (iDDespesa.HasValue)
            {
                iDDespesaParameter = new ObjectParameter("IDDespesa", iDDespesa);
            }
            else
            {
                iDDespesaParameter = new ObjectParameter("IDDespesa", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<global::System.String>("SSP_VERBAS_GET_DESCRICAO_DESPESA", anoParameter, iDDespesaParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        public int ERP_SINCRONIZA_ADIANTAMENTOS()
        {
            return base.ExecuteFunction("ERP_SINCRONIZA_ADIANTAMENTOS");
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="codUnidade">No Metadata Documentation available.</param>
        public ObjectResult<SSP_GETUnidadesDrillDown_Result> SSP_GETUnidadesDrillDown(global::System.String codUnidade)
        {
            ObjectParameter codUnidadeParameter;
            if (codUnidade != null)
            {
                codUnidadeParameter = new ObjectParameter("CodUnidade", codUnidade);
            }
            else
            {
                codUnidadeParameter = new ObjectParameter("CodUnidade", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSP_GETUnidadesDrillDown_Result>("SSP_GETUnidadesDrillDown", codUnidadeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="nMecanografico">No Metadata Documentation available.</param>
        public ObjectResult<SSP_Funcionario_Result> SSP_Funcionario(global::System.String nMecanografico)
        {
            ObjectParameter nMecanograficoParameter;
            if (nMecanografico != null)
            {
                nMecanograficoParameter = new ObjectParameter("NMecanografico", nMecanografico);
            }
            else
            {
                nMecanograficoParameter = new ObjectParameter("NMecanografico", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSP_Funcionario_Result>("SSP_Funcionario", nMecanograficoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="termo">No Metadata Documentation available.</param>
        public ObjectResult<SSP_FuncionarioByTermo_Result> SSP_FuncionarioByTermo(global::System.String termo)
        {
            ObjectParameter termoParameter;
            if (termo != null)
            {
                termoParameter = new ObjectParameter("Termo", termo);
            }
            else
            {
                termoParameter = new ObjectParameter("Termo", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSP_FuncionarioByTermo_Result>("SSP_FuncionarioByTermo", termoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjecto">No Metadata Documentation available.</param>
        /// <param name="unidade">No Metadata Documentation available.</param>
        public ObjectResult<SSP_GetValorDividaInsituicaoParticipante_Result> GetValorDividaInsituicaoParticipante(Nullable<global::System.Int32> iDProjecto, Nullable<global::System.Int32> unidade)
        {
            ObjectParameter iDProjectoParameter;
            if (iDProjecto.HasValue)
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", iDProjecto);
            }
            else
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", typeof(global::System.Int32));
            }
    
            ObjectParameter unidadeParameter;
            if (unidade.HasValue)
            {
                unidadeParameter = new ObjectParameter("Unidade", unidade);
            }
            else
            {
                unidadeParameter = new ObjectParameter("Unidade", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<SSP_GetValorDividaInsituicaoParticipante_Result>("GetValorDividaInsituicaoParticipante", iDProjectoParameter, unidadeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjecto">No Metadata Documentation available.</param>
        /// <param name="dataReferencia">No Metadata Documentation available.</param>
        /// <param name="unidade">No Metadata Documentation available.</param>
        public ObjectResult<SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result> GET_ResumoRelacaoInstituicaoParticipante(Nullable<global::System.Int32> iDProjecto, Nullable<global::System.DateTime> dataReferencia, Nullable<global::System.Int32> unidade)
        {
            ObjectParameter iDProjectoParameter;
            if (iDProjecto.HasValue)
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", iDProjecto);
            }
            else
            {
                iDProjectoParameter = new ObjectParameter("IDProjecto", typeof(global::System.Int32));
            }
    
            ObjectParameter dataReferenciaParameter;
            if (dataReferencia.HasValue)
            {
                dataReferenciaParameter = new ObjectParameter("DataReferencia", dataReferencia);
            }
            else
            {
                dataReferenciaParameter = new ObjectParameter("DataReferencia", typeof(global::System.DateTime));
            }
    
            ObjectParameter unidadeParameter;
            if (unidade.HasValue)
            {
                unidadeParameter = new ObjectParameter("Unidade", unidade);
            }
            else
            {
                unidadeParameter = new ObjectParameter("Unidade", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result>("GET_ResumoRelacaoInstituicaoParticipante", iDProjectoParameter, dataReferenciaParameter, unidadeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        public ObjectResult<VERBAS_Despesa> SSP_GET_DESPESA_VERBAS(global::System.String centroResp, global::System.String subcen)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<VERBAS_Despesa>("SSP_GET_DESPESA_VERBAS", centroRespParameter, subcenParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDDespesa">No Metadata Documentation available.</param>
        /// <param name="valorReembolsado">No Metadata Documentation available.</param>
        /// <param name="valorElegivel">No Metadata Documentation available.</param>
        /// <param name="iDEstado">No Metadata Documentation available.</param>
        /// <param name="dataValidacao">No Metadata Documentation available.</param>
        public int AtualizaDespesaValidacao(Nullable<global::System.Int32> iDDespesa, Nullable<global::System.Double> valorReembolsado, Nullable<global::System.Double> valorElegivel, Nullable<global::System.Int32> iDEstado, Nullable<global::System.DateTime> dataValidacao)
        {
            ObjectParameter iDDespesaParameter;
            if (iDDespesa.HasValue)
            {
                iDDespesaParameter = new ObjectParameter("IDDespesa", iDDespesa);
            }
            else
            {
                iDDespesaParameter = new ObjectParameter("IDDespesa", typeof(global::System.Int32));
            }
    
            ObjectParameter valorReembolsadoParameter;
            if (valorReembolsado.HasValue)
            {
                valorReembolsadoParameter = new ObjectParameter("ValorReembolsado", valorReembolsado);
            }
            else
            {
                valorReembolsadoParameter = new ObjectParameter("ValorReembolsado", typeof(global::System.Double));
            }
    
            ObjectParameter valorElegivelParameter;
            if (valorElegivel.HasValue)
            {
                valorElegivelParameter = new ObjectParameter("ValorElegivel", valorElegivel);
            }
            else
            {
                valorElegivelParameter = new ObjectParameter("ValorElegivel", typeof(global::System.Double));
            }
    
            ObjectParameter iDEstadoParameter;
            if (iDEstado.HasValue)
            {
                iDEstadoParameter = new ObjectParameter("IDEstado", iDEstado);
            }
            else
            {
                iDEstadoParameter = new ObjectParameter("IDEstado", typeof(global::System.Int32));
            }
    
            ObjectParameter dataValidacaoParameter;
            if (dataValidacao.HasValue)
            {
                dataValidacaoParameter = new ObjectParameter("DataValidacao", dataValidacao);
            }
            else
            {
                dataValidacaoParameter = new ObjectParameter("DataValidacao", typeof(global::System.DateTime));
            }
    
            return base.ExecuteFunction("AtualizaDespesaValidacao", iDDespesaParameter, valorReembolsadoParameter, valorElegivelParameter, iDEstadoParameter, dataValidacaoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="pagamentoID">No Metadata Documentation available.</param>
        /// <param name="projectoID">No Metadata Documentation available.</param>
        public ObjectResult<RelacaoDespesasPagamentoSimple> SSP_GetListRelacaoDespesasPagamentoSimple(Nullable<global::System.Int32> pagamentoID, Nullable<global::System.Int32> projectoID)
        {
            ObjectParameter pagamentoIDParameter;
            if (pagamentoID.HasValue)
            {
                pagamentoIDParameter = new ObjectParameter("PagamentoID", pagamentoID);
            }
            else
            {
                pagamentoIDParameter = new ObjectParameter("PagamentoID", typeof(global::System.Int32));
            }
    
            ObjectParameter projectoIDParameter;
            if (projectoID.HasValue)
            {
                projectoIDParameter = new ObjectParameter("ProjectoID", projectoID);
            }
            else
            {
                projectoIDParameter = new ObjectParameter("ProjectoID", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<RelacaoDespesasPagamentoSimple>("SSP_GetListRelacaoDespesasPagamentoSimple", pagamentoIDParameter, projectoIDParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjeto">No Metadata Documentation available.</param>
        public ObjectResult<SSP_ADM_DespesasRecursosHumanos_Result> SSP_ADM_DespesasRecursosHumanos(Nullable<global::System.Int32> iDProjeto)
        {
            ObjectParameter iDProjetoParameter;
            if (iDProjeto.HasValue)
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", iDProjeto);
            }
            else
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<SSP_ADM_DespesasRecursosHumanos_Result>("SSP_ADM_DespesasRecursosHumanos", iDProjetoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjeto">No Metadata Documentation available.</param>
        public ObjectResult<SSP_ADM_DespesasVerbas_Result> SSP_ADM_DespesasVerbas(Nullable<global::System.Int32> iDProjeto)
        {
            ObjectParameter iDProjetoParameter;
            if (iDProjeto.HasValue)
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", iDProjeto);
            }
            else
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<SSP_ADM_DespesasVerbas_Result>("SSP_ADM_DespesasVerbas", iDProjetoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iDProjeto">No Metadata Documentation available.</param>
        public ObjectResult<SSP_ADM_DespesasVerbasSemRubricas_Result> SSP_ADM_DespesasVerbasSemRubricas(Nullable<global::System.Int32> iDProjeto)
        {
            ObjectParameter iDProjetoParameter;
            if (iDProjeto.HasValue)
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", iDProjeto);
            }
            else
            {
                iDProjetoParameter = new ObjectParameter("IDProjeto", typeof(global::System.Int32));
            }
    
            return base.ExecuteFunction<SSP_ADM_DespesasVerbasSemRubricas_Result>("SSP_ADM_DespesasVerbasSemRubricas", iDProjetoParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="iD">No Metadata Documentation available.</param>
        /// <param name="activas">No Metadata Documentation available.</param>
        /// <param name="nome">No Metadata Documentation available.</param>
        public ObjectResult<SSP_GetFontesFinanciamentoHierarquico_Result> SSP_GetFontesFinanciamentoHierarquico(Nullable<global::System.Int32> iD, Nullable<global::System.Boolean> activas, global::System.String nome)
        {
            ObjectParameter iDParameter;
            if (iD.HasValue)
            {
                iDParameter = new ObjectParameter("ID", iD);
            }
            else
            {
                iDParameter = new ObjectParameter("ID", typeof(global::System.Int32));
            }
    
            ObjectParameter activasParameter;
            if (activas.HasValue)
            {
                activasParameter = new ObjectParameter("Activas", activas);
            }
            else
            {
                activasParameter = new ObjectParameter("Activas", typeof(global::System.Boolean));
            }
    
            ObjectParameter nomeParameter;
            if (nome != null)
            {
                nomeParameter = new ObjectParameter("Nome", nome);
            }
            else
            {
                nomeParameter = new ObjectParameter("Nome", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSP_GetFontesFinanciamentoHierarquico_Result>("SSP_GetFontesFinanciamentoHierarquico", iDParameter, activasParameter, nomeParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="centroResp">No Metadata Documentation available.</param>
        /// <param name="subcen">No Metadata Documentation available.</param>
        public ObjectResult<DIMENSAO_Type> SSSP_ERP_GET_DIMENSAO(global::System.String centroResp, global::System.String subcen)
        {
            ObjectParameter centroRespParameter;
            if (centroResp != null)
            {
                centroRespParameter = new ObjectParameter("CentroResp", centroResp);
            }
            else
            {
                centroRespParameter = new ObjectParameter("CentroResp", typeof(global::System.String));
            }
    
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<DIMENSAO_Type>("SSSP_ERP_GET_DIMENSAO", centroRespParameter, subcenParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="subcen">No Metadata Documentation available.</param>
        public ObjectResult<SSSP_ERP_GET_SUBCENTRO_Result> SSSP_ERP_GET_SUBCENTRO(global::System.String subcen)
        {
            ObjectParameter subcenParameter;
            if (subcen != null)
            {
                subcenParameter = new ObjectParameter("Subcen", subcen);
            }
            else
            {
                subcenParameter = new ObjectParameter("Subcen", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<SSSP_ERP_GET_SUBCENTRO_Result>("SSSP_ERP_GET_SUBCENTRO", subcenParameter);
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="subCentro">No Metadata Documentation available.</param>
        public ObjectResult<Despesas> SSP_Despesas_BySubCentro(global::System.String subCentro)
        {
            ObjectParameter subCentroParameter;
            if (subCentro != null)
            {
                subCentroParameter = new ObjectParameter("SubCentro", subCentro);
            }
            else
            {
                subCentroParameter = new ObjectParameter("SubCentro", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Despesas>("SSP_Despesas_BySubCentro", subCentroParameter);
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        /// <param name="mergeOption"></param>
        /// <param name="subCentro">No Metadata Documentation available.</param>
        public ObjectResult<Despesas> SSP_Despesas_BySubCentro(global::System.String subCentro, MergeOption mergeOption)
        {
            ObjectParameter subCentroParameter;
            if (subCentro != null)
            {
                subCentroParameter = new ObjectParameter("SubCentro", subCentro);
            }
            else
            {
                subCentroParameter = new ObjectParameter("SubCentro", typeof(global::System.String));
            }
    
            return base.ExecuteFunction<Despesas>("SSP_Despesas_BySubCentro", mergeOption, subCentroParameter);
        }

        #endregion

    }

    #endregion

    #region Entities
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Adiantamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Adiantamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Adiantamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="montante">Initial value of the Montante property.</param>
        /// <param name="justificacao">Initial value of the Justificacao property.</param>
        /// <param name="iDEstadoActual">Initial value of the IDEstadoActual property.</param>
        public static Adiantamento CreateAdiantamento(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.DateTime data, global::System.Double montante, global::System.String justificacao, global::System.Int32 iDEstadoActual)
        {
            Adiantamento adiantamento = new Adiantamento();
            adiantamento.ID = id;
            adiantamento.IDProjecto = iDProjecto;
            adiantamento.Data = data;
            adiantamento.Montante = montante;
            adiantamento.Justificacao = justificacao;
            adiantamento.IDEstadoActual = iDEstadoActual;
            return adiantamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Montante
        {
            get
            {
                return _Montante;
            }
            set
            {
                OnMontanteChanging(value);
                ReportPropertyChanging("Montante");
                _Montante = StructuralObject.SetValidValue(value, "Montante");
                ReportPropertyChanged("Montante");
                OnMontanteChanged();
            }
        }
        private global::System.Double _Montante;
        partial void OnMontanteChanging(global::System.Double value);
        partial void OnMontanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Justificacao
        {
            get
            {
                return _Justificacao;
            }
            set
            {
                OnJustificacaoChanging(value);
                ReportPropertyChanging("Justificacao");
                _Justificacao = StructuralObject.SetValidValue(value, false, "Justificacao");
                ReportPropertyChanged("Justificacao");
                OnJustificacaoChanged();
            }
        }
        private global::System.String _Justificacao;
        partial void OnJustificacaoChanging(global::System.String value);
        partial void OnJustificacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstadoActual
        {
            get
            {
                return _IDEstadoActual;
            }
            set
            {
                OnIDEstadoActualChanging(value);
                ReportPropertyChanging("IDEstadoActual");
                _IDEstadoActual = StructuralObject.SetValidValue(value, "IDEstadoActual");
                ReportPropertyChanged("IDEstadoActual");
                OnIDEstadoActualChanged();
            }
        }
        private global::System.Int32 _IDEstadoActual;
        partial void OnIDEstadoActualChanging(global::System.Int32 value);
        partial void OnIDEstadoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String InformacaoViceReitor
        {
            get
            {
                return _InformacaoViceReitor;
            }
            set
            {
                OnInformacaoViceReitorChanging(value);
                ReportPropertyChanging("InformacaoViceReitor");
                _InformacaoViceReitor = StructuralObject.SetValidValue(value, true, "InformacaoViceReitor");
                ReportPropertyChanged("InformacaoViceReitor");
                OnInformacaoViceReitorChanged();
            }
        }
        private global::System.String _InformacaoViceReitor;
        partial void OnInformacaoViceReitorChanging(global::System.String value);
        partial void OnInformacaoViceReitorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DeliberacaoCG
        {
            get
            {
                return _DeliberacaoCG;
            }
            set
            {
                OnDeliberacaoCGChanging(value);
                ReportPropertyChanging("DeliberacaoCG");
                _DeliberacaoCG = StructuralObject.SetValidValue(value, true, "DeliberacaoCG");
                ReportPropertyChanged("DeliberacaoCG");
                OnDeliberacaoCGChanged();
            }
        }
        private global::System.String _DeliberacaoCG;
        partial void OnDeliberacaoCGChanging(global::System.String value);
        partial void OnDeliberacaoCGChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataApresentacaoDespesas
        {
            get
            {
                return _DataApresentacaoDespesas;
            }
            set
            {
                OnDataApresentacaoDespesasChanging(value);
                ReportPropertyChanging("DataApresentacaoDespesas");
                _DataApresentacaoDespesas = StructuralObject.SetValidValue(value, "DataApresentacaoDespesas");
                ReportPropertyChanged("DataApresentacaoDespesas");
                OnDataApresentacaoDespesasChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataApresentacaoDespesas;
        partial void OnDataApresentacaoDespesasChanging(Nullable<global::System.DateTime> value);
        partial void OnDataApresentacaoDespesasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> MontanteDeliberado
        {
            get
            {
                return _MontanteDeliberado;
            }
            set
            {
                OnMontanteDeliberadoChanging(value);
                ReportPropertyChanging("MontanteDeliberado");
                _MontanteDeliberado = StructuralObject.SetValidValue(value, "MontanteDeliberado");
                ReportPropertyChanged("MontanteDeliberado");
                OnMontanteDeliberadoChanged();
            }
        }
        private Nullable<global::System.Double> _MontanteDeliberado;
        partial void OnMontanteDeliberadoChanging(Nullable<global::System.Double> value);
        partial void OnMontanteDeliberadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CResp_Ori
        {
            get
            {
                return _CResp_Ori;
            }
            set
            {
                OnCResp_OriChanging(value);
                ReportPropertyChanging("CResp_Ori");
                _CResp_Ori = StructuralObject.SetValidValue(value, true, "CResp_Ori");
                ReportPropertyChanged("CResp_Ori");
                OnCResp_OriChanged();
            }
        }
        private global::System.String _CResp_Ori;
        partial void OnCResp_OriChanging(global::System.String value);
        partial void OnCResp_OriChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Subc_Ori
        {
            get
            {
                return _Subc_Ori;
            }
            set
            {
                OnSubc_OriChanging(value);
                ReportPropertyChanging("Subc_Ori");
                _Subc_Ori = StructuralObject.SetValidValue(value, true, "Subc_Ori");
                ReportPropertyChanged("Subc_Ori");
                OnSubc_OriChanged();
            }
        }
        private global::System.String _Subc_Ori;
        partial void OnSubc_OriChanging(global::System.String value);
        partial void OnSubc_OriChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Referencia
        {
            get
            {
                return _Referencia;
            }
            set
            {
                OnReferenciaChanging(value);
                ReportPropertyChanging("Referencia");
                _Referencia = StructuralObject.SetValidValue(value, "Referencia");
                ReportPropertyChanged("Referencia");
                OnReferenciaChanged();
            }
        }
        private Nullable<global::System.Int32> _Referencia;
        partial void OnReferenciaChanging(Nullable<global::System.Int32> value);
        partial void OnReferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAutorizacaoCG
        {
            get
            {
                return _DataAutorizacaoCG;
            }
            set
            {
                OnDataAutorizacaoCGChanging(value);
                ReportPropertyChanging("DataAutorizacaoCG");
                _DataAutorizacaoCG = StructuralObject.SetValidValue(value, "DataAutorizacaoCG");
                ReportPropertyChanged("DataAutorizacaoCG");
                OnDataAutorizacaoCGChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAutorizacaoCG;
        partial void OnDataAutorizacaoCGChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAutorizacaoCGChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CResp_Dest
        {
            get
            {
                return _CResp_Dest;
            }
            set
            {
                OnCResp_DestChanging(value);
                ReportPropertyChanging("CResp_Dest");
                _CResp_Dest = StructuralObject.SetValidValue(value, true, "CResp_Dest");
                ReportPropertyChanged("CResp_Dest");
                OnCResp_DestChanged();
            }
        }
        private global::System.String _CResp_Dest;
        partial void OnCResp_DestChanging(global::System.String value);
        partial void OnCResp_DestChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Subc_Dest
        {
            get
            {
                return _Subc_Dest;
            }
            set
            {
                OnSubc_DestChanging(value);
                ReportPropertyChanging("Subc_Dest");
                _Subc_Dest = StructuralObject.SetValidValue(value, true, "Subc_Dest");
                ReportPropertyChanged("Subc_Dest");
                OnSubc_DestChanged();
            }
        }
        private global::System.String _Subc_Dest;
        partial void OnSubc_DestChanging(global::System.String value);
        partial void OnSubc_DestChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, true, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Vencimentos
        {
            get
            {
                return _Vencimentos;
            }
            set
            {
                OnVencimentosChanging(value);
                ReportPropertyChanging("Vencimentos");
                _Vencimentos = StructuralObject.SetValidValue(value, "Vencimentos");
                ReportPropertyChanged("Vencimentos");
                OnVencimentosChanged();
            }
        }
        private Nullable<global::System.Boolean> _Vencimentos;
        partial void OnVencimentosChanging(Nullable<global::System.Boolean> value);
        partial void OnVencimentosChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoAnexos_Adiantamento", "AdiantamentoAnexos")]
        public EntityCollection<AdiantamentoAnexos> AdiantamentoAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdiantamentoAnexos>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "AdiantamentoAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdiantamentoAnexos>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "AdiantamentoAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Adiantamento_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Adiantamento_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Adiantamento_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Adiantamento_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_Adiantamento_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Adiantamento", "AdiantamentoCompensacao")]
        public EntityCollection<AdiantamentoCompensacao> AdiantamentoCompensacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdiantamentoCompensacao>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "AdiantamentoCompensacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdiantamentoCompensacao>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "AdiantamentoCompensacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Adiantamento", "AdiantamentoEstado")]
        public EntityCollection<AdiantamentoEstado> AdiantamentoEstado
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdiantamentoEstado>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "AdiantamentoEstado");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdiantamentoEstado>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "AdiantamentoEstado", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Adiantamento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdiantamentoAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdiantamentoAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdiantamentoAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="nomeFicheiro">Initial value of the NomeFicheiro property.</param>
        public static AdiantamentoAnexos CreateAdiantamentoAnexos(global::System.Int32 id, global::System.String descricao, global::System.String nomeFicheiro)
        {
            AdiantamentoAnexos adiantamentoAnexos = new AdiantamentoAnexos();
            adiantamentoAnexos.ID = id;
            adiantamentoAnexos.Descricao = descricao;
            adiantamentoAnexos.NomeFicheiro = nomeFicheiro;
            return adiantamentoAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDAdiantamento
        {
            get
            {
                return _IDAdiantamento;
            }
            set
            {
                OnIDAdiantamentoChanging(value);
                ReportPropertyChanging("IDAdiantamento");
                _IDAdiantamento = StructuralObject.SetValidValue(value, "IDAdiantamento");
                ReportPropertyChanged("IDAdiantamento");
                OnIDAdiantamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDAdiantamento;
        partial void OnIDAdiantamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDAdiantamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, true, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, false, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoAnexos_Adiantamento", "Adiantamento")]
        public Adiantamento Adiantamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "Adiantamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "Adiantamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Adiantamento> AdiantamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "Adiantamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoAnexos_Adiantamento", "Adiantamento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdiantamentoCompensacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdiantamentoCompensacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdiantamentoCompensacao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDAdiantamento">Initial value of the IDAdiantamento property.</param>
        /// <param name="iDFacturaRecibo">Initial value of the IDFacturaRecibo property.</param>
        /// <param name="iDLinhaFacturaRecibo">Initial value of the IDLinhaFacturaRecibo property.</param>
        /// <param name="serieFacturaRecibos">Initial value of the SerieFacturaRecibos property.</param>
        /// <param name="iDReceita">Initial value of the IDReceita property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="referencia">Initial value of the Referencia property.</param>
        /// <param name="referenciaAdiantamento">Initial value of the ReferenciaAdiantamento property.</param>
        /// <param name="cResp_Ori">Initial value of the CResp_Ori property.</param>
        /// <param name="subc_Ori">Initial value of the Subc_Ori property.</param>
        /// <param name="cResp_Dest">Initial value of the CResp_Dest property.</param>
        /// <param name="subc_Dest">Initial value of the Subc_Dest property.</param>
        /// <param name="estado">Initial value of the Estado property.</param>
        /// <param name="dataCompensacao">Initial value of the DataCompensacao property.</param>
        public static AdiantamentoCompensacao CreateAdiantamentoCompensacao(global::System.Int32 id, global::System.Int32 iDAdiantamento, global::System.Int32 iDFacturaRecibo, global::System.Int32 iDLinhaFacturaRecibo, global::System.String serieFacturaRecibos, global::System.Int32 iDReceita, global::System.Double valor, global::System.Int32 referencia, global::System.Int32 referenciaAdiantamento, global::System.String cResp_Ori, global::System.String subc_Ori, global::System.String cResp_Dest, global::System.String subc_Dest, global::System.String estado, global::System.DateTime dataCompensacao)
        {
            AdiantamentoCompensacao adiantamentoCompensacao = new AdiantamentoCompensacao();
            adiantamentoCompensacao.ID = id;
            adiantamentoCompensacao.IDAdiantamento = iDAdiantamento;
            adiantamentoCompensacao.IDFacturaRecibo = iDFacturaRecibo;
            adiantamentoCompensacao.IDLinhaFacturaRecibo = iDLinhaFacturaRecibo;
            adiantamentoCompensacao.SerieFacturaRecibos = serieFacturaRecibos;
            adiantamentoCompensacao.IDReceita = iDReceita;
            adiantamentoCompensacao.Valor = valor;
            adiantamentoCompensacao.Referencia = referencia;
            adiantamentoCompensacao.ReferenciaAdiantamento = referenciaAdiantamento;
            adiantamentoCompensacao.CResp_Ori = cResp_Ori;
            adiantamentoCompensacao.Subc_Ori = subc_Ori;
            adiantamentoCompensacao.CResp_Dest = cResp_Dest;
            adiantamentoCompensacao.Subc_Dest = subc_Dest;
            adiantamentoCompensacao.Estado = estado;
            adiantamentoCompensacao.DataCompensacao = dataCompensacao;
            return adiantamentoCompensacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAdiantamento
        {
            get
            {
                return _IDAdiantamento;
            }
            set
            {
                OnIDAdiantamentoChanging(value);
                ReportPropertyChanging("IDAdiantamento");
                _IDAdiantamento = StructuralObject.SetValidValue(value, "IDAdiantamento");
                ReportPropertyChanged("IDAdiantamento");
                OnIDAdiantamentoChanged();
            }
        }
        private global::System.Int32 _IDAdiantamento;
        partial void OnIDAdiantamentoChanging(global::System.Int32 value);
        partial void OnIDAdiantamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFacturaRecibo
        {
            get
            {
                return _IDFacturaRecibo;
            }
            set
            {
                OnIDFacturaReciboChanging(value);
                ReportPropertyChanging("IDFacturaRecibo");
                _IDFacturaRecibo = StructuralObject.SetValidValue(value, "IDFacturaRecibo");
                ReportPropertyChanged("IDFacturaRecibo");
                OnIDFacturaReciboChanged();
            }
        }
        private global::System.Int32 _IDFacturaRecibo;
        partial void OnIDFacturaReciboChanging(global::System.Int32 value);
        partial void OnIDFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDLinhaFacturaRecibo
        {
            get
            {
                return _IDLinhaFacturaRecibo;
            }
            set
            {
                OnIDLinhaFacturaReciboChanging(value);
                ReportPropertyChanging("IDLinhaFacturaRecibo");
                _IDLinhaFacturaRecibo = StructuralObject.SetValidValue(value, "IDLinhaFacturaRecibo");
                ReportPropertyChanged("IDLinhaFacturaRecibo");
                OnIDLinhaFacturaReciboChanged();
            }
        }
        private global::System.Int32 _IDLinhaFacturaRecibo;
        partial void OnIDLinhaFacturaReciboChanging(global::System.Int32 value);
        partial void OnIDLinhaFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String SerieFacturaRecibos
        {
            get
            {
                return _SerieFacturaRecibos;
            }
            set
            {
                OnSerieFacturaRecibosChanging(value);
                ReportPropertyChanging("SerieFacturaRecibos");
                _SerieFacturaRecibos = StructuralObject.SetValidValue(value, false, "SerieFacturaRecibos");
                ReportPropertyChanged("SerieFacturaRecibos");
                OnSerieFacturaRecibosChanged();
            }
        }
        private global::System.String _SerieFacturaRecibos;
        partial void OnSerieFacturaRecibosChanging(global::System.String value);
        partial void OnSerieFacturaRecibosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDReceita
        {
            get
            {
                return _IDReceita;
            }
            set
            {
                OnIDReceitaChanging(value);
                ReportPropertyChanging("IDReceita");
                _IDReceita = StructuralObject.SetValidValue(value, "IDReceita");
                ReportPropertyChanged("IDReceita");
                OnIDReceitaChanged();
            }
        }
        private global::System.Int32 _IDReceita;
        partial void OnIDReceitaChanging(global::System.Int32 value);
        partial void OnIDReceitaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Referencia
        {
            get
            {
                return _Referencia;
            }
            set
            {
                OnReferenciaChanging(value);
                ReportPropertyChanging("Referencia");
                _Referencia = StructuralObject.SetValidValue(value, "Referencia");
                ReportPropertyChanged("Referencia");
                OnReferenciaChanged();
            }
        }
        private global::System.Int32 _Referencia;
        partial void OnReferenciaChanging(global::System.Int32 value);
        partial void OnReferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ReferenciaAdiantamento
        {
            get
            {
                return _ReferenciaAdiantamento;
            }
            set
            {
                OnReferenciaAdiantamentoChanging(value);
                ReportPropertyChanging("ReferenciaAdiantamento");
                _ReferenciaAdiantamento = StructuralObject.SetValidValue(value, "ReferenciaAdiantamento");
                ReportPropertyChanged("ReferenciaAdiantamento");
                OnReferenciaAdiantamentoChanged();
            }
        }
        private global::System.Int32 _ReferenciaAdiantamento;
        partial void OnReferenciaAdiantamentoChanging(global::System.Int32 value);
        partial void OnReferenciaAdiantamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CResp_Ori
        {
            get
            {
                return _CResp_Ori;
            }
            set
            {
                OnCResp_OriChanging(value);
                ReportPropertyChanging("CResp_Ori");
                _CResp_Ori = StructuralObject.SetValidValue(value, false, "CResp_Ori");
                ReportPropertyChanged("CResp_Ori");
                OnCResp_OriChanged();
            }
        }
        private global::System.String _CResp_Ori;
        partial void OnCResp_OriChanging(global::System.String value);
        partial void OnCResp_OriChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Subc_Ori
        {
            get
            {
                return _Subc_Ori;
            }
            set
            {
                OnSubc_OriChanging(value);
                ReportPropertyChanging("Subc_Ori");
                _Subc_Ori = StructuralObject.SetValidValue(value, false, "Subc_Ori");
                ReportPropertyChanged("Subc_Ori");
                OnSubc_OriChanged();
            }
        }
        private global::System.String _Subc_Ori;
        partial void OnSubc_OriChanging(global::System.String value);
        partial void OnSubc_OriChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CResp_Dest
        {
            get
            {
                return _CResp_Dest;
            }
            set
            {
                OnCResp_DestChanging(value);
                ReportPropertyChanging("CResp_Dest");
                _CResp_Dest = StructuralObject.SetValidValue(value, false, "CResp_Dest");
                ReportPropertyChanged("CResp_Dest");
                OnCResp_DestChanged();
            }
        }
        private global::System.String _CResp_Dest;
        partial void OnCResp_DestChanging(global::System.String value);
        partial void OnCResp_DestChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Subc_Dest
        {
            get
            {
                return _Subc_Dest;
            }
            set
            {
                OnSubc_DestChanging(value);
                ReportPropertyChanging("Subc_Dest");
                _Subc_Dest = StructuralObject.SetValidValue(value, false, "Subc_Dest");
                ReportPropertyChanged("Subc_Dest");
                OnSubc_DestChanged();
            }
        }
        private global::System.String _Subc_Dest;
        partial void OnSubc_DestChanging(global::System.String value);
        partial void OnSubc_DestChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, false, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataCompensacao
        {
            get
            {
                return _DataCompensacao;
            }
            set
            {
                OnDataCompensacaoChanging(value);
                ReportPropertyChanging("DataCompensacao");
                _DataCompensacao = StructuralObject.SetValidValue(value, "DataCompensacao");
                ReportPropertyChanged("DataCompensacao");
                OnDataCompensacaoChanged();
            }
        }
        private global::System.DateTime _DataCompensacao;
        partial void OnDataCompensacaoChanging(global::System.DateTime value);
        partial void OnDataCompensacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRecebimento;
        partial void OnIDRecebimentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDRecebimentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento")]
        public Adiantamento Adiantamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Adiantamento> AdiantamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Adiantamento", "Adiantamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos")]
        public Recebimentos Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> RecebimentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "Recebimentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdiantamentoEstado")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdiantamentoEstado : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdiantamentoEstado object.
        /// </summary>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        /// <param name="iDAdiantamento">Initial value of the IDAdiantamento property.</param>
        /// <param name="dataEstado">Initial value of the DataEstado property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        public static AdiantamentoEstado CreateAdiantamentoEstado(global::System.Int32 iDEstado, global::System.Int32 iDAdiantamento, global::System.DateTime dataEstado, global::System.Int32 id)
        {
            AdiantamentoEstado adiantamentoEstado = new AdiantamentoEstado();
            adiantamentoEstado.IDEstado = iDEstado;
            adiantamentoEstado.IDAdiantamento = iDAdiantamento;
            adiantamentoEstado.DataEstado = dataEstado;
            adiantamentoEstado.ID = id;
            return adiantamentoEstado;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAdiantamento
        {
            get
            {
                return _IDAdiantamento;
            }
            set
            {
                OnIDAdiantamentoChanging(value);
                ReportPropertyChanging("IDAdiantamento");
                _IDAdiantamento = StructuralObject.SetValidValue(value, "IDAdiantamento");
                ReportPropertyChanged("IDAdiantamento");
                OnIDAdiantamentoChanged();
            }
        }
        private global::System.Int32 _IDAdiantamento;
        partial void OnIDAdiantamentoChanging(global::System.Int32 value);
        partial void OnIDAdiantamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEstado
        {
            get
            {
                return _DataEstado;
            }
            set
            {
                OnDataEstadoChanging(value);
                ReportPropertyChanging("DataEstado");
                _DataEstado = StructuralObject.SetValidValue(value, "DataEstado");
                ReportPropertyChanged("DataEstado");
                OnDataEstadoChanged();
            }
        }
        private global::System.DateTime _DataEstado;
        partial void OnDataEstadoChanging(global::System.DateTime value);
        partial void OnDataEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Utilizador
        {
            get
            {
                return _Utilizador;
            }
            set
            {
                OnUtilizadorChanging(value);
                ReportPropertyChanging("Utilizador");
                _Utilizador = StructuralObject.SetValidValue(value, true, "Utilizador");
                ReportPropertyChanged("Utilizador");
                OnUtilizadorChanged();
            }
        }
        private global::System.String _Utilizador;
        partial void OnUtilizadorChanging(global::System.String value);
        partial void OnUtilizadorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Adiantamento", "Adiantamento")]
        public Adiantamento Adiantamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "Adiantamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "Adiantamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Adiantamento> AdiantamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "Adiantamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Adiantamento>("GestaoProjectosModel.FK_AdiantamentoEstado_Adiantamento", "Adiantamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "Estados", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmDespesaExecutada")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmDespesaExecutada : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmDespesaExecutada object.
        /// </summary>
        /// <param name="iDProjeto">Initial value of the IDProjeto property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="imputacaoRH">Initial value of the ImputacaoRH property.</param>
        /// <param name="despesaTotalCabimentada">Initial value of the DespesaTotalCabimentada property.</param>
        /// <param name="despesaTotalPaga">Initial value of the DespesaTotalPaga property.</param>
        /// <param name="despesaPassivelElegivel">Initial value of the DespesaPassivelElegivel property.</param>
        public static AdmDespesaExecutada CreateAdmDespesaExecutada(global::System.Int32 iDProjeto, global::System.Int32 iDRubrica, global::System.Boolean imputacaoRH, global::System.Decimal despesaTotalCabimentada, global::System.Decimal despesaTotalPaga, global::System.Decimal despesaPassivelElegivel)
        {
            AdmDespesaExecutada admDespesaExecutada = new AdmDespesaExecutada();
            admDespesaExecutada.IDProjeto = iDProjeto;
            admDespesaExecutada.IDRubrica = iDRubrica;
            admDespesaExecutada.ImputacaoRH = imputacaoRH;
            admDespesaExecutada.DespesaTotalCabimentada = despesaTotalCabimentada;
            admDespesaExecutada.DespesaTotalPaga = despesaTotalPaga;
            admDespesaExecutada.DespesaPassivelElegivel = despesaPassivelElegivel;
            return admDespesaExecutada;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjeto
        {
            get
            {
                return _IDProjeto;
            }
            set
            {
                if (_IDProjeto != value)
                {
                    OnIDProjetoChanging(value);
                    ReportPropertyChanging("IDProjeto");
                    _IDProjeto = StructuralObject.SetValidValue(value, "IDProjeto");
                    ReportPropertyChanged("IDProjeto");
                    OnIDProjetoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjeto;
        partial void OnIDProjetoChanging(global::System.Int32 value);
        partial void OnIDProjetoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                if (_IDRubrica != value)
                {
                    OnIDRubricaChanging(value);
                    ReportPropertyChanging("IDRubrica");
                    _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                    ReportPropertyChanged("IDRubrica");
                    OnIDRubricaChanged();
                }
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean ImputacaoRH
        {
            get
            {
                return _ImputacaoRH;
            }
            set
            {
                if (_ImputacaoRH != value)
                {
                    OnImputacaoRHChanging(value);
                    ReportPropertyChanging("ImputacaoRH");
                    _ImputacaoRH = StructuralObject.SetValidValue(value, "ImputacaoRH");
                    ReportPropertyChanged("ImputacaoRH");
                    OnImputacaoRHChanged();
                }
            }
        }
        private global::System.Boolean _ImputacaoRH;
        partial void OnImputacaoRHChanging(global::System.Boolean value);
        partial void OnImputacaoRHChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal DespesaTotalCabimentada
        {
            get
            {
                return _DespesaTotalCabimentada;
            }
            set
            {
                OnDespesaTotalCabimentadaChanging(value);
                ReportPropertyChanging("DespesaTotalCabimentada");
                _DespesaTotalCabimentada = StructuralObject.SetValidValue(value, "DespesaTotalCabimentada");
                ReportPropertyChanged("DespesaTotalCabimentada");
                OnDespesaTotalCabimentadaChanged();
            }
        }
        private global::System.Decimal _DespesaTotalCabimentada;
        partial void OnDespesaTotalCabimentadaChanging(global::System.Decimal value);
        partial void OnDespesaTotalCabimentadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal DespesaTotalPaga
        {
            get
            {
                return _DespesaTotalPaga;
            }
            set
            {
                OnDespesaTotalPagaChanging(value);
                ReportPropertyChanging("DespesaTotalPaga");
                _DespesaTotalPaga = StructuralObject.SetValidValue(value, "DespesaTotalPaga");
                ReportPropertyChanged("DespesaTotalPaga");
                OnDespesaTotalPagaChanged();
            }
        }
        private global::System.Decimal _DespesaTotalPaga;
        partial void OnDespesaTotalPagaChanging(global::System.Decimal value);
        partial void OnDespesaTotalPagaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal DespesaPassivelElegivel
        {
            get
            {
                return _DespesaPassivelElegivel;
            }
            set
            {
                OnDespesaPassivelElegivelChanging(value);
                ReportPropertyChanging("DespesaPassivelElegivel");
                _DespesaPassivelElegivel = StructuralObject.SetValidValue(value, "DespesaPassivelElegivel");
                ReportPropertyChanged("DespesaPassivelElegivel");
                OnDespesaPassivelElegivelChanged();
            }
        }
        private global::System.Decimal _DespesaPassivelElegivel;
        partial void OnDespesaPassivelElegivelChanging(global::System.Decimal value);
        partial void OnDespesaPassivelElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaCabimentadaSemRubrica
        {
            get
            {
                return _DespesaCabimentadaSemRubrica;
            }
            set
            {
                OnDespesaCabimentadaSemRubricaChanging(value);
                ReportPropertyChanging("DespesaCabimentadaSemRubrica");
                _DespesaCabimentadaSemRubrica = StructuralObject.SetValidValue(value, "DespesaCabimentadaSemRubrica");
                ReportPropertyChanged("DespesaCabimentadaSemRubrica");
                OnDespesaCabimentadaSemRubricaChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaCabimentadaSemRubrica;
        partial void OnDespesaCabimentadaSemRubricaChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaCabimentadaSemRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaPagaSemRubrica
        {
            get
            {
                return _DespesaPagaSemRubrica;
            }
            set
            {
                OnDespesaPagaSemRubricaChanging(value);
                ReportPropertyChanging("DespesaPagaSemRubrica");
                _DespesaPagaSemRubrica = StructuralObject.SetValidValue(value, "DespesaPagaSemRubrica");
                ReportPropertyChanged("DespesaPagaSemRubrica");
                OnDespesaPagaSemRubricaChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaPagaSemRubrica;
        partial void OnDespesaPagaSemRubricaChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaPagaSemRubricaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "Rubricas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmOrcamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmOrcamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmOrcamento object.
        /// </summary>
        /// <param name="iDProjeto">Initial value of the IDProjeto property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="imputacaoRH">Initial value of the ImputacaoRH property.</param>
        /// <param name="investimentoTotal">Initial value of the InvestimentoTotal property.</param>
        /// <param name="maximoElegivel">Initial value of the MaximoElegivel property.</param>
        public static AdmOrcamento CreateAdmOrcamento(global::System.Int32 iDProjeto, global::System.Int32 iDRubrica, global::System.Boolean imputacaoRH, global::System.Decimal investimentoTotal, global::System.Decimal maximoElegivel)
        {
            AdmOrcamento admOrcamento = new AdmOrcamento();
            admOrcamento.IDProjeto = iDProjeto;
            admOrcamento.IDRubrica = iDRubrica;
            admOrcamento.ImputacaoRH = imputacaoRH;
            admOrcamento.InvestimentoTotal = investimentoTotal;
            admOrcamento.MaximoElegivel = maximoElegivel;
            return admOrcamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjeto
        {
            get
            {
                return _IDProjeto;
            }
            set
            {
                if (_IDProjeto != value)
                {
                    OnIDProjetoChanging(value);
                    ReportPropertyChanging("IDProjeto");
                    _IDProjeto = StructuralObject.SetValidValue(value, "IDProjeto");
                    ReportPropertyChanged("IDProjeto");
                    OnIDProjetoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjeto;
        partial void OnIDProjetoChanging(global::System.Int32 value);
        partial void OnIDProjetoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                if (_IDRubrica != value)
                {
                    OnIDRubricaChanging(value);
                    ReportPropertyChanging("IDRubrica");
                    _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                    ReportPropertyChanged("IDRubrica");
                    OnIDRubricaChanged();
                }
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean ImputacaoRH
        {
            get
            {
                return _ImputacaoRH;
            }
            set
            {
                if (_ImputacaoRH != value)
                {
                    OnImputacaoRHChanging(value);
                    ReportPropertyChanging("ImputacaoRH");
                    _ImputacaoRH = StructuralObject.SetValidValue(value, "ImputacaoRH");
                    ReportPropertyChanged("ImputacaoRH");
                    OnImputacaoRHChanged();
                }
            }
        }
        private global::System.Boolean _ImputacaoRH;
        partial void OnImputacaoRHChanging(global::System.Boolean value);
        partial void OnImputacaoRHChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal InvestimentoTotal
        {
            get
            {
                return _InvestimentoTotal;
            }
            set
            {
                OnInvestimentoTotalChanging(value);
                ReportPropertyChanging("InvestimentoTotal");
                _InvestimentoTotal = StructuralObject.SetValidValue(value, "InvestimentoTotal");
                ReportPropertyChanged("InvestimentoTotal");
                OnInvestimentoTotalChanged();
            }
        }
        private global::System.Decimal _InvestimentoTotal;
        partial void OnInvestimentoTotalChanging(global::System.Decimal value);
        partial void OnInvestimentoTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal MaximoElegivel
        {
            get
            {
                return _MaximoElegivel;
            }
            set
            {
                OnMaximoElegivelChanging(value);
                ReportPropertyChanging("MaximoElegivel");
                _MaximoElegivel = StructuralObject.SetValidValue(value, "MaximoElegivel");
                ReportPropertyChanged("MaximoElegivel");
                OnMaximoElegivelChanged();
            }
        }
        private global::System.Decimal _MaximoElegivel;
        partial void OnMaximoElegivelChanging(global::System.Decimal value);
        partial void OnMaximoElegivelChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "Rubricas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmOrcamentoParceiras")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmOrcamentoParceiras : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmOrcamentoParceiras object.
        /// </summary>
        /// <param name="iDEntidadeParceira">Initial value of the IDEntidadeParceira property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        public static AdmOrcamentoParceiras CreateAdmOrcamentoParceiras(global::System.Int32 iDEntidadeParceira, global::System.Int32 iDProjecto)
        {
            AdmOrcamentoParceiras admOrcamentoParceiras = new AdmOrcamentoParceiras();
            admOrcamentoParceiras.IDEntidadeParceira = iDEntidadeParceira;
            admOrcamentoParceiras.IDProjecto = iDProjecto;
            return admOrcamentoParceiras;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeParceira
        {
            get
            {
                return _IDEntidadeParceira;
            }
            set
            {
                if (_IDEntidadeParceira != value)
                {
                    OnIDEntidadeParceiraChanging(value);
                    ReportPropertyChanging("IDEntidadeParceira");
                    _IDEntidadeParceira = StructuralObject.SetValidValue(value, "IDEntidadeParceira");
                    ReportPropertyChanged("IDEntidadeParceira");
                    OnIDEntidadeParceiraChanged();
                }
            }
        }
        private global::System.Int32 _IDEntidadeParceira;
        partial void OnIDEntidadeParceiraChanging(global::System.Int32 value);
        partial void OnIDEntidadeParceiraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Decimal> value);
        partial void OnValorElegivelChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmPedidoPagamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmPedidoPagamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmPedidoPagamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="tipo">Initial value of the Tipo property.</param>
        /// <param name="imputacaoRH">Initial value of the ImputacaoRH property.</param>
        public static AdmPedidoPagamento CreateAdmPedidoPagamento(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.String tipo, global::System.Boolean imputacaoRH)
        {
            AdmPedidoPagamento admPedidoPagamento = new AdmPedidoPagamento();
            admPedidoPagamento.ID = id;
            admPedidoPagamento.IDProjecto = iDProjecto;
            admPedidoPagamento.Tipo = tipo;
            admPedidoPagamento.ImputacaoRH = imputacaoRH;
            return admPedidoPagamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, false, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NumeroPedidoPagamento
        {
            get
            {
                return _NumeroPedidoPagamento;
            }
            set
            {
                OnNumeroPedidoPagamentoChanging(value);
                ReportPropertyChanging("NumeroPedidoPagamento");
                _NumeroPedidoPagamento = StructuralObject.SetValidValue(value, "NumeroPedidoPagamento");
                ReportPropertyChanged("NumeroPedidoPagamento");
                OnNumeroPedidoPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _NumeroPedidoPagamento;
        partial void OnNumeroPedidoPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnNumeroPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataEnvioIR
        {
            get
            {
                return _DataEnvioIR;
            }
            set
            {
                OnDataEnvioIRChanging(value);
                ReportPropertyChanging("DataEnvioIR");
                _DataEnvioIR = StructuralObject.SetValidValue(value, "DataEnvioIR");
                ReportPropertyChanged("DataEnvioIR");
                OnDataEnvioIRChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataEnvioIR;
        partial void OnDataEnvioIRChanging(Nullable<global::System.DateTime> value);
        partial void OnDataEnvioIRChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAnaliseDFP
        {
            get
            {
                return _DataAnaliseDFP;
            }
            set
            {
                OnDataAnaliseDFPChanging(value);
                ReportPropertyChanging("DataAnaliseDFP");
                _DataAnaliseDFP = StructuralObject.SetValidValue(value, "DataAnaliseDFP");
                ReportPropertyChanged("DataAnaliseDFP");
                OnDataAnaliseDFPChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAnaliseDFP;
        partial void OnDataAnaliseDFPChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAnaliseDFPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataSubmissaoEF
        {
            get
            {
                return _DataSubmissaoEF;
            }
            set
            {
                OnDataSubmissaoEFChanging(value);
                ReportPropertyChanging("DataSubmissaoEF");
                _DataSubmissaoEF = StructuralObject.SetValidValue(value, "DataSubmissaoEF");
                ReportPropertyChanged("DataSubmissaoEF");
                OnDataSubmissaoEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataSubmissaoEF;
        partial void OnDataSubmissaoEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataSubmissaoEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                OnIDRubricaChanging(value);
                ReportPropertyChanging("IDRubrica");
                _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                ReportPropertyChanged("IDRubrica");
                OnIDRubricaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRubrica;
        partial void OnIDRubricaChanging(Nullable<global::System.Int32> value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean ImputacaoRH
        {
            get
            {
                return _ImputacaoRH;
            }
            set
            {
                OnImputacaoRHChanging(value);
                ReportPropertyChanging("ImputacaoRH");
                _ImputacaoRH = StructuralObject.SetValidValue(value, "ImputacaoRH");
                ReportPropertyChanged("ImputacaoRH");
                OnImputacaoRHChanged();
            }
        }
        private global::System.Boolean _ImputacaoRH;
        partial void OnImputacaoRHChanging(global::System.Boolean value);
        partial void OnImputacaoRHChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorTotal
        {
            get
            {
                return _ValorTotal;
            }
            set
            {
                OnValorTotalChanging(value);
                ReportPropertyChanging("ValorTotal");
                _ValorTotal = StructuralObject.SetValidValue(value, "ValorTotal");
                ReportPropertyChanged("ValorTotal");
                OnValorTotalChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorTotal;
        partial void OnValorTotalChanging(Nullable<global::System.Decimal> value);
        partial void OnValorTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataEnvioAmostra
        {
            get
            {
                return _DataEnvioAmostra;
            }
            set
            {
                OnDataEnvioAmostraChanging(value);
                ReportPropertyChanging("DataEnvioAmostra");
                _DataEnvioAmostra = StructuralObject.SetValidValue(value, "DataEnvioAmostra");
                ReportPropertyChanged("DataEnvioAmostra");
                OnDataEnvioAmostraChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataEnvioAmostra;
        partial void OnDataEnvioAmostraChanging(Nullable<global::System.DateTime> value);
        partial void OnDataEnvioAmostraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, true, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAnaliseEF
        {
            get
            {
                return _DataAnaliseEF;
            }
            set
            {
                OnDataAnaliseEFChanging(value);
                ReportPropertyChanging("DataAnaliseEF");
                _DataAnaliseEF = StructuralObject.SetValidValue(value, "DataAnaliseEF");
                ReportPropertyChanged("DataAnaliseEF");
                OnDataAnaliseEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAnaliseEF;
        partial void OnDataAnaliseEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAnaliseEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaElegivel
        {
            get
            {
                return _DespesaElegivel;
            }
            set
            {
                OnDespesaElegivelChanging(value);
                ReportPropertyChanging("DespesaElegivel");
                _DespesaElegivel = StructuralObject.SetValidValue(value, "DespesaElegivel");
                ReportPropertyChanged("DespesaElegivel");
                OnDespesaElegivelChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaElegivel;
        partial void OnDespesaElegivelChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaNaoElegivel
        {
            get
            {
                return _DespesaNaoElegivel;
            }
            set
            {
                OnDespesaNaoElegivelChanging(value);
                ReportPropertyChanging("DespesaNaoElegivel");
                _DespesaNaoElegivel = StructuralObject.SetValidValue(value, "DespesaNaoElegivel");
                ReportPropertyChanged("DespesaNaoElegivel");
                OnDespesaNaoElegivelChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaNaoElegivel;
        partial void OnDespesaNaoElegivelChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaNaoElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaDuvidosa
        {
            get
            {
                return _DespesaDuvidosa;
            }
            set
            {
                OnDespesaDuvidosaChanging(value);
                ReportPropertyChanging("DespesaDuvidosa");
                _DespesaDuvidosa = StructuralObject.SetValidValue(value, "DespesaDuvidosa");
                ReportPropertyChanged("DespesaDuvidosa");
                OnDespesaDuvidosaChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaDuvidosa;
        partial void OnDespesaDuvidosaChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaDuvidosaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EstadoRecebimento
        {
            get
            {
                return _EstadoRecebimento;
            }
            set
            {
                OnEstadoRecebimentoChanging(value);
                ReportPropertyChanging("EstadoRecebimento");
                _EstadoRecebimento = StructuralObject.SetValidValue(value, true, "EstadoRecebimento");
                ReportPropertyChanged("EstadoRecebimento");
                OnEstadoRecebimentoChanged();
            }
        }
        private global::System.String _EstadoRecebimento;
        partial void OnEstadoRecebimentoChanging(global::System.String value);
        partial void OnEstadoRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRecebimento
        {
            get
            {
                return _DataRecebimento;
            }
            set
            {
                OnDataRecebimentoChanging(value);
                ReportPropertyChanging("DataRecebimento");
                _DataRecebimento = StructuralObject.SetValidValue(value, "DataRecebimento");
                ReportPropertyChanged("DataRecebimento");
                OnDataRecebimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRecebimento;
        partial void OnDataRecebimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorRecebido
        {
            get
            {
                return _ValorRecebido;
            }
            set
            {
                OnValorRecebidoChanging(value);
                ReportPropertyChanging("ValorRecebido");
                _ValorRecebido = StructuralObject.SetValidValue(value, "ValorRecebido");
                ReportPropertyChanged("ValorRecebido");
                OnValorRecebidoChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorRecebido;
        partial void OnValorRecebidoChanging(Nullable<global::System.Decimal> value);
        partial void OnValorRecebidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorTransferidoPreponente
        {
            get
            {
                return _ValorTransferidoPreponente;
            }
            set
            {
                OnValorTransferidoPreponenteChanging(value);
                ReportPropertyChanging("ValorTransferidoPreponente");
                _ValorTransferidoPreponente = StructuralObject.SetValidValue(value, "ValorTransferidoPreponente");
                ReportPropertyChanged("ValorTransferidoPreponente");
                OnValorTransferidoPreponenteChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorTransferidoPreponente;
        partial void OnValorTransferidoPreponenteChanging(Nullable<global::System.Decimal> value);
        partial void OnValorTransferidoPreponenteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTransferenciaPreponente
        {
            get
            {
                return _DataTransferenciaPreponente;
            }
            set
            {
                OnDataTransferenciaPreponenteChanging(value);
                ReportPropertyChanging("DataTransferenciaPreponente");
                _DataTransferenciaPreponente = StructuralObject.SetValidValue(value, "DataTransferenciaPreponente");
                ReportPropertyChanged("DataTransferenciaPreponente");
                OnDataTransferenciaPreponenteChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTransferenciaPreponente;
        partial void OnDataTransferenciaPreponenteChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTransferenciaPreponenteChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "Rubricas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmPedidoPagamentoParceiras")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmPedidoPagamentoParceiras : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmPedidoPagamentoParceiras object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="tipo">Initial value of the Tipo property.</param>
        /// <param name="iDEntidadeParceira">Initial value of the IDEntidadeParceira property.</param>
        public static AdmPedidoPagamentoParceiras CreateAdmPedidoPagamentoParceiras(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.String tipo, global::System.Int32 iDEntidadeParceira)
        {
            AdmPedidoPagamentoParceiras admPedidoPagamentoParceiras = new AdmPedidoPagamentoParceiras();
            admPedidoPagamentoParceiras.ID = id;
            admPedidoPagamentoParceiras.IDProjecto = iDProjecto;
            admPedidoPagamentoParceiras.Tipo = tipo;
            admPedidoPagamentoParceiras.IDEntidadeParceira = iDEntidadeParceira;
            return admPedidoPagamentoParceiras;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, false, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NumeroPedidoPagamento
        {
            get
            {
                return _NumeroPedidoPagamento;
            }
            set
            {
                OnNumeroPedidoPagamentoChanging(value);
                ReportPropertyChanging("NumeroPedidoPagamento");
                _NumeroPedidoPagamento = StructuralObject.SetValidValue(value, "NumeroPedidoPagamento");
                ReportPropertyChanged("NumeroPedidoPagamento");
                OnNumeroPedidoPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _NumeroPedidoPagamento;
        partial void OnNumeroPedidoPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnNumeroPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeParceira
        {
            get
            {
                return _IDEntidadeParceira;
            }
            set
            {
                OnIDEntidadeParceiraChanging(value);
                ReportPropertyChanging("IDEntidadeParceira");
                _IDEntidadeParceira = StructuralObject.SetValidValue(value, "IDEntidadeParceira");
                ReportPropertyChanged("IDEntidadeParceira");
                OnIDEntidadeParceiraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeParceira;
        partial void OnIDEntidadeParceiraChanging(global::System.Int32 value);
        partial void OnIDEntidadeParceiraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorTotal
        {
            get
            {
                return _ValorTotal;
            }
            set
            {
                OnValorTotalChanging(value);
                ReportPropertyChanging("ValorTotal");
                _ValorTotal = StructuralObject.SetValidValue(value, "ValorTotal");
                ReportPropertyChanged("ValorTotal");
                OnValorTotalChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorTotal;
        partial void OnValorTotalChanging(Nullable<global::System.Decimal> value);
        partial void OnValorTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataSubmissaoEF
        {
            get
            {
                return _DataSubmissaoEF;
            }
            set
            {
                OnDataSubmissaoEFChanging(value);
                ReportPropertyChanging("DataSubmissaoEF");
                _DataSubmissaoEF = StructuralObject.SetValidValue(value, "DataSubmissaoEF");
                ReportPropertyChanged("DataSubmissaoEF");
                OnDataSubmissaoEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataSubmissaoEF;
        partial void OnDataSubmissaoEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataSubmissaoEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAnaliseEF
        {
            get
            {
                return _DataAnaliseEF;
            }
            set
            {
                OnDataAnaliseEFChanging(value);
                ReportPropertyChanging("DataAnaliseEF");
                _DataAnaliseEF = StructuralObject.SetValidValue(value, "DataAnaliseEF");
                ReportPropertyChanged("DataAnaliseEF");
                OnDataAnaliseEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAnaliseEF;
        partial void OnDataAnaliseEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAnaliseEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, true, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Decimal> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorRecebido
        {
            get
            {
                return _ValorRecebido;
            }
            set
            {
                OnValorRecebidoChanging(value);
                ReportPropertyChanging("ValorRecebido");
                _ValorRecebido = StructuralObject.SetValidValue(value, "ValorRecebido");
                ReportPropertyChanged("ValorRecebido");
                OnValorRecebidoChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorRecebido;
        partial void OnValorRecebidoChanging(Nullable<global::System.Decimal> value);
        partial void OnValorRecebidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRecebimento
        {
            get
            {
                return _DataRecebimento;
            }
            set
            {
                OnDataRecebimentoChanging(value);
                ReportPropertyChanging("DataRecebimento");
                _DataRecebimento = StructuralObject.SetValidValue(value, "DataRecebimento");
                ReportPropertyChanged("DataRecebimento");
                OnDataRecebimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRecebimento;
        partial void OnDataRecebimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorTransferidoParceira
        {
            get
            {
                return _ValorTransferidoParceira;
            }
            set
            {
                OnValorTransferidoParceiraChanging(value);
                ReportPropertyChanging("ValorTransferidoParceira");
                _ValorTransferidoParceira = StructuralObject.SetValidValue(value, "ValorTransferidoParceira");
                ReportPropertyChanged("ValorTransferidoParceira");
                OnValorTransferidoParceiraChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorTransferidoParceira;
        partial void OnValorTransferidoParceiraChanging(Nullable<global::System.Decimal> value);
        partial void OnValorTransferidoParceiraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTransferencia
        {
            get
            {
                return _DataTransferencia;
            }
            set
            {
                OnDataTransferenciaChanging(value);
                ReportPropertyChanging("DataTransferencia");
                _DataTransferencia = StructuralObject.SetValidValue(value, "DataTransferencia");
                ReportPropertyChanged("DataTransferencia");
                OnDataTransferenciaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTransferencia;
        partial void OnDataTransferenciaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTransferenciaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AdmProjeto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AdmProjeto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AdmProjeto object.
        /// </summary>
        /// <param name="iDProjeto">Initial value of the IDProjeto property.</param>
        public static AdmProjeto CreateAdmProjeto(global::System.Int32 iDProjeto)
        {
            AdmProjeto admProjeto = new AdmProjeto();
            admProjeto.IDProjeto = iDProjeto;
            return admProjeto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjeto
        {
            get
            {
                return _IDProjeto;
            }
            set
            {
                if (_IDProjeto != value)
                {
                    OnIDProjetoChanging(value);
                    ReportPropertyChanging("IDProjeto");
                    _IDProjeto = StructuralObject.SetValidValue(value, "IDProjeto");
                    ReportPropertyChanged("IDProjeto");
                    OnIDProjetoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjeto;
        partial void OnIDProjetoChanging(global::System.Int32 value);
        partial void OnIDProjetoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemReembolso
        {
            get
            {
                return _PercentagemReembolso;
            }
            set
            {
                OnPercentagemReembolsoChanging(value);
                ReportPropertyChanging("PercentagemReembolso");
                _PercentagemReembolso = StructuralObject.SetValidValue(value, "PercentagemReembolso");
                ReportPropertyChanged("PercentagemReembolso");
                OnPercentagemReembolsoChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemReembolso;
        partial void OnPercentagemReembolsoChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemReembolsoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> TotalDepesasNaoElegiveis
        {
            get
            {
                return _TotalDepesasNaoElegiveis;
            }
            set
            {
                OnTotalDepesasNaoElegiveisChanging(value);
                ReportPropertyChanging("TotalDepesasNaoElegiveis");
                _TotalDepesasNaoElegiveis = StructuralObject.SetValidValue(value, "TotalDepesasNaoElegiveis");
                ReportPropertyChanged("TotalDepesasNaoElegiveis");
                OnTotalDepesasNaoElegiveisChanged();
            }
        }
        private Nullable<global::System.Decimal> _TotalDepesasNaoElegiveis;
        partial void OnTotalDepesasNaoElegiveisChanging(Nullable<global::System.Decimal> value);
        partial void OnTotalDepesasNaoElegiveisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemOverheadCobrados
        {
            get
            {
                return _PercentagemOverheadCobrados;
            }
            set
            {
                OnPercentagemOverheadCobradosChanging(value);
                ReportPropertyChanging("PercentagemOverheadCobrados");
                _PercentagemOverheadCobrados = StructuralObject.SetValidValue(value, "PercentagemOverheadCobrados");
                ReportPropertyChanged("PercentagemOverheadCobrados");
                OnPercentagemOverheadCobradosChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemOverheadCobrados;
        partial void OnPercentagemOverheadCobradosChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemOverheadCobradosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemOverheadReitoria
        {
            get
            {
                return _PercentagemOverheadReitoria;
            }
            set
            {
                OnPercentagemOverheadReitoriaChanging(value);
                ReportPropertyChanging("PercentagemOverheadReitoria");
                _PercentagemOverheadReitoria = StructuralObject.SetValidValue(value, "PercentagemOverheadReitoria");
                ReportPropertyChanged("PercentagemOverheadReitoria");
                OnPercentagemOverheadReitoriaChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemOverheadReitoria;
        partial void OnPercentagemOverheadReitoriaChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemOverheadReitoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String OverheadReitoriaObservacoes
        {
            get
            {
                return _OverheadReitoriaObservacoes;
            }
            set
            {
                OnOverheadReitoriaObservacoesChanging(value);
                ReportPropertyChanging("OverheadReitoriaObservacoes");
                _OverheadReitoriaObservacoes = StructuralObject.SetValidValue(value, true, "OverheadReitoriaObservacoes");
                ReportPropertyChanged("OverheadReitoriaObservacoes");
                OnOverheadReitoriaObservacoesChanged();
            }
        }
        private global::System.String _OverheadReitoriaObservacoes;
        partial void OnOverheadReitoriaObservacoesChanging(global::System.String value);
        partial void OnOverheadReitoriaObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemOverheadUOEI
        {
            get
            {
                return _PercentagemOverheadUOEI;
            }
            set
            {
                OnPercentagemOverheadUOEIChanging(value);
                ReportPropertyChanging("PercentagemOverheadUOEI");
                _PercentagemOverheadUOEI = StructuralObject.SetValidValue(value, "PercentagemOverheadUOEI");
                ReportPropertyChanged("PercentagemOverheadUOEI");
                OnPercentagemOverheadUOEIChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemOverheadUOEI;
        partial void OnPercentagemOverheadUOEIChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemOverheadUOEIChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String OverheadUOEIObservacoes
        {
            get
            {
                return _OverheadUOEIObservacoes;
            }
            set
            {
                OnOverheadUOEIObservacoesChanging(value);
                ReportPropertyChanging("OverheadUOEIObservacoes");
                _OverheadUOEIObservacoes = StructuralObject.SetValidValue(value, true, "OverheadUOEIObservacoes");
                ReportPropertyChanged("OverheadUOEIObservacoes");
                OnOverheadUOEIObservacoesChanged();
            }
        }
        private global::System.String _OverheadUOEIObservacoes;
        partial void OnOverheadUOEIObservacoesChanging(global::System.String value);
        partial void OnOverheadUOEIObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemOverheadCentro
        {
            get
            {
                return _PercentagemOverheadCentro;
            }
            set
            {
                OnPercentagemOverheadCentroChanging(value);
                ReportPropertyChanging("PercentagemOverheadCentro");
                _PercentagemOverheadCentro = StructuralObject.SetValidValue(value, "PercentagemOverheadCentro");
                ReportPropertyChanged("PercentagemOverheadCentro");
                OnPercentagemOverheadCentroChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemOverheadCentro;
        partial void OnPercentagemOverheadCentroChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemOverheadCentroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String OverheadCentroObservacoes
        {
            get
            {
                return _OverheadCentroObservacoes;
            }
            set
            {
                OnOverheadCentroObservacoesChanging(value);
                ReportPropertyChanging("OverheadCentroObservacoes");
                _OverheadCentroObservacoes = StructuralObject.SetValidValue(value, true, "OverheadCentroObservacoes");
                ReportPropertyChanged("OverheadCentroObservacoes");
                OnOverheadCentroObservacoesChanged();
            }
        }
        private global::System.String _OverheadCentroObservacoes;
        partial void OnOverheadCentroObservacoesChanging(global::System.String value);
        partial void OnOverheadCentroObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbas1T
        {
            get
            {
                return _PlafondVerbas1T;
            }
            set
            {
                OnPlafondVerbas1TChanging(value);
                ReportPropertyChanging("PlafondVerbas1T");
                _PlafondVerbas1T = StructuralObject.SetValidValue(value, "PlafondVerbas1T");
                ReportPropertyChanged("PlafondVerbas1T");
                OnPlafondVerbas1TChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbas1T;
        partial void OnPlafondVerbas1TChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbas1TChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbas2T
        {
            get
            {
                return _PlafondVerbas2T;
            }
            set
            {
                OnPlafondVerbas2TChanging(value);
                ReportPropertyChanging("PlafondVerbas2T");
                _PlafondVerbas2T = StructuralObject.SetValidValue(value, "PlafondVerbas2T");
                ReportPropertyChanged("PlafondVerbas2T");
                OnPlafondVerbas2TChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbas2T;
        partial void OnPlafondVerbas2TChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbas2TChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbas3T
        {
            get
            {
                return _PlafondVerbas3T;
            }
            set
            {
                OnPlafondVerbas3TChanging(value);
                ReportPropertyChanging("PlafondVerbas3T");
                _PlafondVerbas3T = StructuralObject.SetValidValue(value, "PlafondVerbas3T");
                ReportPropertyChanged("PlafondVerbas3T");
                OnPlafondVerbas3TChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbas3T;
        partial void OnPlafondVerbas3TChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbas3TChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbas4T
        {
            get
            {
                return _PlafondVerbas4T;
            }
            set
            {
                OnPlafondVerbas4TChanging(value);
                ReportPropertyChanging("PlafondVerbas4T");
                _PlafondVerbas4T = StructuralObject.SetValidValue(value, "PlafondVerbas4T");
                ReportPropertyChanged("PlafondVerbas4T");
                OnPlafondVerbas4TChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbas4T;
        partial void OnPlafondVerbas4TChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbas4TChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT1Observacoes
        {
            get
            {
                return _PlafondVerbasT1Observacoes;
            }
            set
            {
                OnPlafondVerbasT1ObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT1Observacoes");
                _PlafondVerbasT1Observacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT1Observacoes");
                ReportPropertyChanged("PlafondVerbasT1Observacoes");
                OnPlafondVerbasT1ObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT1Observacoes;
        partial void OnPlafondVerbasT1ObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT1ObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT2Observacoes
        {
            get
            {
                return _PlafondVerbasT2Observacoes;
            }
            set
            {
                OnPlafondVerbasT2ObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT2Observacoes");
                _PlafondVerbasT2Observacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT2Observacoes");
                ReportPropertyChanged("PlafondVerbasT2Observacoes");
                OnPlafondVerbasT2ObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT2Observacoes;
        partial void OnPlafondVerbasT2ObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT2ObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT3Observacoes
        {
            get
            {
                return _PlafondVerbasT3Observacoes;
            }
            set
            {
                OnPlafondVerbasT3ObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT3Observacoes");
                _PlafondVerbasT3Observacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT3Observacoes");
                ReportPropertyChanged("PlafondVerbasT3Observacoes");
                OnPlafondVerbasT3ObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT3Observacoes;
        partial void OnPlafondVerbasT3ObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT3ObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT4Observacoes
        {
            get
            {
                return _PlafondVerbasT4Observacoes;
            }
            set
            {
                OnPlafondVerbasT4ObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT4Observacoes");
                _PlafondVerbasT4Observacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT4Observacoes");
                ReportPropertyChanged("PlafondVerbasT4Observacoes");
                OnPlafondVerbasT4ObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT4Observacoes;
        partial void OnPlafondVerbasT4ObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT4ObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbasT1Reforco
        {
            get
            {
                return _PlafondVerbasT1Reforco;
            }
            set
            {
                OnPlafondVerbasT1ReforcoChanging(value);
                ReportPropertyChanging("PlafondVerbasT1Reforco");
                _PlafondVerbasT1Reforco = StructuralObject.SetValidValue(value, "PlafondVerbasT1Reforco");
                ReportPropertyChanged("PlafondVerbasT1Reforco");
                OnPlafondVerbasT1ReforcoChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbasT1Reforco;
        partial void OnPlafondVerbasT1ReforcoChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbasT1ReforcoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbasT2Reforco
        {
            get
            {
                return _PlafondVerbasT2Reforco;
            }
            set
            {
                OnPlafondVerbasT2ReforcoChanging(value);
                ReportPropertyChanging("PlafondVerbasT2Reforco");
                _PlafondVerbasT2Reforco = StructuralObject.SetValidValue(value, "PlafondVerbasT2Reforco");
                ReportPropertyChanged("PlafondVerbasT2Reforco");
                OnPlafondVerbasT2ReforcoChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbasT2Reforco;
        partial void OnPlafondVerbasT2ReforcoChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbasT2ReforcoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbasT3Reforco
        {
            get
            {
                return _PlafondVerbasT3Reforco;
            }
            set
            {
                OnPlafondVerbasT3ReforcoChanging(value);
                ReportPropertyChanging("PlafondVerbasT3Reforco");
                _PlafondVerbasT3Reforco = StructuralObject.SetValidValue(value, "PlafondVerbasT3Reforco");
                ReportPropertyChanged("PlafondVerbasT3Reforco");
                OnPlafondVerbasT3ReforcoChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbasT3Reforco;
        partial void OnPlafondVerbasT3ReforcoChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbasT3ReforcoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PlafondVerbasT4Reforco
        {
            get
            {
                return _PlafondVerbasT4Reforco;
            }
            set
            {
                OnPlafondVerbasT4ReforcoChanging(value);
                ReportPropertyChanging("PlafondVerbasT4Reforco");
                _PlafondVerbasT4Reforco = StructuralObject.SetValidValue(value, "PlafondVerbasT4Reforco");
                ReportPropertyChanged("PlafondVerbasT4Reforco");
                OnPlafondVerbasT4ReforcoChanged();
            }
        }
        private Nullable<global::System.Decimal> _PlafondVerbasT4Reforco;
        partial void OnPlafondVerbasT4ReforcoChanging(Nullable<global::System.Decimal> value);
        partial void OnPlafondVerbasT4ReforcoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT1ReforcoObservacoes
        {
            get
            {
                return _PlafondVerbasT1ReforcoObservacoes;
            }
            set
            {
                OnPlafondVerbasT1ReforcoObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT1ReforcoObservacoes");
                _PlafondVerbasT1ReforcoObservacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT1ReforcoObservacoes");
                ReportPropertyChanged("PlafondVerbasT1ReforcoObservacoes");
                OnPlafondVerbasT1ReforcoObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT1ReforcoObservacoes;
        partial void OnPlafondVerbasT1ReforcoObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT1ReforcoObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT2ReforcoObservacoes
        {
            get
            {
                return _PlafondVerbasT2ReforcoObservacoes;
            }
            set
            {
                OnPlafondVerbasT2ReforcoObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT2ReforcoObservacoes");
                _PlafondVerbasT2ReforcoObservacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT2ReforcoObservacoes");
                ReportPropertyChanged("PlafondVerbasT2ReforcoObservacoes");
                OnPlafondVerbasT2ReforcoObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT2ReforcoObservacoes;
        partial void OnPlafondVerbasT2ReforcoObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT2ReforcoObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT3ReforcoObservacoes
        {
            get
            {
                return _PlafondVerbasT3ReforcoObservacoes;
            }
            set
            {
                OnPlafondVerbasT3ReforcoObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT3ReforcoObservacoes");
                _PlafondVerbasT3ReforcoObservacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT3ReforcoObservacoes");
                ReportPropertyChanged("PlafondVerbasT3ReforcoObservacoes");
                OnPlafondVerbasT3ReforcoObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT3ReforcoObservacoes;
        partial void OnPlafondVerbasT3ReforcoObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT3ReforcoObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PlafondVerbasT4ReforcoObservacoes
        {
            get
            {
                return _PlafondVerbasT4ReforcoObservacoes;
            }
            set
            {
                OnPlafondVerbasT4ReforcoObservacoesChanging(value);
                ReportPropertyChanging("PlafondVerbasT4ReforcoObservacoes");
                _PlafondVerbasT4ReforcoObservacoes = StructuralObject.SetValidValue(value, true, "PlafondVerbasT4ReforcoObservacoes");
                ReportPropertyChanged("PlafondVerbasT4ReforcoObservacoes");
                OnPlafondVerbasT4ReforcoObservacoesChanged();
            }
        }
        private global::System.String _PlafondVerbasT4ReforcoObservacoes;
        partial void OnPlafondVerbasT4ReforcoObservacoesChanging(global::System.String value);
        partial void OnPlafondVerbasT4ReforcoObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> DespesaJustificada
        {
            get
            {
                return _DespesaJustificada;
            }
            set
            {
                OnDespesaJustificadaChanging(value);
                ReportPropertyChanging("DespesaJustificada");
                _DespesaJustificada = StructuralObject.SetValidValue(value, "DespesaJustificada");
                ReportPropertyChanged("DespesaJustificada");
                OnDespesaJustificadaChanged();
            }
        }
        private Nullable<global::System.Decimal> _DespesaJustificada;
        partial void OnDespesaJustificadaChanging(Nullable<global::System.Decimal> value);
        partial void OnDespesaJustificadaChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AreaCientifica")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AreaCientifica : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AreaCientifica object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static AreaCientifica CreateAreaCientifica(global::System.Int32 id, global::System.String nome, global::System.Boolean activo)
        {
            AreaCientifica areaCientifica = new AreaCientifica();
            areaCientifica.ID = id;
            areaCientifica.Nome = nome;
            areaCientifica.Activo = activo;
            return areaCientifica;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDAreaCientificaPai
        {
            get
            {
                return _IDAreaCientificaPai;
            }
            set
            {
                OnIDAreaCientificaPaiChanging(value);
                ReportPropertyChanging("IDAreaCientificaPai");
                _IDAreaCientificaPai = StructuralObject.SetValidValue(value, "IDAreaCientificaPai");
                ReportPropertyChanged("IDAreaCientificaPai");
                OnIDAreaCientificaPaiChanged();
            }
        }
        private Nullable<global::System.Int32> _IDAreaCientificaPai;
        partial void OnIDAreaCientificaPaiChanging(Nullable<global::System.Int32> value);
        partial void OnIDAreaCientificaPaiChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientifica_AreaCientifica", "AreaCientifica1")]
        public EntityCollection<AreaCientifica> AreaCientifica1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientifica_AreaCientifica", "AreaCientifica")]
        public AreaCientifica AreaCientifica2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<AreaCientifica> AreaCientifica2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientifica_AreaCientifica", "AreaCientifica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientificaML_AreaCientifica", "AreaCientificaML")]
        public EntityCollection<AreaCientificaML> AreaCientificaML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AreaCientificaML>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientificaML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AreaCientificaML>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientificaML", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica1", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_AreaCientifica", "PortalFontesAreasTematicas")]
        public EntityCollection<PortalFontesAreasTematicas> PortalFontesAreasTematicas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesAreasTematicas>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "PortalFontesAreasTematicas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesAreasTematicas>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "PortalFontesAreasTematicas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="AreaCientificaML")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class AreaCientificaML : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new AreaCientificaML object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDAreaCientifica">Initial value of the IDAreaCientifica property.</param>
        /// <param name="idioma">Initial value of the Idioma property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static AreaCientificaML CreateAreaCientificaML(global::System.Int32 id, global::System.Int32 iDAreaCientifica, global::System.String idioma, global::System.String valor)
        {
            AreaCientificaML areaCientificaML = new AreaCientificaML();
            areaCientificaML.ID = id;
            areaCientificaML.IDAreaCientifica = iDAreaCientifica;
            areaCientificaML.Idioma = idioma;
            areaCientificaML.Valor = valor;
            return areaCientificaML;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAreaCientifica
        {
            get
            {
                return _IDAreaCientifica;
            }
            set
            {
                OnIDAreaCientificaChanging(value);
                ReportPropertyChanging("IDAreaCientifica");
                _IDAreaCientifica = StructuralObject.SetValidValue(value, "IDAreaCientifica");
                ReportPropertyChanged("IDAreaCientifica");
                OnIDAreaCientificaChanged();
            }
        }
        private global::System.Int32 _IDAreaCientifica;
        partial void OnIDAreaCientificaChanging(global::System.Int32 value);
        partial void OnIDAreaCientificaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Idioma
        {
            get
            {
                return _Idioma;
            }
            set
            {
                OnIdiomaChanging(value);
                ReportPropertyChanging("Idioma");
                _Idioma = StructuralObject.SetValidValue(value, false, "Idioma");
                ReportPropertyChanged("Idioma");
                OnIdiomaChanged();
            }
        }
        private global::System.String _Idioma;
        partial void OnIdiomaChanging(global::System.String value);
        partial void OnIdiomaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, false, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.String _Valor;
        partial void OnValorChanging(global::System.String value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientificaML_AreaCientifica", "AreaCientifica")]
        public AreaCientifica AreaCientifica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientifica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientifica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<AreaCientifica> AreaCientificaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientifica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_AreaCientificaML_AreaCientifica", "AreaCientifica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientificaML_Idiomas", "Idioma")]
        public Idioma Idioma1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "Idioma").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "Idioma").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Idioma> Idioma1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "Idioma");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Idioma>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "Idioma", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="documento">Initial value of the Documento property.</param>
        /// <param name="ficheiroTecnico">Initial value of the FicheiroTecnico property.</param>
        public static CandidaturaAnexos CreateCandidaturaAnexos(global::System.Int32 id, global::System.Int32 iDCandidatura, global::System.String documento, global::System.Boolean ficheiroTecnico)
        {
            CandidaturaAnexos candidaturaAnexos = new CandidaturaAnexos();
            candidaturaAnexos.ID = id;
            candidaturaAnexos.IDCandidatura = iDCandidatura;
            candidaturaAnexos.Documento = documento;
            candidaturaAnexos.FicheiroTecnico = ficheiroTecnico;
            return candidaturaAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                OnIDCandidaturaChanging(value);
                ReportPropertyChanging("IDCandidatura");
                _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                ReportPropertyChanged("IDCandidatura");
                OnIDCandidaturaChanged();
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, false, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FicheiroTecnico
        {
            get
            {
                return _FicheiroTecnico;
            }
            set
            {
                OnFicheiroTecnicoChanging(value);
                ReportPropertyChanging("FicheiroTecnico");
                _FicheiroTecnico = StructuralObject.SetValidValue(value, "FicheiroTecnico");
                ReportPropertyChanged("FicheiroTecnico");
                OnFicheiroTecnicoChanged();
            }
        }
        private global::System.Boolean _FicheiroTecnico;
        partial void OnFicheiroTecnicoChanging(global::System.Boolean value);
        partial void OnFicheiroTecnicoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, true, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> OrcamentoInvestigador
        {
            get
            {
                return _OrcamentoInvestigador;
            }
            set
            {
                OnOrcamentoInvestigadorChanging(value);
                ReportPropertyChanging("OrcamentoInvestigador");
                _OrcamentoInvestigador = StructuralObject.SetValidValue(value, "OrcamentoInvestigador");
                ReportPropertyChanged("OrcamentoInvestigador");
                OnOrcamentoInvestigadorChanged();
            }
        }
        private Nullable<global::System.Boolean> _OrcamentoInvestigador;
        partial void OnOrcamentoInvestigadorChanging(Nullable<global::System.Boolean> value);
        partial void OnOrcamentoInvestigadorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> OrcamentoUnidadeValidacao
        {
            get
            {
                return _OrcamentoUnidadeValidacao;
            }
            set
            {
                OnOrcamentoUnidadeValidacaoChanging(value);
                ReportPropertyChanging("OrcamentoUnidadeValidacao");
                _OrcamentoUnidadeValidacao = StructuralObject.SetValidValue(value, "OrcamentoUnidadeValidacao");
                ReportPropertyChanged("OrcamentoUnidadeValidacao");
                OnOrcamentoUnidadeValidacaoChanged();
            }
        }
        private Nullable<global::System.Boolean> _OrcamentoUnidadeValidacao;
        partial void OnOrcamentoUnidadeValidacaoChanging(Nullable<global::System.Boolean> value);
        partial void OnOrcamentoUnidadeValidacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MimeType
        {
            get
            {
                return _MimeType;
            }
            set
            {
                OnMimeTypeChanging(value);
                ReportPropertyChanging("MimeType");
                _MimeType = StructuralObject.SetValidValue(value, true, "MimeType");
                ReportPropertyChanged("MimeType");
                OnMimeTypeChanged();
            }
        }
        private global::System.String _MimeType;
        partial void OnMimeTypeChanging(global::System.String value);
        partial void OnMimeTypeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FileExtension
        {
            get
            {
                return _FileExtension;
            }
            set
            {
                OnFileExtensionChanging(value);
                ReportPropertyChanging("FileExtension");
                _FileExtension = StructuralObject.SetValidValue(value, true, "FileExtension");
                ReportPropertyChanged("FileExtension");
                OnFileExtensionChanged();
            }
        }
        private global::System.String _FileExtension;
        partial void OnFileExtensionChanging(global::System.String value);
        partial void OnFileExtensionChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FicheiroPosValidacao
        {
            get
            {
                return _FicheiroPosValidacao;
            }
            set
            {
                OnFicheiroPosValidacaoChanging(value);
                ReportPropertyChanging("FicheiroPosValidacao");
                _FicheiroPosValidacao = StructuralObject.SetValidValue(value, "FicheiroPosValidacao");
                ReportPropertyChanged("FicheiroPosValidacao");
                OnFicheiroPosValidacaoChanged();
            }
        }
        private Nullable<global::System.Boolean> _FicheiroPosValidacao;
        partial void OnFicheiroPosValidacaoChanging(Nullable<global::System.Boolean> value);
        partial void OnFicheiroPosValidacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaAnexos_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaEquipa")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaEquipa : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaEquipa object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="membro">Initial value of the Membro property.</param>
        /// <param name="flagSecretariado">Initial value of the FlagSecretariado property.</param>
        public static CandidaturaEquipa CreateCandidaturaEquipa(global::System.Int32 id, global::System.Int32 iDCandidatura, global::System.Boolean membro, global::System.Boolean flagSecretariado)
        {
            CandidaturaEquipa candidaturaEquipa = new CandidaturaEquipa();
            candidaturaEquipa.ID = id;
            candidaturaEquipa.IDCandidatura = iDCandidatura;
            candidaturaEquipa.Membro = membro;
            candidaturaEquipa.FlagSecretariado = flagSecretariado;
            return candidaturaEquipa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                OnIDCandidaturaChanging(value);
                ReportPropertyChanging("IDCandidatura");
                _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                ReportPropertyChanged("IDCandidatura");
                OnIDCandidaturaChanged();
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Membro
        {
            get
            {
                return _Membro;
            }
            set
            {
                OnMembroChanging(value);
                ReportPropertyChanging("Membro");
                _Membro = StructuralObject.SetValidValue(value, "Membro");
                ReportPropertyChanged("Membro");
                OnMembroChanged();
            }
        }
        private global::System.Boolean _Membro;
        partial void OnMembroChanging(global::System.Boolean value);
        partial void OnMembroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDGrauAcademico
        {
            get
            {
                return _IDGrauAcademico;
            }
            set
            {
                OnIDGrauAcademicoChanging(value);
                ReportPropertyChanging("IDGrauAcademico");
                _IDGrauAcademico = StructuralObject.SetValidValue(value, "IDGrauAcademico");
                ReportPropertyChanged("IDGrauAcademico");
                OnIDGrauAcademicoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDGrauAcademico;
        partial void OnIDGrauAcademicoChanging(Nullable<global::System.Int32> value);
        partial void OnIDGrauAcademicoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFuncao
        {
            get
            {
                return _IDFuncao;
            }
            set
            {
                OnIDFuncaoChanging(value);
                ReportPropertyChanging("IDFuncao");
                _IDFuncao = StructuralObject.SetValidValue(value, "IDFuncao");
                ReportPropertyChanged("IDFuncao");
                OnIDFuncaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFuncao;
        partial void OnIDFuncaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDFuncaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoBolseiro
        {
            get
            {
                return _IDTipoBolseiro;
            }
            set
            {
                OnIDTipoBolseiroChanging(value);
                ReportPropertyChanging("IDTipoBolseiro");
                _IDTipoBolseiro = StructuralObject.SetValidValue(value, "IDTipoBolseiro");
                ReportPropertyChanged("IDTipoBolseiro");
                OnIDTipoBolseiroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoBolseiro;
        partial void OnIDTipoBolseiroChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoBolseiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> BolseiroDuracao
        {
            get
            {
                return _BolseiroDuracao;
            }
            set
            {
                OnBolseiroDuracaoChanging(value);
                ReportPropertyChanging("BolseiroDuracao");
                _BolseiroDuracao = StructuralObject.SetValidValue(value, "BolseiroDuracao");
                ReportPropertyChanged("BolseiroDuracao");
                OnBolseiroDuracaoChanged();
            }
        }
        private Nullable<global::System.Int32> _BolseiroDuracao;
        partial void OnBolseiroDuracaoChanging(Nullable<global::System.Int32> value);
        partial void OnBolseiroDuracaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Alocacao
        {
            get
            {
                return _Alocacao;
            }
            set
            {
                OnAlocacaoChanging(value);
                ReportPropertyChanging("Alocacao");
                _Alocacao = StructuralObject.SetValidValue(value, "Alocacao");
                ReportPropertyChanged("Alocacao");
                OnAlocacaoChanged();
            }
        }
        private Nullable<global::System.Int32> _Alocacao;
        partial void OnAlocacaoChanging(Nullable<global::System.Int32> value);
        partial void OnAlocacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDMembro
        {
            get
            {
                return _IDMembro;
            }
            set
            {
                OnIDMembroChanging(value);
                ReportPropertyChanging("IDMembro");
                _IDMembro = StructuralObject.SetValidValue(value, "IDMembro");
                ReportPropertyChanged("IDMembro");
                OnIDMembroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDMembro;
        partial void OnIDMembroChanging(Nullable<global::System.Int32> value);
        partial void OnIDMembroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagSecretariado
        {
            get
            {
                return _FlagSecretariado;
            }
            set
            {
                OnFlagSecretariadoChanging(value);
                ReportPropertyChanging("FlagSecretariado");
                _FlagSecretariado = StructuralObject.SetValidValue(value, "FlagSecretariado");
                ReportPropertyChanged("FlagSecretariado");
                OnFlagSecretariadoChanged();
            }
        }
        private global::System.Boolean _FlagSecretariado;
        partial void OnFlagSecretariadoChanging(global::System.Boolean value);
        partial void OnFlagSecretariadoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico")]
        public GrauAcademico GrauAcademico
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<GrauAcademico> GrauAcademicoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "GrauAcademico", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa")]
        public TipoBolsa TipoBolsa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoBolsa> TipoBolsaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "TipoBolsa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoFuncao", "Funcao")]
        public Funcao Funcao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "Funcao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "Funcao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Funcao> FuncaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "Funcao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Funcao>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "Funcao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaEstados")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaEstados : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaEstados object.
        /// </summary>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        /// <param name="dataEstado">Initial value of the DataEstado property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        public static CandidaturaEstados CreateCandidaturaEstados(global::System.Int32 iDCandidatura, global::System.Int32 iDEstado, global::System.DateTime dataEstado, global::System.Int32 id)
        {
            CandidaturaEstados candidaturaEstados = new CandidaturaEstados();
            candidaturaEstados.IDCandidatura = iDCandidatura;
            candidaturaEstados.IDEstado = iDEstado;
            candidaturaEstados.DataEstado = dataEstado;
            candidaturaEstados.ID = id;
            return candidaturaEstados;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                OnIDCandidaturaChanging(value);
                ReportPropertyChanging("IDCandidatura");
                _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                ReportPropertyChanged("IDCandidatura");
                OnIDCandidaturaChanged();
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEstado
        {
            get
            {
                return _DataEstado;
            }
            set
            {
                OnDataEstadoChanging(value);
                ReportPropertyChanging("DataEstado");
                _DataEstado = StructuralObject.SetValidValue(value, "DataEstado");
                ReportPropertyChanged("DataEstado");
                OnDataEstadoChanged();
            }
        }
        private global::System.DateTime _DataEstado;
        partial void OnDataEstadoChanging(global::System.DateTime value);
        partial void OnDataEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Justificacao
        {
            get
            {
                return _Justificacao;
            }
            set
            {
                OnJustificacaoChanging(value);
                ReportPropertyChanging("Justificacao");
                _Justificacao = StructuralObject.SetValidValue(value, true, "Justificacao");
                ReportPropertyChanged("Justificacao");
                OnJustificacaoChanged();
            }
        }
        private global::System.String _Justificacao;
        partial void OnJustificacaoChanging(global::System.String value);
        partial void OnJustificacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Utilizador
        {
            get
            {
                return _Utilizador;
            }
            set
            {
                OnUtilizadorChanging(value);
                ReportPropertyChanging("Utilizador");
                _Utilizador = StructuralObject.SetValidValue(value, true, "Utilizador");
                ReportPropertyChanged("Utilizador");
                OnUtilizadorChanged();
            }
        }
        private global::System.String _Utilizador;
        partial void OnUtilizadorChanging(global::System.String value);
        partial void OnUtilizadorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaFinanciamento object.
        /// </summary>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="iDEntidade">Initial value of the IDEntidade property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static CandidaturaFinanciamento CreateCandidaturaFinanciamento(global::System.Int32 iDCandidatura, global::System.Int32 iDEntidade, global::System.Int32 ano, global::System.Double valor)
        {
            CandidaturaFinanciamento candidaturaFinanciamento = new CandidaturaFinanciamento();
            candidaturaFinanciamento.IDCandidatura = iDCandidatura;
            candidaturaFinanciamento.IDEntidade = iDEntidade;
            candidaturaFinanciamento.Ano = ano;
            candidaturaFinanciamento.Valor = valor;
            return candidaturaFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                if (_IDCandidatura != value)
                {
                    OnIDCandidaturaChanging(value);
                    ReportPropertyChanging("IDCandidatura");
                    _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                    ReportPropertyChanged("IDCandidatura");
                    OnIDCandidaturaChanged();
                }
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidade
        {
            get
            {
                return _IDEntidade;
            }
            set
            {
                if (_IDEntidade != value)
                {
                    OnIDEntidadeChanging(value);
                    ReportPropertyChanging("IDEntidade");
                    _IDEntidade = StructuralObject.SetValidValue(value, "IDEntidade");
                    ReportPropertyChanged("IDEntidade");
                    OnIDEntidadeChanged();
                }
            }
        }
        private global::System.Int32 _IDEntidade;
        partial void OnIDEntidadeChanging(global::System.Int32 value);
        partial void OnIDEntidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                if (_Ano != value)
                {
                    OnAnoChanging(value);
                    ReportPropertyChanging("Ano");
                    _Ano = StructuralObject.SetValidValue(value, "Ano");
                    ReportPropertyChanged("Ano");
                    OnAnoChanged();
                }
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaQuadro
        {
            get
            {
                return _IDProgramaQuadro;
            }
            set
            {
                OnIDProgramaQuadroChanging(value);
                ReportPropertyChanging("IDProgramaQuadro");
                _IDProgramaQuadro = StructuralObject.SetValidValue(value, "IDProgramaQuadro");
                ReportPropertyChanged("IDProgramaQuadro");
                OnIDProgramaQuadroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaQuadro;
        partial void OnIDProgramaQuadroChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaOperacional
        {
            get
            {
                return _IDProgramaOperacional;
            }
            set
            {
                OnIDProgramaOperacionalChanging(value);
                ReportPropertyChanging("IDProgramaOperacional");
                _IDProgramaOperacional = StructuralObject.SetValidValue(value, "IDProgramaOperacional");
                ReportPropertyChanged("IDProgramaOperacional");
                OnIDProgramaOperacionalChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaOperacional;
        partial void OnIDProgramaOperacionalChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaOperacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipologia
        {
            get
            {
                return _IDTipologia;
            }
            set
            {
                OnIDTipologiaChanging(value);
                ReportPropertyChanging("IDTipologia");
                _IDTipologia = StructuralObject.SetValidValue(value, "IDTipologia");
                ReportPropertyChanged("IDTipologia");
                OnIDTipologiaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipologia;
        partial void OnIDTipologiaChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipologiaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFonteFinanciamento
        {
            get
            {
                return _IDFonteFinanciamento;
            }
            set
            {
                OnIDFonteFinanciamentoChanging(value);
                ReportPropertyChanging("IDFonteFinanciamento");
                _IDFonteFinanciamento = StructuralObject.SetValidValue(value, "IDFonteFinanciamento");
                ReportPropertyChanged("IDFonteFinanciamento");
                OnIDFonteFinanciamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFonteFinanciamento;
        partial void OnIDFonteFinanciamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDFonteFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional")]
        public ProgramaOperacional ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaOperacional> ProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro")]
        public ProgramaQuadro ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaQuadro> ProgramaQuadroReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "ProgramaQuadro", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto")]
        public TipoProjecto TipoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoProjecto> TipoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "TipoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaML")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaML : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaML object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="idioma">Initial value of the Idioma property.</param>
        /// <param name="campo">Initial value of the Campo property.</param>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static CandidaturaML CreateCandidaturaML(global::System.Int32 id, global::System.String idioma, global::System.String campo, global::System.Int32 iDCandidatura, global::System.String valor)
        {
            CandidaturaML candidaturaML = new CandidaturaML();
            candidaturaML.ID = id;
            candidaturaML.Idioma = idioma;
            candidaturaML.Campo = campo;
            candidaturaML.IDCandidatura = iDCandidatura;
            candidaturaML.Valor = valor;
            return candidaturaML;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Idioma
        {
            get
            {
                return _Idioma;
            }
            set
            {
                OnIdiomaChanging(value);
                ReportPropertyChanging("Idioma");
                _Idioma = StructuralObject.SetValidValue(value, false, "Idioma");
                ReportPropertyChanged("Idioma");
                OnIdiomaChanged();
            }
        }
        private global::System.String _Idioma;
        partial void OnIdiomaChanging(global::System.String value);
        partial void OnIdiomaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Campo
        {
            get
            {
                return _Campo;
            }
            set
            {
                OnCampoChanging(value);
                ReportPropertyChanging("Campo");
                _Campo = StructuralObject.SetValidValue(value, false, "Campo");
                ReportPropertyChanged("Campo");
                OnCampoChanged();
            }
        }
        private global::System.String _Campo;
        partial void OnCampoChanging(global::System.String value);
        partial void OnCampoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                OnIDCandidaturaChanging(value);
                ReportPropertyChanging("IDCandidatura");
                _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                ReportPropertyChanged("IDCandidatura");
                OnIDCandidaturaChanged();
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, false, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.String _Valor;
        partial void OnValorChanging(global::System.String value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturasML_Idiomas", "Idioma")]
        public Idioma Idioma1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "Idioma").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "Idioma").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Idioma> Idioma1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "Idioma");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Idioma>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "Idioma", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="CandidaturaOrcamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class CandidaturaOrcamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new CandidaturaOrcamento object.
        /// </summary>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static CandidaturaOrcamento CreateCandidaturaOrcamento(global::System.Int32 iDCandidatura, global::System.Int32 iDInstituicao, global::System.Int32 iDRubrica, global::System.Int32 ano, global::System.Double valor)
        {
            CandidaturaOrcamento candidaturaOrcamento = new CandidaturaOrcamento();
            candidaturaOrcamento.IDCandidatura = iDCandidatura;
            candidaturaOrcamento.IDInstituicao = iDInstituicao;
            candidaturaOrcamento.IDRubrica = iDRubrica;
            candidaturaOrcamento.Ano = ano;
            candidaturaOrcamento.Valor = valor;
            return candidaturaOrcamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                if (_IDCandidatura != value)
                {
                    OnIDCandidaturaChanging(value);
                    ReportPropertyChanging("IDCandidatura");
                    _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                    ReportPropertyChanged("IDCandidatura");
                    OnIDCandidaturaChanged();
                }
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                if (_IDInstituicao != value)
                {
                    OnIDInstituicaoChanging(value);
                    ReportPropertyChanging("IDInstituicao");
                    _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                    ReportPropertyChanged("IDInstituicao");
                    OnIDInstituicaoChanged();
                }
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                if (_IDRubrica != value)
                {
                    OnIDRubricaChanging(value);
                    ReportPropertyChanging("IDRubrica");
                    _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                    ReportPropertyChanged("IDRubrica");
                    OnIDRubricaChanged();
                }
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                if (_Ano != value)
                {
                    OnAnoChanging(value);
                    ReportPropertyChanging("Ano");
                    _Ano = StructuralObject.SetValidValue(value, "Ano");
                    ReportPropertyChanged("Ano");
                    OnAnoChanged();
                }
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Candidaturas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Candidaturas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Candidaturas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="referenciaCandidatura">Initial value of the ReferenciaCandidatura property.</param>
        /// <param name="iDAreaCientificaPrinc">Initial value of the IDAreaCientificaPrinc property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="tituloProjecto">Initial value of the TituloProjecto property.</param>
        /// <param name="iDPreponente">Initial value of the IDPreponente property.</param>
        /// <param name="iDInvestigadorResponsavel">Initial value of the IDInvestigadorResponsavel property.</param>
        /// <param name="iDUnidadeInvestigacao">Initial value of the IDUnidadeInvestigacao property.</param>
        /// <param name="iDInstituicaoAcolhimento">Initial value of the IDInstituicaoAcolhimento property.</param>
        /// <param name="acronimo">Initial value of the Acronimo property.</param>
        public static Candidaturas CreateCandidaturas(global::System.Int32 id, global::System.String referenciaCandidatura, global::System.Int32 iDAreaCientificaPrinc, global::System.Int32 iDEntidadeFinanciadora, global::System.String tituloProjecto, global::System.Int32 iDPreponente, global::System.Int32 iDInvestigadorResponsavel, global::System.Int32 iDUnidadeInvestigacao, global::System.Int32 iDInstituicaoAcolhimento, global::System.String acronimo)
        {
            Candidaturas candidaturas = new Candidaturas();
            candidaturas.ID = id;
            candidaturas.ReferenciaCandidatura = referenciaCandidatura;
            candidaturas.IDAreaCientificaPrinc = iDAreaCientificaPrinc;
            candidaturas.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            candidaturas.TituloProjecto = tituloProjecto;
            candidaturas.IDPreponente = iDPreponente;
            candidaturas.IDInvestigadorResponsavel = iDInvestigadorResponsavel;
            candidaturas.IDUnidadeInvestigacao = iDUnidadeInvestigacao;
            candidaturas.IDInstituicaoAcolhimento = iDInstituicaoAcolhimento;
            candidaturas.Acronimo = acronimo;
            return candidaturas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ReferenciaCandidatura
        {
            get
            {
                return _ReferenciaCandidatura;
            }
            set
            {
                OnReferenciaCandidaturaChanging(value);
                ReportPropertyChanging("ReferenciaCandidatura");
                _ReferenciaCandidatura = StructuralObject.SetValidValue(value, false, "ReferenciaCandidatura");
                ReportPropertyChanged("ReferenciaCandidatura");
                OnReferenciaCandidaturaChanged();
            }
        }
        private global::System.String _ReferenciaCandidatura;
        partial void OnReferenciaCandidaturaChanging(global::System.String value);
        partial void OnReferenciaCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataCandidatura
        {
            get
            {
                return _DataCandidatura;
            }
            set
            {
                OnDataCandidaturaChanging(value);
                ReportPropertyChanging("DataCandidatura");
                _DataCandidatura = StructuralObject.SetValidValue(value, "DataCandidatura");
                ReportPropertyChanged("DataCandidatura");
                OnDataCandidaturaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataCandidatura;
        partial void OnDataCandidaturaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAreaCientificaPrinc
        {
            get
            {
                return _IDAreaCientificaPrinc;
            }
            set
            {
                OnIDAreaCientificaPrincChanging(value);
                ReportPropertyChanging("IDAreaCientificaPrinc");
                _IDAreaCientificaPrinc = StructuralObject.SetValidValue(value, "IDAreaCientificaPrinc");
                ReportPropertyChanged("IDAreaCientificaPrinc");
                OnIDAreaCientificaPrincChanged();
            }
        }
        private global::System.Int32 _IDAreaCientificaPrinc;
        partial void OnIDAreaCientificaPrincChanging(global::System.Int32 value);
        partial void OnIDAreaCientificaPrincChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDAreaCientificaSec
        {
            get
            {
                return _IDAreaCientificaSec;
            }
            set
            {
                OnIDAreaCientificaSecChanging(value);
                ReportPropertyChanging("IDAreaCientificaSec");
                _IDAreaCientificaSec = StructuralObject.SetValidValue(value, "IDAreaCientificaSec");
                ReportPropertyChanged("IDAreaCientificaSec");
                OnIDAreaCientificaSecChanged();
            }
        }
        private Nullable<global::System.Int32> _IDAreaCientificaSec;
        partial void OnIDAreaCientificaSecChanging(Nullable<global::System.Int32> value);
        partial void OnIDAreaCientificaSecChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaQuadro
        {
            get
            {
                return _IDProgramaQuadro;
            }
            set
            {
                OnIDProgramaQuadroChanging(value);
                ReportPropertyChanging("IDProgramaQuadro");
                _IDProgramaQuadro = StructuralObject.SetValidValue(value, "IDProgramaQuadro");
                ReportPropertyChanged("IDProgramaQuadro");
                OnIDProgramaQuadroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaQuadro;
        partial void OnIDProgramaQuadroChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaOperacional
        {
            get
            {
                return _IDProgramaOperacional;
            }
            set
            {
                OnIDProgramaOperacionalChanging(value);
                ReportPropertyChanging("IDProgramaOperacional");
                _IDProgramaOperacional = StructuralObject.SetValidValue(value, "IDProgramaOperacional");
                ReportPropertyChanged("IDProgramaOperacional");
                OnIDProgramaOperacionalChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaOperacional;
        partial void OnIDProgramaOperacionalChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaOperacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoProjecto
        {
            get
            {
                return _IDTipoProjecto;
            }
            set
            {
                OnIDTipoProjectoChanging(value);
                ReportPropertyChanging("IDTipoProjecto");
                _IDTipoProjecto = StructuralObject.SetValidValue(value, "IDTipoProjecto");
                ReportPropertyChanged("IDTipoProjecto");
                OnIDTipoProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoProjecto;
        partial void OnIDTipoProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TituloProjecto
        {
            get
            {
                return _TituloProjecto;
            }
            set
            {
                OnTituloProjectoChanging(value);
                ReportPropertyChanging("TituloProjecto");
                _TituloProjecto = StructuralObject.SetValidValue(value, false, "TituloProjecto");
                ReportPropertyChanged("TituloProjecto");
                OnTituloProjectoChanged();
            }
        }
        private global::System.String _TituloProjecto;
        partial void OnTituloProjectoChanging(global::System.String value);
        partial void OnTituloProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPreponente
        {
            get
            {
                return _IDPreponente;
            }
            set
            {
                OnIDPreponenteChanging(value);
                ReportPropertyChanging("IDPreponente");
                _IDPreponente = StructuralObject.SetValidValue(value, "IDPreponente");
                ReportPropertyChanged("IDPreponente");
                OnIDPreponenteChanged();
            }
        }
        private global::System.Int32 _IDPreponente;
        partial void OnIDPreponenteChanging(global::System.Int32 value);
        partial void OnIDPreponenteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInvestigadorResponsavel
        {
            get
            {
                return _IDInvestigadorResponsavel;
            }
            set
            {
                OnIDInvestigadorResponsavelChanging(value);
                ReportPropertyChanging("IDInvestigadorResponsavel");
                _IDInvestigadorResponsavel = StructuralObject.SetValidValue(value, "IDInvestigadorResponsavel");
                ReportPropertyChanged("IDInvestigadorResponsavel");
                OnIDInvestigadorResponsavelChanged();
            }
        }
        private global::System.Int32 _IDInvestigadorResponsavel;
        partial void OnIDInvestigadorResponsavelChanging(global::System.Int32 value);
        partial void OnIDInvestigadorResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDUnidadeInvestigacao
        {
            get
            {
                return _IDUnidadeInvestigacao;
            }
            set
            {
                OnIDUnidadeInvestigacaoChanging(value);
                ReportPropertyChanging("IDUnidadeInvestigacao");
                _IDUnidadeInvestigacao = StructuralObject.SetValidValue(value, "IDUnidadeInvestigacao");
                ReportPropertyChanged("IDUnidadeInvestigacao");
                OnIDUnidadeInvestigacaoChanged();
            }
        }
        private global::System.Int32 _IDUnidadeInvestigacao;
        partial void OnIDUnidadeInvestigacaoChanging(global::System.Int32 value);
        partial void OnIDUnidadeInvestigacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicaoAcolhimento
        {
            get
            {
                return _IDInstituicaoAcolhimento;
            }
            set
            {
                OnIDInstituicaoAcolhimentoChanging(value);
                ReportPropertyChanging("IDInstituicaoAcolhimento");
                _IDInstituicaoAcolhimento = StructuralObject.SetValidValue(value, "IDInstituicaoAcolhimento");
                ReportPropertyChanged("IDInstituicaoAcolhimento");
                OnIDInstituicaoAcolhimentoChanged();
            }
        }
        private global::System.Int32 _IDInstituicaoAcolhimento;
        partial void OnIDInstituicaoAcolhimentoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoAcolhimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Acronimo
        {
            get
            {
                return _Acronimo;
            }
            set
            {
                OnAcronimoChanging(value);
                ReportPropertyChanging("Acronimo");
                _Acronimo = StructuralObject.SetValidValue(value, false, "Acronimo");
                ReportPropertyChanged("Acronimo");
                OnAcronimoChanged();
            }
        }
        private global::System.String _Acronimo;
        partial void OnAcronimoChanging(global::System.String value);
        partial void OnAcronimoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicio;
        partial void OnDataInicioChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTermo
        {
            get
            {
                return _DataTermo;
            }
            set
            {
                OnDataTermoChanging(value);
                ReportPropertyChanging("DataTermo");
                _DataTermo = StructuralObject.SetValidValue(value, "DataTermo");
                ReportPropertyChanged("DataTermo");
                OnDataTermoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTermo;
        partial void OnDataTermoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTermoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Duracao
        {
            get
            {
                return _Duracao;
            }
            set
            {
                OnDuracaoChanging(value);
                ReportPropertyChanging("Duracao");
                _Duracao = StructuralObject.SetValidValue(value, "Duracao");
                ReportPropertyChanged("Duracao");
                OnDuracaoChanged();
            }
        }
        private Nullable<global::System.Int32> _Duracao;
        partial void OnDuracaoChanging(Nullable<global::System.Int32> value);
        partial void OnDuracaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> OrcamentoUminho
        {
            get
            {
                return _OrcamentoUminho;
            }
            set
            {
                OnOrcamentoUminhoChanging(value);
                ReportPropertyChanging("OrcamentoUminho");
                _OrcamentoUminho = StructuralObject.SetValidValue(value, "OrcamentoUminho");
                ReportPropertyChanged("OrcamentoUminho");
                OnOrcamentoUminhoChanged();
            }
        }
        private Nullable<global::System.Double> _OrcamentoUminho;
        partial void OnOrcamentoUminhoChanging(Nullable<global::System.Double> value);
        partial void OnOrcamentoUminhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> FundedUMinho
        {
            get
            {
                return _FundedUMinho;
            }
            set
            {
                OnFundedUMinhoChanging(value);
                ReportPropertyChanging("FundedUMinho");
                _FundedUMinho = StructuralObject.SetValidValue(value, "FundedUMinho");
                ReportPropertyChanged("FundedUMinho");
                OnFundedUMinhoChanged();
            }
        }
        private Nullable<global::System.Double> _FundedUMinho;
        partial void OnFundedUMinhoChanging(Nullable<global::System.Double> value);
        partial void OnFundedUMinhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> OrcamentoGlobal
        {
            get
            {
                return _OrcamentoGlobal;
            }
            set
            {
                OnOrcamentoGlobalChanging(value);
                ReportPropertyChanging("OrcamentoGlobal");
                _OrcamentoGlobal = StructuralObject.SetValidValue(value, "OrcamentoGlobal");
                ReportPropertyChanged("OrcamentoGlobal");
                OnOrcamentoGlobalChanged();
            }
        }
        private Nullable<global::System.Double> _OrcamentoGlobal;
        partial void OnOrcamentoGlobalChanging(Nullable<global::System.Double> value);
        partial void OnOrcamentoGlobalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IndicadoresResultados
        {
            get
            {
                return _IndicadoresResultados;
            }
            set
            {
                OnIndicadoresResultadosChanging(value);
                ReportPropertyChanging("IndicadoresResultados");
                _IndicadoresResultados = StructuralObject.SetValidValue(value, true, "IndicadoresResultados");
                ReportPropertyChanged("IndicadoresResultados");
                OnIndicadoresResultadosChanged();
            }
        }
        private global::System.String _IndicadoresResultados;
        partial void OnIndicadoresResultadosChanging(global::System.String value);
        partial void OnIndicadoresResultadosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ObjectivoSocioEconomicos
        {
            get
            {
                return _ObjectivoSocioEconomicos;
            }
            set
            {
                OnObjectivoSocioEconomicosChanging(value);
                ReportPropertyChanging("ObjectivoSocioEconomicos");
                _ObjectivoSocioEconomicos = StructuralObject.SetValidValue(value, true, "ObjectivoSocioEconomicos");
                ReportPropertyChanged("ObjectivoSocioEconomicos");
                OnObjectivoSocioEconomicosChanged();
            }
        }
        private global::System.String _ObjectivoSocioEconomicos;
        partial void OnObjectivoSocioEconomicosChanging(global::System.String value);
        partial void OnObjectivoSocioEconomicosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProtocoloIN
        {
            get
            {
                return _IDProtocoloIN;
            }
            set
            {
                OnIDProtocoloINChanging(value);
                ReportPropertyChanging("IDProtocoloIN");
                _IDProtocoloIN = StructuralObject.SetValidValue(value, "IDProtocoloIN");
                ReportPropertyChanged("IDProtocoloIN");
                OnIDProtocoloINChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProtocoloIN;
        partial void OnIDProtocoloINChanging(Nullable<global::System.Int32> value);
        partial void OnIDProtocoloINChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProtocoloOUT
        {
            get
            {
                return _IDProtocoloOUT;
            }
            set
            {
                OnIDProtocoloOUTChanging(value);
                ReportPropertyChanging("IDProtocoloOUT");
                _IDProtocoloOUT = StructuralObject.SetValidValue(value, "IDProtocoloOUT");
                ReportPropertyChanged("IDProtocoloOUT");
                OnIDProtocoloOUTChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProtocoloOUT;
        partial void OnIDProtocoloOUTChanging(Nullable<global::System.Int32> value);
        partial void OnIDProtocoloOUTChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEstadoActual
        {
            get
            {
                return _IDEstadoActual;
            }
            set
            {
                OnIDEstadoActualChanging(value);
                ReportPropertyChanging("IDEstadoActual");
                _IDEstadoActual = StructuralObject.SetValidValue(value, "IDEstadoActual");
                ReportPropertyChanged("IDEstadoActual");
                OnIDEstadoActualChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEstadoActual;
        partial void OnIDEstadoActualChanging(Nullable<global::System.Int32> value);
        partial void OnIDEstadoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Arquivo
        {
            get
            {
                return _Arquivo;
            }
            set
            {
                OnArquivoChanging(value);
                ReportPropertyChanging("Arquivo");
                _Arquivo = StructuralObject.SetValidValue(value, true, "Arquivo");
                ReportPropertyChanged("Arquivo");
                OnArquivoChanged();
            }
        }
        private global::System.String _Arquivo;
        partial void OnArquivoChanging(global::System.String value);
        partial void OnArquivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private Nullable<global::System.Int32> _Ano;
        partial void OnAnoChanging(Nullable<global::System.Int32> value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ValidacaoCentro
        {
            get
            {
                return _ValidacaoCentro;
            }
            set
            {
                OnValidacaoCentroChanging(value);
                ReportPropertyChanging("ValidacaoCentro");
                _ValidacaoCentro = StructuralObject.SetValidValue(value, "ValidacaoCentro");
                ReportPropertyChanged("ValidacaoCentro");
                OnValidacaoCentroChanged();
            }
        }
        private Nullable<global::System.Boolean> _ValidacaoCentro;
        partial void OnValidacaoCentroChanging(Nullable<global::System.Boolean> value);
        partial void OnValidacaoCentroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ValidacaoCentroTexto
        {
            get
            {
                return _ValidacaoCentroTexto;
            }
            set
            {
                OnValidacaoCentroTextoChanging(value);
                ReportPropertyChanging("ValidacaoCentroTexto");
                _ValidacaoCentroTexto = StructuralObject.SetValidValue(value, true, "ValidacaoCentroTexto");
                ReportPropertyChanged("ValidacaoCentroTexto");
                OnValidacaoCentroTextoChanged();
            }
        }
        private global::System.String _ValidacaoCentroTexto;
        partial void OnValidacaoCentroTextoChanging(global::System.String value);
        partial void OnValidacaoCentroTextoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ValidacaoEscola
        {
            get
            {
                return _ValidacaoEscola;
            }
            set
            {
                OnValidacaoEscolaChanging(value);
                ReportPropertyChanging("ValidacaoEscola");
                _ValidacaoEscola = StructuralObject.SetValidValue(value, "ValidacaoEscola");
                ReportPropertyChanged("ValidacaoEscola");
                OnValidacaoEscolaChanged();
            }
        }
        private Nullable<global::System.Boolean> _ValidacaoEscola;
        partial void OnValidacaoEscolaChanging(Nullable<global::System.Boolean> value);
        partial void OnValidacaoEscolaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ValidacaoEscolaTexto
        {
            get
            {
                return _ValidacaoEscolaTexto;
            }
            set
            {
                OnValidacaoEscolaTextoChanging(value);
                ReportPropertyChanging("ValidacaoEscolaTexto");
                _ValidacaoEscolaTexto = StructuralObject.SetValidValue(value, true, "ValidacaoEscolaTexto");
                ReportPropertyChanged("ValidacaoEscolaTexto");
                OnValidacaoEscolaTextoChanged();
            }
        }
        private global::System.String _ValidacaoEscolaTexto;
        partial void OnValidacaoEscolaTextoChanging(global::System.String value);
        partial void OnValidacaoEscolaTextoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> ValidacaoCentroData
        {
            get
            {
                return _ValidacaoCentroData;
            }
            set
            {
                OnValidacaoCentroDataChanging(value);
                ReportPropertyChanging("ValidacaoCentroData");
                _ValidacaoCentroData = StructuralObject.SetValidValue(value, "ValidacaoCentroData");
                ReportPropertyChanged("ValidacaoCentroData");
                OnValidacaoCentroDataChanged();
            }
        }
        private Nullable<global::System.DateTime> _ValidacaoCentroData;
        partial void OnValidacaoCentroDataChanging(Nullable<global::System.DateTime> value);
        partial void OnValidacaoCentroDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> ValidacaoEscolaData
        {
            get
            {
                return _ValidacaoEscolaData;
            }
            set
            {
                OnValidacaoEscolaDataChanging(value);
                ReportPropertyChanging("ValidacaoEscolaData");
                _ValidacaoEscolaData = StructuralObject.SetValidValue(value, "ValidacaoEscolaData");
                ReportPropertyChanged("ValidacaoEscolaData");
                OnValidacaoEscolaDataChanged();
            }
        }
        private Nullable<global::System.DateTime> _ValidacaoEscolaData;
        partial void OnValidacaoEscolaDataChanging(Nullable<global::System.DateTime> value);
        partial void OnValidacaoEscolaDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagAnulada
        {
            get
            {
                return _FlagAnulada;
            }
            set
            {
                OnFlagAnuladaChanging(value);
                ReportPropertyChanging("FlagAnulada");
                _FlagAnulada = StructuralObject.SetValidValue(value, "FlagAnulada");
                ReportPropertyChanged("FlagAnulada");
                OnFlagAnuladaChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagAnulada;
        partial void OnFlagAnuladaChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagAnuladaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Resumo
        {
            get
            {
                return _Resumo;
            }
            set
            {
                OnResumoChanging(value);
                ReportPropertyChanging("Resumo");
                _Resumo = StructuralObject.SetValidValue(value, true, "Resumo");
                ReportPropertyChanged("Resumo");
                OnResumoChanged();
            }
        }
        private global::System.String _Resumo;
        partial void OnResumoChanging(global::System.String value);
        partial void OnResumoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> PercentagemCofinanciamento
        {
            get
            {
                return _PercentagemCofinanciamento;
            }
            set
            {
                OnPercentagemCofinanciamentoChanging(value);
                ReportPropertyChanging("PercentagemCofinanciamento");
                _PercentagemCofinanciamento = StructuralObject.SetValidValue(value, "PercentagemCofinanciamento");
                ReportPropertyChanged("PercentagemCofinanciamento");
                OnPercentagemCofinanciamentoChanged();
            }
        }
        private Nullable<global::System.Double> _PercentagemCofinanciamento;
        partial void OnPercentagemCofinanciamentoChanging(Nullable<global::System.Double> value);
        partial void OnPercentagemCofinanciamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica", "AreaCientifica")]
        public AreaCientifica AreaCientifica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "AreaCientifica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "AreaCientifica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<AreaCientifica> AreaCientificaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "AreaCientifica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica", "AreaCientifica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_AreaCientifica1", "AreaCientifica")]
        public AreaCientifica AreaCientifica1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "AreaCientifica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "AreaCientifica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<AreaCientifica> AreaCientifica1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "AreaCientifica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_Candidaturas_AreaCientifica1", "AreaCientifica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaAnexos_Candidaturas", "CandidaturaAnexos")]
        public EntityCollection<CandidaturaAnexos> CandidaturaAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaAnexos>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "CandidaturaAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaAnexos>("GestaoProjectosModel.FK_CandidaturaAnexos_Candidaturas", "CandidaturaAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_Candidaturas", "CandidaturaEquipa")]
        public EntityCollection<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "CandidaturaEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_Candidaturas", "CandidaturaEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Candidaturas", "CandidaturaEstados")]
        public EntityCollection<CandidaturaEstados> CandidaturaEstados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEstados>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "CandidaturaEstados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEstados>("GestaoProjectosModel.FK_CandidaturaEstados_Candidaturas", "CandidaturaEstados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_Candidaturas", "CandidaturaFinanciamento")]
        public EntityCollection<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "CandidaturaFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_Candidaturas", "CandidaturaFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturasMultiLingua_Candidaturas", "CandidaturaML")]
        public EntityCollection<CandidaturaML> CandidaturaML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaML>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "CandidaturaML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaML>("GestaoProjectosModel.FK_CandidaturasMultiLingua_Candidaturas", "CandidaturaML", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Candidaturas", "CandidaturaOrcamento")]
        public EntityCollection<CandidaturaOrcamento> CandidaturaOrcamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "CandidaturaOrcamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Candidaturas", "CandidaturaOrcamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Candidaturas_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Candidaturas_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Candidaturas_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_Candidaturas_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao1", "Instituicao")]
        public Instituicao Instituicao1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> Instituicao1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional")]
        public ProgramaOperacional ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaOperacional> ProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro")]
        public ProgramaQuadro ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaQuadro> ProgramaQuadroReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "ProgramaQuadro", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_TipoProjecto", "TipoProjecto")]
        public TipoProjecto TipoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "TipoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "TipoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoProjecto> TipoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "TipoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "TipoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Unidades", "Unidades")]
        public Unidades Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Unidades").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Unidades").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Unidades> UnidadesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Unidades>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Unidades", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_Candidaturas", "Projectos")]
        public EntityCollection<Projectos> Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "CandidaturaInstituicao", "Instituicao")]
        public EntityCollection<Instituicao> Instituicao2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Instituicao>("GestaoProjectosModel.CandidaturaInstituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Instituicao>("GestaoProjectosModel.CandidaturaInstituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ChaveImputacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ChaveImputacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ChaveImputacao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="activa">Initial value of the Activa property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="dataEntradaVigor">Initial value of the DataEntradaVigor property.</param>
        /// <param name="dataSaidaVigor">Initial value of the DataSaidaVigor property.</param>
        /// <param name="horasTrabalhoAno">Initial value of the HorasTrabalhoAno property.</param>
        public static ChaveImputacao CreateChaveImputacao(global::System.Int32 id, global::System.Boolean activa, global::System.Int32 iDEntidadeFinanciadora, global::System.DateTime dataEntradaVigor, global::System.DateTime dataSaidaVigor, global::System.Int32 horasTrabalhoAno)
        {
            ChaveImputacao chaveImputacao = new ChaveImputacao();
            chaveImputacao.ID = id;
            chaveImputacao.Activa = activa;
            chaveImputacao.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            chaveImputacao.DataEntradaVigor = dataEntradaVigor;
            chaveImputacao.DataSaidaVigor = dataSaidaVigor;
            chaveImputacao.HorasTrabalhoAno = horasTrabalhoAno;
            return chaveImputacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activa
        {
            get
            {
                return _Activa;
            }
            set
            {
                OnActivaChanging(value);
                ReportPropertyChanging("Activa");
                _Activa = StructuralObject.SetValidValue(value, "Activa");
                ReportPropertyChanged("Activa");
                OnActivaChanged();
            }
        }
        private global::System.Boolean _Activa;
        partial void OnActivaChanging(global::System.Boolean value);
        partial void OnActivaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEntradaVigor
        {
            get
            {
                return _DataEntradaVigor;
            }
            set
            {
                OnDataEntradaVigorChanging(value);
                ReportPropertyChanging("DataEntradaVigor");
                _DataEntradaVigor = StructuralObject.SetValidValue(value, "DataEntradaVigor");
                ReportPropertyChanged("DataEntradaVigor");
                OnDataEntradaVigorChanged();
            }
        }
        private global::System.DateTime _DataEntradaVigor;
        partial void OnDataEntradaVigorChanging(global::System.DateTime value);
        partial void OnDataEntradaVigorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataSaidaVigor
        {
            get
            {
                return _DataSaidaVigor;
            }
            set
            {
                OnDataSaidaVigorChanging(value);
                ReportPropertyChanging("DataSaidaVigor");
                _DataSaidaVigor = StructuralObject.SetValidValue(value, "DataSaidaVigor");
                ReportPropertyChanged("DataSaidaVigor");
                OnDataSaidaVigorChanged();
            }
        }
        private global::System.DateTime _DataSaidaVigor;
        partial void OnDataSaidaVigorChanging(global::System.DateTime value);
        partial void OnDataSaidaVigorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 HorasTrabalhoAno
        {
            get
            {
                return _HorasTrabalhoAno;
            }
            set
            {
                OnHorasTrabalhoAnoChanging(value);
                ReportPropertyChanging("HorasTrabalhoAno");
                _HorasTrabalhoAno = StructuralObject.SetValidValue(value, "HorasTrabalhoAno");
                ReportPropertyChanged("HorasTrabalhoAno");
                OnHorasTrabalhoAnoChanged();
            }
        }
        private global::System.Int32 _HorasTrabalhoAno;
        partial void OnHorasTrabalhoAnoChanging(global::System.Int32 value);
        partial void OnHorasTrabalhoAnoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacaoRubricas")]
        public EntityCollection<ChaveImputacaoRubricas> ChaveImputacaoRubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacaoRubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacaoRubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacao_ChaveImputacao", "MapaImputacao")]
        public EntityCollection<MapaImputacao> MapaImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "MapaImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "MapaImputacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ChaveImputacaoRubricas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ChaveImputacaoRubricas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ChaveImputacaoRubricas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDChaveImputacao">Initial value of the IDChaveImputacao property.</param>
        /// <param name="nomeRubrica">Initial value of the NomeRubrica property.</param>
        /// <param name="percentagemImputacao">Initial value of the PercentagemImputacao property.</param>
        public static ChaveImputacaoRubricas CreateChaveImputacaoRubricas(global::System.Int32 id, global::System.Int32 iDChaveImputacao, global::System.String nomeRubrica, global::System.Double percentagemImputacao)
        {
            ChaveImputacaoRubricas chaveImputacaoRubricas = new ChaveImputacaoRubricas();
            chaveImputacaoRubricas.ID = id;
            chaveImputacaoRubricas.IDChaveImputacao = iDChaveImputacao;
            chaveImputacaoRubricas.NomeRubrica = nomeRubrica;
            chaveImputacaoRubricas.PercentagemImputacao = percentagemImputacao;
            return chaveImputacaoRubricas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDChaveImputacao
        {
            get
            {
                return _IDChaveImputacao;
            }
            set
            {
                OnIDChaveImputacaoChanging(value);
                ReportPropertyChanging("IDChaveImputacao");
                _IDChaveImputacao = StructuralObject.SetValidValue(value, "IDChaveImputacao");
                ReportPropertyChanged("IDChaveImputacao");
                OnIDChaveImputacaoChanged();
            }
        }
        private global::System.Int32 _IDChaveImputacao;
        partial void OnIDChaveImputacaoChanging(global::System.Int32 value);
        partial void OnIDChaveImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeRubrica
        {
            get
            {
                return _NomeRubrica;
            }
            set
            {
                OnNomeRubricaChanging(value);
                ReportPropertyChanging("NomeRubrica");
                _NomeRubrica = StructuralObject.SetValidValue(value, false, "NomeRubrica");
                ReportPropertyChanged("NomeRubrica");
                OnNomeRubricaChanged();
            }
        }
        private global::System.String _NomeRubrica;
        partial void OnNomeRubricaChanging(global::System.String value);
        partial void OnNomeRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double PercentagemImputacao
        {
            get
            {
                return _PercentagemImputacao;
            }
            set
            {
                OnPercentagemImputacaoChanging(value);
                ReportPropertyChanging("PercentagemImputacao");
                _PercentagemImputacao = StructuralObject.SetValidValue(value, "PercentagemImputacao");
                ReportPropertyChanged("PercentagemImputacao");
                OnPercentagemImputacaoChanged();
            }
        }
        private global::System.Double _PercentagemImputacao;
        partial void OnPercentagemImputacaoChanging(global::System.Double value);
        partial void OnPercentagemImputacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao")]
        public ChaveImputacao ChaveImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ChaveImputacao> ChaveImputacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacaoRubricas_ChaveImputacao", "ChaveImputacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "MapaImputacaoRubricas")]
        public EntityCollection<MapaImputacaoRubricas> MapaImputacaoRubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MapaImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "MapaImputacaoRubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MapaImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "MapaImputacaoRubricas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ClasseDocumentoDespesa")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ClasseDocumentoDespesa : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ClasseDocumentoDespesa object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        public static ClasseDocumentoDespesa CreateClasseDocumentoDespesa(global::System.String codigo)
        {
            ClasseDocumentoDespesa classeDocumentoDespesa = new ClasseDocumentoDespesa();
            classeDocumentoDespesa.Codigo = codigo;
            return classeDocumentoDespesa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoDocumento_ClasseDocumentoDespesa", "TipoDocumento")]
        public EntityCollection<TipoDocumento> TipoDocumento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TipoDocumento>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "TipoDocumento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TipoDocumento>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "TipoDocumento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ContratoAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ContratoAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ContratoAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDContrato">Initial value of the IDContrato property.</param>
        public static ContratoAnexos CreateContratoAnexos(global::System.Int32 id, global::System.Int32 iDContrato)
        {
            ContratoAnexos contratoAnexos = new ContratoAnexos();
            contratoAnexos.ID = id;
            contratoAnexos.IDContrato = iDContrato;
            return contratoAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDContrato
        {
            get
            {
                return _IDContrato;
            }
            set
            {
                OnIDContratoChanging(value);
                ReportPropertyChanging("IDContrato");
                _IDContrato = StructuralObject.SetValidValue(value, "IDContrato");
                ReportPropertyChanged("IDContrato");
                OnIDContratoChanged();
            }
        }
        private global::System.Int32 _IDContrato;
        partial void OnIDContratoChanging(global::System.Int32 value);
        partial void OnIDContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, true, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, true, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ContratoAnexos_Contratos", "Contratos")]
        public Contratos Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "Contratos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "Contratos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Contratos> ContratosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "Contratos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ContratoPeriodos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ContratoPeriodos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ContratoPeriodos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDContrato">Initial value of the IDContrato property.</param>
        /// <param name="dataInicio">Initial value of the DataInicio property.</param>
        /// <param name="dataTermino">Initial value of the DataTermino property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="observacoes">Initial value of the Observacoes property.</param>
        public static ContratoPeriodos CreateContratoPeriodos(global::System.Int32 id, global::System.Int32 iDContrato, global::System.DateTime dataInicio, global::System.DateTime dataTermino, global::System.Double valor, global::System.String observacoes)
        {
            ContratoPeriodos contratoPeriodos = new ContratoPeriodos();
            contratoPeriodos.ID = id;
            contratoPeriodos.IDContrato = iDContrato;
            contratoPeriodos.DataInicio = dataInicio;
            contratoPeriodos.DataTermino = dataTermino;
            contratoPeriodos.Valor = valor;
            contratoPeriodos.Observacoes = observacoes;
            return contratoPeriodos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDContrato
        {
            get
            {
                return _IDContrato;
            }
            set
            {
                OnIDContratoChanging(value);
                ReportPropertyChanging("IDContrato");
                _IDContrato = StructuralObject.SetValidValue(value, "IDContrato");
                ReportPropertyChanged("IDContrato");
                OnIDContratoChanged();
            }
        }
        private global::System.Int32 _IDContrato;
        partial void OnIDContratoChanging(global::System.Int32 value);
        partial void OnIDContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private global::System.DateTime _DataInicio;
        partial void OnDataInicioChanging(global::System.DateTime value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataTermino
        {
            get
            {
                return _DataTermino;
            }
            set
            {
                OnDataTerminoChanging(value);
                ReportPropertyChanging("DataTermino");
                _DataTermino = StructuralObject.SetValidValue(value, "DataTermino");
                ReportPropertyChanged("DataTermino");
                OnDataTerminoChanged();
            }
        }
        private global::System.DateTime _DataTermino;
        partial void OnDataTerminoChanging(global::System.DateTime value);
        partial void OnDataTerminoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, false, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Duracao
        {
            get
            {
                return _Duracao;
            }
            set
            {
                OnDuracaoChanging(value);
                ReportPropertyChanging("Duracao");
                _Duracao = StructuralObject.SetValidValue(value, "Duracao");
                ReportPropertyChanged("Duracao");
                OnDuracaoChanged();
            }
        }
        private Nullable<global::System.Int32> _Duracao;
        partial void OnDuracaoChanging(Nullable<global::System.Int32> value);
        partial void OnDuracaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRegisto
        {
            get
            {
                return _DataRegisto;
            }
            set
            {
                OnDataRegistoChanging(value);
                ReportPropertyChanging("DataRegisto");
                _DataRegisto = StructuralObject.SetValidValue(value, "DataRegisto");
                ReportPropertyChanged("DataRegisto");
                OnDataRegistoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRegisto;
        partial void OnDataRegistoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRegistoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DuracaoEm
        {
            get
            {
                return _DuracaoEm;
            }
            set
            {
                OnDuracaoEmChanging(value);
                ReportPropertyChanging("DuracaoEm");
                _DuracaoEm = StructuralObject.SetValidValue(value, true, "DuracaoEm");
                ReportPropertyChanged("DuracaoEm");
                OnDuracaoEmChanged();
            }
        }
        private global::System.String _DuracaoEm;
        partial void OnDuracaoEmChanging(global::System.String value);
        partial void OnDuracaoEmChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ContratoPeriodos_Contratos", "Contratos")]
        public Contratos Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "Contratos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "Contratos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Contratos> ContratosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Contratos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "Contratos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Contratos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Contratos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Contratos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="iDUnidade">Initial value of the IDUnidade property.</param>
        /// <param name="iDTipoBolsa">Initial value of the IDTipoBolsa property.</param>
        /// <param name="referenciaBolsa">Initial value of the ReferenciaBolsa property.</param>
        /// <param name="renovavel">Initial value of the Renovavel property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static Contratos CreateContratos(global::System.Int32 id, global::System.Int32 iDRecursoHumano, global::System.Int32 iDUnidade, global::System.Int32 iDTipoBolsa, global::System.String referenciaBolsa, global::System.Boolean renovavel, global::System.Boolean activo)
        {
            Contratos contratos = new Contratos();
            contratos.ID = id;
            contratos.IDRecursoHumano = iDRecursoHumano;
            contratos.IDUnidade = iDUnidade;
            contratos.IDTipoBolsa = iDTipoBolsa;
            contratos.ReferenciaBolsa = referenciaBolsa;
            contratos.Renovavel = renovavel;
            contratos.Activo = activo;
            return contratos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProjecto;
        partial void OnIDProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDOrientador
        {
            get
            {
                return _IDOrientador;
            }
            set
            {
                OnIDOrientadorChanging(value);
                ReportPropertyChanging("IDOrientador");
                _IDOrientador = StructuralObject.SetValidValue(value, "IDOrientador");
                ReportPropertyChanged("IDOrientador");
                OnIDOrientadorChanged();
            }
        }
        private Nullable<global::System.Int32> _IDOrientador;
        partial void OnIDOrientadorChanging(Nullable<global::System.Int32> value);
        partial void OnIDOrientadorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDUnidade
        {
            get
            {
                return _IDUnidade;
            }
            set
            {
                OnIDUnidadeChanging(value);
                ReportPropertyChanging("IDUnidade");
                _IDUnidade = StructuralObject.SetValidValue(value, "IDUnidade");
                ReportPropertyChanged("IDUnidade");
                OnIDUnidadeChanged();
            }
        }
        private global::System.Int32 _IDUnidade;
        partial void OnIDUnidadeChanging(global::System.Int32 value);
        partial void OnIDUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTipoBolsa
        {
            get
            {
                return _IDTipoBolsa;
            }
            set
            {
                OnIDTipoBolsaChanging(value);
                ReportPropertyChanging("IDTipoBolsa");
                _IDTipoBolsa = StructuralObject.SetValidValue(value, "IDTipoBolsa");
                ReportPropertyChanged("IDTipoBolsa");
                OnIDTipoBolsaChanged();
            }
        }
        private global::System.Int32 _IDTipoBolsa;
        partial void OnIDTipoBolsaChanging(global::System.Int32 value);
        partial void OnIDTipoBolsaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ReferenciaBolsa
        {
            get
            {
                return _ReferenciaBolsa;
            }
            set
            {
                OnReferenciaBolsaChanging(value);
                ReportPropertyChanging("ReferenciaBolsa");
                _ReferenciaBolsa = StructuralObject.SetValidValue(value, false, "ReferenciaBolsa");
                ReportPropertyChanged("ReferenciaBolsa");
                OnReferenciaBolsaChanged();
            }
        }
        private global::System.String _ReferenciaBolsa;
        partial void OnReferenciaBolsaChanging(global::System.String value);
        partial void OnReferenciaBolsaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Renovavel
        {
            get
            {
                return _Renovavel;
            }
            set
            {
                OnRenovavelChanging(value);
                ReportPropertyChanging("Renovavel");
                _Renovavel = StructuralObject.SetValidValue(value, "Renovavel");
                ReportPropertyChanged("Renovavel");
                OnRenovavelChanged();
            }
        }
        private global::System.Boolean _Renovavel;
        partial void OnRenovavelChanging(global::System.Boolean value);
        partial void OnRenovavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDMotivoTermino
        {
            get
            {
                return _IDMotivoTermino;
            }
            set
            {
                OnIDMotivoTerminoChanging(value);
                ReportPropertyChanging("IDMotivoTermino");
                _IDMotivoTermino = StructuralObject.SetValidValue(value, "IDMotivoTermino");
                ReportPropertyChanged("IDMotivoTermino");
                OnIDMotivoTerminoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDMotivoTermino;
        partial void OnIDMotivoTerminoChanging(Nullable<global::System.Int32> value);
        partial void OnIDMotivoTerminoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRescisao
        {
            get
            {
                return _DataRescisao;
            }
            set
            {
                OnDataRescisaoChanging(value);
                ReportPropertyChanging("DataRescisao");
                _DataRescisao = StructuralObject.SetValidValue(value, "DataRescisao");
                ReportPropertyChanged("DataRescisao");
                OnDataRescisaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRescisao;
        partial void OnDataRescisaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRescisaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Dimensao
        {
            get
            {
                return _Dimensao;
            }
            set
            {
                OnDimensaoChanging(value);
                ReportPropertyChanging("Dimensao");
                _Dimensao = StructuralObject.SetValidValue(value, true, "Dimensao");
                ReportPropertyChanged("Dimensao");
                OnDimensaoChanged();
            }
        }
        private global::System.String _Dimensao;
        partial void OnDimensaoChanging(global::System.String value);
        partial void OnDimensaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ContratoAnexos_Contratos", "ContratoAnexos")]
        public EntityCollection<ContratoAnexos> ContratoAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ContratoAnexos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "ContratoAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ContratoAnexos>("GestaoProjectosModel.FK_ContratoAnexos_Contratos", "ContratoAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_MotivoTermino", "MotivoTermino")]
        public MotivoTermino MotivoTermino
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MotivoTermino>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "MotivoTermino").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MotivoTermino>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "MotivoTermino").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<MotivoTermino> MotivoTerminoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MotivoTermino>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "MotivoTermino");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<MotivoTermino>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "MotivoTermino", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano1", "RecursoHumano")]
        public RecursoHumano RecursoHumano1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumano1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_TipoBolsa", "TipoBolsa")]
        public TipoBolsa TipoBolsa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "TipoBolsa").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "TipoBolsa").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoBolsa> TipoBolsaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "TipoBolsa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "TipoBolsa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_Unidades", "Unidades")]
        public Unidades Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Contratos_Unidades", "Unidades").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Contratos_Unidades", "Unidades").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Unidades> UnidadesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_Contratos_Unidades", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Unidades>("GestaoProjectosModel.FK_Contratos_Unidades", "Unidades", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_Contratos", "Seguros")]
        public EntityCollection<Seguros> Seguros
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_Contratos", "Seguros");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_Contratos", "Seguros", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ContratoPeriodos_Contratos", "ContratoPeriodos")]
        public EntityCollection<ContratoPeriodos> ContratoPeriodos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ContratoPeriodos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "ContratoPeriodos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ContratoPeriodos>("GestaoProjectosModel.FK_ContratoPeriodos_Contratos", "ContratoPeriodos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Contratos_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Contratos_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Contratos_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_Contratos_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Despesas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Despesas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Despesas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="descricaoDespesa">Initial value of the DescricaoDespesa property.</param>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        public static Despesas CreateDespesas(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao, global::System.Int32 iDRubrica, global::System.String descricaoDespesa, global::System.Int32 iDEstado)
        {
            Despesas despesas = new Despesas();
            despesas.ID = id;
            despesas.IDProjecto = iDProjecto;
            despesas.IDInstituicao = iDInstituicao;
            despesas.IDRubrica = iDRubrica;
            despesas.DescricaoDespesa = descricaoDespesa;
            despesas.IDEstado = iDEstado;
            return despesas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                OnIDRubricaChanging(value);
                ReportPropertyChanging("IDRubrica");
                _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                ReportPropertyChanged("IDRubrica");
                OnIDRubricaChanged();
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoDespesa
        {
            get
            {
                return _DescricaoDespesa;
            }
            set
            {
                OnDescricaoDespesaChanging(value);
                ReportPropertyChanging("DescricaoDespesa");
                _DescricaoDespesa = StructuralObject.SetValidValue(value, false, "DescricaoDespesa");
                ReportPropertyChanged("DescricaoDespesa");
                OnDescricaoDespesaChanged();
            }
        }
        private global::System.String _DescricaoDespesa;
        partial void OnDescricaoDespesaChanging(global::System.String value);
        partial void OnDescricaoDespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NIFFornecedor
        {
            get
            {
                return _NIFFornecedor;
            }
            set
            {
                OnNIFFornecedorChanging(value);
                ReportPropertyChanging("NIFFornecedor");
                _NIFFornecedor = StructuralObject.SetValidValue(value, true, "NIFFornecedor");
                ReportPropertyChanged("NIFFornecedor");
                OnNIFFornecedorChanged();
            }
        }
        private global::System.String _NIFFornecedor;
        partial void OnNIFFornecedorChanging(global::System.String value);
        partial void OnNIFFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFornecedor
        {
            get
            {
                return _NomeFornecedor;
            }
            set
            {
                OnNomeFornecedorChanging(value);
                ReportPropertyChanging("NomeFornecedor");
                _NomeFornecedor = StructuralObject.SetValidValue(value, true, "NomeFornecedor");
                ReportPropertyChanged("NomeFornecedor");
                OnNomeFornecedorChanged();
            }
        }
        private global::System.String _NomeFornecedor;
        partial void OnNomeFornecedorChanging(global::System.String value);
        partial void OnNomeFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DespesaNumeroDocumento
        {
            get
            {
                return _DespesaNumeroDocumento;
            }
            set
            {
                OnDespesaNumeroDocumentoChanging(value);
                ReportPropertyChanging("DespesaNumeroDocumento");
                _DespesaNumeroDocumento = StructuralObject.SetValidValue(value, true, "DespesaNumeroDocumento");
                ReportPropertyChanged("DespesaNumeroDocumento");
                OnDespesaNumeroDocumentoChanged();
            }
        }
        private global::System.String _DespesaNumeroDocumento;
        partial void OnDespesaNumeroDocumentoChanging(global::System.String value);
        partial void OnDespesaNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDDespesaTipoDocumento
        {
            get
            {
                return _IDDespesaTipoDocumento;
            }
            set
            {
                OnIDDespesaTipoDocumentoChanging(value);
                ReportPropertyChanging("IDDespesaTipoDocumento");
                _IDDespesaTipoDocumento = StructuralObject.SetValidValue(value, "IDDespesaTipoDocumento");
                ReportPropertyChanged("IDDespesaTipoDocumento");
                OnIDDespesaTipoDocumentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDDespesaTipoDocumento;
        partial void OnIDDespesaTipoDocumentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDDespesaTipoDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DespesaDataDocumento
        {
            get
            {
                return _DespesaDataDocumento;
            }
            set
            {
                OnDespesaDataDocumentoChanging(value);
                ReportPropertyChanging("DespesaDataDocumento");
                _DespesaDataDocumento = StructuralObject.SetValidValue(value, "DespesaDataDocumento");
                ReportPropertyChanged("DespesaDataDocumento");
                OnDespesaDataDocumentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DespesaDataDocumento;
        partial void OnDespesaDataDocumentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDespesaDataDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaValor
        {
            get
            {
                return _DespesaValor;
            }
            set
            {
                OnDespesaValorChanging(value);
                ReportPropertyChanging("DespesaValor");
                _DespesaValor = StructuralObject.SetValidValue(value, "DespesaValor");
                ReportPropertyChanged("DespesaValor");
                OnDespesaValorChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaValor;
        partial void OnDespesaValorChanging(Nullable<global::System.Double> value);
        partial void OnDespesaValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaIVA
        {
            get
            {
                return _DespesaIVA;
            }
            set
            {
                OnDespesaIVAChanging(value);
                ReportPropertyChanging("DespesaIVA");
                _DespesaIVA = StructuralObject.SetValidValue(value, "DespesaIVA");
                ReportPropertyChanged("DespesaIVA");
                OnDespesaIVAChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaIVA;
        partial void OnDespesaIVAChanging(Nullable<global::System.Double> value);
        partial void OnDespesaIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DespesaAnexo
        {
            get
            {
                return _DespesaAnexo;
            }
            set
            {
                OnDespesaAnexoChanging(value);
                ReportPropertyChanging("DespesaAnexo");
                _DespesaAnexo = StructuralObject.SetValidValue(value, true, "DespesaAnexo");
                ReportPropertyChanged("DespesaAnexo");
                OnDespesaAnexoChanged();
            }
        }
        private global::System.String _DespesaAnexo;
        partial void OnDespesaAnexoChanging(global::System.String value);
        partial void OnDespesaAnexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String QuitacaoNumeroDocumento
        {
            get
            {
                return _QuitacaoNumeroDocumento;
            }
            set
            {
                OnQuitacaoNumeroDocumentoChanging(value);
                ReportPropertyChanging("QuitacaoNumeroDocumento");
                _QuitacaoNumeroDocumento = StructuralObject.SetValidValue(value, true, "QuitacaoNumeroDocumento");
                ReportPropertyChanged("QuitacaoNumeroDocumento");
                OnQuitacaoNumeroDocumentoChanged();
            }
        }
        private global::System.String _QuitacaoNumeroDocumento;
        partial void OnQuitacaoNumeroDocumentoChanging(global::System.String value);
        partial void OnQuitacaoNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDQuitacaoTipoDocumento
        {
            get
            {
                return _IDQuitacaoTipoDocumento;
            }
            set
            {
                OnIDQuitacaoTipoDocumentoChanging(value);
                ReportPropertyChanging("IDQuitacaoTipoDocumento");
                _IDQuitacaoTipoDocumento = StructuralObject.SetValidValue(value, "IDQuitacaoTipoDocumento");
                ReportPropertyChanged("IDQuitacaoTipoDocumento");
                OnIDQuitacaoTipoDocumentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDQuitacaoTipoDocumento;
        partial void OnIDQuitacaoTipoDocumentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDQuitacaoTipoDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> QuitacaoDataDocumento
        {
            get
            {
                return _QuitacaoDataDocumento;
            }
            set
            {
                OnQuitacaoDataDocumentoChanging(value);
                ReportPropertyChanging("QuitacaoDataDocumento");
                _QuitacaoDataDocumento = StructuralObject.SetValidValue(value, "QuitacaoDataDocumento");
                ReportPropertyChanged("QuitacaoDataDocumento");
                OnQuitacaoDataDocumentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _QuitacaoDataDocumento;
        partial void OnQuitacaoDataDocumentoChanging(Nullable<global::System.DateTime> value);
        partial void OnQuitacaoDataDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> QuitacaoValor
        {
            get
            {
                return _QuitacaoValor;
            }
            set
            {
                OnQuitacaoValorChanging(value);
                ReportPropertyChanging("QuitacaoValor");
                _QuitacaoValor = StructuralObject.SetValidValue(value, "QuitacaoValor");
                ReportPropertyChanged("QuitacaoValor");
                OnQuitacaoValorChanged();
            }
        }
        private Nullable<global::System.Double> _QuitacaoValor;
        partial void OnQuitacaoValorChanging(Nullable<global::System.Double> value);
        partial void OnQuitacaoValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> QuitacaoIVA
        {
            get
            {
                return _QuitacaoIVA;
            }
            set
            {
                OnQuitacaoIVAChanging(value);
                ReportPropertyChanging("QuitacaoIVA");
                _QuitacaoIVA = StructuralObject.SetValidValue(value, "QuitacaoIVA");
                ReportPropertyChanged("QuitacaoIVA");
                OnQuitacaoIVAChanged();
            }
        }
        private Nullable<global::System.Double> _QuitacaoIVA;
        partial void OnQuitacaoIVAChanging(Nullable<global::System.Double> value);
        partial void OnQuitacaoIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String QuitacaoAnexo
        {
            get
            {
                return _QuitacaoAnexo;
            }
            set
            {
                OnQuitacaoAnexoChanging(value);
                ReportPropertyChanging("QuitacaoAnexo");
                _QuitacaoAnexo = StructuralObject.SetValidValue(value, true, "QuitacaoAnexo");
                ReportPropertyChanged("QuitacaoAnexo");
                OnQuitacaoAnexoChanged();
            }
        }
        private global::System.String _QuitacaoAnexo;
        partial void OnQuitacaoAnexoChanging(global::System.String value);
        partial void OnQuitacaoAnexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPOC
        {
            get
            {
                return _CodigoPOC;
            }
            set
            {
                OnCodigoPOCChanging(value);
                ReportPropertyChanging("CodigoPOC");
                _CodigoPOC = StructuralObject.SetValidValue(value, true, "CodigoPOC");
                ReportPropertyChanged("CodigoPOC");
                OnCodigoPOCChanged();
            }
        }
        private global::System.String _CodigoPOC;
        partial void OnCodigoPOCChanging(global::System.String value);
        partial void OnCodigoPOCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> TaxaImputacao
        {
            get
            {
                return _TaxaImputacao;
            }
            set
            {
                OnTaxaImputacaoChanging(value);
                ReportPropertyChanging("TaxaImputacao");
                _TaxaImputacao = StructuralObject.SetValidValue(value, "TaxaImputacao");
                ReportPropertyChanged("TaxaImputacao");
                OnTaxaImputacaoChanged();
            }
        }
        private Nullable<global::System.Double> _TaxaImputacao;
        partial void OnTaxaImputacaoChanging(Nullable<global::System.Double> value);
        partial void OnTaxaImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Anulada
        {
            get
            {
                return _Anulada;
            }
            set
            {
                OnAnuladaChanging(value);
                ReportPropertyChanging("Anulada");
                _Anulada = StructuralObject.SetValidValue(value, "Anulada");
                ReportPropertyChanged("Anulada");
                OnAnuladaChanged();
            }
        }
        private Nullable<global::System.Boolean> _Anulada;
        partial void OnAnuladaChanging(Nullable<global::System.Boolean> value);
        partial void OnAnuladaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPagamento
        {
            get
            {
                return _IDPagamento;
            }
            set
            {
                OnIDPagamentoChanging(value);
                ReportPropertyChanging("IDPagamento");
                _IDPagamento = StructuralObject.SetValidValue(value, "IDPagamento");
                ReportPropertyChanged("IDPagamento");
                OnIDPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPagamento;
        partial void OnIDPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataValidacao
        {
            get
            {
                return _DataValidacao;
            }
            set
            {
                OnDataValidacaoChanging(value);
                ReportPropertyChanging("DataValidacao");
                _DataValidacao = StructuralObject.SetValidValue(value, "DataValidacao");
                ReportPropertyChanged("DataValidacao");
                OnDataValidacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataValidacao;
        partial void OnDataValidacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataValidacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPDiario
        {
            get
            {
                return _ERPDiario;
            }
            set
            {
                OnERPDiarioChanging(value);
                ReportPropertyChanging("ERPDiario");
                _ERPDiario = StructuralObject.SetValidValue(value, true, "ERPDiario");
                ReportPropertyChanged("ERPDiario");
                OnERPDiarioChanged();
            }
        }
        private global::System.String _ERPDiario;
        partial void OnERPDiarioChanging(global::System.String value);
        partial void OnERPDiarioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPNReg
        {
            get
            {
                return _ERPNReg;
            }
            set
            {
                OnERPNRegChanging(value);
                ReportPropertyChanging("ERPNReg");
                _ERPNReg = StructuralObject.SetValidValue(value, true, "ERPNReg");
                ReportPropertyChanged("ERPNReg");
                OnERPNRegChanged();
            }
        }
        private global::System.String _ERPNReg;
        partial void OnERPNRegChanging(global::System.String value);
        partial void OnERPNRegChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Legada
        {
            get
            {
                return _Legada;
            }
            set
            {
                OnLegadaChanging(value);
                ReportPropertyChanging("Legada");
                _Legada = StructuralObject.SetValidValue(value, "Legada");
                ReportPropertyChanged("Legada");
                OnLegadaChanged();
            }
        }
        private Nullable<global::System.Boolean> _Legada;
        partial void OnLegadaChanging(Nullable<global::System.Boolean> value);
        partial void OnLegadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estrangeiro
        {
            get
            {
                return _Estrangeiro;
            }
            set
            {
                OnEstrangeiroChanging(value);
                ReportPropertyChanging("Estrangeiro");
                _Estrangeiro = StructuralObject.SetValidValue(value, true, "Estrangeiro");
                ReportPropertyChanged("Estrangeiro");
                OnEstrangeiroChanged();
            }
        }
        private global::System.String _Estrangeiro;
        partial void OnEstrangeiroChanging(global::System.String value);
        partial void OnEstrangeiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataContabilistica
        {
            get
            {
                return _DataContabilistica;
            }
            set
            {
                OnDataContabilisticaChanging(value);
                ReportPropertyChanging("DataContabilistica");
                _DataContabilistica = StructuralObject.SetValidValue(value, "DataContabilistica");
                ReportPropertyChanged("DataContabilistica");
                OnDataContabilisticaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataContabilistica;
        partial void OnDataContabilisticaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataContabilisticaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaTaxaIVA
        {
            get
            {
                return _DespesaTaxaIVA;
            }
            set
            {
                OnDespesaTaxaIVAChanging(value);
                ReportPropertyChanging("DespesaTaxaIVA");
                _DespesaTaxaIVA = StructuralObject.SetValidValue(value, "DespesaTaxaIVA");
                ReportPropertyChanged("DespesaTaxaIVA");
                OnDespesaTaxaIVAChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaTaxaIVA;
        partial void OnDespesaTaxaIVAChanging(Nullable<global::System.Double> value);
        partial void OnDespesaTaxaIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorConsiderar
        {
            get
            {
                return _ValorConsiderar;
            }
            set
            {
                OnValorConsiderarChanging(value);
                ReportPropertyChanging("ValorConsiderar");
                _ValorConsiderar = StructuralObject.SetValidValue(value, "ValorConsiderar");
                ReportPropertyChanged("ValorConsiderar");
                OnValorConsiderarChanged();
            }
        }
        private Nullable<global::System.Double> _ValorConsiderar;
        partial void OnValorConsiderarChanging(Nullable<global::System.Double> value);
        partial void OnValorConsiderarChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorReembolsado
        {
            get
            {
                return _ValorReembolsado;
            }
            set
            {
                OnValorReembolsadoChanging(value);
                ReportPropertyChanging("ValorReembolsado");
                _ValorReembolsado = StructuralObject.SetValidValue(value, "ValorReembolsado");
                ReportPropertyChanged("ValorReembolsado");
                OnValorReembolsadoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorReembolsado;
        partial void OnValorReembolsadoChanging(Nullable<global::System.Double> value);
        partial void OnValorReembolsadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> DespesaRegistadaDFP
        {
            get
            {
                return _DespesaRegistadaDFP;
            }
            set
            {
                OnDespesaRegistadaDFPChanging(value);
                ReportPropertyChanging("DespesaRegistadaDFP");
                _DespesaRegistadaDFP = StructuralObject.SetValidValue(value, "DespesaRegistadaDFP");
                ReportPropertyChanged("DespesaRegistadaDFP");
                OnDespesaRegistadaDFPChanged();
            }
        }
        private Nullable<global::System.Boolean> _DespesaRegistadaDFP;
        partial void OnDespesaRegistadaDFPChanging(Nullable<global::System.Boolean> value);
        partial void OnDespesaRegistadaDFPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPDescMovCTB
        {
            get
            {
                return _ERPDescMovCTB;
            }
            set
            {
                OnERPDescMovCTBChanging(value);
                ReportPropertyChanging("ERPDescMovCTB");
                _ERPDescMovCTB = StructuralObject.SetValidValue(value, true, "ERPDescMovCTB");
                ReportPropertyChanged("ERPDescMovCTB");
                OnERPDescMovCTBChanged();
            }
        }
        private global::System.String _ERPDescMovCTB;
        partial void OnERPDescMovCTBChanging(global::System.String value);
        partial void OnERPDescMovCTBChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, true, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDDSP
        {
            get
            {
                return _IDDSP;
            }
            set
            {
                OnIDDSPChanging(value);
                ReportPropertyChanging("IDDSP");
                _IDDSP = StructuralObject.SetValidValue(value, "IDDSP");
                ReportPropertyChanged("IDDSP");
                OnIDDSPChanged();
            }
        }
        private Nullable<global::System.Int32> _IDDSP;
        partial void OnIDDSPChanging(Nullable<global::System.Int32> value);
        partial void OnIDDSPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ImputacaoDespesa
        {
            get
            {
                return _ImputacaoDespesa;
            }
            set
            {
                OnImputacaoDespesaChanging(value);
                ReportPropertyChanging("ImputacaoDespesa");
                _ImputacaoDespesa = StructuralObject.SetValidValue(value, "ImputacaoDespesa");
                ReportPropertyChanged("ImputacaoDespesa");
                OnImputacaoDespesaChanged();
            }
        }
        private Nullable<global::System.Boolean> _ImputacaoDespesa;
        partial void OnImputacaoDespesaChanging(Nullable<global::System.Boolean> value);
        partial void OnImputacaoDespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorTotalTransferencia
        {
            get
            {
                return _ValorTotalTransferencia;
            }
            set
            {
                OnValorTotalTransferenciaChanging(value);
                ReportPropertyChanging("ValorTotalTransferencia");
                _ValorTotalTransferencia = StructuralObject.SetValidValue(value, "ValorTotalTransferencia");
                ReportPropertyChanged("ValorTotalTransferencia");
                OnValorTotalTransferenciaChanged();
            }
        }
        private Nullable<global::System.Double> _ValorTotalTransferencia;
        partial void OnValorTotalTransferenciaChanging(Nullable<global::System.Double> value);
        partial void OnValorTotalTransferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoProcedimentoPublico
        {
            get
            {
                return _IDTipoProcedimentoPublico;
            }
            set
            {
                OnIDTipoProcedimentoPublicoChanging(value);
                ReportPropertyChanging("IDTipoProcedimentoPublico");
                _IDTipoProcedimentoPublico = StructuralObject.SetValidValue(value, "IDTipoProcedimentoPublico");
                ReportPropertyChanged("IDTipoProcedimentoPublico");
                OnIDTipoProcedimentoPublicoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoProcedimentoPublico;
        partial void OnIDTipoProcedimentoPublicoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoProcedimentoPublicoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataDecisaoContrato
        {
            get
            {
                return _DataDecisaoContrato;
            }
            set
            {
                OnDataDecisaoContratoChanging(value);
                ReportPropertyChanging("DataDecisaoContrato");
                _DataDecisaoContrato = StructuralObject.SetValidValue(value, "DataDecisaoContrato");
                ReportPropertyChanged("DataDecisaoContrato");
                OnDataDecisaoContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataDecisaoContrato;
        partial void OnDataDecisaoContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataDecisaoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataContrato
        {
            get
            {
                return _DataContrato;
            }
            set
            {
                OnDataContratoChanging(value);
                ReportPropertyChanging("DataContrato");
                _DataContrato = StructuralObject.SetValidValue(value, "DataContrato");
                ReportPropertyChanged("DataContrato");
                OnDataContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataContrato;
        partial void OnDataContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> AmorticacaoTaxa
        {
            get
            {
                return _AmorticacaoTaxa;
            }
            set
            {
                OnAmorticacaoTaxaChanging(value);
                ReportPropertyChanging("AmorticacaoTaxa");
                _AmorticacaoTaxa = StructuralObject.SetValidValue(value, "AmorticacaoTaxa");
                ReportPropertyChanged("AmorticacaoTaxa");
                OnAmorticacaoTaxaChanged();
            }
        }
        private Nullable<global::System.Decimal> _AmorticacaoTaxa;
        partial void OnAmorticacaoTaxaChanging(Nullable<global::System.Decimal> value);
        partial void OnAmorticacaoTaxaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> AmorticacaoInicioAfetacao
        {
            get
            {
                return _AmorticacaoInicioAfetacao;
            }
            set
            {
                OnAmorticacaoInicioAfetacaoChanging(value);
                ReportPropertyChanging("AmorticacaoInicioAfetacao");
                _AmorticacaoInicioAfetacao = StructuralObject.SetValidValue(value, "AmorticacaoInicioAfetacao");
                ReportPropertyChanged("AmorticacaoInicioAfetacao");
                OnAmorticacaoInicioAfetacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _AmorticacaoInicioAfetacao;
        partial void OnAmorticacaoInicioAfetacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnAmorticacaoInicioAfetacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> AmorticacaoFimAfetacaoProjecto
        {
            get
            {
                return _AmorticacaoFimAfetacaoProjecto;
            }
            set
            {
                OnAmorticacaoFimAfetacaoProjectoChanging(value);
                ReportPropertyChanging("AmorticacaoFimAfetacaoProjecto");
                _AmorticacaoFimAfetacaoProjecto = StructuralObject.SetValidValue(value, "AmorticacaoFimAfetacaoProjecto");
                ReportPropertyChanged("AmorticacaoFimAfetacaoProjecto");
                OnAmorticacaoFimAfetacaoProjectoChanged();
            }
        }
        private Nullable<global::System.DateTime> _AmorticacaoFimAfetacaoProjecto;
        partial void OnAmorticacaoFimAfetacaoProjectoChanging(Nullable<global::System.DateTime> value);
        partial void OnAmorticacaoFimAfetacaoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorContratoSemIVA
        {
            get
            {
                return _ValorContratoSemIVA;
            }
            set
            {
                OnValorContratoSemIVAChanging(value);
                ReportPropertyChanging("ValorContratoSemIVA");
                _ValorContratoSemIVA = StructuralObject.SetValidValue(value, "ValorContratoSemIVA");
                ReportPropertyChanged("ValorContratoSemIVA");
                OnValorContratoSemIVAChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorContratoSemIVA;
        partial void OnValorContratoSemIVAChanging(Nullable<global::System.Decimal> value);
        partial void OnValorContratoSemIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorContratoComIVA
        {
            get
            {
                return _ValorContratoComIVA;
            }
            set
            {
                OnValorContratoComIVAChanging(value);
                ReportPropertyChanging("ValorContratoComIVA");
                _ValorContratoComIVA = StructuralObject.SetValidValue(value, "ValorContratoComIVA");
                ReportPropertyChanged("ValorContratoComIVA");
                OnValorContratoComIVAChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorContratoComIVA;
        partial void OnValorContratoComIVAChanging(Nullable<global::System.Decimal> value);
        partial void OnValorContratoComIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroContrato
        {
            get
            {
                return _NumeroContrato;
            }
            set
            {
                OnNumeroContratoChanging(value);
                ReportPropertyChanging("NumeroContrato");
                _NumeroContrato = StructuralObject.SetValidValue(value, true, "NumeroContrato");
                ReportPropertyChanged("NumeroContrato");
                OnNumeroContratoChanged();
            }
        }
        private global::System.String _NumeroContrato;
        partial void OnNumeroContratoChanging(global::System.String value);
        partial void OnNumeroContratoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Despesas_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Despesas_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Despesas_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_Despesas_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Despesas_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Despesas_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Despesas_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_Despesas_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> PagamentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Despesas_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Despesas_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Despesas_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_Despesas_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento", "TipoDocumento")]
        public TipoDocumento TipoDocumento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "TipoDocumento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "TipoDocumento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoDocumento> TipoDocumentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "TipoDocumento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "TipoDocumento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento1", "TipoDocumento")]
        public TipoDocumento TipoDocumento1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "TipoDocumento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "TipoDocumento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoDocumento> TipoDocumento1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "TipoDocumento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoDocumento>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "TipoDocumento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_Despesas", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "InternoMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica")]
        public TiposProcedimentoContratacaoPublica TiposProcedimentoContratacaoPublica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposProcedimentoContratacaoPublica>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposProcedimentoContratacaoPublica>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TiposProcedimentoContratacaoPublica> TiposProcedimentoContratacaoPublicaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposProcedimentoContratacaoPublica>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TiposProcedimentoContratacaoPublica>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "TiposProcedimentoContratacaoPublica", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="EntidadeFinanciadora")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class EntidadeFinanciadora : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new EntidadeFinanciadora object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="tipoEntidade">Initial value of the TipoEntidade property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="morada">Initial value of the Morada property.</param>
        /// <param name="localidade">Initial value of the Localidade property.</param>
        /// <param name="codigoPostal">Initial value of the CodigoPostal property.</param>
        /// <param name="pais">Initial value of the Pais property.</param>
        /// <param name="uRL">Initial value of the URL property.</param>
        /// <param name="nIF">Initial value of the NIF property.</param>
        /// <param name="instituicaoAnfitria">Initial value of the InstituicaoAnfitria property.</param>
        public static EntidadeFinanciadora CreateEntidadeFinanciadora(global::System.Int32 id, global::System.Boolean activo, global::System.String tipoEntidade, global::System.String nome, global::System.String sigla, global::System.String morada, global::System.String localidade, global::System.String codigoPostal, global::System.String pais, global::System.String uRL, global::System.String nIF, global::System.Boolean instituicaoAnfitria)
        {
            EntidadeFinanciadora entidadeFinanciadora = new EntidadeFinanciadora();
            entidadeFinanciadora.ID = id;
            entidadeFinanciadora.Activo = activo;
            entidadeFinanciadora.TipoEntidade = tipoEntidade;
            entidadeFinanciadora.Nome = nome;
            entidadeFinanciadora.Sigla = sigla;
            entidadeFinanciadora.Morada = morada;
            entidadeFinanciadora.Localidade = localidade;
            entidadeFinanciadora.CodigoPostal = codigoPostal;
            entidadeFinanciadora.Pais = pais;
            entidadeFinanciadora.URL = uRL;
            entidadeFinanciadora.NIF = nIF;
            entidadeFinanciadora.InstituicaoAnfitria = instituicaoAnfitria;
            return entidadeFinanciadora;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TipoEntidade
        {
            get
            {
                return _TipoEntidade;
            }
            set
            {
                OnTipoEntidadeChanging(value);
                ReportPropertyChanging("TipoEntidade");
                _TipoEntidade = StructuralObject.SetValidValue(value, false, "TipoEntidade");
                ReportPropertyChanged("TipoEntidade");
                OnTipoEntidadeChanged();
            }
        }
        private global::System.String _TipoEntidade;
        partial void OnTipoEntidadeChanging(global::System.String value);
        partial void OnTipoEntidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, false, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Localidade
        {
            get
            {
                return _Localidade;
            }
            set
            {
                OnLocalidadeChanging(value);
                ReportPropertyChanging("Localidade");
                _Localidade = StructuralObject.SetValidValue(value, false, "Localidade");
                ReportPropertyChanged("Localidade");
                OnLocalidadeChanged();
            }
        }
        private global::System.String _Localidade;
        partial void OnLocalidadeChanging(global::System.String value);
        partial void OnLocalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, false, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Pais
        {
            get
            {
                return _Pais;
            }
            set
            {
                OnPaisChanging(value);
                ReportPropertyChanging("Pais");
                _Pais = StructuralObject.SetValidValue(value, false, "Pais");
                ReportPropertyChanged("Pais");
                OnPaisChanged();
            }
        }
        private global::System.String _Pais;
        partial void OnPaisChanging(global::System.String value);
        partial void OnPaisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, false, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NIF
        {
            get
            {
                return _NIF;
            }
            set
            {
                OnNIFChanging(value);
                ReportPropertyChanging("NIF");
                _NIF = StructuralObject.SetValidValue(value, false, "NIF");
                ReportPropertyChanged("NIF");
                OnNIFChanged();
            }
        }
        private global::System.String _NIF;
        partial void OnNIFChanging(global::System.String value);
        partial void OnNIFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone1
        {
            get
            {
                return _Telefone1;
            }
            set
            {
                OnTelefone1Changing(value);
                ReportPropertyChanging("Telefone1");
                _Telefone1 = StructuralObject.SetValidValue(value, true, "Telefone1");
                ReportPropertyChanged("Telefone1");
                OnTelefone1Changed();
            }
        }
        private global::System.String _Telefone1;
        partial void OnTelefone1Changing(global::System.String value);
        partial void OnTelefone1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone2
        {
            get
            {
                return _Telefone2;
            }
            set
            {
                OnTelefone2Changing(value);
                ReportPropertyChanging("Telefone2");
                _Telefone2 = StructuralObject.SetValidValue(value, true, "Telefone2");
                ReportPropertyChanged("Telefone2");
                OnTelefone2Changed();
            }
        }
        private global::System.String _Telefone2;
        partial void OnTelefone2Changing(global::System.String value);
        partial void OnTelefone2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Fax1
        {
            get
            {
                return _Fax1;
            }
            set
            {
                OnFax1Changing(value);
                ReportPropertyChanging("Fax1");
                _Fax1 = StructuralObject.SetValidValue(value, true, "Fax1");
                ReportPropertyChanged("Fax1");
                OnFax1Changed();
            }
        }
        private global::System.String _Fax1;
        partial void OnFax1Changing(global::System.String value);
        partial void OnFax1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Fax2
        {
            get
            {
                return _Fax2;
            }
            set
            {
                OnFax2Changing(value);
                ReportPropertyChanging("Fax2");
                _Fax2 = StructuralObject.SetValidValue(value, true, "Fax2");
                ReportPropertyChanged("Fax2");
                OnFax2Changed();
            }
        }
        private global::System.String _Fax2;
        partial void OnFax2Changing(global::System.String value);
        partial void OnFax2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Email
        {
            get
            {
                return _Email;
            }
            set
            {
                OnEmailChanging(value);
                ReportPropertyChanging("Email");
                _Email = StructuralObject.SetValidValue(value, true, "Email");
                ReportPropertyChanged("Email");
                OnEmailChanged();
            }
        }
        private global::System.String _Email;
        partial void OnEmailChanging(global::System.String value);
        partial void OnEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeContacto
        {
            get
            {
                return _NomeContacto;
            }
            set
            {
                OnNomeContactoChanging(value);
                ReportPropertyChanging("NomeContacto");
                _NomeContacto = StructuralObject.SetValidValue(value, true, "NomeContacto");
                ReportPropertyChanged("NomeContacto");
                OnNomeContactoChanged();
            }
        }
        private global::System.String _NomeContacto;
        partial void OnNomeContactoChanging(global::System.String value);
        partial void OnNomeContactoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneContacto1
        {
            get
            {
                return _TelefoneContacto1;
            }
            set
            {
                OnTelefoneContacto1Changing(value);
                ReportPropertyChanging("TelefoneContacto1");
                _TelefoneContacto1 = StructuralObject.SetValidValue(value, true, "TelefoneContacto1");
                ReportPropertyChanged("TelefoneContacto1");
                OnTelefoneContacto1Changed();
            }
        }
        private global::System.String _TelefoneContacto1;
        partial void OnTelefoneContacto1Changing(global::System.String value);
        partial void OnTelefoneContacto1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneContacto2
        {
            get
            {
                return _TelefoneContacto2;
            }
            set
            {
                OnTelefoneContacto2Changing(value);
                ReportPropertyChanging("TelefoneContacto2");
                _TelefoneContacto2 = StructuralObject.SetValidValue(value, true, "TelefoneContacto2");
                ReportPropertyChanged("TelefoneContacto2");
                OnTelefoneContacto2Changed();
            }
        }
        private global::System.String _TelefoneContacto2;
        partial void OnTelefoneContacto2Changing(global::System.String value);
        partial void OnTelefoneContacto2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailContacto
        {
            get
            {
                return _EmailContacto;
            }
            set
            {
                OnEmailContactoChanging(value);
                ReportPropertyChanging("EmailContacto");
                _EmailContacto = StructuralObject.SetValidValue(value, true, "EmailContacto");
                ReportPropertyChanged("EmailContacto");
                OnEmailContactoChanged();
            }
        }
        private global::System.String _EmailContacto;
        partial void OnEmailContactoChanging(global::System.String value);
        partial void OnEmailContactoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean InstituicaoAnfitria
        {
            get
            {
                return _InstituicaoAnfitria;
            }
            set
            {
                OnInstituicaoAnfitriaChanging(value);
                ReportPropertyChanging("InstituicaoAnfitria");
                _InstituicaoAnfitria = StructuralObject.SetValidValue(value, "InstituicaoAnfitria");
                ReportPropertyChanged("InstituicaoAnfitria");
                OnInstituicaoAnfitriaChanged();
            }
        }
        private global::System.Boolean _InstituicaoAnfitria;
        partial void OnInstituicaoAnfitriaChanging(global::System.Boolean value);
        partial void OnInstituicaoAnfitriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ContraFatura
        {
            get
            {
                return _ContraFatura;
            }
            set
            {
                OnContraFaturaChanging(value);
                ReportPropertyChanging("ContraFatura");
                _ContraFatura = StructuralObject.SetValidValue(value, "ContraFatura");
                ReportPropertyChanged("ContraFatura");
                OnContraFaturaChanged();
            }
        }
        private Nullable<global::System.Boolean> _ContraFatura;
        partial void OnContraFaturaChanging(Nullable<global::System.Boolean> value);
        partial void OnContraFaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> PercentagemMinimaPedidoPagamento
        {
            get
            {
                return _PercentagemMinimaPedidoPagamento;
            }
            set
            {
                OnPercentagemMinimaPedidoPagamentoChanging(value);
                ReportPropertyChanging("PercentagemMinimaPedidoPagamento");
                _PercentagemMinimaPedidoPagamento = StructuralObject.SetValidValue(value, "PercentagemMinimaPedidoPagamento");
                ReportPropertyChanged("PercentagemMinimaPedidoPagamento");
                OnPercentagemMinimaPedidoPagamentoChanged();
            }
        }
        private Nullable<global::System.Double> _PercentagemMinimaPedidoPagamento;
        partial void OnPercentagemMinimaPedidoPagamentoChanging(Nullable<global::System.Double> value);
        partial void OnPercentagemMinimaPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagDespesasContratacaoObrigatoria
        {
            get
            {
                return _FlagDespesasContratacaoObrigatoria;
            }
            set
            {
                OnFlagDespesasContratacaoObrigatoriaChanging(value);
                ReportPropertyChanging("FlagDespesasContratacaoObrigatoria");
                _FlagDespesasContratacaoObrigatoria = StructuralObject.SetValidValue(value, "FlagDespesasContratacaoObrigatoria");
                ReportPropertyChanged("FlagDespesasContratacaoObrigatoria");
                OnFlagDespesasContratacaoObrigatoriaChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagDespesasContratacaoObrigatoria;
        partial void OnFlagDespesasContratacaoObrigatoriaChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagDespesasContratacaoObrigatoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagDespesasAmortizacaoObrigatoria
        {
            get
            {
                return _FlagDespesasAmortizacaoObrigatoria;
            }
            set
            {
                OnFlagDespesasAmortizacaoObrigatoriaChanging(value);
                ReportPropertyChanging("FlagDespesasAmortizacaoObrigatoria");
                _FlagDespesasAmortizacaoObrigatoria = StructuralObject.SetValidValue(value, "FlagDespesasAmortizacaoObrigatoria");
                ReportPropertyChanged("FlagDespesasAmortizacaoObrigatoria");
                OnFlagDespesasAmortizacaoObrigatoriaChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagDespesasAmortizacaoObrigatoria;
        partial void OnFlagDespesasAmortizacaoObrigatoriaChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagDespesasAmortizacaoObrigatoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPais
        {
            get
            {
                return _IDPais;
            }
            set
            {
                OnIDPaisChanging(value);
                ReportPropertyChanging("IDPais");
                _IDPais = StructuralObject.SetValidValue(value, "IDPais");
                ReportPropertyChanged("IDPais");
                OnIDPaisChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPais;
        partial void OnIDPaisChanging(Nullable<global::System.Int32> value);
        partial void OnIDPaisChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_EntidadeFinanciadora", "CandidaturaFinanciamento")]
        public EntityCollection<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "CandidaturaFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_EntidadeFinanciadora", "CandidaturaFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ChaveImputacao_EntidadeFinanciadora", "ChaveImputacao")]
        public EntityCollection<ChaveImputacao> ChaveImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "ChaveImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ChaveImputacao>("GestaoProjectosModel.FK_ChaveImputacao_EntidadeFinanciadora", "ChaveImputacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade")]
        public TipoEntidade TipoEntidade1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEntidade>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEntidade>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoEntidade> TipoEntidade1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEntidade>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoEntidade>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "TipoEntidade", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_EntidadeFinanciadora", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_EntidadeFinanciadora", "ProgramaQuadro")]
        public EntityCollection<ProgramaQuadro> ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "ProgramaQuadro", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_EntidadeFinanciadora", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_EntidadeFinanciadora", "Recebimentos")]
        public EntityCollection<Recebimentos> Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "Recebimentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Rubricas_EntidadeFinanciadora", "Rubricas")]
        public EntityCollection<Rubricas> Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Rubricas>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Rubricas>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoBolsa_EntidadeFinanciadora", "TipoBolsa")]
        public EntityCollection<TipoBolsa> TipoBolsa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TipoBolsa>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "TipoBolsa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TipoBolsa>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "TipoBolsa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoDocumento_EntidadeFinanciadora", "TipoDocumento")]
        public EntityCollection<TipoDocumento> TipoDocumento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TipoDocumento>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "TipoDocumento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TipoDocumento>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "TipoDocumento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_EntidadeFinanciadora", "VerbasMovimento")]
        public EntityCollection<VerbasMovimento> VerbasMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "VerbasMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "VerbasMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_EntidadeFinanciadora", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_EntidadeFinanciadora", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_Paises", "Paises")]
        public Paises Paises
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "Paises").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "Paises").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Paises> PaisesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "Paises");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Paises>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "Paises", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="EntidadeProgramaML")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class EntidadeProgramaML : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new EntidadeProgramaML object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="tabela">Initial value of the Tabela property.</param>
        /// <param name="idioma">Initial value of the Idioma property.</param>
        /// <param name="iDRegisto">Initial value of the IDRegisto property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static EntidadeProgramaML CreateEntidadeProgramaML(global::System.Int32 id, global::System.String tabela, global::System.String idioma, global::System.Int32 iDRegisto, global::System.String sigla, global::System.String nome)
        {
            EntidadeProgramaML entidadeProgramaML = new EntidadeProgramaML();
            entidadeProgramaML.ID = id;
            entidadeProgramaML.Tabela = tabela;
            entidadeProgramaML.Idioma = idioma;
            entidadeProgramaML.IDRegisto = iDRegisto;
            entidadeProgramaML.Sigla = sigla;
            entidadeProgramaML.Nome = nome;
            return entidadeProgramaML;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tabela
        {
            get
            {
                return _Tabela;
            }
            set
            {
                OnTabelaChanging(value);
                ReportPropertyChanging("Tabela");
                _Tabela = StructuralObject.SetValidValue(value, false, "Tabela");
                ReportPropertyChanged("Tabela");
                OnTabelaChanged();
            }
        }
        private global::System.String _Tabela;
        partial void OnTabelaChanging(global::System.String value);
        partial void OnTabelaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Idioma
        {
            get
            {
                return _Idioma;
            }
            set
            {
                OnIdiomaChanging(value);
                ReportPropertyChanging("Idioma");
                _Idioma = StructuralObject.SetValidValue(value, false, "Idioma");
                ReportPropertyChanged("Idioma");
                OnIdiomaChanged();
            }
        }
        private global::System.String _Idioma;
        partial void OnIdiomaChanging(global::System.String value);
        partial void OnIdiomaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRegisto
        {
            get
            {
                return _IDRegisto;
            }
            set
            {
                OnIDRegistoChanging(value);
                ReportPropertyChanging("IDRegisto");
                _IDRegisto = StructuralObject.SetValidValue(value, "IDRegisto");
                ReportPropertyChanged("IDRegisto");
                OnIDRegistoChanged();
            }
        }
        private global::System.Int32 _IDRegisto;
        partial void OnIDRegistoChanging(global::System.Int32 value);
        partial void OnIDRegistoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeProgramaML_Idiomas", "Idioma")]
        public Idioma Idioma1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "Idioma").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "Idioma").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Idioma> Idioma1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Idioma>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "Idioma");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Idioma>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "Idioma", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="EntityMappings")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class EntityMappings : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new EntityMappings object.
        /// </summary>
        /// <param name="entityName">Initial value of the EntityName property.</param>
        /// <param name="entityDescription">Initial value of the EntityDescription property.</param>
        public static EntityMappings CreateEntityMappings(global::System.String entityName, global::System.String entityDescription)
        {
            EntityMappings entityMappings = new EntityMappings();
            entityMappings.EntityName = entityName;
            entityMappings.EntityDescription = entityDescription;
            return entityMappings;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String EntityName
        {
            get
            {
                return _EntityName;
            }
            set
            {
                if (_EntityName != value)
                {
                    OnEntityNameChanging(value);
                    ReportPropertyChanging("EntityName");
                    _EntityName = StructuralObject.SetValidValue(value, false, "EntityName");
                    ReportPropertyChanged("EntityName");
                    OnEntityNameChanged();
                }
            }
        }
        private global::System.String _EntityName;
        partial void OnEntityNameChanging(global::System.String value);
        partial void OnEntityNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String EntityDescription
        {
            get
            {
                return _EntityDescription;
            }
            set
            {
                OnEntityDescriptionChanging(value);
                ReportPropertyChanging("EntityDescription");
                _EntityDescription = StructuralObject.SetValidValue(value, false, "EntityDescription");
                ReportPropertyChanged("EntityDescription");
                OnEntityDescriptionChanged();
            }
        }
        private global::System.String _EntityDescription;
        partial void OnEntityDescriptionChanging(global::System.String value);
        partial void OnEntityDescriptionChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ErrosLog")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ErrosLog : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ErrosLog object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        public static ErrosLog CreateErrosLog(global::System.Int64 id)
        {
            ErrosLog errosLog = new ErrosLog();
            errosLog.ID = id;
            return errosLog;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int64 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int64 _ID;
        partial void OnIDChanging(global::System.Int64 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Utilizador
        {
            get
            {
                return _Utilizador;
            }
            set
            {
                OnUtilizadorChanging(value);
                ReportPropertyChanging("Utilizador");
                _Utilizador = StructuralObject.SetValidValue(value, true, "Utilizador");
                ReportPropertyChanged("Utilizador");
                OnUtilizadorChanged();
            }
        }
        private global::System.String _Utilizador;
        partial void OnUtilizadorChanging(global::System.String value);
        partial void OnUtilizadorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataErro
        {
            get
            {
                return _DataErro;
            }
            set
            {
                OnDataErroChanging(value);
                ReportPropertyChanging("DataErro");
                _DataErro = StructuralObject.SetValidValue(value, "DataErro");
                ReportPropertyChanged("DataErro");
                OnDataErroChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataErro;
        partial void OnDataErroChanging(Nullable<global::System.DateTime> value);
        partial void OnDataErroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Mensagem
        {
            get
            {
                return _Mensagem;
            }
            set
            {
                OnMensagemChanging(value);
                ReportPropertyChanging("Mensagem");
                _Mensagem = StructuralObject.SetValidValue(value, true, "Mensagem");
                ReportPropertyChanged("Mensagem");
                OnMensagemChanged();
            }
        }
        private global::System.String _Mensagem;
        partial void OnMensagemChanging(global::System.String value);
        partial void OnMensagemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String StackTrace
        {
            get
            {
                return _StackTrace;
            }
            set
            {
                OnStackTraceChanging(value);
                ReportPropertyChanging("StackTrace");
                _StackTrace = StructuralObject.SetValidValue(value, true, "StackTrace");
                ReportPropertyChanged("StackTrace");
                OnStackTraceChanged();
            }
        }
        private global::System.String _StackTrace;
        partial void OnStackTraceChanging(global::System.String value);
        partial void OnStackTraceChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Estados")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Estados : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Estados object.
        /// </summary>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        /// <param name="codigoEstado">Initial value of the CodigoEstado property.</param>
        /// <param name="tipoEstado">Initial value of the TipoEstado property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static Estados CreateEstados(global::System.Int32 iDEstado, global::System.String codigoEstado, global::System.String tipoEstado, global::System.String nome)
        {
            Estados estados = new Estados();
            estados.IDEstado = iDEstado;
            estados.CodigoEstado = codigoEstado;
            estados.TipoEstado = tipoEstado;
            estados.Nome = nome;
            return estados;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                if (_IDEstado != value)
                {
                    OnIDEstadoChanging(value);
                    ReportPropertyChanging("IDEstado");
                    _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                    ReportPropertyChanged("IDEstado");
                    OnIDEstadoChanged();
                }
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoEstado
        {
            get
            {
                return _CodigoEstado;
            }
            set
            {
                OnCodigoEstadoChanging(value);
                ReportPropertyChanging("CodigoEstado");
                _CodigoEstado = StructuralObject.SetValidValue(value, false, "CodigoEstado");
                ReportPropertyChanged("CodigoEstado");
                OnCodigoEstadoChanged();
            }
        }
        private global::System.String _CodigoEstado;
        partial void OnCodigoEstadoChanging(global::System.String value);
        partial void OnCodigoEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TipoEstado
        {
            get
            {
                return _TipoEstado;
            }
            set
            {
                OnTipoEstadoChanging(value);
                ReportPropertyChanging("TipoEstado");
                _TipoEstado = StructuralObject.SetValidValue(value, false, "TipoEstado");
                ReportPropertyChanged("TipoEstado");
                OnTipoEstadoChanged();
            }
        }
        private global::System.String _TipoEstado;
        partial void OnTipoEstadoChanging(global::System.String value);
        partial void OnTipoEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Color
        {
            get
            {
                return _Color;
            }
            set
            {
                OnColorChanging(value);
                ReportPropertyChanging("Color");
                _Color = StructuralObject.SetValidValue(value, true, "Color");
                ReportPropertyChanged("Color");
                OnColorChanged();
            }
        }
        private global::System.String _Color;
        partial void OnColorChanging(global::System.String value);
        partial void OnColorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> EstadoInicial
        {
            get
            {
                return _EstadoInicial;
            }
            set
            {
                OnEstadoInicialChanging(value);
                ReportPropertyChanging("EstadoInicial");
                _EstadoInicial = StructuralObject.SetValidValue(value, "EstadoInicial");
                ReportPropertyChanged("EstadoInicial");
                OnEstadoInicialChanged();
            }
        }
        private Nullable<global::System.Boolean> _EstadoInicial;
        partial void OnEstadoInicialChanging(Nullable<global::System.Boolean> value);
        partial void OnEstadoInicialChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> EstadoFinal
        {
            get
            {
                return _EstadoFinal;
            }
            set
            {
                OnEstadoFinalChanging(value);
                ReportPropertyChanging("EstadoFinal");
                _EstadoFinal = StructuralObject.SetValidValue(value, "EstadoFinal");
                ReportPropertyChanged("EstadoFinal");
                OnEstadoFinalChanged();
            }
        }
        private Nullable<global::System.Boolean> _EstadoFinal;
        partial void OnEstadoFinalChanging(Nullable<global::System.Boolean> value);
        partial void OnEstadoFinalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sucessores
        {
            get
            {
                return _Sucessores;
            }
            set
            {
                OnSucessoresChanging(value);
                ReportPropertyChanging("Sucessores");
                _Sucessores = StructuralObject.SetValidValue(value, true, "Sucessores");
                ReportPropertyChanged("Sucessores");
                OnSucessoresChanged();
            }
        }
        private global::System.String _Sucessores;
        partial void OnSucessoresChanging(global::System.String value);
        partial void OnSucessoresChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> UnidInvPodeCorrigir
        {
            get
            {
                return _UnidInvPodeCorrigir;
            }
            set
            {
                OnUnidInvPodeCorrigirChanging(value);
                ReportPropertyChanging("UnidInvPodeCorrigir");
                _UnidInvPodeCorrigir = StructuralObject.SetValidValue(value, "UnidInvPodeCorrigir");
                ReportPropertyChanged("UnidInvPodeCorrigir");
                OnUnidInvPodeCorrigirChanged();
            }
        }
        private Nullable<global::System.Boolean> _UnidInvPodeCorrigir;
        partial void OnUnidInvPodeCorrigirChanging(Nullable<global::System.Boolean> value);
        partial void OnUnidInvPodeCorrigirChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> UnidValidPodeCorrigir
        {
            get
            {
                return _UnidValidPodeCorrigir;
            }
            set
            {
                OnUnidValidPodeCorrigirChanging(value);
                ReportPropertyChanging("UnidValidPodeCorrigir");
                _UnidValidPodeCorrigir = StructuralObject.SetValidValue(value, "UnidValidPodeCorrigir");
                ReportPropertyChanged("UnidValidPodeCorrigir");
                OnUnidValidPodeCorrigirChanged();
            }
        }
        private Nullable<global::System.Boolean> _UnidValidPodeCorrigir;
        partial void OnUnidValidPodeCorrigirChanging(Nullable<global::System.Boolean> value);
        partial void OnUnidValidPodeCorrigirChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Estados", "SeguroPagamento")]
        public EntityCollection<SeguroPagamento> SeguroPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SeguroPagamento>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "SeguroPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SeguroPagamento>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "SeguroPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Adiantamento_Estados", "Adiantamento")]
        public EntityCollection<Adiantamento> Adiantamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Adiantamento>("GestaoProjectosModel.FK_Adiantamento_Estados", "Adiantamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Adiantamento>("GestaoProjectosModel.FK_Adiantamento_Estados", "Adiantamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Estados", "PagamentoEstado")]
        public EntityCollection<PagamentoEstado> PagamentoEstado
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentoEstado>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "PagamentoEstado");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentoEstado>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "PagamentoEstado", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEstados_Estados", "CandidaturaEstados")]
        public EntityCollection<CandidaturaEstados> CandidaturaEstados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEstados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "CandidaturaEstados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEstados>("GestaoProjectosModel.FK_CandidaturaEstados_Estados", "CandidaturaEstados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoEstado_Estados", "AdiantamentoEstado")]
        public EntityCollection<AdiantamentoEstado> AdiantamentoEstado
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdiantamentoEstado>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "AdiantamentoEstado");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdiantamentoEstado>("GestaoProjectosModel.FK_AdiantamentoEstado_Estados", "AdiantamentoEstado", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Estados", "PagamentosParticipantes")]
        public EntityCollection<PagamentosParticipantes> PagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "PagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "PagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Estados", "PedidosContraFaturas")]
        public EntityCollection<PedidosContraFaturas> PedidosContraFaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "PedidosContraFaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "PedidosContraFaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Estados", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Estados", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Estados", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Estados", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Estados", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Estados", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_Estados", "Projectos")]
        public EntityCollection<Projectos> Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_Estados", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_Estados", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Estados", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Estados", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Estados", "Despesas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="EstadoTimesheet")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class EstadoTimesheet : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new EstadoTimesheet object.
        /// </summary>
        /// <param name="iDEstadoTimesheet">Initial value of the IDEstadoTimesheet property.</param>
        /// <param name="tipoEstadoTimesheet">Initial value of the TipoEstadoTimesheet property.</param>
        public static EstadoTimesheet CreateEstadoTimesheet(global::System.Int32 iDEstadoTimesheet, global::System.String tipoEstadoTimesheet)
        {
            EstadoTimesheet estadoTimesheet = new EstadoTimesheet();
            estadoTimesheet.IDEstadoTimesheet = iDEstadoTimesheet;
            estadoTimesheet.TipoEstadoTimesheet = tipoEstadoTimesheet;
            return estadoTimesheet;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstadoTimesheet
        {
            get
            {
                return _IDEstadoTimesheet;
            }
            set
            {
                if (_IDEstadoTimesheet != value)
                {
                    OnIDEstadoTimesheetChanging(value);
                    ReportPropertyChanging("IDEstadoTimesheet");
                    _IDEstadoTimesheet = StructuralObject.SetValidValue(value, "IDEstadoTimesheet");
                    ReportPropertyChanged("IDEstadoTimesheet");
                    OnIDEstadoTimesheetChanged();
                }
            }
        }
        private global::System.Int32 _IDEstadoTimesheet;
        partial void OnIDEstadoTimesheetChanging(global::System.Int32 value);
        partial void OnIDEstadoTimesheetChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TipoEstadoTimesheet
        {
            get
            {
                return _TipoEstadoTimesheet;
            }
            set
            {
                OnTipoEstadoTimesheetChanging(value);
                ReportPropertyChanging("TipoEstadoTimesheet");
                _TipoEstadoTimesheet = StructuralObject.SetValidValue(value, false, "TipoEstadoTimesheet");
                ReportPropertyChanged("TipoEstadoTimesheet");
                OnTipoEstadoTimesheetChanged();
            }
        }
        private global::System.String _TipoEstadoTimesheet;
        partial void OnTipoEstadoTimesheetChanging(global::System.String value);
        partial void OnTipoEstadoTimesheetChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EstadoTimesheet_EstadoTimesheet", "ListagemTimesheet")]
        public EntityCollection<ListagemTimesheet> ListagemTimesheets
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ListagemTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "ListagemTimesheet");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ListagemTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "ListagemTimesheet", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="FonteFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class FonteFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new FonteFinanciamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        public static FonteFinanciamento CreateFonteFinanciamento(global::System.Int32 id, global::System.Int32 ano, global::System.String codigo, global::System.String descricao)
        {
            FonteFinanciamento fonteFinanciamento = new FonteFinanciamento();
            fonteFinanciamento.ID = id;
            fonteFinanciamento.Ano = ano;
            fonteFinanciamento.Codigo = codigo;
            fonteFinanciamento.Descricao = descricao;
            return fonteFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                OnCodigoChanging(value);
                ReportPropertyChanging("Codigo");
                _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                ReportPropertyChanged("Codigo");
                OnCodigoChanged();
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Funcao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Funcao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Funcao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        public static Funcao CreateFuncao(global::System.Int32 id, global::System.String nome, global::System.String sigla)
        {
            Funcao funcao = new Funcao();
            funcao.ID = id;
            funcao.Nome = nome;
            funcao.Sigla = sigla;
            return funcao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagIR
        {
            get
            {
                return _FlagIR;
            }
            set
            {
                OnFlagIRChanging(value);
                ReportPropertyChanging("FlagIR");
                _FlagIR = StructuralObject.SetValidValue(value, "FlagIR");
                ReportPropertyChanged("FlagIR");
                OnFlagIRChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagIR;
        partial void OnFlagIRChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagIRChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoFuncao", "CandidaturaEquipa")]
        public EntityCollection<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "CandidaturaEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoFuncao", "CandidaturaEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoFuncao", "ProjectoEquipa")]
        public EntityCollection<ProjectoEquipa> ProjectoEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "ProjectoEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "ProjectoEquipa", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="FundoFinanciamentoAgregacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class FundoFinanciamentoAgregacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new FundoFinanciamentoAgregacao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDAgregacao">Initial value of the IDAgregacao property.</param>
        /// <param name="iDFundoFinanciamento">Initial value of the IDFundoFinanciamento property.</param>
        public static FundoFinanciamentoAgregacao CreateFundoFinanciamentoAgregacao(global::System.Int32 id, global::System.Int32 iDAgregacao, global::System.Int32 iDFundoFinanciamento)
        {
            FundoFinanciamentoAgregacao fundoFinanciamentoAgregacao = new FundoFinanciamentoAgregacao();
            fundoFinanciamentoAgregacao.ID = id;
            fundoFinanciamentoAgregacao.IDAgregacao = iDAgregacao;
            fundoFinanciamentoAgregacao.IDFundoFinanciamento = iDFundoFinanciamento;
            return fundoFinanciamentoAgregacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAgregacao
        {
            get
            {
                return _IDAgregacao;
            }
            set
            {
                OnIDAgregacaoChanging(value);
                ReportPropertyChanging("IDAgregacao");
                _IDAgregacao = StructuralObject.SetValidValue(value, "IDAgregacao");
                ReportPropertyChanged("IDAgregacao");
                OnIDAgregacaoChanged();
            }
        }
        private global::System.Int32 _IDAgregacao;
        partial void OnIDAgregacaoChanging(global::System.Int32 value);
        partial void OnIDAgregacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFundoFinanciamento
        {
            get
            {
                return _IDFundoFinanciamento;
            }
            set
            {
                OnIDFundoFinanciamentoChanging(value);
                ReportPropertyChanging("IDFundoFinanciamento");
                _IDFundoFinanciamento = StructuralObject.SetValidValue(value, "IDFundoFinanciamento");
                ReportPropertyChanged("IDFundoFinanciamento");
                OnIDFundoFinanciamentoChanged();
            }
        }
        private global::System.Int32 _IDFundoFinanciamento;
        partial void OnIDFundoFinanciamentoChanging(global::System.Int32 value);
        partial void OnIDFundoFinanciamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento")]
        public FundosFinanciamento FundosFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<FundosFinanciamento> FundosFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundosFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento")]
        public TiposAgregacaoFundosFinancimento TiposAgregacaoFundosFinancimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposAgregacaoFundosFinancimento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposAgregacaoFundosFinancimento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TiposAgregacaoFundosFinancimento> TiposAgregacaoFundosFinancimentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposAgregacaoFundosFinancimento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TiposAgregacaoFundosFinancimento>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "TiposAgregacaoFundosFinancimento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="FundosFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class FundosFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new FundosFinanciamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="tipoFundo">Initial value of the TipoFundo property.</param>
        /// <param name="nomeFundo">Initial value of the NomeFundo property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static FundosFinanciamento CreateFundosFinanciamento(global::System.Int32 id, global::System.String tipoFundo, global::System.String nomeFundo, global::System.Boolean activo)
        {
            FundosFinanciamento fundosFinanciamento = new FundosFinanciamento();
            fundosFinanciamento.ID = id;
            fundosFinanciamento.TipoFundo = tipoFundo;
            fundosFinanciamento.NomeFundo = nomeFundo;
            fundosFinanciamento.Activo = activo;
            return fundosFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TipoFundo
        {
            get
            {
                return _TipoFundo;
            }
            set
            {
                OnTipoFundoChanging(value);
                ReportPropertyChanging("TipoFundo");
                _TipoFundo = StructuralObject.SetValidValue(value, false, "TipoFundo");
                ReportPropertyChanged("TipoFundo");
                OnTipoFundoChanged();
            }
        }
        private global::System.String _TipoFundo;
        partial void OnTipoFundoChanging(global::System.String value);
        partial void OnTipoFundoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SiglaFundo
        {
            get
            {
                return _SiglaFundo;
            }
            set
            {
                OnSiglaFundoChanging(value);
                ReportPropertyChanging("SiglaFundo");
                _SiglaFundo = StructuralObject.SetValidValue(value, true, "SiglaFundo");
                ReportPropertyChanged("SiglaFundo");
                OnSiglaFundoChanged();
            }
        }
        private global::System.String _SiglaFundo;
        partial void OnSiglaFundoChanging(global::System.String value);
        partial void OnSiglaFundoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeFundo
        {
            get
            {
                return _NomeFundo;
            }
            set
            {
                OnNomeFundoChanging(value);
                ReportPropertyChanging("NomeFundo");
                _NomeFundo = StructuralObject.SetValidValue(value, false, "NomeFundo");
                ReportPropertyChanged("NomeFundo");
                OnNomeFundoChanged();
            }
        }
        private global::System.String _NomeFundo;
        partial void OnNomeFundoChanging(global::System.String value);
        partial void OnNomeFundoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] LogotipoFundo
        {
            get
            {
                return StructuralObject.GetValidValue(_LogotipoFundo);
            }
            set
            {
                OnLogotipoFundoChanging(value);
                ReportPropertyChanging("LogotipoFundo");
                _LogotipoFundo = StructuralObject.SetValidValue(value, true, "LogotipoFundo");
                ReportPropertyChanged("LogotipoFundo");
                OnLogotipoFundoChanged();
            }
        }
        private global::System.Byte[] _LogotipoFundo;
        partial void OnLogotipoFundoChanging(global::System.Byte[] value);
        partial void OnLogotipoFundoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamento", "ProjectoInstituicao")]
        public EntityCollection<ProjectoInstituicao> ProjectoInstituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "ProjectoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "ProjectoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamentoNacional", "ProjectoInstituicao")]
        public EntityCollection<ProjectoInstituicao> ProjectoInstituicao1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "ProjectoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "ProjectoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_FundosFinanciamento", "ProjectoFundoFinanciamento")]
        public EntityCollection<ProjectoFundoFinanciamento> ProjectoFundoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "ProjectoFundoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "ProjectoFundoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundoFinanciamentoAgregacao")]
        public EntityCollection<FundoFinanciamentoAgregacao> FundoFinanciamentoAgregacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<FundoFinanciamentoAgregacao>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundoFinanciamentoAgregacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<FundoFinanciamentoAgregacao>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_FundosFinanciamento", "FundoFinanciamentoAgregacao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="GrauAcademico")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class GrauAcademico : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new GrauAcademico object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        public static GrauAcademico CreateGrauAcademico(global::System.Int32 id, global::System.String nome, global::System.String sigla)
        {
            GrauAcademico grauAcademico = new GrauAcademico();
            grauAcademico.ID = id;
            grauAcademico.Nome = nome;
            grauAcademico.Sigla = sigla;
            return grauAcademico;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_GrauAcademico", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_GrauAcademico", "CandidaturaEquipa")]
        public EntityCollection<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "CandidaturaEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_GrauAcademico", "CandidaturaEquipa", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="GruposInvestigacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class GruposInvestigacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new GruposInvestigacao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDUnidade">Initial value of the IDUnidade property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        public static GruposInvestigacao CreateGruposInvestigacao(global::System.Int32 id, global::System.Int32 iDUnidade, global::System.Boolean activo, global::System.String nome, global::System.String sigla)
        {
            GruposInvestigacao gruposInvestigacao = new GruposInvestigacao();
            gruposInvestigacao.ID = id;
            gruposInvestigacao.IDUnidade = iDUnidade;
            gruposInvestigacao.Activo = activo;
            gruposInvestigacao.Nome = nome;
            gruposInvestigacao.Sigla = sigla;
            return gruposInvestigacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDUnidade
        {
            get
            {
                return _IDUnidade;
            }
            set
            {
                OnIDUnidadeChanging(value);
                ReportPropertyChanging("IDUnidade");
                _IDUnidade = StructuralObject.SetValidValue(value, "IDUnidade");
                ReportPropertyChanged("IDUnidade");
                OnIDUnidadeChanged();
            }
        }
        private global::System.Int32 _IDUnidade;
        partial void OnIDUnidadeChanging(global::System.Int32 value);
        partial void OnIDUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeResponsavel
        {
            get
            {
                return _NomeResponsavel;
            }
            set
            {
                OnNomeResponsavelChanging(value);
                ReportPropertyChanging("NomeResponsavel");
                _NomeResponsavel = StructuralObject.SetValidValue(value, true, "NomeResponsavel");
                ReportPropertyChanged("NomeResponsavel");
                OnNomeResponsavelChanged();
            }
        }
        private global::System.String _NomeResponsavel;
        partial void OnNomeResponsavelChanging(global::System.String value);
        partial void OnNomeResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailResponsavel
        {
            get
            {
                return _EmailResponsavel;
            }
            set
            {
                OnEmailResponsavelChanging(value);
                ReportPropertyChanging("EmailResponsavel");
                _EmailResponsavel = StructuralObject.SetValidValue(value, true, "EmailResponsavel");
                ReportPropertyChanged("EmailResponsavel");
                OnEmailResponsavelChanged();
            }
        }
        private global::System.String _EmailResponsavel;
        partial void OnEmailResponsavelChanging(global::System.String value);
        partial void OnEmailResponsavelChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_GruposInvestigacao_Unidades", "Unidades")]
        public Unidades Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "Unidades").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "Unidades").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Unidades> UnidadesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Unidades>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "Unidades", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_GruposInvestigacao", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_GruposInvestigacao", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "InternoMovimento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Idioma")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Idioma : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Idioma object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        public static Idioma CreateIdioma(global::System.String codigo)
        {
            Idioma idioma = new Idioma();
            idioma.Codigo = codigo;
            return idioma;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AreaCientificaML_Idiomas", "AreaCientificaML")]
        public EntityCollection<AreaCientificaML> AreaCientificaML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AreaCientificaML>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "AreaCientificaML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AreaCientificaML>("GestaoProjectosModel.FK_AreaCientificaML_Idiomas", "AreaCientificaML", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturasML_Idiomas", "CandidaturaML")]
        public EntityCollection<CandidaturaML> CandidaturaML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaML>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "CandidaturaML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaML>("GestaoProjectosModel.FK_CandidaturasML_Idiomas", "CandidaturaML", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeProgramaML_Idiomas", "EntidadeProgramaML")]
        public EntityCollection<EntidadeProgramaML> EntidadeProgramaML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EntidadeProgramaML>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "EntidadeProgramaML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EntidadeProgramaML>("GestaoProjectosModel.FK_EntidadeProgramaML_Idiomas", "EntidadeProgramaML", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Instituicao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Instituicao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Instituicao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeInstituicao">Initial value of the NomeInstituicao property.</param>
        /// <param name="iDTipoInstituicao">Initial value of the IDTipoInstituicao property.</param>
        /// <param name="instituicaoAnfitria">Initial value of the InstituicaoAnfitria property.</param>
        /// <param name="nIF">Initial value of the NIF property.</param>
        /// <param name="email">Initial value of the Email property.</param>
        /// <param name="telefone">Initial value of the Telefone property.</param>
        /// <param name="fax">Initial value of the Fax property.</param>
        /// <param name="nomeResponsavelPelouro">Initial value of the NomeResponsavelPelouro property.</param>
        /// <param name="morada">Initial value of the Morada property.</param>
        /// <param name="localidade">Initial value of the Localidade property.</param>
        /// <param name="codigoPostal">Initial value of the CodigoPostal property.</param>
        /// <param name="pais">Initial value of the Pais property.</param>
        public static Instituicao CreateInstituicao(global::System.Int32 id, global::System.String nomeInstituicao, global::System.Int32 iDTipoInstituicao, global::System.Boolean instituicaoAnfitria, global::System.String nIF, global::System.String email, global::System.String telefone, global::System.String fax, global::System.String nomeResponsavelPelouro, global::System.String morada, global::System.String localidade, global::System.String codigoPostal, global::System.String pais)
        {
            Instituicao instituicao = new Instituicao();
            instituicao.ID = id;
            instituicao.NomeInstituicao = nomeInstituicao;
            instituicao.IDTipoInstituicao = iDTipoInstituicao;
            instituicao.InstituicaoAnfitria = instituicaoAnfitria;
            instituicao.NIF = nIF;
            instituicao.Email = email;
            instituicao.Telefone = telefone;
            instituicao.Fax = fax;
            instituicao.NomeResponsavelPelouro = nomeResponsavelPelouro;
            instituicao.Morada = morada;
            instituicao.Localidade = localidade;
            instituicao.CodigoPostal = codigoPostal;
            instituicao.Pais = pais;
            return instituicao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeInstituicao
        {
            get
            {
                return _NomeInstituicao;
            }
            set
            {
                OnNomeInstituicaoChanging(value);
                ReportPropertyChanging("NomeInstituicao");
                _NomeInstituicao = StructuralObject.SetValidValue(value, false, "NomeInstituicao");
                ReportPropertyChanged("NomeInstituicao");
                OnNomeInstituicaoChanged();
            }
        }
        private global::System.String _NomeInstituicao;
        partial void OnNomeInstituicaoChanging(global::System.String value);
        partial void OnNomeInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTipoInstituicao
        {
            get
            {
                return _IDTipoInstituicao;
            }
            set
            {
                OnIDTipoInstituicaoChanging(value);
                ReportPropertyChanging("IDTipoInstituicao");
                _IDTipoInstituicao = StructuralObject.SetValidValue(value, "IDTipoInstituicao");
                ReportPropertyChanged("IDTipoInstituicao");
                OnIDTipoInstituicaoChanged();
            }
        }
        private global::System.Int32 _IDTipoInstituicao;
        partial void OnIDTipoInstituicaoChanging(global::System.Int32 value);
        partial void OnIDTipoInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean InstituicaoAnfitria
        {
            get
            {
                return _InstituicaoAnfitria;
            }
            set
            {
                OnInstituicaoAnfitriaChanging(value);
                ReportPropertyChanging("InstituicaoAnfitria");
                _InstituicaoAnfitria = StructuralObject.SetValidValue(value, "InstituicaoAnfitria");
                ReportPropertyChanged("InstituicaoAnfitria");
                OnInstituicaoAnfitriaChanged();
            }
        }
        private global::System.Boolean _InstituicaoAnfitria;
        partial void OnInstituicaoAnfitriaChanging(global::System.Boolean value);
        partial void OnInstituicaoAnfitriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NIF
        {
            get
            {
                return _NIF;
            }
            set
            {
                OnNIFChanging(value);
                ReportPropertyChanging("NIF");
                _NIF = StructuralObject.SetValidValue(value, false, "NIF");
                ReportPropertyChanged("NIF");
                OnNIFChanged();
            }
        }
        private global::System.String _NIF;
        partial void OnNIFChanging(global::System.String value);
        partial void OnNIFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Email
        {
            get
            {
                return _Email;
            }
            set
            {
                OnEmailChanging(value);
                ReportPropertyChanging("Email");
                _Email = StructuralObject.SetValidValue(value, false, "Email");
                ReportPropertyChanged("Email");
                OnEmailChanged();
            }
        }
        private global::System.String _Email;
        partial void OnEmailChanging(global::System.String value);
        partial void OnEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Telefone
        {
            get
            {
                return _Telefone;
            }
            set
            {
                OnTelefoneChanging(value);
                ReportPropertyChanging("Telefone");
                _Telefone = StructuralObject.SetValidValue(value, false, "Telefone");
                ReportPropertyChanged("Telefone");
                OnTelefoneChanged();
            }
        }
        private global::System.String _Telefone;
        partial void OnTelefoneChanging(global::System.String value);
        partial void OnTelefoneChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Fax
        {
            get
            {
                return _Fax;
            }
            set
            {
                OnFaxChanging(value);
                ReportPropertyChanging("Fax");
                _Fax = StructuralObject.SetValidValue(value, false, "Fax");
                ReportPropertyChanged("Fax");
                OnFaxChanged();
            }
        }
        private global::System.String _Fax;
        partial void OnFaxChanging(global::System.String value);
        partial void OnFaxChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeResponsavelPelouro
        {
            get
            {
                return _NomeResponsavelPelouro;
            }
            set
            {
                OnNomeResponsavelPelouroChanging(value);
                ReportPropertyChanging("NomeResponsavelPelouro");
                _NomeResponsavelPelouro = StructuralObject.SetValidValue(value, false, "NomeResponsavelPelouro");
                ReportPropertyChanged("NomeResponsavelPelouro");
                OnNomeResponsavelPelouroChanged();
            }
        }
        private global::System.String _NomeResponsavelPelouro;
        partial void OnNomeResponsavelPelouroChanging(global::System.String value);
        partial void OnNomeResponsavelPelouroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, false, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Localidade
        {
            get
            {
                return _Localidade;
            }
            set
            {
                OnLocalidadeChanging(value);
                ReportPropertyChanging("Localidade");
                _Localidade = StructuralObject.SetValidValue(value, false, "Localidade");
                ReportPropertyChanged("Localidade");
                OnLocalidadeChanged();
            }
        }
        private global::System.String _Localidade;
        partial void OnLocalidadeChanging(global::System.String value);
        partial void OnLocalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, false, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Pais
        {
            get
            {
                return _Pais;
            }
            set
            {
                OnPaisChanging(value);
                ReportPropertyChanging("Pais");
                _Pais = StructuralObject.SetValidValue(value, false, "Pais");
                ReportPropertyChanged("Pais");
                OnPaisChanged();
            }
        }
        private global::System.String _Pais;
        partial void OnPaisChanging(global::System.String value);
        partial void OnPaisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPais
        {
            get
            {
                return _IDPais;
            }
            set
            {
                OnIDPaisChanging(value);
                ReportPropertyChanging("IDPais");
                _IDPais = StructuralObject.SetValidValue(value, "IDPais");
                ReportPropertyChanged("IDPais");
                OnIDPaisChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPais;
        partial void OnIDPaisChanging(Nullable<global::System.Int32> value);
        partial void OnIDPaisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private Nullable<global::System.Boolean> _Activo;
        partial void OnActivoChanging(Nullable<global::System.Boolean> value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Instituicao", "CandidaturaOrcamento")]
        public EntityCollection<CandidaturaOrcamento> CandidaturaOrcamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "CandidaturaOrcamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Instituicao", "CandidaturaOrcamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Instituicao", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Instituicao1", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Instituicao1", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Instituicao_TipoInstituicao", "TipoInstituicao")]
        public TipoInstituicao TipoInstituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoInstituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "TipoInstituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoInstituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "TipoInstituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoInstituicao> TipoInstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoInstituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "TipoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoInstituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "TipoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Instituicao", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Instituicao", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Instituicao", "ProjectoInstituicao")]
        public EntityCollection<ProjectoInstituicao> ProjectoInstituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "ProjectoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "ProjectoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Unidades_Instituicao", "Unidades")]
        public EntityCollection<Unidades> Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Unidades>("GestaoProjectosModel.FK_Unidades_Instituicao", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Unidades>("GestaoProjectosModel.FK_Unidades_Instituicao", "Unidades", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Instituicao", "VerbasMovimento")]
        public EntityCollection<VerbasMovimento> VerbasMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "VerbasMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "VerbasMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "CandidaturaInstituicao", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.CandidaturaInstituicao", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.CandidaturaInstituicao", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamentoParceiras_Instituicao", "AdmPedidoPagamentoParceiras")]
        public EntityCollection<AdmPedidoPagamentoParceiras> AdmPedidoPagamentoParceiras
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmPedidoPagamentoParceiras>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "AdmPedidoPagamentoParceiras");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmPedidoPagamentoParceiras>("GestaoProjectosModel.FK_AdmPedidoPagamentoParceiras_Instituicao", "AdmPedidoPagamentoParceiras", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Instituicao", "AdmOrcamentoParceiras")]
        public EntityCollection<AdmOrcamentoParceiras> AdmOrcamentoParceiras
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmOrcamentoParceiras>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "AdmOrcamentoParceiras");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmOrcamentoParceiras>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Instituicao", "AdmOrcamentoParceiras", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Instituicao", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Instituicao", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Instituicao", "Despesas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Instituicao_Paises", "Paises")]
        public Paises Paises
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_Instituicao_Paises", "Paises").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_Instituicao_Paises", "Paises").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Paises> PaisesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_Instituicao_Paises", "Paises");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Paises>("GestaoProjectosModel.FK_Instituicao_Paises", "Paises", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_Instituicao", "ProjectoFundoFinanciamento")]
        public EntityCollection<ProjectoFundoFinanciamento> ProjectoFundoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "ProjectoFundoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "ProjectoFundoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Instituicao", "PagamentosParticipantes")]
        public EntityCollection<PagamentosParticipantes> PagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "PagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "PagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Instituicao", "RecebimentosParticipantes")]
        public EntityCollection<RecebimentosParticipantes> RecebimentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "RecebimentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "RecebimentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Instituicao", "TransferenciasParticipantes")]
        public EntityCollection<TransferenciasParticipantes> TransferenciasParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TransferenciasParticipantes>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "TransferenciasParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TransferenciasParticipantes>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "TransferenciasParticipantes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoMovimento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoMovimento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoMovimento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="tipo">Initial value of the Tipo property.</param>
        /// <param name="dataMovimento">Initial value of the DataMovimento property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="iDRubricaInterna">Initial value of the IDRubricaInterna property.</param>
        /// <param name="despesaReceita">Initial value of the DespesaReceita property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        public static InternoMovimento CreateInternoMovimento(global::System.Int32 id, global::System.String tipo, global::System.DateTime dataMovimento, global::System.Double valor, global::System.Int32 iDRubricaInterna, global::System.String despesaReceita, global::System.Int32 ano)
        {
            InternoMovimento internoMovimento = new InternoMovimento();
            internoMovimento.ID = id;
            internoMovimento.Tipo = tipo;
            internoMovimento.DataMovimento = dataMovimento;
            internoMovimento.Valor = valor;
            internoMovimento.IDRubricaInterna = iDRubricaInterna;
            internoMovimento.DespesaReceita = despesaReceita;
            internoMovimento.Ano = ano;
            return internoMovimento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProjecto;
        partial void OnIDProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInternoProjecto
        {
            get
            {
                return _IDInternoProjecto;
            }
            set
            {
                OnIDInternoProjectoChanging(value);
                ReportPropertyChanging("IDInternoProjecto");
                _IDInternoProjecto = StructuralObject.SetValidValue(value, "IDInternoProjecto");
                ReportPropertyChanged("IDInternoProjecto");
                OnIDInternoProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInternoProjecto;
        partial void OnIDInternoProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInternoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, false, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataMovimento
        {
            get
            {
                return _DataMovimento;
            }
            set
            {
                OnDataMovimentoChanging(value);
                ReportPropertyChanging("DataMovimento");
                _DataMovimento = StructuralObject.SetValidValue(value, "DataMovimento");
                ReportPropertyChanged("DataMovimento");
                OnDataMovimentoChanged();
            }
        }
        private global::System.DateTime _DataMovimento;
        partial void OnDataMovimentoChanging(global::System.DateTime value);
        partial void OnDataMovimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubricaInterna
        {
            get
            {
                return _IDRubricaInterna;
            }
            set
            {
                OnIDRubricaInternaChanging(value);
                ReportPropertyChanging("IDRubricaInterna");
                _IDRubricaInterna = StructuralObject.SetValidValue(value, "IDRubricaInterna");
                ReportPropertyChanged("IDRubricaInterna");
                OnIDRubricaInternaChanged();
            }
        }
        private global::System.Int32 _IDRubricaInterna;
        partial void OnIDRubricaInternaChanging(global::System.Int32 value);
        partial void OnIDRubricaInternaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DespesaReceita
        {
            get
            {
                return _DespesaReceita;
            }
            set
            {
                OnDespesaReceitaChanging(value);
                ReportPropertyChanging("DespesaReceita");
                _DespesaReceita = StructuralObject.SetValidValue(value, false, "DespesaReceita");
                ReportPropertyChanged("DespesaReceita");
                OnDespesaReceitaChanged();
            }
        }
        private global::System.String _DespesaReceita;
        partial void OnDespesaReceitaChanging(global::System.String value);
        partial void OnDespesaReceitaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDDespesa
        {
            get
            {
                return _IDDespesa;
            }
            set
            {
                OnIDDespesaChanging(value);
                ReportPropertyChanging("IDDespesa");
                _IDDespesa = StructuralObject.SetValidValue(value, "IDDespesa");
                ReportPropertyChanged("IDDespesa");
                OnIDDespesaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDDespesa;
        partial void OnIDDespesaChanging(Nullable<global::System.Int32> value);
        partial void OnIDDespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(Nullable<global::System.Int32> value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDGrupo
        {
            get
            {
                return _IDGrupo;
            }
            set
            {
                OnIDGrupoChanging(value);
                ReportPropertyChanging("IDGrupo");
                _IDGrupo = StructuralObject.SetValidValue(value, "IDGrupo");
                ReportPropertyChanged("IDGrupo");
                OnIDGrupoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDGrupo;
        partial void OnIDGrupoChanging(Nullable<global::System.Int32> value);
        partial void OnIDGrupoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Referencia
        {
            get
            {
                return _Referencia;
            }
            set
            {
                OnReferenciaChanging(value);
                ReportPropertyChanging("Referencia");
                _Referencia = StructuralObject.SetValidValue(value, "Referencia");
                ReportPropertyChanged("Referencia");
                OnReferenciaChanged();
            }
        }
        private Nullable<global::System.Int32> _Referencia;
        partial void OnReferenciaChanging(Nullable<global::System.Int32> value);
        partial void OnReferenciaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao")]
        public GruposInvestigacao GruposInvestigacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<GruposInvestigacao> GruposInvestigacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_InternoMovimento_GruposInvestigacao", "GruposInvestigacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoProjecto", "InternoProjecto")]
        public InternoProjecto InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoProjecto> InternoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoRubrica", "InternoRubrica")]
        public InternoRubrica InternoRubrica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoRubrica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoRubrica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoRubrica> InternoRubricaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoRubrica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoRubrica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_Despesas", "Despesas")]
        public Despesas Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Despesas>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "Despesas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Despesas>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "Despesas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Despesas> DespesasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Despesas>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Despesas>("GestaoProjectosModel.FK_InternoMovimento_Despesas", "Despesas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoNumeradorMovimento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoNumeradorMovimento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoNumeradorMovimento object.
        /// </summary>
        /// <param name="numerador">Initial value of the Numerador property.</param>
        public static InternoNumeradorMovimento CreateInternoNumeradorMovimento(global::System.Int32 numerador)
        {
            InternoNumeradorMovimento internoNumeradorMovimento = new InternoNumeradorMovimento();
            internoNumeradorMovimento.Numerador = numerador;
            return internoNumeradorMovimento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Numerador
        {
            get
            {
                return _Numerador;
            }
            set
            {
                if (_Numerador != value)
                {
                    OnNumeradorChanging(value);
                    ReportPropertyChanging("Numerador");
                    _Numerador = StructuralObject.SetValidValue(value, "Numerador");
                    ReportPropertyChanged("Numerador");
                    OnNumeradorChanged();
                }
            }
        }
        private global::System.Int32 _Numerador;
        partial void OnNumeradorChanging(global::System.Int32 value);
        partial void OnNumeradorChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoProjecto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoProjecto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoProjecto object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="dataInicio">Initial value of the DataInicio property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="iDCentro">Initial value of the IDCentro property.</param>
        public static InternoProjecto CreateInternoProjecto(global::System.Int32 id, global::System.String nome, global::System.DateTime dataInicio, global::System.Int32 iDRecursoHumano, global::System.Int32 iDCentro)
        {
            InternoProjecto internoProjecto = new InternoProjecto();
            internoProjecto.ID = id;
            internoProjecto.Nome = nome;
            internoProjecto.DataInicio = dataInicio;
            internoProjecto.IDRecursoHumano = iDRecursoHumano;
            internoProjecto.IDCentro = iDCentro;
            return internoProjecto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private global::System.DateTime _DataInicio;
        partial void OnDataInicioChanging(global::System.DateTime value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFim
        {
            get
            {
                return _DataFim;
            }
            set
            {
                OnDataFimChanging(value);
                ReportPropertyChanging("DataFim");
                _DataFim = StructuralObject.SetValidValue(value, "DataFim");
                ReportPropertyChanged("DataFim");
                OnDataFimChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFim;
        partial void OnDataFimChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCentro
        {
            get
            {
                return _IDCentro;
            }
            set
            {
                OnIDCentroChanging(value);
                ReportPropertyChanging("IDCentro");
                _IDCentro = StructuralObject.SetValidValue(value, "IDCentro");
                ReportPropertyChanged("IDCentro");
                OnIDCentroChanged();
            }
        }
        private global::System.Int32 _IDCentro;
        partial void OnIDCentroChanging(global::System.Int32 value);
        partial void OnIDCentroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoProjecto", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_InternoProjecto", "InternoMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjecto_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjectoDelegacao")]
        public EntityCollection<InternoProjectoDelegacao> InternoProjectoDelegacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoProjectoDelegacao>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjectoDelegacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoProjectoDelegacao>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjectoDelegacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoAnexos_InternoProjecto", "InternoProjectoAnexos")]
        public EntityCollection<InternoProjectoAnexos> InternoProjectoAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoProjectoAnexos>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjectoAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoProjectoAnexos>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjectoAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoProjecto", "InternoRubrica")]
        public EntityCollection<InternoRubrica> InternoRubrica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoRubrica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoRubrica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjecto_Unidades", "Unidades")]
        public Unidades Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "Unidades").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "Unidades").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Unidades> UnidadesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Unidades>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "Unidades", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoProjectoAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoProjectoAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoProjectoAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDInternoProjecto">Initial value of the IDInternoProjecto property.</param>
        /// <param name="documento">Initial value of the Documento property.</param>
        public static InternoProjectoAnexos CreateInternoProjectoAnexos(global::System.Int32 id, global::System.Int32 iDInternoProjecto, global::System.String documento)
        {
            InternoProjectoAnexos internoProjectoAnexos = new InternoProjectoAnexos();
            internoProjectoAnexos.ID = id;
            internoProjectoAnexos.IDInternoProjecto = iDInternoProjecto;
            internoProjectoAnexos.Documento = documento;
            return internoProjectoAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInternoProjecto
        {
            get
            {
                return _IDInternoProjecto;
            }
            set
            {
                OnIDInternoProjectoChanging(value);
                ReportPropertyChanging("IDInternoProjecto");
                _IDInternoProjecto = StructuralObject.SetValidValue(value, "IDInternoProjecto");
                ReportPropertyChanged("IDInternoProjecto");
                OnIDInternoProjectoChanged();
            }
        }
        private global::System.Int32 _IDInternoProjecto;
        partial void OnIDInternoProjectoChanging(global::System.Int32 value);
        partial void OnIDInternoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, false, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, true, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto")]
        public InternoProjecto InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoProjecto> InternoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoAnexos_InternoProjecto", "InternoProjecto", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoProjectoDelegacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoProjectoDelegacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoProjectoDelegacao object.
        /// </summary>
        /// <param name="iDInternoProjecto">Initial value of the IDInternoProjecto property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        public static InternoProjectoDelegacao CreateInternoProjectoDelegacao(global::System.Int32 iDInternoProjecto, global::System.Int32 iDRecursoHumano)
        {
            InternoProjectoDelegacao internoProjectoDelegacao = new InternoProjectoDelegacao();
            internoProjectoDelegacao.IDInternoProjecto = iDInternoProjecto;
            internoProjectoDelegacao.IDRecursoHumano = iDRecursoHumano;
            return internoProjectoDelegacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInternoProjecto
        {
            get
            {
                return _IDInternoProjecto;
            }
            set
            {
                if (_IDInternoProjecto != value)
                {
                    OnIDInternoProjectoChanging(value);
                    ReportPropertyChanging("IDInternoProjecto");
                    _IDInternoProjecto = StructuralObject.SetValidValue(value, "IDInternoProjecto");
                    ReportPropertyChanged("IDInternoProjecto");
                    OnIDInternoProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDInternoProjecto;
        partial void OnIDInternoProjectoChanging(global::System.Int32 value);
        partial void OnIDInternoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                if (_IDRecursoHumano != value)
                {
                    OnIDRecursoHumanoChanging(value);
                    ReportPropertyChanging("IDRecursoHumano");
                    _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                    ReportPropertyChanged("IDRecursoHumano");
                    OnIDRecursoHumanoChanged();
                }
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ResponsavelMaximo
        {
            get
            {
                return _ResponsavelMaximo;
            }
            set
            {
                OnResponsavelMaximoChanging(value);
                ReportPropertyChanging("ResponsavelMaximo");
                _ResponsavelMaximo = StructuralObject.SetValidValue(value, "ResponsavelMaximo");
                ReportPropertyChanged("ResponsavelMaximo");
                OnResponsavelMaximoChanged();
            }
        }
        private Nullable<global::System.Boolean> _ResponsavelMaximo;
        partial void OnResponsavelMaximoChanging(Nullable<global::System.Boolean> value);
        partial void OnResponsavelMaximoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto")]
        public InternoProjecto InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoProjecto> InternoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoProjectoResponsavel_InternoProjecto", "InternoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "RecursoHumano", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="InternoRubrica")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class InternoRubrica : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new InternoRubrica object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        public static InternoRubrica CreateInternoRubrica(global::System.Int32 id)
        {
            InternoRubrica internoRubrica = new InternoRubrica();
            internoRubrica.ID = id;
            return internoRubrica;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRubricaPai
        {
            get
            {
                return _IDRubricaPai;
            }
            set
            {
                OnIDRubricaPaiChanging(value);
                ReportPropertyChanging("IDRubricaPai");
                _IDRubricaPai = StructuralObject.SetValidValue(value, "IDRubricaPai");
                ReportPropertyChanged("IDRubricaPai");
                OnIDRubricaPaiChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRubricaPai;
        partial void OnIDRubricaPaiChanging(Nullable<global::System.Int32> value);
        partial void OnIDRubricaPaiChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProjecto;
        partial void OnIDProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInternoProjecto
        {
            get
            {
                return _IDInternoProjecto;
            }
            set
            {
                OnIDInternoProjectoChanging(value);
                ReportPropertyChanging("IDInternoProjecto");
                _IDInternoProjecto = StructuralObject.SetValidValue(value, "IDInternoProjecto");
                ReportPropertyChanged("IDInternoProjecto");
                OnIDInternoProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInternoProjecto;
        partial void OnIDInternoProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInternoProjectoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_InternoRubrica", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_InternoRubrica", "InternoMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoProjecto", "InternoProjecto")]
        public InternoProjecto InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoProjecto> InternoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoProjecto>("GestaoProjectosModel.FK_InternoRubrica_InternoProjecto", "InternoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoRubrica", "InternoRubrica1")]
        public EntityCollection<InternoRubrica> InternoRubrica1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_InternoRubrica", "InternoRubrica")]
        public InternoRubrica InternoRubrica2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<InternoRubrica> InternoRubrica2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_InternoRubrica", "InternoRubrica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ListagemTimesheet")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ListagemTimesheet : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ListagemTimesheet object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="dataEnvio">Initial value of the DataEnvio property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="assinaturaTimesheet">Initial value of the AssinaturaTimesheet property.</param>
        /// <param name="iDEstadoTimesheet">Initial value of the IDEstadoTimesheet property.</param>
        public static ListagemTimesheet CreateListagemTimesheet(global::System.Int32 id, global::System.DateTime dataEnvio, global::System.Int32 iDRecursoHumano, global::System.String assinaturaTimesheet, global::System.Int32 iDEstadoTimesheet)
        {
            ListagemTimesheet listagemTimesheet = new ListagemTimesheet();
            listagemTimesheet.ID = id;
            listagemTimesheet.DataEnvio = dataEnvio;
            listagemTimesheet.IDRecursoHumano = iDRecursoHumano;
            listagemTimesheet.AssinaturaTimesheet = assinaturaTimesheet;
            listagemTimesheet.IDEstadoTimesheet = iDEstadoTimesheet;
            return listagemTimesheet;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEnvio
        {
            get
            {
                return _DataEnvio;
            }
            set
            {
                OnDataEnvioChanging(value);
                ReportPropertyChanging("DataEnvio");
                _DataEnvio = StructuralObject.SetValidValue(value, "DataEnvio");
                ReportPropertyChanged("DataEnvio");
                OnDataEnvioChanged();
            }
        }
        private global::System.DateTime _DataEnvio;
        partial void OnDataEnvioChanging(global::System.DateTime value);
        partial void OnDataEnvioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String AssinaturaTimesheet
        {
            get
            {
                return _AssinaturaTimesheet;
            }
            set
            {
                OnAssinaturaTimesheetChanging(value);
                ReportPropertyChanging("AssinaturaTimesheet");
                _AssinaturaTimesheet = StructuralObject.SetValidValue(value, false, "AssinaturaTimesheet");
                ReportPropertyChanged("AssinaturaTimesheet");
                OnAssinaturaTimesheetChanged();
            }
        }
        private global::System.String _AssinaturaTimesheet;
        partial void OnAssinaturaTimesheetChanging(global::System.String value);
        partial void OnAssinaturaTimesheetChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstadoTimesheet
        {
            get
            {
                return _IDEstadoTimesheet;
            }
            set
            {
                OnIDEstadoTimesheetChanging(value);
                ReportPropertyChanging("IDEstadoTimesheet");
                _IDEstadoTimesheet = StructuralObject.SetValidValue(value, "IDEstadoTimesheet");
                ReportPropertyChanged("IDEstadoTimesheet");
                OnIDEstadoTimesheetChanged();
            }
        }
        private global::System.Int32 _IDEstadoTimesheet;
        partial void OnIDEstadoTimesheetChanging(global::System.Int32 value);
        partial void OnIDEstadoTimesheetChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observações
        {
            get
            {
                return _Observações;
            }
            set
            {
                OnObservaçõesChanging(value);
                ReportPropertyChanging("Observações");
                _Observações = StructuralObject.SetValidValue(value, true, "Observações");
                ReportPropertyChanged("Observações");
                OnObservaçõesChanged();
            }
        }
        private global::System.String _Observações;
        partial void OnObservaçõesChanging(global::System.String value);
        partial void OnObservaçõesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Ficheiro
        {
            get
            {
                return _Ficheiro;
            }
            set
            {
                OnFicheiroChanging(value);
                ReportPropertyChanging("Ficheiro");
                _Ficheiro = StructuralObject.SetValidValue(value, true, "Ficheiro");
                ReportPropertyChanged("Ficheiro");
                OnFicheiroChanged();
            }
        }
        private global::System.String _Ficheiro;
        partial void OnFicheiroChanging(global::System.String value);
        partial void OnFicheiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FileTipo
        {
            get
            {
                return _FileTipo;
            }
            set
            {
                OnFileTipoChanging(value);
                ReportPropertyChanging("FileTipo");
                _FileTipo = StructuralObject.SetValidValue(value, true, "FileTipo");
                ReportPropertyChanged("FileTipo");
                OnFileTipoChanged();
            }
        }
        private global::System.String _FileTipo;
        partial void OnFileTipoChanging(global::System.String value);
        partial void OnFileTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] FileContent
        {
            get
            {
                return StructuralObject.GetValidValue(_FileContent);
            }
            set
            {
                OnFileContentChanging(value);
                ReportPropertyChanging("FileContent");
                _FileContent = StructuralObject.SetValidValue(value, true, "FileContent");
                ReportPropertyChanged("FileContent");
                OnFileContentChanged();
            }
        }
        private global::System.Byte[] _FileContent;
        partial void OnFileContentChanging(global::System.Byte[] value);
        partial void OnFileContentChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet")]
        public EstadoTimesheet EstadoTimesheet
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EstadoTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EstadoTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EstadoTimesheet> EstadoTimesheetReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EstadoTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EstadoTimesheet>("GestaoProjectosModel.FK_EstadoTimesheet_EstadoTimesheet", "EstadoTimesheet", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "RecursoHumano", value);
                }
            }
        }

        #endregion


        internal static void Remove(int fileID)
        {
            throw new NotImplementedException();
        }

        internal static void DeleteFile(int ID)
        {
            throw new NotImplementedException();
        }

        internal static void DeleteObject(int ID)
        {
            throw new NotImplementedException();
        }

        internal static void SaveChanges()
        {
            throw new NotImplementedException();
        }
    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="LogConsultaVerbetes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class LogConsultaVerbetes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new LogConsultaVerbetes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="bolseiro">Initial value of the Bolseiro property.</param>
        /// <param name="dataConsulta">Initial value of the DataConsulta property.</param>
        /// <param name="periodoInicial">Initial value of the PeriodoInicial property.</param>
        /// <param name="periodoFinal">Initial value of the PeriodoFinal property.</param>
        public static LogConsultaVerbetes CreateLogConsultaVerbetes(global::System.Int32 id, global::System.String nMecanografico, global::System.String bolseiro, global::System.DateTime dataConsulta, global::System.String periodoInicial, global::System.String periodoFinal)
        {
            LogConsultaVerbetes logConsultaVerbetes = new LogConsultaVerbetes();
            logConsultaVerbetes.ID = id;
            logConsultaVerbetes.NMecanografico = nMecanografico;
            logConsultaVerbetes.Bolseiro = bolseiro;
            logConsultaVerbetes.DataConsulta = dataConsulta;
            logConsultaVerbetes.PeriodoInicial = periodoInicial;
            logConsultaVerbetes.PeriodoFinal = periodoFinal;
            return logConsultaVerbetes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                OnNMecanograficoChanging(value);
                ReportPropertyChanging("NMecanografico");
                _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                ReportPropertyChanged("NMecanografico");
                OnNMecanograficoChanged();
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Bolseiro
        {
            get
            {
                return _Bolseiro;
            }
            set
            {
                OnBolseiroChanging(value);
                ReportPropertyChanging("Bolseiro");
                _Bolseiro = StructuralObject.SetValidValue(value, false, "Bolseiro");
                ReportPropertyChanged("Bolseiro");
                OnBolseiroChanged();
            }
        }
        private global::System.String _Bolseiro;
        partial void OnBolseiroChanging(global::System.String value);
        partial void OnBolseiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataConsulta
        {
            get
            {
                return _DataConsulta;
            }
            set
            {
                OnDataConsultaChanging(value);
                ReportPropertyChanging("DataConsulta");
                _DataConsulta = StructuralObject.SetValidValue(value, "DataConsulta");
                ReportPropertyChanged("DataConsulta");
                OnDataConsultaChanged();
            }
        }
        private global::System.DateTime _DataConsulta;
        partial void OnDataConsultaChanging(global::System.DateTime value);
        partial void OnDataConsultaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String PeriodoInicial
        {
            get
            {
                return _PeriodoInicial;
            }
            set
            {
                OnPeriodoInicialChanging(value);
                ReportPropertyChanging("PeriodoInicial");
                _PeriodoInicial = StructuralObject.SetValidValue(value, false, "PeriodoInicial");
                ReportPropertyChanged("PeriodoInicial");
                OnPeriodoInicialChanged();
            }
        }
        private global::System.String _PeriodoInicial;
        partial void OnPeriodoInicialChanging(global::System.String value);
        partial void OnPeriodoInicialChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String PeriodoFinal
        {
            get
            {
                return _PeriodoFinal;
            }
            set
            {
                OnPeriodoFinalChanging(value);
                ReportPropertyChanging("PeriodoFinal");
                _PeriodoFinal = StructuralObject.SetValidValue(value, false, "PeriodoFinal");
                ReportPropertyChanged("PeriodoFinal");
                OnPeriodoFinalChanged();
            }
        }
        private global::System.String _PeriodoFinal;
        partial void OnPeriodoFinalChanging(global::System.String value);
        partial void OnPeriodoFinalChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="LogGenerico")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class LogGenerico : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new LogGenerico object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="informacao">Initial value of the Informacao property.</param>
        public static LogGenerico CreateLogGenerico(global::System.Int32 id, global::System.DateTime data, global::System.String informacao)
        {
            LogGenerico logGenerico = new LogGenerico();
            logGenerico.ID = id;
            logGenerico.Data = data;
            logGenerico.Informacao = informacao;
            return logGenerico;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Informacao
        {
            get
            {
                return _Informacao;
            }
            set
            {
                OnInformacaoChanging(value);
                ReportPropertyChanging("Informacao");
                _Informacao = StructuralObject.SetValidValue(value, false, "Informacao");
                ReportPropertyChanged("Informacao");
                OnInformacaoChanged();
            }
        }
        private global::System.String _Informacao;
        partial void OnInformacaoChanging(global::System.String value);
        partial void OnInformacaoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Logs")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Logs : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Logs object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="tabela">Initial value of the Tabela property.</param>
        /// <param name="campo">Initial value of the Campo property.</param>
        /// <param name="valorOriginal">Initial value of the ValorOriginal property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="utilizador">Initial value of the Utilizador property.</param>
        public static Logs CreateLogs(global::System.Int32 id, global::System.String tabela, global::System.String campo, global::System.String valorOriginal, global::System.String valor, global::System.DateTime data, global::System.String utilizador)
        {
            Logs logs = new Logs();
            logs.ID = id;
            logs.Tabela = tabela;
            logs.Campo = campo;
            logs.ValorOriginal = valorOriginal;
            logs.Valor = valor;
            logs.Data = data;
            logs.Utilizador = utilizador;
            return logs;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tabela
        {
            get
            {
                return _Tabela;
            }
            set
            {
                OnTabelaChanging(value);
                ReportPropertyChanging("Tabela");
                _Tabela = StructuralObject.SetValidValue(value, false, "Tabela");
                ReportPropertyChanged("Tabela");
                OnTabelaChanged();
            }
        }
        private global::System.String _Tabela;
        partial void OnTabelaChanging(global::System.String value);
        partial void OnTabelaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Campo
        {
            get
            {
                return _Campo;
            }
            set
            {
                OnCampoChanging(value);
                ReportPropertyChanging("Campo");
                _Campo = StructuralObject.SetValidValue(value, false, "Campo");
                ReportPropertyChanged("Campo");
                OnCampoChanged();
            }
        }
        private global::System.String _Campo;
        partial void OnCampoChanging(global::System.String value);
        partial void OnCampoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ValorOriginal
        {
            get
            {
                return _ValorOriginal;
            }
            set
            {
                OnValorOriginalChanging(value);
                ReportPropertyChanging("ValorOriginal");
                _ValorOriginal = StructuralObject.SetValidValue(value, false, "ValorOriginal");
                ReportPropertyChanged("ValorOriginal");
                OnValorOriginalChanged();
            }
        }
        private global::System.String _ValorOriginal;
        partial void OnValorOriginalChanging(global::System.String value);
        partial void OnValorOriginalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, false, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.String _Valor;
        partial void OnValorChanging(global::System.String value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Utilizador
        {
            get
            {
                return _Utilizador;
            }
            set
            {
                OnUtilizadorChanging(value);
                ReportPropertyChanging("Utilizador");
                _Utilizador = StructuralObject.SetValidValue(value, false, "Utilizador");
                ReportPropertyChanged("Utilizador");
                OnUtilizadorChanged();
            }
        }
        private global::System.String _Utilizador;
        partial void OnUtilizadorChanging(global::System.String value);
        partial void OnUtilizadorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Chave
        {
            get
            {
                return _Chave;
            }
            set
            {
                OnChaveChanging(value);
                ReportPropertyChanging("Chave");
                _Chave = StructuralObject.SetValidValue(value, true, "Chave");
                ReportPropertyChanged("Chave");
                OnChaveChanged();
            }
        }
        private global::System.String _Chave;
        partial void OnChaveChanging(global::System.String value);
        partial void OnChaveChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="MapaImputacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class MapaImputacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new MapaImputacao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="dataInicialImputacao">Initial value of the DataInicialImputacao property.</param>
        /// <param name="dataFinalImputacao">Initial value of the DataFinalImputacao property.</param>
        /// <param name="percentagemAfectacaoEquipa">Initial value of the PercentagemAfectacaoEquipa property.</param>
        /// <param name="numeroHorasAnual">Initial value of the NumeroHorasAnual property.</param>
        /// <param name="numeroInvestigadores">Initial value of the NumeroInvestigadores property.</param>
        /// <param name="dataGeracao">Initial value of the DataGeracao property.</param>
        public static MapaImputacao CreateMapaImputacao(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.DateTime dataInicialImputacao, global::System.DateTime dataFinalImputacao, global::System.Double percentagemAfectacaoEquipa, global::System.Int32 numeroHorasAnual, global::System.Int32 numeroInvestigadores, global::System.DateTime dataGeracao)
        {
            MapaImputacao mapaImputacao = new MapaImputacao();
            mapaImputacao.ID = id;
            mapaImputacao.IDProjecto = iDProjecto;
            mapaImputacao.DataInicialImputacao = dataInicialImputacao;
            mapaImputacao.DataFinalImputacao = dataFinalImputacao;
            mapaImputacao.PercentagemAfectacaoEquipa = percentagemAfectacaoEquipa;
            mapaImputacao.NumeroHorasAnual = numeroHorasAnual;
            mapaImputacao.NumeroInvestigadores = numeroInvestigadores;
            mapaImputacao.DataGeracao = dataGeracao;
            return mapaImputacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicialImputacao
        {
            get
            {
                return _DataInicialImputacao;
            }
            set
            {
                OnDataInicialImputacaoChanging(value);
                ReportPropertyChanging("DataInicialImputacao");
                _DataInicialImputacao = StructuralObject.SetValidValue(value, "DataInicialImputacao");
                ReportPropertyChanged("DataInicialImputacao");
                OnDataInicialImputacaoChanged();
            }
        }
        private global::System.DateTime _DataInicialImputacao;
        partial void OnDataInicialImputacaoChanging(global::System.DateTime value);
        partial void OnDataInicialImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataFinalImputacao
        {
            get
            {
                return _DataFinalImputacao;
            }
            set
            {
                OnDataFinalImputacaoChanging(value);
                ReportPropertyChanging("DataFinalImputacao");
                _DataFinalImputacao = StructuralObject.SetValidValue(value, "DataFinalImputacao");
                ReportPropertyChanged("DataFinalImputacao");
                OnDataFinalImputacaoChanged();
            }
        }
        private global::System.DateTime _DataFinalImputacao;
        partial void OnDataFinalImputacaoChanging(global::System.DateTime value);
        partial void OnDataFinalImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double PercentagemAfectacaoEquipa
        {
            get
            {
                return _PercentagemAfectacaoEquipa;
            }
            set
            {
                OnPercentagemAfectacaoEquipaChanging(value);
                ReportPropertyChanging("PercentagemAfectacaoEquipa");
                _PercentagemAfectacaoEquipa = StructuralObject.SetValidValue(value, "PercentagemAfectacaoEquipa");
                ReportPropertyChanged("PercentagemAfectacaoEquipa");
                OnPercentagemAfectacaoEquipaChanged();
            }
        }
        private global::System.Double _PercentagemAfectacaoEquipa;
        partial void OnPercentagemAfectacaoEquipaChanging(global::System.Double value);
        partial void OnPercentagemAfectacaoEquipaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NumeroHorasAnual
        {
            get
            {
                return _NumeroHorasAnual;
            }
            set
            {
                OnNumeroHorasAnualChanging(value);
                ReportPropertyChanging("NumeroHorasAnual");
                _NumeroHorasAnual = StructuralObject.SetValidValue(value, "NumeroHorasAnual");
                ReportPropertyChanged("NumeroHorasAnual");
                OnNumeroHorasAnualChanged();
            }
        }
        private global::System.Int32 _NumeroHorasAnual;
        partial void OnNumeroHorasAnualChanging(global::System.Int32 value);
        partial void OnNumeroHorasAnualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NumeroInvestigadores
        {
            get
            {
                return _NumeroInvestigadores;
            }
            set
            {
                OnNumeroInvestigadoresChanging(value);
                ReportPropertyChanging("NumeroInvestigadores");
                _NumeroInvestigadores = StructuralObject.SetValidValue(value, "NumeroInvestigadores");
                ReportPropertyChanged("NumeroInvestigadores");
                OnNumeroInvestigadoresChanged();
            }
        }
        private global::System.Int32 _NumeroInvestigadores;
        partial void OnNumeroInvestigadoresChanging(global::System.Int32 value);
        partial void OnNumeroInvestigadoresChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataGeracao
        {
            get
            {
                return _DataGeracao;
            }
            set
            {
                OnDataGeracaoChanging(value);
                ReportPropertyChanging("DataGeracao");
                _DataGeracao = StructuralObject.SetValidValue(value, "DataGeracao");
                ReportPropertyChanged("DataGeracao");
                OnDataGeracaoChanged();
            }
        }
        private global::System.DateTime _DataGeracao;
        partial void OnDataGeracaoChanging(global::System.DateTime value);
        partial void OnDataGeracaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDChaveImputacao
        {
            get
            {
                return _IDChaveImputacao;
            }
            set
            {
                OnIDChaveImputacaoChanging(value);
                ReportPropertyChanging("IDChaveImputacao");
                _IDChaveImputacao = StructuralObject.SetValidValue(value, "IDChaveImputacao");
                ReportPropertyChanged("IDChaveImputacao");
                OnIDChaveImputacaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDChaveImputacao;
        partial void OnIDChaveImputacaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDChaveImputacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacaoRubricas")]
        public EntityCollection<MapaImputacaoRubricas> MapaImputacaoRubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MapaImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacaoRubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MapaImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacaoRubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacao_ChaveImputacao", "ChaveImputacao")]
        public ChaveImputacao ChaveImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "ChaveImputacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "ChaveImputacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ChaveImputacao> ChaveImputacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "ChaveImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ChaveImputacao>("GestaoProjectosModel.FK_MapaImputacao_ChaveImputacao", "ChaveImputacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacao_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="MapaImputacaoRubricas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class MapaImputacaoRubricas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new MapaImputacaoRubricas object.
        /// </summary>
        /// <param name="iDMapaImputacao">Initial value of the IDMapaImputacao property.</param>
        /// <param name="iDChaveImputacaoRubrica">Initial value of the IDChaveImputacaoRubrica property.</param>
        /// <param name="percentagem">Initial value of the Percentagem property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="nomeRubrica">Initial value of the NomeRubrica property.</param>
        public static MapaImputacaoRubricas CreateMapaImputacaoRubricas(global::System.Int32 iDMapaImputacao, global::System.Int32 iDChaveImputacaoRubrica, global::System.Double percentagem, global::System.Double valor, global::System.String nomeRubrica)
        {
            MapaImputacaoRubricas mapaImputacaoRubricas = new MapaImputacaoRubricas();
            mapaImputacaoRubricas.IDMapaImputacao = iDMapaImputacao;
            mapaImputacaoRubricas.IDChaveImputacaoRubrica = iDChaveImputacaoRubrica;
            mapaImputacaoRubricas.Percentagem = percentagem;
            mapaImputacaoRubricas.Valor = valor;
            mapaImputacaoRubricas.NomeRubrica = nomeRubrica;
            return mapaImputacaoRubricas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDMapaImputacao
        {
            get
            {
                return _IDMapaImputacao;
            }
            set
            {
                if (_IDMapaImputacao != value)
                {
                    OnIDMapaImputacaoChanging(value);
                    ReportPropertyChanging("IDMapaImputacao");
                    _IDMapaImputacao = StructuralObject.SetValidValue(value, "IDMapaImputacao");
                    ReportPropertyChanged("IDMapaImputacao");
                    OnIDMapaImputacaoChanged();
                }
            }
        }
        private global::System.Int32 _IDMapaImputacao;
        partial void OnIDMapaImputacaoChanging(global::System.Int32 value);
        partial void OnIDMapaImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDChaveImputacaoRubrica
        {
            get
            {
                return _IDChaveImputacaoRubrica;
            }
            set
            {
                if (_IDChaveImputacaoRubrica != value)
                {
                    OnIDChaveImputacaoRubricaChanging(value);
                    ReportPropertyChanging("IDChaveImputacaoRubrica");
                    _IDChaveImputacaoRubrica = StructuralObject.SetValidValue(value, "IDChaveImputacaoRubrica");
                    ReportPropertyChanged("IDChaveImputacaoRubrica");
                    OnIDChaveImputacaoRubricaChanged();
                }
            }
        }
        private global::System.Int32 _IDChaveImputacaoRubrica;
        partial void OnIDChaveImputacaoRubricaChanging(global::System.Int32 value);
        partial void OnIDChaveImputacaoRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Percentagem
        {
            get
            {
                return _Percentagem;
            }
            set
            {
                OnPercentagemChanging(value);
                ReportPropertyChanging("Percentagem");
                _Percentagem = StructuralObject.SetValidValue(value, "Percentagem");
                ReportPropertyChanged("Percentagem");
                OnPercentagemChanged();
            }
        }
        private global::System.Double _Percentagem;
        partial void OnPercentagemChanging(global::System.Double value);
        partial void OnPercentagemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeRubrica
        {
            get
            {
                return _NomeRubrica;
            }
            set
            {
                OnNomeRubricaChanging(value);
                ReportPropertyChanging("NomeRubrica");
                _NomeRubrica = StructuralObject.SetValidValue(value, false, "NomeRubrica");
                ReportPropertyChanged("NomeRubrica");
                OnNomeRubricaChanged();
            }
        }
        private global::System.String _NomeRubrica;
        partial void OnNomeRubricaChanging(global::System.String value);
        partial void OnNomeRubricaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas")]
        public ChaveImputacaoRubricas ChaveImputacaoRubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ChaveImputacaoRubricas> ChaveImputacaoRubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ChaveImputacaoRubricas>("GestaoProjectosModel.FK_MapaImputacaoRubricas_ChaveImputacaoRubricas", "ChaveImputacaoRubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao")]
        public MapaImputacao MapaImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<MapaImputacao> MapaImputacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacaoRubricas_MapaImputacao", "MapaImputacao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="MenuPages")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class MenuPages : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new MenuPages object.
        /// </summary>
        /// <param name="pageID">Initial value of the PageID property.</param>
        /// <param name="tabID">Initial value of the TabID property.</param>
        /// <param name="langID">Initial value of the LangID property.</param>
        /// <param name="pageTitle">Initial value of the PageTitle property.</param>
        /// <param name="nivel">Initial value of the Nivel property.</param>
        /// <param name="ordem">Initial value of the Ordem property.</param>
        /// <param name="caminho">Initial value of the Caminho property.</param>
        /// <param name="menuVisible">Initial value of the MenuVisible property.</param>
        public static MenuPages CreateMenuPages(global::System.Int32 pageID, global::System.Int32 tabID, global::System.String langID, global::System.String pageTitle, global::System.Int32 nivel, global::System.Int32 ordem, global::System.String caminho, global::System.Boolean menuVisible)
        {
            MenuPages menuPages = new MenuPages();
            menuPages.PageID = pageID;
            menuPages.TabID = tabID;
            menuPages.LangID = langID;
            menuPages.PageTitle = pageTitle;
            menuPages.Nivel = nivel;
            menuPages.Ordem = ordem;
            menuPages.Caminho = caminho;
            menuPages.MenuVisible = menuVisible;
            return menuPages;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 PageID
        {
            get
            {
                return _PageID;
            }
            set
            {
                if (_PageID != value)
                {
                    OnPageIDChanging(value);
                    ReportPropertyChanging("PageID");
                    _PageID = StructuralObject.SetValidValue(value, "PageID");
                    ReportPropertyChanged("PageID");
                    OnPageIDChanged();
                }
            }
        }
        private global::System.Int32 _PageID;
        partial void OnPageIDChanging(global::System.Int32 value);
        partial void OnPageIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 TabID
        {
            get
            {
                return _TabID;
            }
            set
            {
                if (_TabID != value)
                {
                    OnTabIDChanging(value);
                    ReportPropertyChanging("TabID");
                    _TabID = StructuralObject.SetValidValue(value, "TabID");
                    ReportPropertyChanged("TabID");
                    OnTabIDChanged();
                }
            }
        }
        private global::System.Int32 _TabID;
        partial void OnTabIDChanging(global::System.Int32 value);
        partial void OnTabIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String LangID
        {
            get
            {
                return _LangID;
            }
            set
            {
                OnLangIDChanging(value);
                ReportPropertyChanging("LangID");
                _LangID = StructuralObject.SetValidValue(value, false, "LangID");
                ReportPropertyChanged("LangID");
                OnLangIDChanged();
            }
        }
        private global::System.String _LangID;
        partial void OnLangIDChanging(global::System.String value);
        partial void OnLangIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tag
        {
            get
            {
                return _Tag;
            }
            set
            {
                OnTagChanging(value);
                ReportPropertyChanging("Tag");
                _Tag = StructuralObject.SetValidValue(value, true, "Tag");
                ReportPropertyChanged("Tag");
                OnTagChanged();
            }
        }
        private global::System.String _Tag;
        partial void OnTagChanging(global::System.String value);
        partial void OnTagChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String PageTitle
        {
            get
            {
                return _PageTitle;
            }
            set
            {
                OnPageTitleChanging(value);
                ReportPropertyChanging("PageTitle");
                _PageTitle = StructuralObject.SetValidValue(value, false, "PageTitle");
                ReportPropertyChanged("PageTitle");
                OnPageTitleChanged();
            }
        }
        private global::System.String _PageTitle;
        partial void OnPageTitleChanging(global::System.String value);
        partial void OnPageTitleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> ParentPageID
        {
            get
            {
                return _ParentPageID;
            }
            set
            {
                OnParentPageIDChanging(value);
                ReportPropertyChanging("ParentPageID");
                _ParentPageID = StructuralObject.SetValidValue(value, "ParentPageID");
                ReportPropertyChanged("ParentPageID");
                OnParentPageIDChanged();
            }
        }
        private Nullable<global::System.Int32> _ParentPageID;
        partial void OnParentPageIDChanging(Nullable<global::System.Int32> value);
        partial void OnParentPageIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Nivel
        {
            get
            {
                return _Nivel;
            }
            set
            {
                OnNivelChanging(value);
                ReportPropertyChanging("Nivel");
                _Nivel = StructuralObject.SetValidValue(value, "Nivel");
                ReportPropertyChanged("Nivel");
                OnNivelChanged();
            }
        }
        private global::System.Int32 _Nivel;
        partial void OnNivelChanging(global::System.Int32 value);
        partial void OnNivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ordem
        {
            get
            {
                return _Ordem;
            }
            set
            {
                OnOrdemChanging(value);
                ReportPropertyChanging("Ordem");
                _Ordem = StructuralObject.SetValidValue(value, "Ordem");
                ReportPropertyChanged("Ordem");
                OnOrdemChanged();
            }
        }
        private global::System.Int32 _Ordem;
        partial void OnOrdemChanging(global::System.Int32 value);
        partial void OnOrdemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Caminho
        {
            get
            {
                return _Caminho;
            }
            set
            {
                OnCaminhoChanging(value);
                ReportPropertyChanging("Caminho");
                _Caminho = StructuralObject.SetValidValue(value, false, "Caminho");
                ReportPropertyChanged("Caminho");
                OnCaminhoChanged();
            }
        }
        private global::System.String _Caminho;
        partial void OnCaminhoChanging(global::System.String value);
        partial void OnCaminhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String AuthorizedViewRoles
        {
            get
            {
                return _AuthorizedViewRoles;
            }
            set
            {
                OnAuthorizedViewRolesChanging(value);
                ReportPropertyChanging("AuthorizedViewRoles");
                _AuthorizedViewRoles = StructuralObject.SetValidValue(value, true, "AuthorizedViewRoles");
                ReportPropertyChanged("AuthorizedViewRoles");
                OnAuthorizedViewRolesChanged();
            }
        }
        private global::System.String _AuthorizedViewRoles;
        partial void OnAuthorizedViewRolesChanging(global::System.String value);
        partial void OnAuthorizedViewRolesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean MenuVisible
        {
            get
            {
                return _MenuVisible;
            }
            set
            {
                OnMenuVisibleChanging(value);
                ReportPropertyChanging("MenuVisible");
                _MenuVisible = StructuralObject.SetValidValue(value, "MenuVisible");
                ReportPropertyChanged("MenuVisible");
                OnMenuVisibleChanged();
            }
        }
        private global::System.Boolean _MenuVisible;
        partial void OnMenuVisibleChanging(global::System.Boolean value);
        partial void OnMenuVisibleChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UrlExt
        {
            get
            {
                return _UrlExt;
            }
            set
            {
                OnUrlExtChanging(value);
                ReportPropertyChanging("UrlExt");
                _UrlExt = StructuralObject.SetValidValue(value, true, "UrlExt");
                ReportPropertyChanged("UrlExt");
                OnUrlExtChanged();
            }
        }
        private global::System.String _UrlExt;
        partial void OnUrlExtChanging(global::System.String value);
        partial void OnUrlExtChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MenuPages_MenuTabs", "MenuTabs")]
        public MenuTabs MenuTabs
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MenuTabs>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuTabs").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MenuTabs>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuTabs").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<MenuTabs> MenuTabsReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<MenuTabs>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuTabs");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<MenuTabs>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuTabs", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "MenuPagesPermissions", "Perfil")]
        public EntityCollection<Perfil> Perfil
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Perfil>("GestaoProjectosModel.MenuPagesPermissions", "Perfil");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Perfil>("GestaoProjectosModel.MenuPagesPermissions", "Perfil", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="MenuTabs")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class MenuTabs : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new MenuTabs object.
        /// </summary>
        /// <param name="tabID">Initial value of the TabID property.</param>
        /// <param name="langId">Initial value of the LangId property.</param>
        /// <param name="tabOrder">Initial value of the TabOrder property.</param>
        /// <param name="tabName">Initial value of the TabName property.</param>
        public static MenuTabs CreateMenuTabs(global::System.Int32 tabID, global::System.String langId, global::System.Int32 tabOrder, global::System.String tabName)
        {
            MenuTabs menuTabs = new MenuTabs();
            menuTabs.TabID = tabID;
            menuTabs.LangId = langId;
            menuTabs.TabOrder = tabOrder;
            menuTabs.TabName = tabName;
            return menuTabs;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 TabID
        {
            get
            {
                return _TabID;
            }
            set
            {
                if (_TabID != value)
                {
                    OnTabIDChanging(value);
                    ReportPropertyChanging("TabID");
                    _TabID = StructuralObject.SetValidValue(value, "TabID");
                    ReportPropertyChanged("TabID");
                    OnTabIDChanged();
                }
            }
        }
        private global::System.Int32 _TabID;
        partial void OnTabIDChanging(global::System.Int32 value);
        partial void OnTabIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String LangId
        {
            get
            {
                return _LangId;
            }
            set
            {
                OnLangIdChanging(value);
                ReportPropertyChanging("LangId");
                _LangId = StructuralObject.SetValidValue(value, false, "LangId");
                ReportPropertyChanged("LangId");
                OnLangIdChanged();
            }
        }
        private global::System.String _LangId;
        partial void OnLangIdChanging(global::System.String value);
        partial void OnLangIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 TabOrder
        {
            get
            {
                return _TabOrder;
            }
            set
            {
                OnTabOrderChanging(value);
                ReportPropertyChanging("TabOrder");
                _TabOrder = StructuralObject.SetValidValue(value, "TabOrder");
                ReportPropertyChanged("TabOrder");
                OnTabOrderChanged();
            }
        }
        private global::System.Int32 _TabOrder;
        partial void OnTabOrderChanging(global::System.Int32 value);
        partial void OnTabOrderChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TabName
        {
            get
            {
                return _TabName;
            }
            set
            {
                OnTabNameChanging(value);
                ReportPropertyChanging("TabName");
                _TabName = StructuralObject.SetValidValue(value, false, "TabName");
                ReportPropertyChanged("TabName");
                OnTabNameChanged();
            }
        }
        private global::System.String _TabName;
        partial void OnTabNameChanging(global::System.String value);
        partial void OnTabNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TabNameImg
        {
            get
            {
                return _TabNameImg;
            }
            set
            {
                OnTabNameImgChanging(value);
                ReportPropertyChanging("TabNameImg");
                _TabNameImg = StructuralObject.SetValidValue(value, true, "TabNameImg");
                ReportPropertyChanged("TabNameImg");
                OnTabNameImgChanged();
            }
        }
        private global::System.String _TabNameImg;
        partial void OnTabNameImgChanging(global::System.String value);
        partial void OnTabNameImgChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String AuthorizedViewRoles
        {
            get
            {
                return _AuthorizedViewRoles;
            }
            set
            {
                OnAuthorizedViewRolesChanging(value);
                ReportPropertyChanging("AuthorizedViewRoles");
                _AuthorizedViewRoles = StructuralObject.SetValidValue(value, true, "AuthorizedViewRoles");
                ReportPropertyChanged("AuthorizedViewRoles");
                OnAuthorizedViewRolesChanged();
            }
        }
        private global::System.String _AuthorizedViewRoles;
        partial void OnAuthorizedViewRolesChanging(global::System.String value);
        partial void OnAuthorizedViewRolesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CssSuffix
        {
            get
            {
                return _CssSuffix;
            }
            set
            {
                OnCssSuffixChanging(value);
                ReportPropertyChanging("CssSuffix");
                _CssSuffix = StructuralObject.SetValidValue(value, true, "CssSuffix");
                ReportPropertyChanged("CssSuffix");
                OnCssSuffixChanged();
            }
        }
        private global::System.String _CssSuffix;
        partial void OnCssSuffixChanging(global::System.String value);
        partial void OnCssSuffixChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MenuPages_MenuTabs", "MenuPages")]
        public EntityCollection<MenuPages> MenuPages
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MenuPages>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuPages");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MenuPages>("GestaoProjectosModel.FK_MenuPages_MenuTabs", "MenuPages", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "MenuTabsPermissions", "Perfil")]
        public EntityCollection<Perfil> Perfil
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Perfil>("GestaoProjectosModel.MenuTabsPermissions", "Perfil");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Perfil>("GestaoProjectosModel.MenuTabsPermissions", "Perfil", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="MotivoTermino")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class MotivoTermino : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new MotivoTermino object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static MotivoTermino CreateMotivoTermino(global::System.Int32 id, global::System.String descricao, global::System.Boolean activo)
        {
            MotivoTermino motivoTermino = new MotivoTermino();
            motivoTermino.ID = id;
            motivoTermino.Descricao = descricao;
            motivoTermino.Activo = activo;
            return motivoTermino;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_MotivoTermino", "Contratos")]
        public EntityCollection<Contratos> Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_MotivoTermino", "Contratos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="NumeradorAdiantamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class NumeradorAdiantamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new NumeradorAdiantamento object.
        /// </summary>
        /// <param name="numerador">Initial value of the Numerador property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        public static NumeradorAdiantamento CreateNumeradorAdiantamento(global::System.Int32 numerador, global::System.Int32 ano)
        {
            NumeradorAdiantamento numeradorAdiantamento = new NumeradorAdiantamento();
            numeradorAdiantamento.Numerador = numerador;
            numeradorAdiantamento.Ano = ano;
            return numeradorAdiantamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Numerador
        {
            get
            {
                return _Numerador;
            }
            set
            {
                OnNumeradorChanging(value);
                ReportPropertyChanging("Numerador");
                _Numerador = StructuralObject.SetValidValue(value, "Numerador");
                ReportPropertyChanged("Numerador");
                OnNumeradorChanged();
            }
        }
        private global::System.Int32 _Numerador;
        partial void OnNumeradorChanging(global::System.Int32 value);
        partial void OnNumeradorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                if (_Ano != value)
                {
                    OnAnoChanging(value);
                    ReportPropertyChanging("Ano");
                    _Ano = StructuralObject.SetValidValue(value, "Ano");
                    ReportPropertyChanged("Ano");
                    OnAnoChanged();
                }
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="NumeradorCompensacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class NumeradorCompensacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new NumeradorCompensacao object.
        /// </summary>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="numerador">Initial value of the Numerador property.</param>
        public static NumeradorCompensacao CreateNumeradorCompensacao(global::System.Int32 ano, global::System.Int32 numerador)
        {
            NumeradorCompensacao numeradorCompensacao = new NumeradorCompensacao();
            numeradorCompensacao.Ano = ano;
            numeradorCompensacao.Numerador = numerador;
            return numeradorCompensacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                if (_Ano != value)
                {
                    OnAnoChanging(value);
                    ReportPropertyChanging("Ano");
                    _Ano = StructuralObject.SetValidValue(value, "Ano");
                    ReportPropertyChanged("Ano");
                    OnAnoChanged();
                }
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Numerador
        {
            get
            {
                return _Numerador;
            }
            set
            {
                OnNumeradorChanging(value);
                ReportPropertyChanging("Numerador");
                _Numerador = StructuralObject.SetValidValue(value, "Numerador");
                ReportPropertyChanged("Numerador");
                OnNumeradorChanged();
            }
        }
        private global::System.Int32 _Numerador;
        partial void OnNumeradorChanging(global::System.Int32 value);
        partial void OnNumeradorChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="NumeradorOrcamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class NumeradorOrcamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new NumeradorOrcamento object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="numerador">Initial value of the Numerador property.</param>
        public static NumeradorOrcamento CreateNumeradorOrcamento(global::System.Int32 iDProjecto, global::System.Int32 numerador)
        {
            NumeradorOrcamento numeradorOrcamento = new NumeradorOrcamento();
            numeradorOrcamento.IDProjecto = iDProjecto;
            numeradorOrcamento.Numerador = numerador;
            return numeradorOrcamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Numerador
        {
            get
            {
                return _Numerador;
            }
            set
            {
                OnNumeradorChanging(value);
                ReportPropertyChanging("Numerador");
                _Numerador = StructuralObject.SetValidValue(value, "Numerador");
                ReportPropertyChanged("Numerador");
                OnNumeradorChanged();
            }
        }
        private global::System.Int32 _Numerador;
        partial void OnNumeradorChanging(global::System.Int32 value);
        partial void OnNumeradorChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="OverheadTipo")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class OverheadTipo : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new OverheadTipo object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="percentagemDefeito">Initial value of the PercentagemDefeito property.</param>
        public static OverheadTipo CreateOverheadTipo(global::System.Int32 id, global::System.String nome, global::System.Double percentagemDefeito)
        {
            OverheadTipo overheadTipo = new OverheadTipo();
            overheadTipo.ID = id;
            overheadTipo.Nome = nome;
            overheadTipo.PercentagemDefeito = percentagemDefeito;
            return overheadTipo;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double PercentagemDefeito
        {
            get
            {
                return _PercentagemDefeito;
            }
            set
            {
                OnPercentagemDefeitoChanging(value);
                ReportPropertyChanging("PercentagemDefeito");
                _PercentagemDefeito = StructuralObject.SetValidValue(value, "PercentagemDefeito");
                ReportPropertyChanged("PercentagemDefeito");
                OnPercentagemDefeitoChanged();
            }
        }
        private global::System.Double _PercentagemDefeito;
        partial void OnPercentagemDefeitoChanging(global::System.Double value);
        partial void OnPercentagemDefeitoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, true, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_OverheadTipo", "ProjectoOverheads")]
        public EntityCollection<ProjectoOverheads> ProjectoOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoOverheads>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "ProjectoOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoOverheads>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "ProjectoOverheads", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PagamentoEstado")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PagamentoEstado : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PagamentoEstado object.
        /// </summary>
        /// <param name="iDPedidoPagamento">Initial value of the IDPedidoPagamento property.</param>
        /// <param name="dataEstado">Initial value of the DataEstado property.</param>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        public static PagamentoEstado CreatePagamentoEstado(global::System.Int32 iDPedidoPagamento, global::System.DateTime dataEstado, global::System.Int32 iDEstado, global::System.Int32 id)
        {
            PagamentoEstado pagamentoEstado = new PagamentoEstado();
            pagamentoEstado.IDPedidoPagamento = iDPedidoPagamento;
            pagamentoEstado.DataEstado = dataEstado;
            pagamentoEstado.IDEstado = iDEstado;
            pagamentoEstado.ID = id;
            return pagamentoEstado;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPedidoPagamento
        {
            get
            {
                return _IDPedidoPagamento;
            }
            set
            {
                OnIDPedidoPagamentoChanging(value);
                ReportPropertyChanging("IDPedidoPagamento");
                _IDPedidoPagamento = StructuralObject.SetValidValue(value, "IDPedidoPagamento");
                ReportPropertyChanged("IDPedidoPagamento");
                OnIDPedidoPagamentoChanged();
            }
        }
        private global::System.Int32 _IDPedidoPagamento;
        partial void OnIDPedidoPagamentoChanging(global::System.Int32 value);
        partial void OnIDPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEstado
        {
            get
            {
                return _DataEstado;
            }
            set
            {
                OnDataEstadoChanging(value);
                ReportPropertyChanging("DataEstado");
                _DataEstado = StructuralObject.SetValidValue(value, "DataEstado");
                ReportPropertyChanged("DataEstado");
                OnDataEstadoChanged();
            }
        }
        private global::System.DateTime _DataEstado;
        partial void OnDataEstadoChanging(global::System.DateTime value);
        partial void OnDataEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Utilizador
        {
            get
            {
                return _Utilizador;
            }
            set
            {
                OnUtilizadorChanging(value);
                ReportPropertyChanging("Utilizador");
                _Utilizador = StructuralObject.SetValidValue(value, true, "Utilizador");
                ReportPropertyChanged("Utilizador");
                OnUtilizadorChanged();
            }
        }
        private global::System.String _Utilizador;
        partial void OnUtilizadorChanging(global::System.String value);
        partial void OnUtilizadorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentoEstado_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> PagamentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "Pagamentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PagamentoQuestao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PagamentoQuestao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PagamentoQuestao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDPagamento">Initial value of the IDPagamento property.</param>
        public static PagamentoQuestao CreatePagamentoQuestao(global::System.Int32 id, global::System.Int32 iDPagamento)
        {
            PagamentoQuestao pagamentoQuestao = new PagamentoQuestao();
            pagamentoQuestao.ID = id;
            pagamentoQuestao.IDPagamento = iDPagamento;
            return pagamentoQuestao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPagamento
        {
            get
            {
                return _IDPagamento;
            }
            set
            {
                OnIDPagamentoChanging(value);
                ReportPropertyChanging("IDPagamento");
                _IDPagamento = StructuralObject.SetValidValue(value, "IDPagamento");
                ReportPropertyChanged("IDPagamento");
                OnIDPagamentoChanged();
            }
        }
        private global::System.Int32 _IDPagamento;
        partial void OnIDPagamentoChanging(global::System.Int32 value);
        partial void OnIDPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Questao
        {
            get
            {
                return _Questao;
            }
            set
            {
                OnQuestaoChanging(value);
                ReportPropertyChanging("Questao");
                _Questao = StructuralObject.SetValidValue(value, true, "Questao");
                ReportPropertyChanged("Questao");
                OnQuestaoChanged();
            }
        }
        private global::System.String _Questao;
        partial void OnQuestaoChanging(global::System.String value);
        partial void OnQuestaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataQuestao
        {
            get
            {
                return _DataQuestao;
            }
            set
            {
                OnDataQuestaoChanging(value);
                ReportPropertyChanging("DataQuestao");
                _DataQuestao = StructuralObject.SetValidValue(value, "DataQuestao");
                ReportPropertyChanged("DataQuestao");
                OnDataQuestaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataQuestao;
        partial void OnDataQuestaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataQuestaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Resposta
        {
            get
            {
                return _Resposta;
            }
            set
            {
                OnRespostaChanging(value);
                ReportPropertyChanging("Resposta");
                _Resposta = StructuralObject.SetValidValue(value, true, "Resposta");
                ReportPropertyChanged("Resposta");
                OnRespostaChanged();
            }
        }
        private global::System.String _Resposta;
        partial void OnRespostaChanging(global::System.String value);
        partial void OnRespostaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataResposta
        {
            get
            {
                return _DataResposta;
            }
            set
            {
                OnDataRespostaChanging(value);
                ReportPropertyChanging("DataResposta");
                _DataResposta = StructuralObject.SetValidValue(value, "DataResposta");
                ReportPropertyChanged("DataResposta");
                OnDataRespostaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataResposta;
        partial void OnDataRespostaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRespostaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ObservacoesQuestao
        {
            get
            {
                return _ObservacoesQuestao;
            }
            set
            {
                OnObservacoesQuestaoChanging(value);
                ReportPropertyChanging("ObservacoesQuestao");
                _ObservacoesQuestao = StructuralObject.SetValidValue(value, true, "ObservacoesQuestao");
                ReportPropertyChanged("ObservacoesQuestao");
                OnObservacoesQuestaoChanged();
            }
        }
        private global::System.String _ObservacoesQuestao;
        partial void OnObservacoesQuestaoChanging(global::System.String value);
        partial void OnObservacoesQuestaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ObservacoesResposta
        {
            get
            {
                return _ObservacoesResposta;
            }
            set
            {
                OnObservacoesRespostaChanging(value);
                ReportPropertyChanging("ObservacoesResposta");
                _ObservacoesResposta = StructuralObject.SetValidValue(value, true, "ObservacoesResposta");
                ReportPropertyChanged("ObservacoesResposta");
                OnObservacoesRespostaChanged();
            }
        }
        private global::System.String _ObservacoesResposta;
        partial void OnObservacoesRespostaChanging(global::System.String value);
        partial void OnObservacoesRespostaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> QuestaoResolvida
        {
            get
            {
                return _QuestaoResolvida;
            }
            set
            {
                OnQuestaoResolvidaChanging(value);
                ReportPropertyChanging("QuestaoResolvida");
                _QuestaoResolvida = StructuralObject.SetValidValue(value, "QuestaoResolvida");
                ReportPropertyChanged("QuestaoResolvida");
                OnQuestaoResolvidaChanged();
            }
        }
        private Nullable<global::System.Boolean> _QuestaoResolvida;
        partial void OnQuestaoResolvidaChanging(Nullable<global::System.Boolean> value);
        partial void OnQuestaoResolvidaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FlagTipoQuestao
        {
            get
            {
                return _FlagTipoQuestao;
            }
            set
            {
                OnFlagTipoQuestaoChanging(value);
                ReportPropertyChanging("FlagTipoQuestao");
                _FlagTipoQuestao = StructuralObject.SetValidValue(value, true, "FlagTipoQuestao");
                ReportPropertyChanged("FlagTipoQuestao");
                OnFlagTipoQuestaoChanged();
            }
        }
        private global::System.String _FlagTipoQuestao;
        partial void OnFlagTipoQuestaoChanging(global::System.String value);
        partial void OnFlagTipoQuestaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoQuestoes_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> PagamentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "Pagamentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Pagamentos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Pagamentos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Pagamentos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDEntidade">Initial value of the IDEntidade property.</param>
        /// <param name="dataPedido">Initial value of the DataPedido property.</param>
        /// <param name="codigoTipoPagamento">Initial value of the CodigoTipoPagamento property.</param>
        /// <param name="iDEstadoActual">Initial value of the IDEstadoActual property.</param>
        public static Pagamentos CreatePagamentos(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao, global::System.Int32 iDEntidade, global::System.DateTime dataPedido, global::System.String codigoTipoPagamento, global::System.Int32 iDEstadoActual)
        {
            Pagamentos pagamentos = new Pagamentos();
            pagamentos.ID = id;
            pagamentos.IDProjecto = iDProjecto;
            pagamentos.IDInstituicao = iDInstituicao;
            pagamentos.IDEntidade = iDEntidade;
            pagamentos.DataPedido = dataPedido;
            pagamentos.CodigoTipoPagamento = codigoTipoPagamento;
            pagamentos.IDEstadoActual = iDEstadoActual;
            return pagamentos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidade
        {
            get
            {
                return _IDEntidade;
            }
            set
            {
                OnIDEntidadeChanging(value);
                ReportPropertyChanging("IDEntidade");
                _IDEntidade = StructuralObject.SetValidValue(value, "IDEntidade");
                ReportPropertyChanged("IDEntidade");
                OnIDEntidadeChanged();
            }
        }
        private global::System.Int32 _IDEntidade;
        partial void OnIDEntidadeChanging(global::System.Int32 value);
        partial void OnIDEntidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataPedido
        {
            get
            {
                return _DataPedido;
            }
            set
            {
                OnDataPedidoChanging(value);
                ReportPropertyChanging("DataPedido");
                _DataPedido = StructuralObject.SetValidValue(value, "DataPedido");
                ReportPropertyChanged("DataPedido");
                OnDataPedidoChanged();
            }
        }
        private global::System.DateTime _DataPedido;
        partial void OnDataPedidoChanging(global::System.DateTime value);
        partial void OnDataPedidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoPagamento
        {
            get
            {
                return _CodigoTipoPagamento;
            }
            set
            {
                OnCodigoTipoPagamentoChanging(value);
                ReportPropertyChanging("CodigoTipoPagamento");
                _CodigoTipoPagamento = StructuralObject.SetValidValue(value, false, "CodigoTipoPagamento");
                ReportPropertyChanged("CodigoTipoPagamento");
                OnCodigoTipoPagamentoChanged();
            }
        }
        private global::System.String _CodigoTipoPagamento;
        partial void OnCodigoTipoPagamentoChanging(global::System.String value);
        partial void OnCodigoTipoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstadoActual
        {
            get
            {
                return _IDEstadoActual;
            }
            set
            {
                OnIDEstadoActualChanging(value);
                ReportPropertyChanging("IDEstadoActual");
                _IDEstadoActual = StructuralObject.SetValidValue(value, "IDEstadoActual");
                ReportPropertyChanged("IDEstadoActual");
                OnIDEstadoActualChanged();
            }
        }
        private global::System.Int32 _IDEstadoActual;
        partial void OnIDEstadoActualChanging(global::System.Int32 value);
        partial void OnIDEstadoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Anexo
        {
            get
            {
                return _Anexo;
            }
            set
            {
                OnAnexoChanging(value);
                ReportPropertyChanging("Anexo");
                _Anexo = StructuralObject.SetValidValue(value, true, "Anexo");
                ReportPropertyChanged("Anexo");
                OnAnexoChanged();
            }
        }
        private global::System.String _Anexo;
        partial void OnAnexoChanging(global::System.String value);
        partial void OnAnexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Legado
        {
            get
            {
                return _Legado;
            }
            set
            {
                OnLegadoChanging(value);
                ReportPropertyChanging("Legado");
                _Legado = StructuralObject.SetValidValue(value, "Legado");
                ReportPropertyChanged("Legado");
                OnLegadoChanged();
            }
        }
        private Nullable<global::System.Boolean> _Legado;
        partial void OnLegadoChanging(Nullable<global::System.Boolean> value);
        partial void OnLegadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataLacragem
        {
            get
            {
                return _DataLacragem;
            }
            set
            {
                OnDataLacragemChanging(value);
                ReportPropertyChanging("DataLacragem");
                _DataLacragem = StructuralObject.SetValidValue(value, "DataLacragem");
                ReportPropertyChanged("DataLacragem");
                OnDataLacragemChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataLacragem;
        partial void OnDataLacragemChanging(Nullable<global::System.DateTime> value);
        partial void OnDataLacragemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAnaliseEF
        {
            get
            {
                return _DataAnaliseEF;
            }
            set
            {
                OnDataAnaliseEFChanging(value);
                ReportPropertyChanging("DataAnaliseEF");
                _DataAnaliseEF = StructuralObject.SetValidValue(value, "DataAnaliseEF");
                ReportPropertyChanged("DataAnaliseEF");
                OnDataAnaliseEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAnaliseEF;
        partial void OnDataAnaliseEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAnaliseEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPedidoContraFatura
        {
            get
            {
                return _IDPedidoContraFatura;
            }
            set
            {
                OnIDPedidoContraFaturaChanging(value);
                ReportPropertyChanging("IDPedidoContraFatura");
                _IDPedidoContraFatura = StructuralObject.SetValidValue(value, "IDPedidoContraFatura");
                ReportPropertyChanged("IDPedidoContraFatura");
                OnIDPedidoContraFaturaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPedidoContraFatura;
        partial void OnIDPedidoContraFaturaChanging(Nullable<global::System.Int32> value);
        partial void OnIDPedidoContraFaturaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Pagamentos_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Pagamentos_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Pagamentos_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_Pagamentos_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoEstado_Pagamentos", "PagamentoEstado")]
        public EntityCollection<PagamentoEstado> PagamentoEstado
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentoEstado>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "PagamentoEstado");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentoEstado>("GestaoProjectosModel.FK_PagamentoEstado_Pagamentos", "PagamentoEstado", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentoQuestoes_Pagamentos", "PagamentoQuestao")]
        public EntityCollection<PagamentoQuestao> PagamentoQuestao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentoQuestao>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "PagamentoQuestao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentoQuestao>("GestaoProjectosModel.FK_PagamentoQuestoes_Pagamentos", "PagamentoQuestao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Pagamentos", "Pagamentos1")]
        public EntityCollection<Pagamentos> Pagamentos1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> Pagamentos2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Pagamentos", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_TipoPagamento", "TipoPagamento")]
        public TipoPagamento TipoPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoPagamento>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "TipoPagamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoPagamento>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "TipoPagamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoPagamento> TipoPagamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoPagamento>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "TipoPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoPagamento>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "TipoPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Pagamentos", "PedidosContraFaturas")]
        public EntityCollection<PedidosContraFaturas> PedidosContraFaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "PedidosContraFaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "PedidosContraFaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Pagamentos", "RecebimentosPagamento")]
        public EntityCollection<RecebimentosPagamento> RecebimentosPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosPagamento>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "RecebimentosPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosPagamento>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "RecebimentosPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Pagamentos_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_Pagamentos_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Pagamentos", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Pagamentos", "Despesas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas")]
        public PedidosContraFaturas PedidosContraFaturas1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PedidosContraFaturas>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PedidosContraFaturas>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PedidosContraFaturas> PedidosContraFaturas1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PedidosContraFaturas>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PedidosContraFaturas>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "PedidosContraFaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PagamentosParticipantes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PagamentosParticipantes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PagamentosParticipantes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicaoParticipante">Initial value of the IDInstituicaoParticipante property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="valorSubmetido">Initial value of the ValorSubmetido property.</param>
        /// <param name="valorElegivel">Initial value of the ValorElegivel property.</param>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        /// <param name="dataPedido">Initial value of the DataPedido property.</param>
        public static PagamentosParticipantes CreatePagamentosParticipantes(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicaoParticipante, global::System.Int32 iDEntidadeFinanciadora, global::System.Double valorSubmetido, global::System.Double valorElegivel, global::System.Int32 iDEstado, global::System.DateTime dataPedido)
        {
            PagamentosParticipantes pagamentosParticipantes = new PagamentosParticipantes();
            pagamentosParticipantes.ID = id;
            pagamentosParticipantes.IDProjecto = iDProjecto;
            pagamentosParticipantes.IDInstituicaoParticipante = iDInstituicaoParticipante;
            pagamentosParticipantes.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            pagamentosParticipantes.ValorSubmetido = valorSubmetido;
            pagamentosParticipantes.ValorElegivel = valorElegivel;
            pagamentosParticipantes.IDEstado = iDEstado;
            pagamentosParticipantes.DataPedido = dataPedido;
            return pagamentosParticipantes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicaoParticipante
        {
            get
            {
                return _IDInstituicaoParticipante;
            }
            set
            {
                OnIDInstituicaoParticipanteChanging(value);
                ReportPropertyChanging("IDInstituicaoParticipante");
                _IDInstituicaoParticipante = StructuralObject.SetValidValue(value, "IDInstituicaoParticipante");
                ReportPropertyChanged("IDInstituicaoParticipante");
                OnIDInstituicaoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDInstituicaoParticipante;
        partial void OnIDInstituicaoParticipanteChanging(global::System.Int32 value);
        partial void OnIDInstituicaoParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorSubmetido
        {
            get
            {
                return _ValorSubmetido;
            }
            set
            {
                OnValorSubmetidoChanging(value);
                ReportPropertyChanging("ValorSubmetido");
                _ValorSubmetido = StructuralObject.SetValidValue(value, "ValorSubmetido");
                ReportPropertyChanged("ValorSubmetido");
                OnValorSubmetidoChanged();
            }
        }
        private global::System.Double _ValorSubmetido;
        partial void OnValorSubmetidoChanging(global::System.Double value);
        partial void OnValorSubmetidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private global::System.Double _ValorElegivel;
        partial void OnValorElegivelChanging(global::System.Double value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataPedido
        {
            get
            {
                return _DataPedido;
            }
            set
            {
                OnDataPedidoChanging(value);
                ReportPropertyChanging("DataPedido");
                _DataPedido = StructuralObject.SetValidValue(value, "DataPedido");
                ReportPropertyChanged("DataPedido");
                OnDataPedidoChanged();
            }
        }
        private global::System.DateTime _DataPedido;
        partial void OnDataPedidoChanging(global::System.DateTime value);
        partial void OnDataPedidoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_PagamentosParticipantes_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "RecebimentosPagamentoParticipantes")]
        public EntityCollection<RecebimentosPagamentoParticipantes> RecebimentosPagamentoParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosPagamentoParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "RecebimentosPagamentoParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosPagamentoParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "RecebimentosPagamentoParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "TranferenciasPagamentosParticipantes")]
        public EntityCollection<TranferenciasPagamentosParticipantes> TranferenciasPagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TranferenciasPagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "TranferenciasPagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TranferenciasPagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "TranferenciasPagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_PagamentosParticipantes_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Paises")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Paises : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Paises object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        public static Paises CreatePaises(global::System.Int32 id)
        {
            Paises paises = new Paises();
            paises.ID = id;
            return paises;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomePais
        {
            get
            {
                return _NomePais;
            }
            set
            {
                OnNomePaisChanging(value);
                ReportPropertyChanging("NomePais");
                _NomePais = StructuralObject.SetValidValue(value, true, "NomePais");
                ReportPropertyChanged("NomePais");
                OnNomePaisChanged();
            }
        }
        private global::System.String _NomePais;
        partial void OnNomePaisChanging(global::System.String value);
        partial void OnNomePaisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ISO3166Code
        {
            get
            {
                return _ISO3166Code;
            }
            set
            {
                OnISO3166CodeChanging(value);
                ReportPropertyChanging("ISO3166Code");
                _ISO3166Code = StructuralObject.SetValidValue(value, true, "ISO3166Code");
                ReportPropertyChanged("ISO3166Code");
                OnISO3166CodeChanged();
            }
        }
        private global::System.String _ISO3166Code;
        partial void OnISO3166CodeChanging(global::System.String value);
        partial void OnISO3166CodeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodERP
        {
            get
            {
                return _CodERP;
            }
            set
            {
                OnCodERPChanging(value);
                ReportPropertyChanging("CodERP");
                _CodERP = StructuralObject.SetValidValue(value, true, "CodERP");
                ReportPropertyChanged("CodERP");
                OnCodERPChanged();
            }
        }
        private global::System.String _CodERP;
        partial void OnCodERPChanging(global::System.String value);
        partial void OnCodERPChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_Paises", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_Paises", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_Paises", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_Paises", "EntidadeFinanciadora")]
        public EntityCollection<EntidadeFinanciadora> EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EntidadeFinanciadora>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EntidadeFinanciadora>("GestaoProjectosModel.FK_EntidadeFinanciadora_Paises", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Instituicao_Paises", "Instituicao")]
        public EntityCollection<Instituicao> Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Instituicao>("GestaoProjectosModel.FK_Instituicao_Paises", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Instituicao>("GestaoProjectosModel.FK_Instituicao_Paises", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PedidosContraFaturas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PedidosContraFaturas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PedidosContraFaturas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDPedidoPagamento">Initial value of the IDPedidoPagamento property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="nIFFornecedor">Initial value of the NIFFornecedor property.</param>
        /// <param name="nomeFornecedor">Initial value of the NomeFornecedor property.</param>
        /// <param name="iDDespesaTipoDocumento">Initial value of the IDDespesaTipoDocumento property.</param>
        /// <param name="dataFatura">Initial value of the DataFatura property.</param>
        /// <param name="numeroDocumentoFornecedor">Initial value of the NumeroDocumentoFornecedor property.</param>
        /// <param name="valorIliquido">Initial value of the ValorIliquido property.</param>
        /// <param name="valorIVA">Initial value of the ValorIVA property.</param>
        /// <param name="taxaIVA">Initial value of the TaxaIVA property.</param>
        /// <param name="valorTotal">Initial value of the ValorTotal property.</param>
        /// <param name="numeroNE">Initial value of the NumeroNE property.</param>
        /// <param name="taxaCoFinanciamento">Initial value of the TaxaCoFinanciamento property.</param>
        public static PedidosContraFaturas CreatePedidosContraFaturas(global::System.Int32 id, global::System.Int32 iDPedidoPagamento, global::System.Int32 iDRubrica, global::System.String nIFFornecedor, global::System.String nomeFornecedor, global::System.Int32 iDDespesaTipoDocumento, global::System.DateTime dataFatura, global::System.String numeroDocumentoFornecedor, global::System.Double valorIliquido, global::System.Double valorIVA, global::System.Double taxaIVA, global::System.Double valorTotal, global::System.String numeroNE, global::System.Double taxaCoFinanciamento)
        {
            PedidosContraFaturas pedidosContraFaturas = new PedidosContraFaturas();
            pedidosContraFaturas.ID = id;
            pedidosContraFaturas.IDPedidoPagamento = iDPedidoPagamento;
            pedidosContraFaturas.IDRubrica = iDRubrica;
            pedidosContraFaturas.NIFFornecedor = nIFFornecedor;
            pedidosContraFaturas.NomeFornecedor = nomeFornecedor;
            pedidosContraFaturas.IDDespesaTipoDocumento = iDDespesaTipoDocumento;
            pedidosContraFaturas.DataFatura = dataFatura;
            pedidosContraFaturas.NumeroDocumentoFornecedor = numeroDocumentoFornecedor;
            pedidosContraFaturas.ValorIliquido = valorIliquido;
            pedidosContraFaturas.ValorIVA = valorIVA;
            pedidosContraFaturas.TaxaIVA = taxaIVA;
            pedidosContraFaturas.ValorTotal = valorTotal;
            pedidosContraFaturas.NumeroNE = numeroNE;
            pedidosContraFaturas.TaxaCoFinanciamento = taxaCoFinanciamento;
            return pedidosContraFaturas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPedidoPagamento
        {
            get
            {
                return _IDPedidoPagamento;
            }
            set
            {
                OnIDPedidoPagamentoChanging(value);
                ReportPropertyChanging("IDPedidoPagamento");
                _IDPedidoPagamento = StructuralObject.SetValidValue(value, "IDPedidoPagamento");
                ReportPropertyChanged("IDPedidoPagamento");
                OnIDPedidoPagamentoChanged();
            }
        }
        private global::System.Int32 _IDPedidoPagamento;
        partial void OnIDPedidoPagamentoChanging(global::System.Int32 value);
        partial void OnIDPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProjecto;
        partial void OnIDProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                OnIDRubricaChanging(value);
                ReportPropertyChanging("IDRubrica");
                _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                ReportPropertyChanged("IDRubrica");
                OnIDRubricaChanged();
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NIFFornecedor
        {
            get
            {
                return _NIFFornecedor;
            }
            set
            {
                OnNIFFornecedorChanging(value);
                ReportPropertyChanging("NIFFornecedor");
                _NIFFornecedor = StructuralObject.SetValidValue(value, false, "NIFFornecedor");
                ReportPropertyChanged("NIFFornecedor");
                OnNIFFornecedorChanged();
            }
        }
        private global::System.String _NIFFornecedor;
        partial void OnNIFFornecedorChanging(global::System.String value);
        partial void OnNIFFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeFornecedor
        {
            get
            {
                return _NomeFornecedor;
            }
            set
            {
                OnNomeFornecedorChanging(value);
                ReportPropertyChanging("NomeFornecedor");
                _NomeFornecedor = StructuralObject.SetValidValue(value, false, "NomeFornecedor");
                ReportPropertyChanged("NomeFornecedor");
                OnNomeFornecedorChanged();
            }
        }
        private global::System.String _NomeFornecedor;
        partial void OnNomeFornecedorChanging(global::System.String value);
        partial void OnNomeFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDDespesaTipoDocumento
        {
            get
            {
                return _IDDespesaTipoDocumento;
            }
            set
            {
                OnIDDespesaTipoDocumentoChanging(value);
                ReportPropertyChanging("IDDespesaTipoDocumento");
                _IDDespesaTipoDocumento = StructuralObject.SetValidValue(value, "IDDespesaTipoDocumento");
                ReportPropertyChanged("IDDespesaTipoDocumento");
                OnIDDespesaTipoDocumentoChanged();
            }
        }
        private global::System.Int32 _IDDespesaTipoDocumento;
        partial void OnIDDespesaTipoDocumentoChanging(global::System.Int32 value);
        partial void OnIDDespesaTipoDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataFatura
        {
            get
            {
                return _DataFatura;
            }
            set
            {
                OnDataFaturaChanging(value);
                ReportPropertyChanging("DataFatura");
                _DataFatura = StructuralObject.SetValidValue(value, "DataFatura");
                ReportPropertyChanged("DataFatura");
                OnDataFaturaChanged();
            }
        }
        private global::System.DateTime _DataFatura;
        partial void OnDataFaturaChanging(global::System.DateTime value);
        partial void OnDataFaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NumeroDocumentoFornecedor
        {
            get
            {
                return _NumeroDocumentoFornecedor;
            }
            set
            {
                OnNumeroDocumentoFornecedorChanging(value);
                ReportPropertyChanging("NumeroDocumentoFornecedor");
                _NumeroDocumentoFornecedor = StructuralObject.SetValidValue(value, false, "NumeroDocumentoFornecedor");
                ReportPropertyChanged("NumeroDocumentoFornecedor");
                OnNumeroDocumentoFornecedorChanged();
            }
        }
        private global::System.String _NumeroDocumentoFornecedor;
        partial void OnNumeroDocumentoFornecedorChanging(global::System.String value);
        partial void OnNumeroDocumentoFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorIliquido
        {
            get
            {
                return _ValorIliquido;
            }
            set
            {
                OnValorIliquidoChanging(value);
                ReportPropertyChanging("ValorIliquido");
                _ValorIliquido = StructuralObject.SetValidValue(value, "ValorIliquido");
                ReportPropertyChanged("ValorIliquido");
                OnValorIliquidoChanged();
            }
        }
        private global::System.Double _ValorIliquido;
        partial void OnValorIliquidoChanging(global::System.Double value);
        partial void OnValorIliquidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorIVA
        {
            get
            {
                return _ValorIVA;
            }
            set
            {
                OnValorIVAChanging(value);
                ReportPropertyChanging("ValorIVA");
                _ValorIVA = StructuralObject.SetValidValue(value, "ValorIVA");
                ReportPropertyChanged("ValorIVA");
                OnValorIVAChanged();
            }
        }
        private global::System.Double _ValorIVA;
        partial void OnValorIVAChanging(global::System.Double value);
        partial void OnValorIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double TaxaIVA
        {
            get
            {
                return _TaxaIVA;
            }
            set
            {
                OnTaxaIVAChanging(value);
                ReportPropertyChanging("TaxaIVA");
                _TaxaIVA = StructuralObject.SetValidValue(value, "TaxaIVA");
                ReportPropertyChanged("TaxaIVA");
                OnTaxaIVAChanged();
            }
        }
        private global::System.Double _TaxaIVA;
        partial void OnTaxaIVAChanging(global::System.Double value);
        partial void OnTaxaIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorTotal
        {
            get
            {
                return _ValorTotal;
            }
            set
            {
                OnValorTotalChanging(value);
                ReportPropertyChanging("ValorTotal");
                _ValorTotal = StructuralObject.SetValidValue(value, "ValorTotal");
                ReportPropertyChanged("ValorTotal");
                OnValorTotalChanged();
            }
        }
        private global::System.Double _ValorTotal;
        partial void OnValorTotalChanging(global::System.Double value);
        partial void OnValorTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NumeroNE
        {
            get
            {
                return _NumeroNE;
            }
            set
            {
                OnNumeroNEChanging(value);
                ReportPropertyChanging("NumeroNE");
                _NumeroNE = StructuralObject.SetValidValue(value, false, "NumeroNE");
                ReportPropertyChanged("NumeroNE");
                OnNumeroNEChanged();
            }
        }
        private global::System.String _NumeroNE;
        partial void OnNumeroNEChanging(global::System.String value);
        partial void OnNumeroNEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorReembolsar
        {
            get
            {
                return _ValorReembolsar;
            }
            set
            {
                OnValorReembolsarChanging(value);
                ReportPropertyChanging("ValorReembolsar");
                _ValorReembolsar = StructuralObject.SetValidValue(value, "ValorReembolsar");
                ReportPropertyChanged("ValorReembolsar");
                OnValorReembolsarChanged();
            }
        }
        private Nullable<global::System.Double> _ValorReembolsar;
        partial void OnValorReembolsarChanging(Nullable<global::System.Double> value);
        partial void OnValorReembolsarChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double TaxaCoFinanciamento
        {
            get
            {
                return _TaxaCoFinanciamento;
            }
            set
            {
                OnTaxaCoFinanciamentoChanging(value);
                ReportPropertyChanging("TaxaCoFinanciamento");
                _TaxaCoFinanciamento = StructuralObject.SetValidValue(value, "TaxaCoFinanciamento");
                ReportPropertyChanged("TaxaCoFinanciamento");
                OnTaxaCoFinanciamentoChanged();
            }
        }
        private global::System.Double _TaxaCoFinanciamento;
        partial void OnTaxaCoFinanciamentoChanging(global::System.Double value);
        partial void OnTaxaCoFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEstado;
        partial void OnIDEstadoChanging(Nullable<global::System.Int32> value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_PedidosContraFaturas_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> PagamentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_PedidosContraFaturas_Pagamentos", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_PedidosContraFaturas", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_PedidosContraFaturas", "Pagamentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Perfil")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Perfil : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Perfil object.
        /// </summary>
        /// <param name="codigoPerfil">Initial value of the CodigoPerfil property.</param>
        /// <param name="nomePerfil">Initial value of the NomePerfil property.</param>
        /// <param name="defaultViewName">Initial value of the DefaultViewName property.</param>
        public static Perfil CreatePerfil(global::System.String codigoPerfil, global::System.String nomePerfil, global::System.String defaultViewName)
        {
            Perfil perfil = new Perfil();
            perfil.CodigoPerfil = codigoPerfil;
            perfil.NomePerfil = nomePerfil;
            perfil.DefaultViewName = defaultViewName;
            return perfil;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPerfil
        {
            get
            {
                return _CodigoPerfil;
            }
            set
            {
                if (_CodigoPerfil != value)
                {
                    OnCodigoPerfilChanging(value);
                    ReportPropertyChanging("CodigoPerfil");
                    _CodigoPerfil = StructuralObject.SetValidValue(value, false, "CodigoPerfil");
                    ReportPropertyChanged("CodigoPerfil");
                    OnCodigoPerfilChanged();
                }
            }
        }
        private global::System.String _CodigoPerfil;
        partial void OnCodigoPerfilChanging(global::System.String value);
        partial void OnCodigoPerfilChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomePerfil
        {
            get
            {
                return _NomePerfil;
            }
            set
            {
                OnNomePerfilChanging(value);
                ReportPropertyChanging("NomePerfil");
                _NomePerfil = StructuralObject.SetValidValue(value, false, "NomePerfil");
                ReportPropertyChanged("NomePerfil");
                OnNomePerfilChanged();
            }
        }
        private global::System.String _NomePerfil;
        partial void OnNomePerfilChanging(global::System.String value);
        partial void OnNomePerfilChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DefaultViewName
        {
            get
            {
                return _DefaultViewName;
            }
            set
            {
                OnDefaultViewNameChanging(value);
                ReportPropertyChanging("DefaultViewName");
                _DefaultViewName = StructuralObject.SetValidValue(value, false, "DefaultViewName");
                ReportPropertyChanged("DefaultViewName");
                OnDefaultViewNameChanged();
            }
        }
        private global::System.String _DefaultViewName;
        partial void OnDefaultViewNameChanging(global::System.String value);
        partial void OnDefaultViewNameChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "Perfil_View_DefaultViewFK", "View")]
        public View View
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "View").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "View").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<View> ViewReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "View");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<View>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "View", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "MenuPagesPermissions", "MenuPages")]
        public EntityCollection<MenuPages> MenuPages
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MenuPages>("GestaoProjectosModel.MenuPagesPermissions", "MenuPages");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MenuPages>("GestaoProjectosModel.MenuPagesPermissions", "MenuPages", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "MenuTabsPermissions", "MenuTabs")]
        public EntityCollection<MenuTabs> MenuTabs
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MenuTabs>("GestaoProjectosModel.MenuTabsPermissions", "MenuTabs");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MenuTabs>("GestaoProjectosModel.MenuTabsPermissions", "MenuTabs", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "PerfilPermissao", "Permissoes")]
        public EntityCollection<Permissoes> Permissoes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Permissoes>("GestaoProjectosModel.PerfilPermissao", "Permissoes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Permissoes>("GestaoProjectosModel.PerfilPermissao", "Permissoes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PermissaoDespesas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PermissaoDespesas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PermissaoDespesas object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="centroCustos">Initial value of the CentroCustos property.</param>
        public static PermissaoDespesas CreatePermissaoDespesas(global::System.Int32 iDProjecto, global::System.String centroCustos)
        {
            PermissaoDespesas permissaoDespesas = new PermissaoDespesas();
            permissaoDespesas.IDProjecto = iDProjecto;
            permissaoDespesas.CentroCustos = centroCustos;
            return permissaoDespesas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                if (_CentroCustos != value)
                {
                    OnCentroCustosChanging(value);
                    ReportPropertyChanging("CentroCustos");
                    _CentroCustos = StructuralObject.SetValidValue(value, false, "CentroCustos");
                    ReportPropertyChanged("CentroCustos");
                    OnCentroCustosChanged();
                }
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Permissoes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Permissoes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Permissoes object.
        /// </summary>
        /// <param name="codigoPermissao">Initial value of the CodigoPermissao property.</param>
        /// <param name="descrição">Initial value of the Descrição property.</param>
        public static Permissoes CreatePermissoes(global::System.String codigoPermissao, global::System.String descrição)
        {
            Permissoes permissoes = new Permissoes();
            permissoes.CodigoPermissao = codigoPermissao;
            permissoes.Descrição = descrição;
            return permissoes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPermissao
        {
            get
            {
                return _CodigoPermissao;
            }
            set
            {
                if (_CodigoPermissao != value)
                {
                    OnCodigoPermissaoChanging(value);
                    ReportPropertyChanging("CodigoPermissao");
                    _CodigoPermissao = StructuralObject.SetValidValue(value, false, "CodigoPermissao");
                    ReportPropertyChanged("CodigoPermissao");
                    OnCodigoPermissaoChanged();
                }
            }
        }
        private global::System.String _CodigoPermissao;
        partial void OnCodigoPermissaoChanging(global::System.String value);
        partial void OnCodigoPermissaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descrição
        {
            get
            {
                return _Descrição;
            }
            set
            {
                OnDescriçãoChanging(value);
                ReportPropertyChanging("Descrição");
                _Descrição = StructuralObject.SetValidValue(value, false, "Descrição");
                ReportPropertyChanged("Descrição");
                OnDescriçãoChanged();
            }
        }
        private global::System.String _Descrição;
        partial void OnDescriçãoChanging(global::System.String value);
        partial void OnDescriçãoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_NomesPermissao", "ViewsPermissoes")]
        public EntityCollection<ViewsPermissoes> ViewsPermissoes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ViewsPermissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "ViewsPermissoes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ViewsPermissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "ViewsPermissoes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "PerfilPermissao", "Perfil")]
        public EntityCollection<Perfil> Perfil
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Perfil>("GestaoProjectosModel.PerfilPermissao", "Perfil");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Perfil>("GestaoProjectosModel.PerfilPermissao", "Perfil", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PortalFontesAreasTematicas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PortalFontesAreasTematicas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PortalFontesAreasTematicas object.
        /// </summary>
        /// <param name="iDFonteFinanciamento">Initial value of the IDFonteFinanciamento property.</param>
        /// <param name="iDAreaTematica">Initial value of the IDAreaTematica property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        public static PortalFontesAreasTematicas CreatePortalFontesAreasTematicas(global::System.Int32 iDFonteFinanciamento, global::System.Int32 iDAreaTematica, global::System.Int32 id)
        {
            PortalFontesAreasTematicas portalFontesAreasTematicas = new PortalFontesAreasTematicas();
            portalFontesAreasTematicas.IDFonteFinanciamento = iDFonteFinanciamento;
            portalFontesAreasTematicas.IDAreaTematica = iDAreaTematica;
            portalFontesAreasTematicas.ID = id;
            return portalFontesAreasTematicas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFonteFinanciamento
        {
            get
            {
                return _IDFonteFinanciamento;
            }
            set
            {
                OnIDFonteFinanciamentoChanging(value);
                ReportPropertyChanging("IDFonteFinanciamento");
                _IDFonteFinanciamento = StructuralObject.SetValidValue(value, "IDFonteFinanciamento");
                ReportPropertyChanged("IDFonteFinanciamento");
                OnIDFonteFinanciamentoChanged();
            }
        }
        private global::System.Int32 _IDFonteFinanciamento;
        partial void OnIDFonteFinanciamentoChanging(global::System.Int32 value);
        partial void OnIDFonteFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDAreaTematica
        {
            get
            {
                return _IDAreaTematica;
            }
            set
            {
                OnIDAreaTematicaChanging(value);
                ReportPropertyChanging("IDAreaTematica");
                _IDAreaTematica = StructuralObject.SetValidValue(value, "IDAreaTematica");
                ReportPropertyChanged("IDAreaTematica");
                OnIDAreaTematicaChanged();
            }
        }
        private global::System.Int32 _IDAreaTematica;
        partial void OnIDAreaTematicaChanging(global::System.Int32 value);
        partial void OnIDAreaTematicaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica")]
        public AreaCientifica AreaCientifica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<AreaCientifica> AreaCientificaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<AreaCientifica>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_AreaCientifica", "AreaCientifica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento")]
        public PortalFontesFinanciamento PortalFontesFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PortalFontesFinanciamento> PortalFontesFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesFinanciamento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PortalFontesFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PortalFontesFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PortalFontesFinanciamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static PortalFontesFinanciamento CreatePortalFontesFinanciamento(global::System.Int32 id, global::System.Boolean activo)
        {
            PortalFontesFinanciamento portalFontesFinanciamento = new PortalFontesFinanciamento();
            portalFontesFinanciamento.ID = id;
            portalFontesFinanciamento.Activo = activo;
            return portalFontesFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, true, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFonteFinanciamentoPai
        {
            get
            {
                return _IDFonteFinanciamentoPai;
            }
            set
            {
                OnIDFonteFinanciamentoPaiChanging(value);
                ReportPropertyChanging("IDFonteFinanciamentoPai");
                _IDFonteFinanciamentoPai = StructuralObject.SetValidValue(value, "IDFonteFinanciamentoPai");
                ReportPropertyChanged("IDFonteFinanciamentoPai");
                OnIDFonteFinanciamentoPaiChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFonteFinanciamentoPai;
        partial void OnIDFonteFinanciamentoPaiChanging(Nullable<global::System.Int32> value);
        partial void OnIDFonteFinanciamentoPaiChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagMostraTabular
        {
            get
            {
                return _FlagMostraTabular;
            }
            set
            {
                OnFlagMostraTabularChanging(value);
                ReportPropertyChanging("FlagMostraTabular");
                _FlagMostraTabular = StructuralObject.SetValidValue(value, "FlagMostraTabular");
                ReportPropertyChanged("FlagMostraTabular");
                OnFlagMostraTabularChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagMostraTabular;
        partial void OnFlagMostraTabularChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagMostraTabularChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento1")]
        public EntityCollection<PortalFontesFinanciamento> PortalFontesFinanciamento1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento")]
        public PortalFontesFinanciamento PortalFontesFinanciamento2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PortalFontesFinanciamento> PortalFontesFinanciamento2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamento_PortalFontesFinanciamento", "PortalFontesFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamentoML")]
        public EntityCollection<PortalFontesFinanciamentoML> PortalFontesFinanciamentoML
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesFinanciamentoML>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamentoML");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesFinanciamentoML>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamentoML", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesAreasTematicas")]
        public EntityCollection<PortalFontesAreasTematicas> PortalFontesAreasTematicas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesAreasTematicas>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesAreasTematicas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesAreasTematicas>("GestaoProjectosModel.FK_PortalFontesAreasTematicas_PortalFontesFinanciamento", "PortalFontesAreasTematicas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesTipologiaProjeto")]
        public EntityCollection<PortalFontesTipologiaProjeto> PortalFontesTipologiaProjeto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesTipologiaProjeto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesTipologiaProjeto", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PortalFontesFinanciamentoML")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PortalFontesFinanciamentoML : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PortalFontesFinanciamentoML object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDFonteFinanciamento">Initial value of the IDFonteFinanciamento property.</param>
        public static PortalFontesFinanciamentoML CreatePortalFontesFinanciamentoML(global::System.Int32 id, global::System.Int32 iDFonteFinanciamento)
        {
            PortalFontesFinanciamentoML portalFontesFinanciamentoML = new PortalFontesFinanciamentoML();
            portalFontesFinanciamentoML.ID = id;
            portalFontesFinanciamentoML.IDFonteFinanciamento = iDFonteFinanciamento;
            return portalFontesFinanciamentoML;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Lang
        {
            get
            {
                return _Lang;
            }
            set
            {
                OnLangChanging(value);
                ReportPropertyChanging("Lang");
                _Lang = StructuralObject.SetValidValue(value, true, "Lang");
                ReportPropertyChanged("Lang");
                OnLangChanged();
            }
        }
        private global::System.String _Lang;
        partial void OnLangChanging(global::System.String value);
        partial void OnLangChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, true, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFonteFinanciamento
        {
            get
            {
                return _IDFonteFinanciamento;
            }
            set
            {
                OnIDFonteFinanciamentoChanging(value);
                ReportPropertyChanging("IDFonteFinanciamento");
                _IDFonteFinanciamento = StructuralObject.SetValidValue(value, "IDFonteFinanciamento");
                ReportPropertyChanged("IDFonteFinanciamento");
                OnIDFonteFinanciamentoChanged();
            }
        }
        private global::System.Int32 _IDFonteFinanciamento;
        partial void OnIDFonteFinanciamentoChanging(global::System.Int32 value);
        partial void OnIDFonteFinanciamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento")]
        public PortalFontesFinanciamento PortalFontesFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PortalFontesFinanciamento> PortalFontesFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesFinanciamentoML_PortalFontesFinanciamento", "PortalFontesFinanciamento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PortalFontesTipologiaProjeto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PortalFontesTipologiaProjeto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PortalFontesTipologiaProjeto object.
        /// </summary>
        /// <param name="iDFonteFinanciamento">Initial value of the IDFonteFinanciamento property.</param>
        /// <param name="iDTipologiaProjeto">Initial value of the IDTipologiaProjeto property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        public static PortalFontesTipologiaProjeto CreatePortalFontesTipologiaProjeto(global::System.Int32 iDFonteFinanciamento, global::System.Int32 iDTipologiaProjeto, global::System.Int32 id)
        {
            PortalFontesTipologiaProjeto portalFontesTipologiaProjeto = new PortalFontesTipologiaProjeto();
            portalFontesTipologiaProjeto.IDFonteFinanciamento = iDFonteFinanciamento;
            portalFontesTipologiaProjeto.IDTipologiaProjeto = iDTipologiaProjeto;
            portalFontesTipologiaProjeto.ID = id;
            return portalFontesTipologiaProjeto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFonteFinanciamento
        {
            get
            {
                return _IDFonteFinanciamento;
            }
            set
            {
                OnIDFonteFinanciamentoChanging(value);
                ReportPropertyChanging("IDFonteFinanciamento");
                _IDFonteFinanciamento = StructuralObject.SetValidValue(value, "IDFonteFinanciamento");
                ReportPropertyChanged("IDFonteFinanciamento");
                OnIDFonteFinanciamentoChanged();
            }
        }
        private global::System.Int32 _IDFonteFinanciamento;
        partial void OnIDFonteFinanciamentoChanging(global::System.Int32 value);
        partial void OnIDFonteFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTipologiaProjeto
        {
            get
            {
                return _IDTipologiaProjeto;
            }
            set
            {
                OnIDTipologiaProjetoChanging(value);
                ReportPropertyChanging("IDTipologiaProjeto");
                _IDTipologiaProjeto = StructuralObject.SetValidValue(value, "IDTipologiaProjeto");
                ReportPropertyChanged("IDTipologiaProjeto");
                OnIDTipologiaProjetoChanged();
            }
        }
        private global::System.Int32 _IDTipologiaProjeto;
        partial void OnIDTipologiaProjetoChanging(global::System.Int32 value);
        partial void OnIDTipologiaProjetoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento")]
        public PortalFontesFinanciamento PortalFontesFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PortalFontesFinanciamento> PortalFontesFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PortalFontesFinanciamento>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalFontesFinanciamento", "PortalFontesFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto")]
        public PortalTipologiaProjeto PortalTipologiaProjeto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PortalTipologiaProjeto> PortalTipologiaProjetoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PortalTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PortalTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalTipologiaProjeto", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="PortalTipologiaProjeto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class PortalTipologiaProjeto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new PortalTipologiaProjeto object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static PortalTipologiaProjeto CreatePortalTipologiaProjeto(global::System.Int32 id, global::System.String nome)
        {
            PortalTipologiaProjeto portalTipologiaProjeto = new PortalTipologiaProjeto();
            portalTipologiaProjeto.ID = id;
            portalTipologiaProjeto.Nome = nome;
            return portalTipologiaProjeto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalFontesTipologiaProjeto")]
        public EntityCollection<PortalFontesTipologiaProjeto> PortalFontesTipologiaProjeto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PortalFontesTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalFontesTipologiaProjeto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PortalFontesTipologiaProjeto>("GestaoProjectosModel.FK_PortalFontesTipologiaProjeto_PortalTipologiaProjeto", "PortalFontesTipologiaProjeto", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProgramaMedidas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProgramaMedidas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProgramaMedidas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        public static ProgramaMedidas CreateProgramaMedidas(global::System.Int32 id, global::System.Int32 ano)
        {
            ProgramaMedidas programaMedidas = new ProgramaMedidas();
            programaMedidas.ID = id;
            programaMedidas.Ano = ano;
            return programaMedidas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Programa
        {
            get
            {
                return _Programa;
            }
            set
            {
                OnProgramaChanging(value);
                ReportPropertyChanging("Programa");
                _Programa = StructuralObject.SetValidValue(value, true, "Programa");
                ReportPropertyChanged("Programa");
                OnProgramaChanged();
            }
        }
        private global::System.String _Programa;
        partial void OnProgramaChanging(global::System.String value);
        partial void OnProgramaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Desc_Programa
        {
            get
            {
                return _Desc_Programa;
            }
            set
            {
                OnDesc_ProgramaChanging(value);
                ReportPropertyChanging("Desc_Programa");
                _Desc_Programa = StructuralObject.SetValidValue(value, true, "Desc_Programa");
                ReportPropertyChanged("Desc_Programa");
                OnDesc_ProgramaChanged();
            }
        }
        private global::System.String _Desc_Programa;
        partial void OnDesc_ProgramaChanging(global::System.String value);
        partial void OnDesc_ProgramaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Medida
        {
            get
            {
                return _Medida;
            }
            set
            {
                OnMedidaChanging(value);
                ReportPropertyChanging("Medida");
                _Medida = StructuralObject.SetValidValue(value, true, "Medida");
                ReportPropertyChanged("Medida");
                OnMedidaChanged();
            }
        }
        private global::System.String _Medida;
        partial void OnMedidaChanging(global::System.String value);
        partial void OnMedidaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Desc_Medid
        {
            get
            {
                return _Desc_Medid;
            }
            set
            {
                OnDesc_MedidChanging(value);
                ReportPropertyChanging("Desc_Medid");
                _Desc_Medid = StructuralObject.SetValidValue(value, true, "Desc_Medid");
                ReportPropertyChanged("Desc_Medid");
                OnDesc_MedidChanged();
            }
        }
        private global::System.String _Desc_Medid;
        partial void OnDesc_MedidChanging(global::System.String value);
        partial void OnDesc_MedidChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProjectoFinanciamento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProgramaOperacional")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProgramaOperacional : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProgramaOperacional object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProgramaQuadro">Initial value of the IDProgramaQuadro property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="dataInicio">Initial value of the DataInicio property.</param>
        /// <param name="dataFim">Initial value of the DataFim property.</param>
        public static ProgramaOperacional CreateProgramaOperacional(global::System.Int32 id, global::System.Int32 iDProgramaQuadro, global::System.String nome, global::System.String sigla, global::System.DateTime dataInicio, global::System.DateTime dataFim)
        {
            ProgramaOperacional programaOperacional = new ProgramaOperacional();
            programaOperacional.ID = id;
            programaOperacional.IDProgramaQuadro = iDProgramaQuadro;
            programaOperacional.Nome = nome;
            programaOperacional.Sigla = sigla;
            programaOperacional.DataInicio = dataInicio;
            programaOperacional.DataFim = dataFim;
            return programaOperacional;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProgramaQuadro
        {
            get
            {
                return _IDProgramaQuadro;
            }
            set
            {
                OnIDProgramaQuadroChanging(value);
                ReportPropertyChanging("IDProgramaQuadro");
                _IDProgramaQuadro = StructuralObject.SetValidValue(value, "IDProgramaQuadro");
                ReportPropertyChanged("IDProgramaQuadro");
                OnIDProgramaQuadroChanged();
            }
        }
        private global::System.Int32 _IDProgramaQuadro;
        partial void OnIDProgramaQuadroChanging(global::System.Int32 value);
        partial void OnIDProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private global::System.DateTime _DataInicio;
        partial void OnDataInicioChanging(global::System.DateTime value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataFim
        {
            get
            {
                return _DataFim;
            }
            set
            {
                OnDataFimChanging(value);
                ReportPropertyChanging("DataFim");
                _DataFim = StructuralObject.SetValidValue(value, "DataFim");
                ReportPropertyChanged("DataFim");
                OnDataFimChanged();
            }
        }
        private global::System.DateTime _DataFim;
        partial void OnDataFimChanging(global::System.DateTime value);
        partial void OnDataFimChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, true, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private Nullable<global::System.Boolean> _Activo;
        partial void OnActivoChanging(Nullable<global::System.Boolean> value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDAgregacaoPrograma
        {
            get
            {
                return _IDAgregacaoPrograma;
            }
            set
            {
                OnIDAgregacaoProgramaChanging(value);
                ReportPropertyChanging("IDAgregacaoPrograma");
                _IDAgregacaoPrograma = StructuralObject.SetValidValue(value, "IDAgregacaoPrograma");
                ReportPropertyChanged("IDAgregacaoPrograma");
                OnIDAgregacaoProgramaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDAgregacaoPrograma;
        partial void OnIDAgregacaoProgramaChanging(Nullable<global::System.Int32> value);
        partial void OnIDAgregacaoProgramaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro")]
        public ProgramaQuadro ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaQuadro> ProgramaQuadroReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaQuadro", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoProjecto_ProgramaOperacional", "TipoProjecto")]
        public EntityCollection<TipoProjecto> TipoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TipoProjecto>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "TipoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TipoProjecto>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "TipoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaOperacional", "CandidaturaFinanciamento")]
        public EntityCollection<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "CandidaturaFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaOperacional", "CandidaturaFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaOperacional", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaOperacional", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_ProgramaOperacional", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacionalLogotipo")]
        public EntityCollection<ProgramaOperacionalLogotipo> ProgramaOperacionalLogotipo
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaOperacionalLogotipo>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacionalLogotipo");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaOperacionalLogotipo>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacionalLogotipo", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional")]
        public TipoAgregacaoProgramaOperacional TipoAgregacaoProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoAgregacaoProgramaOperacional> TipoAgregacaoProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoAgregacaoProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "TipoAgregacaoProgramaOperacional", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProgramaOperacionalLogotipo")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProgramaOperacionalLogotipo : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProgramaOperacionalLogotipo object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProgramaOperacional">Initial value of the IDProgramaOperacional property.</param>
        /// <param name="logotipo">Initial value of the Logotipo property.</param>
        public static ProgramaOperacionalLogotipo CreateProgramaOperacionalLogotipo(global::System.Int32 id, global::System.Int32 iDProgramaOperacional, global::System.Byte[] logotipo)
        {
            ProgramaOperacionalLogotipo programaOperacionalLogotipo = new ProgramaOperacionalLogotipo();
            programaOperacionalLogotipo.ID = id;
            programaOperacionalLogotipo.IDProgramaOperacional = iDProgramaOperacional;
            programaOperacionalLogotipo.Logotipo = logotipo;
            return programaOperacionalLogotipo;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProgramaOperacional
        {
            get
            {
                return _IDProgramaOperacional;
            }
            set
            {
                OnIDProgramaOperacionalChanging(value);
                ReportPropertyChanging("IDProgramaOperacional");
                _IDProgramaOperacional = StructuralObject.SetValidValue(value, "IDProgramaOperacional");
                ReportPropertyChanged("IDProgramaOperacional");
                OnIDProgramaOperacionalChanged();
            }
        }
        private global::System.Int32 _IDProgramaOperacional;
        partial void OnIDProgramaOperacionalChanging(global::System.Int32 value);
        partial void OnIDProgramaOperacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, false, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional")]
        public ProgramaOperacional ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaOperacional> ProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacionalLogotipo_ProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProgramaQuadro")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProgramaQuadro : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProgramaQuadro object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="dataInicio">Initial value of the DataInicio property.</param>
        /// <param name="dataFim">Initial value of the DataFim property.</param>
        public static ProgramaQuadro CreateProgramaQuadro(global::System.Int32 id, global::System.Int32 iDEntidadeFinanciadora, global::System.String nome, global::System.String sigla, global::System.DateTime dataInicio, global::System.DateTime dataFim)
        {
            ProgramaQuadro programaQuadro = new ProgramaQuadro();
            programaQuadro.ID = id;
            programaQuadro.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            programaQuadro.Nome = nome;
            programaQuadro.Sigla = sigla;
            programaQuadro.DataInicio = dataInicio;
            programaQuadro.DataFim = dataFim;
            return programaQuadro;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private global::System.DateTime _DataInicio;
        partial void OnDataInicioChanging(global::System.DateTime value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataFim
        {
            get
            {
                return _DataFim;
            }
            set
            {
                OnDataFimChanging(value);
                ReportPropertyChanging("DataFim");
                _DataFim = StructuralObject.SetValidValue(value, "DataFim");
                ReportPropertyChanged("DataFim");
                OnDataFimChanged();
            }
        }
        private global::System.DateTime _DataFim;
        partial void OnDataFimChanging(global::System.DateTime value);
        partial void OnDataFimChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, true, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDAgregacaoProgramaQuadro
        {
            get
            {
                return _IDAgregacaoProgramaQuadro;
            }
            set
            {
                OnIDAgregacaoProgramaQuadroChanging(value);
                ReportPropertyChanging("IDAgregacaoProgramaQuadro");
                _IDAgregacaoProgramaQuadro = StructuralObject.SetValidValue(value, "IDAgregacaoProgramaQuadro");
                ReportPropertyChanged("IDAgregacaoProgramaQuadro");
                OnIDAgregacaoProgramaQuadroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDAgregacaoProgramaQuadro;
        partial void OnIDAgregacaoProgramaQuadroChanging(Nullable<global::System.Int32> value);
        partial void OnIDAgregacaoProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private Nullable<global::System.Boolean> _Activo;
        partial void OnActivoChanging(Nullable<global::System.Boolean> value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagExigeObjectivoPrincipal
        {
            get
            {
                return _FlagExigeObjectivoPrincipal;
            }
            set
            {
                OnFlagExigeObjectivoPrincipalChanging(value);
                ReportPropertyChanging("FlagExigeObjectivoPrincipal");
                _FlagExigeObjectivoPrincipal = StructuralObject.SetValidValue(value, "FlagExigeObjectivoPrincipal");
                ReportPropertyChanged("FlagExigeObjectivoPrincipal");
                OnFlagExigeObjectivoPrincipalChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagExigeObjectivoPrincipal;
        partial void OnFlagExigeObjectivoPrincipalChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagExigeObjectivoPrincipalChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_ProgramaQuadro", "ProgramaOperacional")]
        public EntityCollection<ProgramaOperacional> ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_ProgramaQuadro", "ProgramaOperacional", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_ProgramaQuadro", "CandidaturaFinanciamento")]
        public EntityCollection<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "CandidaturaFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_ProgramaQuadro", "CandidaturaFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaQuadro", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProgramaQuadro_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_ProgramaQuadro", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_ProgramaQuadro", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadroLogotipo")]
        public EntityCollection<ProgramaQuadroLogotipo> ProgramaQuadroLogotipo
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaQuadroLogotipo>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadroLogotipo");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaQuadroLogotipo>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadroLogotipo", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma")]
        public TipoAgregacaoPrograma TipoAgregacaoPrograma
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoPrograma>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoPrograma>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoAgregacaoPrograma> TipoAgregacaoProgramaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoAgregacaoPrograma>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoAgregacaoPrograma>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "TipoAgregacaoPrograma", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProgramaQuadroLogotipo")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProgramaQuadroLogotipo : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProgramaQuadroLogotipo object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProgramaQuadro">Initial value of the IDProgramaQuadro property.</param>
        /// <param name="logotipo">Initial value of the Logotipo property.</param>
        public static ProgramaQuadroLogotipo CreateProgramaQuadroLogotipo(global::System.Int32 id, global::System.Int32 iDProgramaQuadro, global::System.Byte[] logotipo)
        {
            ProgramaQuadroLogotipo programaQuadroLogotipo = new ProgramaQuadroLogotipo();
            programaQuadroLogotipo.ID = id;
            programaQuadroLogotipo.IDProgramaQuadro = iDProgramaQuadro;
            programaQuadroLogotipo.Logotipo = logotipo;
            return programaQuadroLogotipo;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProgramaQuadro
        {
            get
            {
                return _IDProgramaQuadro;
            }
            set
            {
                OnIDProgramaQuadroChanging(value);
                ReportPropertyChanging("IDProgramaQuadro");
                _IDProgramaQuadro = StructuralObject.SetValidValue(value, "IDProgramaQuadro");
                ReportPropertyChanged("IDProgramaQuadro");
                OnIDProgramaQuadroChanged();
            }
        }
        private global::System.Int32 _IDProgramaQuadro;
        partial void OnIDProgramaQuadroChanging(global::System.Int32 value);
        partial void OnIDProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, false, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro")]
        public ProgramaQuadro ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaQuadro> ProgramaQuadroReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadroLogotipo_ProgramaQuadro", "ProgramaQuadro", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="documento">Initial value of the Documento property.</param>
        public static ProjectoAnexos CreateProjectoAnexos(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.String documento)
        {
            ProjectoAnexos projectoAnexos = new ProjectoAnexos();
            projectoAnexos.ID = id;
            projectoAnexos.IDProjecto = iDProjecto;
            projectoAnexos.Documento = documento;
            return projectoAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, false, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, true, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoAnexos_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoEnvioEmailExclusoes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoEnvioEmailExclusoes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoEnvioEmailExclusoes object.
        /// </summary>
        /// <param name="projectoID">Initial value of the ProjectoID property.</param>
        /// <param name="dataExclusao">Initial value of the DataExclusao property.</param>
        public static ProjectoEnvioEmailExclusoes CreateProjectoEnvioEmailExclusoes(global::System.Int32 projectoID, global::System.DateTime dataExclusao)
        {
            ProjectoEnvioEmailExclusoes projectoEnvioEmailExclusoes = new ProjectoEnvioEmailExclusoes();
            projectoEnvioEmailExclusoes.ProjectoID = projectoID;
            projectoEnvioEmailExclusoes.DataExclusao = dataExclusao;
            return projectoEnvioEmailExclusoes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ProjectoID
        {
            get
            {
                return _ProjectoID;
            }
            set
            {
                if (_ProjectoID != value)
                {
                    OnProjectoIDChanging(value);
                    ReportPropertyChanging("ProjectoID");
                    _ProjectoID = StructuralObject.SetValidValue(value, "ProjectoID");
                    ReportPropertyChanged("ProjectoID");
                    OnProjectoIDChanged();
                }
            }
        }
        private global::System.Int32 _ProjectoID;
        partial void OnProjectoIDChanging(global::System.Int32 value);
        partial void OnProjectoIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataExclusao
        {
            get
            {
                return _DataExclusao;
            }
            set
            {
                OnDataExclusaoChanging(value);
                ReportPropertyChanging("DataExclusao");
                _DataExclusao = StructuralObject.SetValidValue(value, "DataExclusao");
                ReportPropertyChanged("DataExclusao");
                OnDataExclusaoChanged();
            }
        }
        private global::System.DateTime _DataExclusao;
        partial void OnDataExclusaoChanging(global::System.DateTime value);
        partial void OnDataExclusaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFimExclusao
        {
            get
            {
                return _DataFimExclusao;
            }
            set
            {
                OnDataFimExclusaoChanging(value);
                ReportPropertyChanging("DataFimExclusao");
                _DataFimExclusao = StructuralObject.SetValidValue(value, "DataFimExclusao");
                ReportPropertyChanged("DataFimExclusao");
                OnDataFimExclusaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFimExclusao;
        partial void OnDataFimExclusaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimExclusaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoEquipa")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoEquipa : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoEquipa object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="membro">Initial value of the Membro property.</param>
        /// <param name="flagSecretariado">Initial value of the FlagSecretariado property.</param>
        public static ProjectoEquipa CreateProjectoEquipa(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDRecursoHumano, global::System.Boolean membro, global::System.Boolean flagSecretariado)
        {
            ProjectoEquipa projectoEquipa = new ProjectoEquipa();
            projectoEquipa.ID = id;
            projectoEquipa.IDProjecto = iDProjecto;
            projectoEquipa.IDRecursoHumano = iDRecursoHumano;
            projectoEquipa.Membro = membro;
            projectoEquipa.FlagSecretariado = flagSecretariado;
            return projectoEquipa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFuncao
        {
            get
            {
                return _IDFuncao;
            }
            set
            {
                OnIDFuncaoChanging(value);
                ReportPropertyChanging("IDFuncao");
                _IDFuncao = StructuralObject.SetValidValue(value, "IDFuncao");
                ReportPropertyChanged("IDFuncao");
                OnIDFuncaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFuncao;
        partial void OnIDFuncaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDFuncaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoBolseiro
        {
            get
            {
                return _IDTipoBolseiro;
            }
            set
            {
                OnIDTipoBolseiroChanging(value);
                ReportPropertyChanging("IDTipoBolseiro");
                _IDTipoBolseiro = StructuralObject.SetValidValue(value, "IDTipoBolseiro");
                ReportPropertyChanged("IDTipoBolseiro");
                OnIDTipoBolseiroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoBolseiro;
        partial void OnIDTipoBolseiroChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoBolseiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Alocacao
        {
            get
            {
                return _Alocacao;
            }
            set
            {
                OnAlocacaoChanging(value);
                ReportPropertyChanging("Alocacao");
                _Alocacao = StructuralObject.SetValidValue(value, "Alocacao");
                ReportPropertyChanged("Alocacao");
                OnAlocacaoChanged();
            }
        }
        private Nullable<global::System.Int32> _Alocacao;
        partial void OnAlocacaoChanging(Nullable<global::System.Int32> value);
        partial void OnAlocacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicioAlocacao
        {
            get
            {
                return _DataInicioAlocacao;
            }
            set
            {
                OnDataInicioAlocacaoChanging(value);
                ReportPropertyChanging("DataInicioAlocacao");
                _DataInicioAlocacao = StructuralObject.SetValidValue(value, "DataInicioAlocacao");
                ReportPropertyChanged("DataInicioAlocacao");
                OnDataInicioAlocacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicioAlocacao;
        partial void OnDataInicioAlocacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioAlocacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFimAlocacao
        {
            get
            {
                return _DataFimAlocacao;
            }
            set
            {
                OnDataFimAlocacaoChanging(value);
                ReportPropertyChanging("DataFimAlocacao");
                _DataFimAlocacao = StructuralObject.SetValidValue(value, "DataFimAlocacao");
                ReportPropertyChanged("DataFimAlocacao");
                OnDataFimAlocacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFimAlocacao;
        partial void OnDataFimAlocacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimAlocacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Membro
        {
            get
            {
                return _Membro;
            }
            set
            {
                OnMembroChanging(value);
                ReportPropertyChanging("Membro");
                _Membro = StructuralObject.SetValidValue(value, "Membro");
                ReportPropertyChanged("Membro");
                OnMembroChanged();
            }
        }
        private global::System.Boolean _Membro;
        partial void OnMembroChanging(global::System.Boolean value);
        partial void OnMembroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CategoriaTimesheet
        {
            get
            {
                return _CategoriaTimesheet;
            }
            set
            {
                OnCategoriaTimesheetChanging(value);
                ReportPropertyChanging("CategoriaTimesheet");
                _CategoriaTimesheet = StructuralObject.SetValidValue(value, true, "CategoriaTimesheet");
                ReportPropertyChanged("CategoriaTimesheet");
                OnCategoriaTimesheetChanged();
            }
        }
        private global::System.String _CategoriaTimesheet;
        partial void OnCategoriaTimesheetChanging(global::System.String value);
        partial void OnCategoriaTimesheetChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagSecretariado
        {
            get
            {
                return _FlagSecretariado;
            }
            set
            {
                OnFlagSecretariadoChanging(value);
                ReportPropertyChanging("FlagSecretariado");
                _FlagSecretariado = StructuralObject.SetValidValue(value, "FlagSecretariado");
                ReportPropertyChanged("FlagSecretariado");
                OnFlagSecretariadoChanged();
            }
        }
        private global::System.Boolean _FlagSecretariado;
        partial void OnFlagSecretariadoChanging(global::System.Boolean value);
        partial void OnFlagSecretariadoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoBolsa", "TipoBolsa")]
        public TipoBolsa TipoBolsa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "TipoBolsa").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "TipoBolsa").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoBolsa> TipoBolsaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "TipoBolsa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoBolsa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "TipoBolsa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoFuncao", "Funcao")]
        public Funcao Funcao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "Funcao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "Funcao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Funcao> FuncaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Funcao>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "Funcao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Funcao>("GestaoProjectosModel.FK_ProjectoEquipa_TipoFuncao", "Funcao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoFinanciamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static ProjectoFinanciamento CreateProjectoFinanciamento(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao, global::System.Int32 iDEntidadeFinanciadora, global::System.Int32 iDRubrica, global::System.Int32 ano, global::System.Double valor)
        {
            ProjectoFinanciamento projectoFinanciamento = new ProjectoFinanciamento();
            projectoFinanciamento.ID = id;
            projectoFinanciamento.IDProjecto = iDProjecto;
            projectoFinanciamento.IDInstituicao = iDInstituicao;
            projectoFinanciamento.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            projectoFinanciamento.IDRubrica = iDRubrica;
            projectoFinanciamento.Ano = ano;
            projectoFinanciamento.Valor = valor;
            return projectoFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                OnIDRubricaChanging(value);
                ReportPropertyChanging("IDRubrica");
                _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                ReportPropertyChanged("IDRubrica");
                OnIDRubricaChanged();
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private global::System.Int32 _Ano;
        partial void OnAnoChanging(global::System.Int32 value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaQuadro
        {
            get
            {
                return _IDProgramaQuadro;
            }
            set
            {
                OnIDProgramaQuadroChanging(value);
                ReportPropertyChanging("IDProgramaQuadro");
                _IDProgramaQuadro = StructuralObject.SetValidValue(value, "IDProgramaQuadro");
                ReportPropertyChanged("IDProgramaQuadro");
                OnIDProgramaQuadroChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaQuadro;
        partial void OnIDProgramaQuadroChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaQuadroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaOperacional
        {
            get
            {
                return _IDProgramaOperacional;
            }
            set
            {
                OnIDProgramaOperacionalChanging(value);
                ReportPropertyChanging("IDProgramaOperacional");
                _IDProgramaOperacional = StructuralObject.SetValidValue(value, "IDProgramaOperacional");
                ReportPropertyChanged("IDProgramaOperacional");
                OnIDProgramaOperacionalChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaOperacional;
        partial void OnIDProgramaOperacionalChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaOperacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoProjecto
        {
            get
            {
                return _IDTipoProjecto;
            }
            set
            {
                OnIDTipoProjectoChanging(value);
                ReportPropertyChanging("IDTipoProjecto");
                _IDTipoProjecto = StructuralObject.SetValidValue(value, "IDTipoProjecto");
                ReportPropertyChanged("IDTipoProjecto");
                OnIDTipoProjectoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoProjecto;
        partial void OnIDTipoProjectoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFonteFinanciamento
        {
            get
            {
                return _IDFonteFinanciamento;
            }
            set
            {
                OnIDFonteFinanciamentoChanging(value);
                ReportPropertyChanging("IDFonteFinanciamento");
                _IDFonteFinanciamento = StructuralObject.SetValidValue(value, "IDFonteFinanciamento");
                ReportPropertyChanged("IDFonteFinanciamento");
                OnIDFonteFinanciamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFonteFinanciamento;
        partial void OnIDFonteFinanciamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDFonteFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProgramaMedida
        {
            get
            {
                return _IDProgramaMedida;
            }
            set
            {
                OnIDProgramaMedidaChanging(value);
                ReportPropertyChanging("IDProgramaMedida");
                _IDProgramaMedida = StructuralObject.SetValidValue(value, "IDProgramaMedida");
                ReportPropertyChanged("IDProgramaMedida");
                OnIDProgramaMedidaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProgramaMedida;
        partial void OnIDProgramaMedidaChanging(Nullable<global::System.Int32> value);
        partial void OnIDProgramaMedidaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataCriacao
        {
            get
            {
                return _DataCriacao;
            }
            set
            {
                OnDataCriacaoChanging(value);
                ReportPropertyChanging("DataCriacao");
                _DataCriacao = StructuralObject.SetValidValue(value, "DataCriacao");
                ReportPropertyChanged("DataCriacao");
                OnDataCriacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataCriacao;
        partial void OnDataCriacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataCriacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, true, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Referencia
        {
            get
            {
                return _Referencia;
            }
            set
            {
                OnReferenciaChanging(value);
                ReportPropertyChanging("Referencia");
                _Referencia = StructuralObject.SetValidValue(value, true, "Referencia");
                ReportPropertyChanged("Referencia");
                OnReferenciaChanged();
            }
        }
        private global::System.String _Referencia;
        partial void OnReferenciaChanging(global::System.String value);
        partial void OnReferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, true, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> TotalVerbaExecutada
        {
            get
            {
                return _TotalVerbaExecutada;
            }
            set
            {
                OnTotalVerbaExecutadaChanging(value);
                ReportPropertyChanging("TotalVerbaExecutada");
                _TotalVerbaExecutada = StructuralObject.SetValidValue(value, "TotalVerbaExecutada");
                ReportPropertyChanged("TotalVerbaExecutada");
                OnTotalVerbaExecutadaChanged();
            }
        }
        private Nullable<global::System.Double> _TotalVerbaExecutada;
        partial void OnTotalVerbaExecutadaChanging(Nullable<global::System.Double> value);
        partial void OnTotalVerbaExecutadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> Cofinanciamento
        {
            get
            {
                return _Cofinanciamento;
            }
            set
            {
                OnCofinanciamentoChanging(value);
                ReportPropertyChanging("Cofinanciamento");
                _Cofinanciamento = StructuralObject.SetValidValue(value, "Cofinanciamento");
                ReportPropertyChanged("Cofinanciamento");
                OnCofinanciamentoChanged();
            }
        }
        private Nullable<global::System.Double> _Cofinanciamento;
        partial void OnCofinanciamentoChanging(Nullable<global::System.Double> value);
        partial void OnCofinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FlagIVAElegivel
        {
            get
            {
                return _FlagIVAElegivel;
            }
            set
            {
                OnFlagIVAElegivelChanging(value);
                ReportPropertyChanging("FlagIVAElegivel");
                _FlagIVAElegivel = StructuralObject.SetValidValue(value, "FlagIVAElegivel");
                ReportPropertyChanged("FlagIVAElegivel");
                OnFlagIVAElegivelChanged();
            }
        }
        private Nullable<global::System.Boolean> _FlagIVAElegivel;
        partial void OnFlagIVAElegivelChanging(Nullable<global::System.Boolean> value);
        partial void OnFlagIVAElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorTotalIVA
        {
            get
            {
                return _ValorTotalIVA;
            }
            set
            {
                OnValorTotalIVAChanging(value);
                ReportPropertyChanging("ValorTotalIVA");
                _ValorTotalIVA = StructuralObject.SetValidValue(value, "ValorTotalIVA");
                ReportPropertyChanged("ValorTotalIVA");
                OnValorTotalIVAChanged();
            }
        }
        private Nullable<global::System.Double> _ValorTotalIVA;
        partial void OnValorTotalIVAChanging(Nullable<global::System.Double> value);
        partial void OnValorTotalIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> PercentagemElegebilidade
        {
            get
            {
                return _PercentagemElegebilidade;
            }
            set
            {
                OnPercentagemElegebilidadeChanging(value);
                ReportPropertyChanging("PercentagemElegebilidade");
                _PercentagemElegebilidade = StructuralObject.SetValidValue(value, "PercentagemElegebilidade");
                ReportPropertyChanged("PercentagemElegebilidade");
                OnPercentagemElegebilidadeChanged();
            }
        }
        private Nullable<global::System.Double> _PercentagemElegebilidade;
        partial void OnPercentagemElegebilidadeChanging(Nullable<global::System.Double> value);
        partial void OnPercentagemElegebilidadeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas")]
        public ProgramaMedidas ProgramaMedidas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaMedidas>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaMedidas>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaMedidas> ProgramaMedidasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaMedidas>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaMedidas>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaMedidasERP", "ProgramaMedidas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional")]
        public ProgramaOperacional ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaOperacional> ProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro")]
        public ProgramaQuadro ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaQuadro> ProgramaQuadroReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaQuadro>("GestaoProjectosModel.FK_ProjectoFinanciamento_ProgramaQuadro", "ProgramaQuadro", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Rubricas", "Rubricas")]
        public Rubricas Rubricas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> RubricasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto")]
        public TipoProjecto TipoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoProjecto> TipoProjectoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoProjecto>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "TipoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_ProjectoFinanciamento_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFinanciamento_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoFundoFinanciamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoFundoFinanciamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoFundoFinanciamento object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDFundo">Initial value of the IDFundo property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static ProjectoFundoFinanciamento CreateProjectoFundoFinanciamento(global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao, global::System.Int32 iDFundo, global::System.Decimal valor)
        {
            ProjectoFundoFinanciamento projectoFundoFinanciamento = new ProjectoFundoFinanciamento();
            projectoFundoFinanciamento.IDProjecto = iDProjecto;
            projectoFundoFinanciamento.IDInstituicao = iDInstituicao;
            projectoFundoFinanciamento.IDFundo = iDFundo;
            projectoFundoFinanciamento.Valor = valor;
            return projectoFundoFinanciamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                if (_IDInstituicao != value)
                {
                    OnIDInstituicaoChanging(value);
                    ReportPropertyChanging("IDInstituicao");
                    _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                    ReportPropertyChanged("IDInstituicao");
                    OnIDInstituicaoChanged();
                }
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDFundo
        {
            get
            {
                return _IDFundo;
            }
            set
            {
                if (_IDFundo != value)
                {
                    OnIDFundoChanging(value);
                    ReportPropertyChanging("IDFundo");
                    _IDFundo = StructuralObject.SetValidValue(value, "IDFundo");
                    ReportPropertyChanged("IDFundo");
                    OnIDFundoChanged();
                }
            }
        }
        private global::System.Int32 _IDFundo;
        partial void OnIDFundoChanging(global::System.Int32 value);
        partial void OnIDFundoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Decimal _Valor;
        partial void OnValorChanging(global::System.Decimal value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento")]
        public FundosFinanciamento FundosFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<FundosFinanciamento> FundosFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_FundosFinanciamento", "FundosFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao")]
        public ProjectoInstituicao ProjectoInstituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProjectoInstituicao> ProjectoInstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoInstituicao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoInstituicao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoInstituicao object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        public static ProjectoInstituicao CreateProjectoInstituicao(global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao)
        {
            ProjectoInstituicao projectoInstituicao = new ProjectoInstituicao();
            projectoInstituicao.IDProjecto = iDProjecto;
            projectoInstituicao.IDInstituicao = iDInstituicao;
            return projectoInstituicao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                if (_IDInstituicao != value)
                {
                    OnIDInstituicaoChanging(value);
                    ReportPropertyChanging("IDInstituicao");
                    _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                    ReportPropertyChanged("IDInstituicao");
                    OnIDInstituicaoChanged();
                }
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorCoFinanciado
        {
            get
            {
                return _ValorCoFinanciado;
            }
            set
            {
                OnValorCoFinanciadoChanging(value);
                ReportPropertyChanging("ValorCoFinanciado");
                _ValorCoFinanciado = StructuralObject.SetValidValue(value, "ValorCoFinanciado");
                ReportPropertyChanged("ValorCoFinanciado");
                OnValorCoFinanciadoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorCoFinanciado;
        partial void OnValorCoFinanciadoChanging(Nullable<global::System.Double> value);
        partial void OnValorCoFinanciadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorFinanciamentoInstituicao
        {
            get
            {
                return _ValorFinanciamentoInstituicao;
            }
            set
            {
                OnValorFinanciamentoInstituicaoChanging(value);
                ReportPropertyChanging("ValorFinanciamentoInstituicao");
                _ValorFinanciamentoInstituicao = StructuralObject.SetValidValue(value, "ValorFinanciamentoInstituicao");
                ReportPropertyChanged("ValorFinanciamentoInstituicao");
                OnValorFinanciamentoInstituicaoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorFinanciamentoInstituicao;
        partial void OnValorFinanciamentoInstituicaoChanging(Nullable<global::System.Double> value);
        partial void OnValorFinanciamentoInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorFinanciamentoTotal
        {
            get
            {
                return _ValorFinanciamentoTotal;
            }
            set
            {
                OnValorFinanciamentoTotalChanging(value);
                ReportPropertyChanging("ValorFinanciamentoTotal");
                _ValorFinanciamentoTotal = StructuralObject.SetValidValue(value, "ValorFinanciamentoTotal");
                ReportPropertyChanged("ValorFinanciamentoTotal");
                OnValorFinanciamentoTotalChanged();
            }
        }
        private Nullable<global::System.Double> _ValorFinanciamentoTotal;
        partial void OnValorFinanciamentoTotalChanging(Nullable<global::System.Double> value);
        partial void OnValorFinanciamentoTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFundoUE
        {
            get
            {
                return _IDFundoUE;
            }
            set
            {
                OnIDFundoUEChanging(value);
                ReportPropertyChanging("IDFundoUE");
                _IDFundoUE = StructuralObject.SetValidValue(value, "IDFundoUE");
                ReportPropertyChanged("IDFundoUE");
                OnIDFundoUEChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFundoUE;
        partial void OnIDFundoUEChanging(Nullable<global::System.Int32> value);
        partial void OnIDFundoUEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorFundoUE
        {
            get
            {
                return _ValorFundoUE;
            }
            set
            {
                OnValorFundoUEChanging(value);
                ReportPropertyChanging("ValorFundoUE");
                _ValorFundoUE = StructuralObject.SetValidValue(value, "ValorFundoUE");
                ReportPropertyChanged("ValorFundoUE");
                OnValorFundoUEChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorFundoUE;
        partial void OnValorFundoUEChanging(Nullable<global::System.Decimal> value);
        partial void OnValorFundoUEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFundoNacional
        {
            get
            {
                return _IDFundoNacional;
            }
            set
            {
                OnIDFundoNacionalChanging(value);
                ReportPropertyChanging("IDFundoNacional");
                _IDFundoNacional = StructuralObject.SetValidValue(value, "IDFundoNacional");
                ReportPropertyChanged("IDFundoNacional");
                OnIDFundoNacionalChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFundoNacional;
        partial void OnIDFundoNacionalChanging(Nullable<global::System.Int32> value);
        partial void OnIDFundoNacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorFundoNacional
        {
            get
            {
                return _ValorFundoNacional;
            }
            set
            {
                OnValorFundoNacionalChanging(value);
                ReportPropertyChanging("ValorFundoNacional");
                _ValorFundoNacional = StructuralObject.SetValidValue(value, "ValorFundoNacional");
                ReportPropertyChanged("ValorFundoNacional");
                OnValorFundoNacionalChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorFundoNacional;
        partial void OnValorFundoNacionalChanging(Nullable<global::System.Decimal> value);
        partial void OnValorFundoNacionalChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento")]
        public FundosFinanciamento FundosFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<FundosFinanciamento> FundosFinanciamentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamento", "FundosFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento")]
        public FundosFinanciamento FundosFinanciamento1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<FundosFinanciamento> FundosFinanciamento1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<FundosFinanciamento>("GestaoProjectosModel.FK_ProjectoInstituicao_FundosFinanciamentoNacional", "FundosFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoFundoFinanciamento")]
        public EntityCollection<ProjectoFundoFinanciamento> ProjectoFundoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoFundoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFundoFinanciamento>("GestaoProjectosModel.FK_ProjectoFundoFinanciamento_ProjectoInstituicao", "ProjectoFundoFinanciamento", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoLogotipo")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoLogotipo : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoLogotipo object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="logotipo">Initial value of the Logotipo property.</param>
        public static ProjectoLogotipo CreateProjectoLogotipo(global::System.Int32 iDProjecto, global::System.Byte[] logotipo)
        {
            ProjectoLogotipo projectoLogotipo = new ProjectoLogotipo();
            projectoLogotipo.IDProjecto = iDProjecto;
            projectoLogotipo.Logotipo = logotipo;
            return projectoLogotipo;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, false, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoLogotipo_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectoOverheads")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectoOverheads : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectoOverheads object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDOverhead">Initial value of the IDOverhead property.</param>
        /// <param name="percentagem">Initial value of the Percentagem property.</param>
        /// <param name="centroCustos">Initial value of the CentroCustos property.</param>
        public static ProjectoOverheads CreateProjectoOverheads(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDOverhead, global::System.Double percentagem, global::System.String centroCustos)
        {
            ProjectoOverheads projectoOverheads = new ProjectoOverheads();
            projectoOverheads.ID = id;
            projectoOverheads.IDProjecto = iDProjecto;
            projectoOverheads.IDOverhead = iDOverhead;
            projectoOverheads.Percentagem = percentagem;
            projectoOverheads.CentroCustos = centroCustos;
            return projectoOverheads;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDOverhead
        {
            get
            {
                return _IDOverhead;
            }
            set
            {
                OnIDOverheadChanging(value);
                ReportPropertyChanging("IDOverhead");
                _IDOverhead = StructuralObject.SetValidValue(value, "IDOverhead");
                ReportPropertyChanged("IDOverhead");
                OnIDOverheadChanged();
            }
        }
        private global::System.Int32 _IDOverhead;
        partial void OnIDOverheadChanging(global::System.Int32 value);
        partial void OnIDOverheadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Percentagem
        {
            get
            {
                return _Percentagem;
            }
            set
            {
                OnPercentagemChanging(value);
                ReportPropertyChanging("Percentagem");
                _Percentagem = StructuralObject.SetValidValue(value, "Percentagem");
                ReportPropertyChanged("Percentagem");
                OnPercentagemChanged();
            }
        }
        private global::System.Double _Percentagem;
        partial void OnPercentagemChanging(global::System.Double value);
        partial void OnPercentagemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, false, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_OverheadTipo", "OverheadTipo")]
        public OverheadTipo OverheadTipo
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OverheadTipo>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "OverheadTipo").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OverheadTipo>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "OverheadTipo").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<OverheadTipo> OverheadTipoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<OverheadTipo>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "OverheadTipo");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<OverheadTipo>("GestaoProjectosModel.FK_ProjectoOverheads_OverheadTipo", "OverheadTipo", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_ProjectoOverheads", "VerbasOverheadValor")]
        public EntityCollection<VerbasOverheadValor> VerbasOverheadValor
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasOverheadValor>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "VerbasOverheadValor");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasOverheadValor>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "VerbasOverheadValor", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Projectos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Projectos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Projectos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDCandidatura">Initial value of the IDCandidatura property.</param>
        /// <param name="referenciaProjecto">Initial value of the ReferenciaProjecto property.</param>
        /// <param name="anexoContrato">Initial value of the AnexoContrato property.</param>
        public static Projectos CreateProjectos(global::System.Int32 id, global::System.Int32 iDCandidatura, global::System.String referenciaProjecto, global::System.String anexoContrato)
        {
            Projectos projectos = new Projectos();
            projectos.ID = id;
            projectos.IDCandidatura = iDCandidatura;
            projectos.ReferenciaProjecto = referenciaProjecto;
            projectos.AnexoContrato = anexoContrato;
            return projectos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDCandidatura
        {
            get
            {
                return _IDCandidatura;
            }
            set
            {
                OnIDCandidaturaChanging(value);
                ReportPropertyChanging("IDCandidatura");
                _IDCandidatura = StructuralObject.SetValidValue(value, "IDCandidatura");
                ReportPropertyChanged("IDCandidatura");
                OnIDCandidaturaChanged();
            }
        }
        private global::System.Int32 _IDCandidatura;
        partial void OnIDCandidaturaChanging(global::System.Int32 value);
        partial void OnIDCandidaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ReferenciaProjecto
        {
            get
            {
                return _ReferenciaProjecto;
            }
            set
            {
                OnReferenciaProjectoChanging(value);
                ReportPropertyChanging("ReferenciaProjecto");
                _ReferenciaProjecto = StructuralObject.SetValidValue(value, false, "ReferenciaProjecto");
                ReportPropertyChanged("ReferenciaProjecto");
                OnReferenciaProjectoChanged();
            }
        }
        private global::System.String _ReferenciaProjecto;
        partial void OnReferenciaProjectoChanging(global::System.String value);
        partial void OnReferenciaProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAprovacao
        {
            get
            {
                return _DataAprovacao;
            }
            set
            {
                OnDataAprovacaoChanging(value);
                ReportPropertyChanging("DataAprovacao");
                _DataAprovacao = StructuralObject.SetValidValue(value, "DataAprovacao");
                ReportPropertyChanged("DataAprovacao");
                OnDataAprovacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAprovacao;
        partial void OnDataAprovacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAprovacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAprovacaoCG
        {
            get
            {
                return _DataAprovacaoCG;
            }
            set
            {
                OnDataAprovacaoCGChanging(value);
                ReportPropertyChanging("DataAprovacaoCG");
                _DataAprovacaoCG = StructuralObject.SetValidValue(value, "DataAprovacaoCG");
                ReportPropertyChanged("DataAprovacaoCG");
                OnDataAprovacaoCGChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAprovacaoCG;
        partial void OnDataAprovacaoCGChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAprovacaoCGChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> FinanciamentoTotal
        {
            get
            {
                return _FinanciamentoTotal;
            }
            set
            {
                OnFinanciamentoTotalChanging(value);
                ReportPropertyChanging("FinanciamentoTotal");
                _FinanciamentoTotal = StructuralObject.SetValidValue(value, "FinanciamentoTotal");
                ReportPropertyChanged("FinanciamentoTotal");
                OnFinanciamentoTotalChanged();
            }
        }
        private Nullable<global::System.Double> _FinanciamentoTotal;
        partial void OnFinanciamentoTotalChanging(Nullable<global::System.Double> value);
        partial void OnFinanciamentoTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> CofinanciamentoTotal
        {
            get
            {
                return _CofinanciamentoTotal;
            }
            set
            {
                OnCofinanciamentoTotalChanging(value);
                ReportPropertyChanging("CofinanciamentoTotal");
                _CofinanciamentoTotal = StructuralObject.SetValidValue(value, "CofinanciamentoTotal");
                ReportPropertyChanged("CofinanciamentoTotal");
                OnCofinanciamentoTotalChanged();
            }
        }
        private Nullable<global::System.Double> _CofinanciamentoTotal;
        partial void OnCofinanciamentoTotalChanging(Nullable<global::System.Double> value);
        partial void OnCofinanciamentoTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, true, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicioProjecto
        {
            get
            {
                return _DataInicioProjecto;
            }
            set
            {
                OnDataInicioProjectoChanging(value);
                ReportPropertyChanging("DataInicioProjecto");
                _DataInicioProjecto = StructuralObject.SetValidValue(value, "DataInicioProjecto");
                ReportPropertyChanged("DataInicioProjecto");
                OnDataInicioProjectoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicioProjecto;
        partial void OnDataInicioProjectoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTermoProjecto
        {
            get
            {
                return _DataTermoProjecto;
            }
            set
            {
                OnDataTermoProjectoChanging(value);
                ReportPropertyChanging("DataTermoProjecto");
                _DataTermoProjecto = StructuralObject.SetValidValue(value, "DataTermoProjecto");
                ReportPropertyChanged("DataTermoProjecto");
                OnDataTermoProjectoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTermoProjecto;
        partial void OnDataTermoProjectoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTermoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> DuracaoAprovada
        {
            get
            {
                return _DuracaoAprovada;
            }
            set
            {
                OnDuracaoAprovadaChanging(value);
                ReportPropertyChanging("DuracaoAprovada");
                _DuracaoAprovada = StructuralObject.SetValidValue(value, "DuracaoAprovada");
                ReportPropertyChanged("DuracaoAprovada");
                OnDuracaoAprovadaChanged();
            }
        }
        private Nullable<global::System.Int32> _DuracaoAprovada;
        partial void OnDuracaoAprovadaChanging(Nullable<global::System.Int32> value);
        partial void OnDuracaoAprovadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> PeriodicidadeDespesas
        {
            get
            {
                return _PeriodicidadeDespesas;
            }
            set
            {
                OnPeriodicidadeDespesasChanging(value);
                ReportPropertyChanging("PeriodicidadeDespesas");
                _PeriodicidadeDespesas = StructuralObject.SetValidValue(value, "PeriodicidadeDespesas");
                ReportPropertyChanged("PeriodicidadeDespesas");
                OnPeriodicidadeDespesasChanged();
            }
        }
        private Nullable<global::System.Int32> _PeriodicidadeDespesas;
        partial void OnPeriodicidadeDespesasChanging(Nullable<global::System.Int32> value);
        partial void OnPeriodicidadeDespesasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String AnexoContrato
        {
            get
            {
                return _AnexoContrato;
            }
            set
            {
                OnAnexoContratoChanging(value);
                ReportPropertyChanging("AnexoContrato");
                _AnexoContrato = StructuralObject.SetValidValue(value, false, "AnexoContrato");
                ReportPropertyChanged("AnexoContrato");
                OnAnexoContratoChanged();
            }
        }
        private global::System.String _AnexoContrato;
        partial void OnAnexoContratoChanging(global::System.String value);
        partial void OnAnexoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProtocoloIN
        {
            get
            {
                return _IDProtocoloIN;
            }
            set
            {
                OnIDProtocoloINChanging(value);
                ReportPropertyChanging("IDProtocoloIN");
                _IDProtocoloIN = StructuralObject.SetValidValue(value, "IDProtocoloIN");
                ReportPropertyChanged("IDProtocoloIN");
                OnIDProtocoloINChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProtocoloIN;
        partial void OnIDProtocoloINChanging(Nullable<global::System.Int32> value);
        partial void OnIDProtocoloINChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ArquivoReferencia
        {
            get
            {
                return _ArquivoReferencia;
            }
            set
            {
                OnArquivoReferenciaChanging(value);
                ReportPropertyChanging("ArquivoReferencia");
                _ArquivoReferencia = StructuralObject.SetValidValue(value, true, "ArquivoReferencia");
                ReportPropertyChanged("ArquivoReferencia");
                OnArquivoReferenciaChanged();
            }
        }
        private global::System.String _ArquivoReferencia;
        partial void OnArquivoReferenciaChanging(global::System.String value);
        partial void OnArquivoReferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDProtocoloOUT
        {
            get
            {
                return _IDProtocoloOUT;
            }
            set
            {
                OnIDProtocoloOUTChanging(value);
                ReportPropertyChanging("IDProtocoloOUT");
                _IDProtocoloOUT = StructuralObject.SetValidValue(value, "IDProtocoloOUT");
                ReportPropertyChanged("IDProtocoloOUT");
                OnIDProtocoloOUTChanged();
            }
        }
        private Nullable<global::System.Int32> _IDProtocoloOUT;
        partial void OnIDProtocoloOUTChanging(Nullable<global::System.Int32> value);
        partial void OnIDProtocoloOUTChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ControloOrcamental
        {
            get
            {
                return _ControloOrcamental;
            }
            set
            {
                OnControloOrcamentalChanging(value);
                ReportPropertyChanging("ControloOrcamental");
                _ControloOrcamental = StructuralObject.SetValidValue(value, "ControloOrcamental");
                ReportPropertyChanged("ControloOrcamental");
                OnControloOrcamentalChanged();
            }
        }
        private Nullable<global::System.Boolean> _ControloOrcamental;
        partial void OnControloOrcamentalChanging(Nullable<global::System.Boolean> value);
        partial void OnControloOrcamentalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FonteFinanciamento
        {
            get
            {
                return _FonteFinanciamento;
            }
            set
            {
                OnFonteFinanciamentoChanging(value);
                ReportPropertyChanging("FonteFinanciamento");
                _FonteFinanciamento = StructuralObject.SetValidValue(value, true, "FonteFinanciamento");
                ReportPropertyChanged("FonteFinanciamento");
                OnFonteFinanciamentoChanged();
            }
        }
        private global::System.String _FonteFinanciamento;
        partial void OnFonteFinanciamentoChanging(global::System.String value);
        partial void OnFonteFinanciamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorGastosGerais
        {
            get
            {
                return _ValorGastosGerais;
            }
            set
            {
                OnValorGastosGeraisChanging(value);
                ReportPropertyChanging("ValorGastosGerais");
                _ValorGastosGerais = StructuralObject.SetValidValue(value, "ValorGastosGerais");
                ReportPropertyChanged("ValorGastosGerais");
                OnValorGastosGeraisChanged();
            }
        }
        private Nullable<global::System.Double> _ValorGastosGerais;
        partial void OnValorGastosGeraisChanging(Nullable<global::System.Double> value);
        partial void OnValorGastosGeraisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorRecursosHumanos
        {
            get
            {
                return _ValorRecursosHumanos;
            }
            set
            {
                OnValorRecursosHumanosChanging(value);
                ReportPropertyChanging("ValorRecursosHumanos");
                _ValorRecursosHumanos = StructuralObject.SetValidValue(value, "ValorRecursosHumanos");
                ReportPropertyChanged("ValorRecursosHumanos");
                OnValorRecursosHumanosChanged();
            }
        }
        private Nullable<global::System.Double> _ValorRecursosHumanos;
        partial void OnValorRecursosHumanosChanging(Nullable<global::System.Double> value);
        partial void OnValorRecursosHumanosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEstado;
        partial void OnIDEstadoChanging(Nullable<global::System.Int32> value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataExtensaoTermo
        {
            get
            {
                return _DataExtensaoTermo;
            }
            set
            {
                OnDataExtensaoTermoChanging(value);
                ReportPropertyChanging("DataExtensaoTermo");
                _DataExtensaoTermo = StructuralObject.SetValidValue(value, "DataExtensaoTermo");
                ReportPropertyChanged("DataExtensaoTermo");
                OnDataExtensaoTermoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataExtensaoTermo;
        partial void OnDataExtensaoTermoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataExtensaoTermoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorDespesaExtensaoTermo
        {
            get
            {
                return _ValorDespesaExtensaoTermo;
            }
            set
            {
                OnValorDespesaExtensaoTermoChanging(value);
                ReportPropertyChanging("ValorDespesaExtensaoTermo");
                _ValorDespesaExtensaoTermo = StructuralObject.SetValidValue(value, "ValorDespesaExtensaoTermo");
                ReportPropertyChanged("ValorDespesaExtensaoTermo");
                OnValorDespesaExtensaoTermoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorDespesaExtensaoTermo;
        partial void OnValorDespesaExtensaoTermoChanging(Nullable<global::System.Double> value);
        partial void OnValorDespesaExtensaoTermoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataEncerramentoCF
        {
            get
            {
                return _DataEncerramentoCF;
            }
            set
            {
                OnDataEncerramentoCFChanging(value);
                ReportPropertyChanging("DataEncerramentoCF");
                _DataEncerramentoCF = StructuralObject.SetValidValue(value, "DataEncerramentoCF");
                ReportPropertyChanged("DataEncerramentoCF");
                OnDataEncerramentoCFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataEncerramentoCF;
        partial void OnDataEncerramentoCFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataEncerramentoCFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String RegraAmortizacao
        {
            get
            {
                return _RegraAmortizacao;
            }
            set
            {
                OnRegraAmortizacaoChanging(value);
                ReportPropertyChanging("RegraAmortizacao");
                _RegraAmortizacao = StructuralObject.SetValidValue(value, true, "RegraAmortizacao");
                ReportPropertyChanged("RegraAmortizacao");
                OnRegraAmortizacaoChanged();
            }
        }
        private global::System.String _RegraAmortizacao;
        partial void OnRegraAmortizacaoChanging(global::System.String value);
        partial void OnRegraAmortizacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> RegraAmortizacaoPeriodo
        {
            get
            {
                return _RegraAmortizacaoPeriodo;
            }
            set
            {
                OnRegraAmortizacaoPeriodoChanging(value);
                ReportPropertyChanging("RegraAmortizacaoPeriodo");
                _RegraAmortizacaoPeriodo = StructuralObject.SetValidValue(value, "RegraAmortizacaoPeriodo");
                ReportPropertyChanged("RegraAmortizacaoPeriodo");
                OnRegraAmortizacaoPeriodoChanged();
            }
        }
        private Nullable<global::System.Int32> _RegraAmortizacaoPeriodo;
        partial void OnRegraAmortizacaoPeriodoChanging(Nullable<global::System.Int32> value);
        partial void OnRegraAmortizacaoPeriodoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String RegraAdiantamento
        {
            get
            {
                return _RegraAdiantamento;
            }
            set
            {
                OnRegraAdiantamentoChanging(value);
                ReportPropertyChanging("RegraAdiantamento");
                _RegraAdiantamento = StructuralObject.SetValidValue(value, true, "RegraAdiantamento");
                ReportPropertyChanged("RegraAdiantamento");
                OnRegraAdiantamentoChanged();
            }
        }
        private global::System.String _RegraAdiantamento;
        partial void OnRegraAdiantamentoChanging(global::System.String value);
        partial void OnRegraAdiantamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> FatorDepreciacaoAcelerada
        {
            get
            {
                return _FatorDepreciacaoAcelerada;
            }
            set
            {
                OnFatorDepreciacaoAceleradaChanging(value);
                ReportPropertyChanging("FatorDepreciacaoAcelerada");
                _FatorDepreciacaoAcelerada = StructuralObject.SetValidValue(value, "FatorDepreciacaoAcelerada");
                ReportPropertyChanged("FatorDepreciacaoAcelerada");
                OnFatorDepreciacaoAceleradaChanged();
            }
        }
        private Nullable<global::System.Boolean> _FatorDepreciacaoAcelerada;
        partial void OnFatorDepreciacaoAceleradaChanging(Nullable<global::System.Boolean> value);
        partial void OnFatorDepreciacaoAceleradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FonteFinanciamentoERP
        {
            get
            {
                return _FonteFinanciamentoERP;
            }
            set
            {
                OnFonteFinanciamentoERPChanging(value);
                ReportPropertyChanging("FonteFinanciamentoERP");
                _FonteFinanciamentoERP = StructuralObject.SetValidValue(value, true, "FonteFinanciamentoERP");
                ReportPropertyChanged("FonteFinanciamentoERP");
                OnFonteFinanciamentoERPChanged();
            }
        }
        private global::System.String _FonteFinanciamentoERP;
        partial void OnFonteFinanciamentoERPChanging(global::System.String value);
        partial void OnFonteFinanciamentoERPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ClassificacaoEconomica
        {
            get
            {
                return _ClassificacaoEconomica;
            }
            set
            {
                OnClassificacaoEconomicaChanging(value);
                ReportPropertyChanging("ClassificacaoEconomica");
                _ClassificacaoEconomica = StructuralObject.SetValidValue(value, true, "ClassificacaoEconomica");
                ReportPropertyChanged("ClassificacaoEconomica");
                OnClassificacaoEconomicaChanged();
            }
        }
        private global::System.String _ClassificacaoEconomica;
        partial void OnClassificacaoEconomicaChanging(global::System.String value);
        partial void OnClassificacaoEconomicaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataAlteracao
        {
            get
            {
                return _DataAlteracao;
            }
            set
            {
                OnDataAlteracaoChanging(value);
                ReportPropertyChanging("DataAlteracao");
                _DataAlteracao = StructuralObject.SetValidValue(value, "DataAlteracao");
                ReportPropertyChanged("DataAlteracao");
                OnDataAlteracaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataAlteracao;
        partial void OnDataAlteracaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataAlteracaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ObjectivoPrincipal
        {
            get
            {
                return _ObjectivoPrincipal;
            }
            set
            {
                OnObjectivoPrincipalChanging(value);
                ReportPropertyChanging("ObjectivoPrincipal");
                _ObjectivoPrincipal = StructuralObject.SetValidValue(value, true, "ObjectivoPrincipal");
                ReportPropertyChanged("ObjectivoPrincipal");
                OnObjectivoPrincipalChanged();
            }
        }
        private global::System.String _ObjectivoPrincipal;
        partial void OnObjectivoPrincipalChanging(global::System.String value);
        partial void OnObjectivoPrincipalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRegiaoIntervencao
        {
            get
            {
                return _IDRegiaoIntervencao;
            }
            set
            {
                OnIDRegiaoIntervencaoChanging(value);
                ReportPropertyChanging("IDRegiaoIntervencao");
                _IDRegiaoIntervencao = StructuralObject.SetValidValue(value, "IDRegiaoIntervencao");
                ReportPropertyChanged("IDRegiaoIntervencao");
                OnIDRegiaoIntervencaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRegiaoIntervencao;
        partial void OnIDRegiaoIntervencaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDRegiaoIntervencaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipologiaProjeto
        {
            get
            {
                return _IDTipologiaProjeto;
            }
            set
            {
                OnIDTipologiaProjetoChanging(value);
                ReportPropertyChanging("IDTipologiaProjeto");
                _IDTipologiaProjeto = StructuralObject.SetValidValue(value, "IDTipologiaProjeto");
                ReportPropertyChanged("IDTipologiaProjeto");
                OnIDTipologiaProjetoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipologiaProjeto;
        partial void OnIDTipologiaProjetoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipologiaProjetoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Adiantamento_Projectos", "Adiantamento")]
        public EntityCollection<Adiantamento> Adiantamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Adiantamento>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Adiantamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Adiantamento>("GestaoProjectosModel.FK_Adiantamento_Projectos", "Adiantamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_Candidaturas", "Candidaturas")]
        public Candidaturas Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Candidaturas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Candidaturas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Candidaturas> CandidaturasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Candidaturas>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Candidaturas>("GestaoProjectosModel.FK_Projectos_Candidaturas", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_Projectos", "Contratos")]
        public EntityCollection<Contratos> Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_Projectos", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_Projectos", "Contratos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Projectos_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Projectos_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_Projectos_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_Projectos_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_Projectos", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_Projectos", "InternoMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoRubrica_Projectos", "InternoRubrica")]
        public EntityCollection<InternoRubrica> InternoRubrica
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "InternoRubrica");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoRubrica>("GestaoProjectosModel.FK_InternoRubrica_Projectos", "InternoRubrica", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_MapaImputacao_Projectos", "MapaImputacao")]
        public EntityCollection<MapaImputacao> MapaImputacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "MapaImputacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<MapaImputacao>("GestaoProjectosModel.FK_MapaImputacao_Projectos", "MapaImputacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_Projectos", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_Projectos", "Pagamentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PagamentosParticipantes_Projectos", "PagamentosParticipantes")]
        public EntityCollection<PagamentosParticipantes> PagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "PagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PagamentosParticipantes>("GestaoProjectosModel.FK_PagamentosParticipantes_Projectos", "PagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Projectos", "PedidosContraFaturas")]
        public EntityCollection<PedidosContraFaturas> PedidosContraFaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "PedidosContraFaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Projectos", "PedidosContraFaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoAnexos_Projectos", "ProjectoAnexos")]
        public EntityCollection<ProjectoAnexos> ProjectoAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoAnexos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "ProjectoAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoAnexos>("GestaoProjectosModel.FK_ProjectoAnexos_Projectos", "ProjectoAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEnvioEmailExclusoes_Projectos", "ProjectoEnvioEmailExclusoes")]
        public ProjectoEnvioEmailExclusoes ProjectoEnvioEmailExclusoes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoEnvioEmailExclusoes>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "ProjectoEnvioEmailExclusoes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoEnvioEmailExclusoes>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "ProjectoEnvioEmailExclusoes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProjectoEnvioEmailExclusoes> ProjectoEnvioEmailExclusoesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoEnvioEmailExclusoes>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "ProjectoEnvioEmailExclusoes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProjectoEnvioEmailExclusoes>("GestaoProjectosModel.FK_ProjectoEnvioEmailExclusoes_Projectos", "ProjectoEnvioEmailExclusoes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_Projectos", "ProjectoEquipa")]
        public EntityCollection<ProjectoEquipa> ProjectoEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "ProjectoEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_Projectos", "ProjectoEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Projectos", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Projectos", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoInstituicao_Projectos", "ProjectoInstituicao")]
        public EntityCollection<ProjectoInstituicao> ProjectoInstituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "ProjectoInstituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoInstituicao>("GestaoProjectosModel.FK_ProjectoInstituicao_Projectos", "ProjectoInstituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoOverheads_Projectos", "ProjectoOverheads")]
        public EntityCollection<ProjectoOverheads> ProjectoOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoOverheads>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "ProjectoOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoOverheads>("GestaoProjectosModel.FK_ProjectoOverheads_Projectos", "ProjectoOverheads", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_Projectos", "Recebimentos")]
        public EntityCollection<Recebimentos> Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Recebimentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Projectos", "RecebimentosParticipantes")]
        public EntityCollection<RecebimentosParticipantes> RecebimentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "RecebimentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "RecebimentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_Projectos", "RegistoTarefas")]
        public EntityCollection<RegistoTarefas> RegistoTarefas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "RegistoTarefas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "RegistoTarefas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoTarefa_Projectos", "TipoTarefa")]
        public EntityCollection<TipoTarefa> TipoTarefa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TipoTarefa>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "TipoTarefa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TipoTarefa>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "TipoTarefa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Projectos", "TransferenciasParticipantes")]
        public EntityCollection<TransferenciasParticipantes> TransferenciasParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TransferenciasParticipantes>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "TransferenciasParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TransferenciasParticipantes>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "TransferenciasParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Projectos", "VerbasMovimento")]
        public EntityCollection<VerbasMovimento> VerbasMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "VerbasMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasMovimento>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "VerbasMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverheads_Projectos", "VerbasOverheads")]
        public EntityCollection<VerbasOverheads> VerbasOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "VerbasOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "VerbasOverheads", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Projectos", "AdmDespesaExecutada")]
        public EntityCollection<AdmDespesaExecutada> AdmDespesaExecutada
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmDespesaExecutada>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "AdmDespesaExecutada");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmDespesaExecutada>("GestaoProjectosModel.FK_AdmDespesaExecutada_Projectos", "AdmDespesaExecutada", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Projectos", "AdmOrcamento")]
        public EntityCollection<AdmOrcamento> AdmOrcamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmOrcamento>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "AdmOrcamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmOrcamento>("GestaoProjectosModel.FK_AdmOrcamento_Projectos", "AdmOrcamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamentoParceiras_Projectos", "AdmOrcamentoParceiras")]
        public EntityCollection<AdmOrcamentoParceiras> AdmOrcamentoParceiras
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmOrcamentoParceiras>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "AdmOrcamentoParceiras");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmOrcamentoParceiras>("GestaoProjectosModel.FK_AdmOrcamentoParceiras_Projectos", "AdmOrcamentoParceiras", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Projectos", "AdmPedidoPagamento")]
        public EntityCollection<AdmPedidoPagamento> AdmPedidoPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmPedidoPagamento>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "AdmPedidoPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmPedidoPagamento>("GestaoProjectosModel.FK_AdmPedidoPagamento_Projectos", "AdmPedidoPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Projectos", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Projectos", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Projectos", "Despesas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao")]
        public RegiaoIntervencao RegiaoIntervencao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RegiaoIntervencao>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RegiaoIntervencao>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RegiaoIntervencao> RegiaoIntervencaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RegiaoIntervencao>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RegiaoIntervencao>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "RegiaoIntervencao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoLogotipo_Projectos", "ProjectoLogotipo")]
        public ProjectoLogotipo ProjectoLogotipo
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoLogotipo>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "ProjectoLogotipo").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoLogotipo>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "ProjectoLogotipo").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProjectoLogotipo> ProjectoLogotipoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoLogotipo>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "ProjectoLogotipo");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProjectoLogotipo>("GestaoProjectosModel.FK_ProjectoLogotipo_Projectos", "ProjectoLogotipo", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_TipologiaProjeto", "TipologiaProjeto")]
        public TipologiaProjeto TipologiaProjeto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipologiaProjeto>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "TipologiaProjeto").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipologiaProjeto>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "TipologiaProjeto").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipologiaProjeto> TipologiaProjetoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipologiaProjeto>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "TipologiaProjeto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipologiaProjeto>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "TipologiaProjeto", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ProjectosAlocacaoDiaria")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ProjectosAlocacaoDiaria : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ProjectosAlocacaoDiaria object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="alocacao">Initial value of the Alocacao property.</param>
        public static ProjectosAlocacaoDiaria CreateProjectosAlocacaoDiaria(global::System.Int32 iDProjecto, global::System.Int32 iDRecursoHumano, global::System.DateTime data, global::System.Int32 alocacao)
        {
            ProjectosAlocacaoDiaria projectosAlocacaoDiaria = new ProjectosAlocacaoDiaria();
            projectosAlocacaoDiaria.IDProjecto = iDProjecto;
            projectosAlocacaoDiaria.IDRecursoHumano = iDRecursoHumano;
            projectosAlocacaoDiaria.Data = data;
            projectosAlocacaoDiaria.Alocacao = alocacao;
            return projectosAlocacaoDiaria;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                if (_IDProjecto != value)
                {
                    OnIDProjectoChanging(value);
                    ReportPropertyChanging("IDProjecto");
                    _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                    ReportPropertyChanged("IDProjecto");
                    OnIDProjectoChanged();
                }
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                if (_IDRecursoHumano != value)
                {
                    OnIDRecursoHumanoChanging(value);
                    ReportPropertyChanging("IDRecursoHumano");
                    _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                    ReportPropertyChanged("IDRecursoHumano");
                    OnIDRecursoHumanoChanged();
                }
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                if (_Data != value)
                {
                    OnDataChanging(value);
                    ReportPropertyChanging("Data");
                    _Data = StructuralObject.SetValidValue(value, "Data");
                    ReportPropertyChanged("Data");
                    OnDataChanged();
                }
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Alocacao
        {
            get
            {
                return _Alocacao;
            }
            set
            {
                OnAlocacaoChanging(value);
                ReportPropertyChanging("Alocacao");
                _Alocacao = StructuralObject.SetValidValue(value, "Alocacao");
                ReportPropertyChanged("Alocacao");
                OnAlocacaoChanged();
            }
        }
        private global::System.Int32 _Alocacao;
        partial void OnAlocacaoChanging(global::System.Int32 value);
        partial void OnAlocacaoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Recebimentos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Recebimentos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Recebimentos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="dataRecebimento">Initial value of the DataRecebimento property.</param>
        /// <param name="tipoRecebimento">Initial value of the TipoRecebimento property.</param>
        /// <param name="montanteTotal">Initial value of the MontanteTotal property.</param>
        public static Recebimentos CreateRecebimentos(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDEntidadeFinanciadora, global::System.DateTime dataRecebimento, global::System.String tipoRecebimento, global::System.Double montanteTotal)
        {
            Recebimentos recebimentos = new Recebimentos();
            recebimentos.ID = id;
            recebimentos.IDProjecto = iDProjecto;
            recebimentos.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            recebimentos.DataRecebimento = dataRecebimento;
            recebimentos.TipoRecebimento = tipoRecebimento;
            recebimentos.MontanteTotal = montanteTotal;
            return recebimentos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataRecebimento
        {
            get
            {
                return _DataRecebimento;
            }
            set
            {
                OnDataRecebimentoChanging(value);
                ReportPropertyChanging("DataRecebimento");
                _DataRecebimento = StructuralObject.SetValidValue(value, "DataRecebimento");
                ReportPropertyChanged("DataRecebimento");
                OnDataRecebimentoChanged();
            }
        }
        private global::System.DateTime _DataRecebimento;
        partial void OnDataRecebimentoChanging(global::System.DateTime value);
        partial void OnDataRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String TipoRecebimento
        {
            get
            {
                return _TipoRecebimento;
            }
            set
            {
                OnTipoRecebimentoChanging(value);
                ReportPropertyChanging("TipoRecebimento");
                _TipoRecebimento = StructuralObject.SetValidValue(value, false, "TipoRecebimento");
                ReportPropertyChanged("TipoRecebimento");
                OnTipoRecebimentoChanged();
            }
        }
        private global::System.String _TipoRecebimento;
        partial void OnTipoRecebimentoChanging(global::System.String value);
        partial void OnTipoRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double MontanteTotal
        {
            get
            {
                return _MontanteTotal;
            }
            set
            {
                OnMontanteTotalChanging(value);
                ReportPropertyChanging("MontanteTotal");
                _MontanteTotal = StructuralObject.SetValidValue(value, "MontanteTotal");
                ReportPropertyChanged("MontanteTotal");
                OnMontanteTotalChanged();
            }
        }
        private global::System.Double _MontanteTotal;
        partial void OnMontanteTotalChanging(global::System.Double value);
        partial void OnMontanteTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos", "RecebimentosAbate")]
        public EntityCollection<RecebimentosAbate> RecebimentosAbate
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosAbate>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "RecebimentosAbate");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosAbate>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "RecebimentosAbate", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos1", "RecebimentosAbate")]
        public EntityCollection<RecebimentosAbate> RecebimentosAbate1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosAbate>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "RecebimentosAbate");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosAbate>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "RecebimentosAbate", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Recebimentos", "RecebimentosPagamento")]
        public EntityCollection<RecebimentosPagamento> RecebimentosPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosPagamento>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "RecebimentosPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosPagamento>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "RecebimentosPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAnexos_Recebimentos", "RecebimentosAnexos")]
        public EntityCollection<RecebimentosAnexos> RecebimentosAnexos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosAnexos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "RecebimentosAnexos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosAnexos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "RecebimentosAnexos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdiantamentoCompensacao_Recebimentos", "AdiantamentoCompensacao")]
        public EntityCollection<AdiantamentoCompensacao> AdiantamentoCompensacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdiantamentoCompensacao>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "AdiantamentoCompensacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdiantamentoCompensacao>("GestaoProjectosModel.FK_AdiantamentoCompensacao_Recebimentos", "AdiantamentoCompensacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosReceita_Recebimentos", "RecebimentosReceita")]
        public EntityCollection<RecebimentosReceita> RecebimentosReceita
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosReceita>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "RecebimentosReceita");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosReceita>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "RecebimentosReceita", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_TiposRecebimento", "TiposRecebimento")]
        public TiposRecebimento TiposRecebimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "TiposRecebimento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "TiposRecebimento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TiposRecebimento> TiposRecebimentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "TiposRecebimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "TiposRecebimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Recebimentos_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_Recebimentos_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosAbate")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosAbate : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosAbate object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecebimento">Initial value of the IDRecebimento property.</param>
        /// <param name="montanteAbate">Initial value of the MontanteAbate property.</param>
        public static RecebimentosAbate CreateRecebimentosAbate(global::System.Int32 id, global::System.Int32 iDRecebimento, global::System.Double montanteAbate)
        {
            RecebimentosAbate recebimentosAbate = new RecebimentosAbate();
            recebimentosAbate.ID = id;
            recebimentosAbate.IDRecebimento = iDRecebimento;
            recebimentosAbate.MontanteAbate = montanteAbate;
            return recebimentosAbate;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private global::System.Int32 _IDRecebimento;
        partial void OnIDRecebimentoChanging(global::System.Int32 value);
        partial void OnIDRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRecebimentoAbate
        {
            get
            {
                return _IDRecebimentoAbate;
            }
            set
            {
                OnIDRecebimentoAbateChanging(value);
                ReportPropertyChanging("IDRecebimentoAbate");
                _IDRecebimentoAbate = StructuralObject.SetValidValue(value, "IDRecebimentoAbate");
                ReportPropertyChanged("IDRecebimentoAbate");
                OnIDRecebimentoAbateChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRecebimentoAbate;
        partial void OnIDRecebimentoAbateChanging(Nullable<global::System.Int32> value);
        partial void OnIDRecebimentoAbateChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double MontanteAbate
        {
            get
            {
                return _MontanteAbate;
            }
            set
            {
                OnMontanteAbateChanging(value);
                ReportPropertyChanging("MontanteAbate");
                _MontanteAbate = StructuralObject.SetValidValue(value, "MontanteAbate");
                ReportPropertyChanged("MontanteAbate");
                OnMontanteAbateChanged();
            }
        }
        private global::System.Double _MontanteAbate;
        partial void OnMontanteAbateChanging(global::System.Double value);
        partial void OnMontanteAbateChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos", "Recebimentos")]
        public Recebimentos Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> RecebimentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos", "Recebimentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAbate_Recebimentos1", "Recebimentos")]
        public Recebimentos Recebimentos1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> Recebimentos1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAbate_Recebimentos1", "Recebimentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosAnexos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosAnexos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosAnexos object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="nomeFicheiro">Initial value of the NomeFicheiro property.</param>
        public static RecebimentosAnexos CreateRecebimentosAnexos(global::System.Int32 id, global::System.String descricao, global::System.String nomeFicheiro)
        {
            RecebimentosAnexos recebimentosAnexos = new RecebimentosAnexos();
            recebimentosAnexos.ID = id;
            recebimentosAnexos.Descricao = descricao;
            recebimentosAnexos.NomeFicheiro = nomeFicheiro;
            return recebimentosAnexos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRecebimento;
        partial void OnIDRecebimentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Documento
        {
            get
            {
                return _Documento;
            }
            set
            {
                OnDocumentoChanging(value);
                ReportPropertyChanging("Documento");
                _Documento = StructuralObject.SetValidValue(value, true, "Documento");
                ReportPropertyChanged("Documento");
                OnDocumentoChanged();
            }
        }
        private global::System.String _Documento;
        partial void OnDocumentoChanging(global::System.String value);
        partial void OnDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeFicheiro
        {
            get
            {
                return _NomeFicheiro;
            }
            set
            {
                OnNomeFicheiroChanging(value);
                ReportPropertyChanging("NomeFicheiro");
                _NomeFicheiro = StructuralObject.SetValidValue(value, false, "NomeFicheiro");
                ReportPropertyChanged("NomeFicheiro");
                OnNomeFicheiroChanged();
            }
        }
        private global::System.String _NomeFicheiro;
        partial void OnNomeFicheiroChanging(global::System.String value);
        partial void OnNomeFicheiroChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosAnexos_Recebimentos", "Recebimentos")]
        public Recebimentos Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> RecebimentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosAnexos_Recebimentos", "Recebimentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosPagamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosPagamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosPagamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecebimento">Initial value of the IDRecebimento property.</param>
        /// <param name="iDPagamento">Initial value of the IDPagamento property.</param>
        public static RecebimentosPagamento CreateRecebimentosPagamento(global::System.Int32 id, global::System.Int32 iDRecebimento, global::System.Int32 iDPagamento)
        {
            RecebimentosPagamento recebimentosPagamento = new RecebimentosPagamento();
            recebimentosPagamento.ID = id;
            recebimentosPagamento.IDRecebimento = iDRecebimento;
            recebimentosPagamento.IDPagamento = iDPagamento;
            return recebimentosPagamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private global::System.Int32 _IDRecebimento;
        partial void OnIDRecebimentoChanging(global::System.Int32 value);
        partial void OnIDRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPagamento
        {
            get
            {
                return _IDPagamento;
            }
            set
            {
                OnIDPagamentoChanging(value);
                ReportPropertyChanging("IDPagamento");
                _IDPagamento = StructuralObject.SetValidValue(value, "IDPagamento");
                ReportPropertyChanged("IDPagamento");
                OnIDPagamentoChanged();
            }
        }
        private global::System.Int32 _IDPagamento;
        partial void OnIDPagamentoChanging(global::System.Int32 value);
        partial void OnIDPagamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Recebimentos", "Recebimentos")]
        public Recebimentos Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> RecebimentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Recebimentos", "Recebimentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamento_Pagamentos", "Pagamentos")]
        public Pagamentos Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "Pagamentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "Pagamentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Pagamentos> PagamentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Pagamentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Pagamentos>("GestaoProjectosModel.FK_RecebimentosPagamento_Pagamentos", "Pagamentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosPagamentoParticipantes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosPagamentoParticipantes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosPagamentoParticipantes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecebimentoParticipante">Initial value of the IDRecebimentoParticipante property.</param>
        /// <param name="iDPagamentoParticipante">Initial value of the IDPagamentoParticipante property.</param>
        public static RecebimentosPagamentoParticipantes CreateRecebimentosPagamentoParticipantes(global::System.Int32 id, global::System.Int32 iDRecebimentoParticipante, global::System.Int32 iDPagamentoParticipante)
        {
            RecebimentosPagamentoParticipantes recebimentosPagamentoParticipantes = new RecebimentosPagamentoParticipantes();
            recebimentosPagamentoParticipantes.ID = id;
            recebimentosPagamentoParticipantes.IDRecebimentoParticipante = iDRecebimentoParticipante;
            recebimentosPagamentoParticipantes.IDPagamentoParticipante = iDPagamentoParticipante;
            return recebimentosPagamentoParticipantes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecebimentoParticipante
        {
            get
            {
                return _IDRecebimentoParticipante;
            }
            set
            {
                OnIDRecebimentoParticipanteChanging(value);
                ReportPropertyChanging("IDRecebimentoParticipante");
                _IDRecebimentoParticipante = StructuralObject.SetValidValue(value, "IDRecebimentoParticipante");
                ReportPropertyChanged("IDRecebimentoParticipante");
                OnIDRecebimentoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDRecebimentoParticipante;
        partial void OnIDRecebimentoParticipanteChanging(global::System.Int32 value);
        partial void OnIDRecebimentoParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPagamentoParticipante
        {
            get
            {
                return _IDPagamentoParticipante;
            }
            set
            {
                OnIDPagamentoParticipanteChanging(value);
                ReportPropertyChanging("IDPagamentoParticipante");
                _IDPagamentoParticipante = StructuralObject.SetValidValue(value, "IDPagamentoParticipante");
                ReportPropertyChanged("IDPagamentoParticipante");
                OnIDPagamentoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDPagamentoParticipante;
        partial void OnIDPagamentoParticipanteChanging(global::System.Int32 value);
        partial void OnIDPagamentoParticipanteChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes")]
        public PagamentosParticipantes PagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PagamentosParticipantes> PagamentosParticipantesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_PagamentosParticipantes", "PagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes")]
        public RecebimentosParticipantes RecebimentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecebimentosParticipantes> RecebimentosParticipantesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosParticipantes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosParticipantes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosParticipantes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosParticipantes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicaoParticipante">Initial value of the IDInstituicaoParticipante property.</param>
        /// <param name="codigoTipoRecebimento">Initial value of the CodigoTipoRecebimento property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        public static RecebimentosParticipantes CreateRecebimentosParticipantes(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicaoParticipante, global::System.String codigoTipoRecebimento, global::System.Double valor, global::System.DateTime data)
        {
            RecebimentosParticipantes recebimentosParticipantes = new RecebimentosParticipantes();
            recebimentosParticipantes.ID = id;
            recebimentosParticipantes.IDProjecto = iDProjecto;
            recebimentosParticipantes.IDInstituicaoParticipante = iDInstituicaoParticipante;
            recebimentosParticipantes.CodigoTipoRecebimento = codigoTipoRecebimento;
            recebimentosParticipantes.Valor = valor;
            recebimentosParticipantes.Data = data;
            return recebimentosParticipantes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicaoParticipante
        {
            get
            {
                return _IDInstituicaoParticipante;
            }
            set
            {
                OnIDInstituicaoParticipanteChanging(value);
                ReportPropertyChanging("IDInstituicaoParticipante");
                _IDInstituicaoParticipante = StructuralObject.SetValidValue(value, "IDInstituicaoParticipante");
                ReportPropertyChanged("IDInstituicaoParticipante");
                OnIDInstituicaoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDInstituicaoParticipante;
        partial void OnIDInstituicaoParticipanteChanging(global::System.Int32 value);
        partial void OnIDInstituicaoParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoRecebimento
        {
            get
            {
                return _CodigoTipoRecebimento;
            }
            set
            {
                OnCodigoTipoRecebimentoChanging(value);
                ReportPropertyChanging("CodigoTipoRecebimento");
                _CodigoTipoRecebimento = StructuralObject.SetValidValue(value, false, "CodigoTipoRecebimento");
                ReportPropertyChanged("CodigoTipoRecebimento");
                OnCodigoTipoRecebimentoChanged();
            }
        }
        private global::System.String _CodigoTipoRecebimento;
        partial void OnCodigoTipoRecebimentoChanging(global::System.String value);
        partial void OnCodigoTipoRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(Nullable<global::System.Int32> value);
        partial void OnIDEntidadeFinanciadoraChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosPagamentoParticipantes")]
        public EntityCollection<RecebimentosPagamentoParticipantes> RecebimentosPagamentoParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosPagamentoParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosPagamentoParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosPagamentoParticipantes>("GestaoProjectosModel.FK_RecebimentosPagamentoParticipantes_RecebimentosParticipantes1", "RecebimentosPagamentoParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento")]
        public TiposRecebimento TiposRecebimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TiposRecebimento> TiposRecebimentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TiposRecebimento>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "TiposRecebimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantesReceita")]
        public EntityCollection<RecebimentosParticipantesReceita> RecebimentosParticipantesReceita
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosParticipantesReceita>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantesReceita");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosParticipantesReceita>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantesReceita", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_RecebimentosParticipantes_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_RecebimentosParticipantes_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosParticipantesReceita")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosParticipantesReceita : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosParticipantesReceita object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecebimentoParticipante">Initial value of the IDRecebimentoParticipante property.</param>
        public static RecebimentosParticipantesReceita CreateRecebimentosParticipantesReceita(global::System.Int32 id, global::System.Int32 iDRecebimentoParticipante)
        {
            RecebimentosParticipantesReceita recebimentosParticipantesReceita = new RecebimentosParticipantesReceita();
            recebimentosParticipantesReceita.ID = id;
            recebimentosParticipantesReceita.IDRecebimentoParticipante = iDRecebimentoParticipante;
            return recebimentosParticipantesReceita;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecebimentoParticipante
        {
            get
            {
                return _IDRecebimentoParticipante;
            }
            set
            {
                OnIDRecebimentoParticipanteChanging(value);
                ReportPropertyChanging("IDRecebimentoParticipante");
                _IDRecebimentoParticipante = StructuralObject.SetValidValue(value, "IDRecebimentoParticipante");
                ReportPropertyChanged("IDRecebimentoParticipante");
                OnIDRecebimentoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDRecebimentoParticipante;
        partial void OnIDRecebimentoParticipanteChanging(global::System.Int32 value);
        partial void OnIDRecebimentoParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDFaturaRecibo
        {
            get
            {
                return _IDFaturaRecibo;
            }
            set
            {
                OnIDFaturaReciboChanging(value);
                ReportPropertyChanging("IDFaturaRecibo");
                _IDFaturaRecibo = StructuralObject.SetValidValue(value, true, "IDFaturaRecibo");
                ReportPropertyChanged("IDFaturaRecibo");
                OnIDFaturaReciboChanged();
            }
        }
        private global::System.String _IDFaturaRecibo;
        partial void OnIDFaturaReciboChanging(global::System.String value);
        partial void OnIDFaturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDLinhaFacturaRecibo
        {
            get
            {
                return _IDLinhaFacturaRecibo;
            }
            set
            {
                OnIDLinhaFacturaReciboChanging(value);
                ReportPropertyChanging("IDLinhaFacturaRecibo");
                _IDLinhaFacturaRecibo = StructuralObject.SetValidValue(value, true, "IDLinhaFacturaRecibo");
                ReportPropertyChanged("IDLinhaFacturaRecibo");
                OnIDLinhaFacturaReciboChanged();
            }
        }
        private global::System.String _IDLinhaFacturaRecibo;
        partial void OnIDLinhaFacturaReciboChanging(global::System.String value);
        partial void OnIDLinhaFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SerieFacturaRecibos
        {
            get
            {
                return _SerieFacturaRecibos;
            }
            set
            {
                OnSerieFacturaRecibosChanging(value);
                ReportPropertyChanging("SerieFacturaRecibos");
                _SerieFacturaRecibos = StructuralObject.SetValidValue(value, true, "SerieFacturaRecibos");
                ReportPropertyChanged("SerieFacturaRecibos");
                OnSerieFacturaRecibosChanged();
            }
        }
        private global::System.String _SerieFacturaRecibos;
        partial void OnSerieFacturaRecibosChanging(global::System.String value);
        partial void OnSerieFacturaRecibosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DescricaoFacturaRecibo
        {
            get
            {
                return _DescricaoFacturaRecibo;
            }
            set
            {
                OnDescricaoFacturaReciboChanging(value);
                ReportPropertyChanging("DescricaoFacturaRecibo");
                _DescricaoFacturaRecibo = StructuralObject.SetValidValue(value, true, "DescricaoFacturaRecibo");
                ReportPropertyChanged("DescricaoFacturaRecibo");
                OnDescricaoFacturaReciboChanged();
            }
        }
        private global::System.String _DescricaoFacturaRecibo;
        partial void OnDescricaoFacturaReciboChanging(global::System.String value);
        partial void OnDescricaoFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private Nullable<global::System.Double> _Valor;
        partial void OnValorChanging(Nullable<global::System.Double> value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private Nullable<global::System.DateTime> _Data;
        partial void OnDataChanging(Nullable<global::System.DateTime> value);
        partial void OnDataChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes")]
        public RecebimentosParticipantes RecebimentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecebimentosParticipantes> RecebimentosParticipantesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantesReceita_RecebimentosParticipantes", "RecebimentosParticipantes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecebimentosReceita")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecebimentosReceita : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecebimentosReceita object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecebimento">Initial value of the IDRecebimento property.</param>
        public static RecebimentosReceita CreateRecebimentosReceita(global::System.Int32 id, global::System.Int32 iDRecebimento)
        {
            RecebimentosReceita recebimentosReceita = new RecebimentosReceita();
            recebimentosReceita.ID = id;
            recebimentosReceita.IDRecebimento = iDRecebimento;
            return recebimentosReceita;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private global::System.Int32 _IDRecebimento;
        partial void OnIDRecebimentoChanging(global::System.Int32 value);
        partial void OnIDRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDFacturaRecibo
        {
            get
            {
                return _IDFacturaRecibo;
            }
            set
            {
                OnIDFacturaReciboChanging(value);
                ReportPropertyChanging("IDFacturaRecibo");
                _IDFacturaRecibo = StructuralObject.SetValidValue(value, true, "IDFacturaRecibo");
                ReportPropertyChanged("IDFacturaRecibo");
                OnIDFacturaReciboChanged();
            }
        }
        private global::System.String _IDFacturaRecibo;
        partial void OnIDFacturaReciboChanging(global::System.String value);
        partial void OnIDFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDLinhaFacturaRecibo
        {
            get
            {
                return _IDLinhaFacturaRecibo;
            }
            set
            {
                OnIDLinhaFacturaReciboChanging(value);
                ReportPropertyChanging("IDLinhaFacturaRecibo");
                _IDLinhaFacturaRecibo = StructuralObject.SetValidValue(value, true, "IDLinhaFacturaRecibo");
                ReportPropertyChanged("IDLinhaFacturaRecibo");
                OnIDLinhaFacturaReciboChanged();
            }
        }
        private global::System.String _IDLinhaFacturaRecibo;
        partial void OnIDLinhaFacturaReciboChanging(global::System.String value);
        partial void OnIDLinhaFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SerieFacturaRecibos
        {
            get
            {
                return _SerieFacturaRecibos;
            }
            set
            {
                OnSerieFacturaRecibosChanging(value);
                ReportPropertyChanging("SerieFacturaRecibos");
                _SerieFacturaRecibos = StructuralObject.SetValidValue(value, true, "SerieFacturaRecibos");
                ReportPropertyChanged("SerieFacturaRecibos");
                OnSerieFacturaRecibosChanged();
            }
        }
        private global::System.String _SerieFacturaRecibos;
        partial void OnSerieFacturaRecibosChanging(global::System.String value);
        partial void OnSerieFacturaRecibosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDReceita
        {
            get
            {
                return _IDReceita;
            }
            set
            {
                OnIDReceitaChanging(value);
                ReportPropertyChanging("IDReceita");
                _IDReceita = StructuralObject.SetValidValue(value, "IDReceita");
                ReportPropertyChanged("IDReceita");
                OnIDReceitaChanged();
            }
        }
        private Nullable<global::System.Int32> _IDReceita;
        partial void OnIDReceitaChanging(Nullable<global::System.Int32> value);
        partial void OnIDReceitaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DescricaoFacturaRecibo
        {
            get
            {
                return _DescricaoFacturaRecibo;
            }
            set
            {
                OnDescricaoFacturaReciboChanging(value);
                ReportPropertyChanging("DescricaoFacturaRecibo");
                _DescricaoFacturaRecibo = StructuralObject.SetValidValue(value, true, "DescricaoFacturaRecibo");
                ReportPropertyChanged("DescricaoFacturaRecibo");
                OnDescricaoFacturaReciboChanged();
            }
        }
        private global::System.String _DescricaoFacturaRecibo;
        partial void OnDescricaoFacturaReciboChanging(global::System.String value);
        partial void OnDescricaoFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private Nullable<global::System.Double> _Valor;
        partial void OnValorChanging(Nullable<global::System.Double> value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private Nullable<global::System.DateTime> _Data;
        partial void OnDataChanging(Nullable<global::System.DateTime> value);
        partial void OnDataChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosReceita_Recebimentos", "Recebimentos")]
        public Recebimentos Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "Recebimentos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "Recebimentos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Recebimentos> RecebimentosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Recebimentos>("GestaoProjectosModel.FK_RecebimentosReceita_Recebimentos", "Recebimentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RecursoHumano")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RecursoHumano : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RecursoHumano object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="iDGrauAcademico">Initial value of the IDGrauAcademico property.</param>
        /// <param name="eMail">Initial value of the EMail property.</param>
        public static RecursoHumano CreateRecursoHumano(global::System.Int32 id, global::System.String nome, global::System.Int32 iDGrauAcademico, global::System.String eMail)
        {
            RecursoHumano recursoHumano = new RecursoHumano();
            recursoHumano.ID = id;
            recursoHumano.Nome = nome;
            recursoHumano.IDGrauAcademico = iDGrauAcademico;
            recursoHumano.EMail = eMail;
            return recursoHumano;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Login
        {
            get
            {
                return _Login;
            }
            set
            {
                OnLoginChanging(value);
                ReportPropertyChanging("Login");
                _Login = StructuralObject.SetValidValue(value, true, "Login");
                ReportPropertyChanged("Login");
                OnLoginChanged();
            }
        }
        private global::System.String _Login;
        partial void OnLoginChanging(global::System.String value);
        partial void OnLoginChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroMecanografico
        {
            get
            {
                return _NumeroMecanografico;
            }
            set
            {
                OnNumeroMecanograficoChanging(value);
                ReportPropertyChanging("NumeroMecanografico");
                _NumeroMecanografico = StructuralObject.SetValidValue(value, true, "NumeroMecanografico");
                ReportPropertyChanged("NumeroMecanografico");
                OnNumeroMecanograficoChanged();
            }
        }
        private global::System.String _NumeroMecanografico;
        partial void OnNumeroMecanograficoChanging(global::System.String value);
        partial void OnNumeroMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeAbreviado
        {
            get
            {
                return _NomeAbreviado;
            }
            set
            {
                OnNomeAbreviadoChanging(value);
                ReportPropertyChanging("NomeAbreviado");
                _NomeAbreviado = StructuralObject.SetValidValue(value, true, "NomeAbreviado");
                ReportPropertyChanged("NomeAbreviado");
                OnNomeAbreviadoChanged();
            }
        }
        private global::System.String _NomeAbreviado;
        partial void OnNomeAbreviadoChanging(global::System.String value);
        partial void OnNomeAbreviadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NIF
        {
            get
            {
                return _NIF;
            }
            set
            {
                OnNIFChanging(value);
                ReportPropertyChanging("NIF");
                _NIF = StructuralObject.SetValidValue(value, true, "NIF");
                ReportPropertyChanged("NIF");
                OnNIFChanged();
            }
        }
        private global::System.String _NIF;
        partial void OnNIFChanging(global::System.String value);
        partial void OnNIFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DocumentoIdentificacaoTipo
        {
            get
            {
                return _DocumentoIdentificacaoTipo;
            }
            set
            {
                OnDocumentoIdentificacaoTipoChanging(value);
                ReportPropertyChanging("DocumentoIdentificacaoTipo");
                _DocumentoIdentificacaoTipo = StructuralObject.SetValidValue(value, true, "DocumentoIdentificacaoTipo");
                ReportPropertyChanged("DocumentoIdentificacaoTipo");
                OnDocumentoIdentificacaoTipoChanged();
            }
        }
        private global::System.String _DocumentoIdentificacaoTipo;
        partial void OnDocumentoIdentificacaoTipoChanging(global::System.String value);
        partial void OnDocumentoIdentificacaoTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DocumentoIdentificacaoNumero
        {
            get
            {
                return _DocumentoIdentificacaoNumero;
            }
            set
            {
                OnDocumentoIdentificacaoNumeroChanging(value);
                ReportPropertyChanging("DocumentoIdentificacaoNumero");
                _DocumentoIdentificacaoNumero = StructuralObject.SetValidValue(value, true, "DocumentoIdentificacaoNumero");
                ReportPropertyChanged("DocumentoIdentificacaoNumero");
                OnDocumentoIdentificacaoNumeroChanged();
            }
        }
        private global::System.String _DocumentoIdentificacaoNumero;
        partial void OnDocumentoIdentificacaoNumeroChanging(global::System.String value);
        partial void OnDocumentoIdentificacaoNumeroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DocumentoIdentificacaoValidade
        {
            get
            {
                return _DocumentoIdentificacaoValidade;
            }
            set
            {
                OnDocumentoIdentificacaoValidadeChanging(value);
                ReportPropertyChanging("DocumentoIdentificacaoValidade");
                _DocumentoIdentificacaoValidade = StructuralObject.SetValidValue(value, "DocumentoIdentificacaoValidade");
                ReportPropertyChanged("DocumentoIdentificacaoValidade");
                OnDocumentoIdentificacaoValidadeChanged();
            }
        }
        private Nullable<global::System.DateTime> _DocumentoIdentificacaoValidade;
        partial void OnDocumentoIdentificacaoValidadeChanging(Nullable<global::System.DateTime> value);
        partial void OnDocumentoIdentificacaoValidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDNacionalidade
        {
            get
            {
                return _IDNacionalidade;
            }
            set
            {
                OnIDNacionalidadeChanging(value);
                ReportPropertyChanging("IDNacionalidade");
                _IDNacionalidade = StructuralObject.SetValidValue(value, "IDNacionalidade");
                ReportPropertyChanged("IDNacionalidade");
                OnIDNacionalidadeChanged();
            }
        }
        private Nullable<global::System.Int32> _IDNacionalidade;
        partial void OnIDNacionalidadeChanging(Nullable<global::System.Int32> value);
        partial void OnIDNacionalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDGrauAcademico
        {
            get
            {
                return _IDGrauAcademico;
            }
            set
            {
                OnIDGrauAcademicoChanging(value);
                ReportPropertyChanging("IDGrauAcademico");
                _IDGrauAcademico = StructuralObject.SetValidValue(value, "IDGrauAcademico");
                ReportPropertyChanged("IDGrauAcademico");
                OnIDGrauAcademicoChanged();
            }
        }
        private global::System.Int32 _IDGrauAcademico;
        partial void OnIDGrauAcademicoChanging(global::System.Int32 value);
        partial void OnIDGrauAcademicoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, true, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Localidade
        {
            get
            {
                return _Localidade;
            }
            set
            {
                OnLocalidadeChanging(value);
                ReportPropertyChanging("Localidade");
                _Localidade = StructuralObject.SetValidValue(value, true, "Localidade");
                ReportPropertyChanged("Localidade");
                OnLocalidadeChanged();
            }
        }
        private global::System.String _Localidade;
        partial void OnLocalidadeChanging(global::System.String value);
        partial void OnLocalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, true, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String EMail
        {
            get
            {
                return _EMail;
            }
            set
            {
                OnEMailChanging(value);
                ReportPropertyChanging("EMail");
                _EMail = StructuralObject.SetValidValue(value, false, "EMail");
                ReportPropertyChanged("EMail");
                OnEMailChanged();
            }
        }
        private global::System.String _EMail;
        partial void OnEMailChanging(global::System.String value);
        partial void OnEMailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataNascimento
        {
            get
            {
                return _DataNascimento;
            }
            set
            {
                OnDataNascimentoChanging(value);
                ReportPropertyChanging("DataNascimento");
                _DataNascimento = StructuralObject.SetValidValue(value, "DataNascimento");
                ReportPropertyChanged("DataNascimento");
                OnDataNascimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataNascimento;
        partial void OnDataNascimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sexo
        {
            get
            {
                return _Sexo;
            }
            set
            {
                OnSexoChanging(value);
                ReportPropertyChanging("Sexo");
                _Sexo = StructuralObject.SetValidValue(value, true, "Sexo");
                ReportPropertyChanged("Sexo");
                OnSexoChanged();
            }
        }
        private global::System.String _Sexo;
        partial void OnSexoChanging(global::System.String value);
        partial void OnSexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone1
        {
            get
            {
                return _Telefone1;
            }
            set
            {
                OnTelefone1Changing(value);
                ReportPropertyChanging("Telefone1");
                _Telefone1 = StructuralObject.SetValidValue(value, true, "Telefone1");
                ReportPropertyChanged("Telefone1");
                OnTelefone1Changed();
            }
        }
        private global::System.String _Telefone1;
        partial void OnTelefone1Changing(global::System.String value);
        partial void OnTelefone1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone2
        {
            get
            {
                return _Telefone2;
            }
            set
            {
                OnTelefone2Changing(value);
                ReportPropertyChanging("Telefone2");
                _Telefone2 = StructuralObject.SetValidValue(value, true, "Telefone2");
                ReportPropertyChanged("Telefone2");
                OnTelefone2Changed();
            }
        }
        private global::System.String _Telefone2;
        partial void OnTelefone2Changing(global::System.String value);
        partial void OnTelefone2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDGrupoInvestigacao
        {
            get
            {
                return _IDGrupoInvestigacao;
            }
            set
            {
                OnIDGrupoInvestigacaoChanging(value);
                ReportPropertyChanging("IDGrupoInvestigacao");
                _IDGrupoInvestigacao = StructuralObject.SetValidValue(value, "IDGrupoInvestigacao");
                ReportPropertyChanged("IDGrupoInvestigacao");
                OnIDGrupoInvestigacaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDGrupoInvestigacao;
        partial void OnIDGrupoInvestigacaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDGrupoInvestigacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDUnidade
        {
            get
            {
                return _IDUnidade;
            }
            set
            {
                OnIDUnidadeChanging(value);
                ReportPropertyChanging("IDUnidade");
                _IDUnidade = StructuralObject.SetValidValue(value, "IDUnidade");
                ReportPropertyChanged("IDUnidade");
                OnIDUnidadeChanged();
            }
        }
        private Nullable<global::System.Int32> _IDUnidade;
        partial void OnIDUnidadeChanging(Nullable<global::System.Int32> value);
        partial void OnIDUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoRecursoHumano
        {
            get
            {
                return _IDTipoRecursoHumano;
            }
            set
            {
                OnIDTipoRecursoHumanoChanging(value);
                ReportPropertyChanging("IDTipoRecursoHumano");
                _IDTipoRecursoHumano = StructuralObject.SetValidValue(value, "IDTipoRecursoHumano");
                ReportPropertyChanged("IDTipoRecursoHumano");
                OnIDTipoRecursoHumanoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoRecursoHumano;
        partial void OnIDTipoRecursoHumanoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInstituicao;
        partial void OnIDInstituicaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private Nullable<global::System.Boolean> _Activo;
        partial void OnActivoChanging(Nullable<global::System.Boolean> value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_GrauAcademico", "GrauAcademico")]
        public GrauAcademico GrauAcademico
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "GrauAcademico").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "GrauAcademico").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<GrauAcademico> GrauAcademicoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "GrauAcademico");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<GrauAcademico>("GestaoProjectosModel.FK_RecursoHumano_GrauAcademico", "GrauAcademico", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao")]
        public GruposInvestigacao GruposInvestigacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<GruposInvestigacao> GruposInvestigacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<GruposInvestigacao>("GestaoProjectosModel.FK_RecursoHumano_GruposInvestigacao", "GruposInvestigacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao")]
        public TipoDocumentoIdentificacao TipoDocumentoIdentificacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumentoIdentificacao>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumentoIdentificacao>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoDocumentoIdentificacao> TipoDocumentoIdentificacaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoDocumentoIdentificacao>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoDocumentoIdentificacao>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "TipoDocumentoIdentificacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_Unidades", "Unidades")]
        public Unidades Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "Unidades").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "Unidades").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Unidades> UnidadesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Unidades>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Unidades>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "Unidades", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_RecursoHumano", "RegistoTarefas")]
        public EntityCollection<RegistoTarefas> RegistoTarefas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RegistoTarefas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RegistoTarefas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_RecursoHumano", "CandidaturaEquipa")]
        public EntityCollection<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "CandidaturaEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_RecursoHumano", "CandidaturaEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_RecursoHumano", "ProjectoEquipa")]
        public EntityCollection<ProjectoEquipa> ProjectoEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "ProjectoEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_RecursoHumano", "ProjectoEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_RecursoHumano", "Seguros")]
        public EntityCollection<Seguros> Seguros
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "Seguros");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "Seguros", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano")]
        public TipoRecursoHumano TipoRecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoRecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoRecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoRecursoHumano> TipoRecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoRecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoRecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "TipoRecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano", "Contratos")]
        public EntityCollection<Contratos> Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_RecursoHumano", "Contratos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_RecursoHumano1", "Contratos")]
        public EntityCollection<Contratos> Contratos1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_RecursoHumano1", "Contratos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoMovimento_RecursoHumano", "InternoMovimento")]
        public EntityCollection<InternoMovimento> InternoMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "InternoMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoMovimento>("GestaoProjectosModel.FK_InternoMovimento_RecursoHumano", "InternoMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjecto_RecursoHumano", "InternoProjecto")]
        public EntityCollection<InternoProjecto> InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoProjecto>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoProjecto>("GestaoProjectosModel.FK_InternoProjecto_RecursoHumano", "InternoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjectoResponsavel_RecursoHumano", "InternoProjectoDelegacao")]
        public EntityCollection<InternoProjectoDelegacao> InternoProjectoDelegacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoProjectoDelegacao>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "InternoProjectoDelegacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoProjectoDelegacao>("GestaoProjectosModel.FK_InternoProjectoResponsavel_RecursoHumano", "InternoProjectoDelegacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_Paises", "Paises")]
        public Paises Paises
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_RecursoHumano_Paises", "Paises").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_RecursoHumano_Paises", "Paises").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Paises> PaisesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Paises>("GestaoProjectosModel.FK_RecursoHumano_Paises", "Paises");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Paises>("GestaoProjectosModel.FK_RecursoHumano_Paises", "Paises", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_RecursoHumano", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_RecursoHumano", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_RecursoHumano", "ListagemTimesheet")]
        public EntityCollection<ListagemTimesheet> ListagemTimesheets
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ListagemTimesheet>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "ListagemTimesheet");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ListagemTimesheet>("GestaoProjectosModel.FK_RecursoHumano_RecursoHumano", "ListagemTimesheet", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RegiaoIntervencao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RegiaoIntervencao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RegiaoIntervencao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeRegiao">Initial value of the NomeRegiao property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static RegiaoIntervencao CreateRegiaoIntervencao(global::System.Int32 id, global::System.String nomeRegiao, global::System.Boolean activo)
        {
            RegiaoIntervencao regiaoIntervencao = new RegiaoIntervencao();
            regiaoIntervencao.ID = id;
            regiaoIntervencao.NomeRegiao = nomeRegiao;
            regiaoIntervencao.Activo = activo;
            return regiaoIntervencao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeRegiao
        {
            get
            {
                return _NomeRegiao;
            }
            set
            {
                OnNomeRegiaoChanging(value);
                ReportPropertyChanging("NomeRegiao");
                _NomeRegiao = StructuralObject.SetValidValue(value, false, "NomeRegiao");
                ReportPropertyChanged("NomeRegiao");
                OnNomeRegiaoChanged();
            }
        }
        private global::System.String _NomeRegiao;
        partial void OnNomeRegiaoChanging(global::System.String value);
        partial void OnNomeRegiaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_RegiaoIntervencao", "Projectos")]
        public EntityCollection<Projectos> Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_RegiaoIntervencao", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RegistoTarefas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class RegistoTarefas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RegistoTarefas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDTarefa">Initial value of the IDTarefa property.</param>
        /// <param name="iDRecursoHumano">Initial value of the IDRecursoHumano property.</param>
        /// <param name="inicioTarefa">Initial value of the InicioTarefa property.</param>
        /// <param name="fimTarefa">Initial value of the FimTarefa property.</param>
        public static RegistoTarefas CreateRegistoTarefas(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDTarefa, global::System.Int32 iDRecursoHumano, global::System.DateTime inicioTarefa, global::System.DateTime fimTarefa)
        {
            RegistoTarefas registoTarefas = new RegistoTarefas();
            registoTarefas.ID = id;
            registoTarefas.IDProjecto = iDProjecto;
            registoTarefas.IDTarefa = iDTarefa;
            registoTarefas.IDRecursoHumano = iDRecursoHumano;
            registoTarefas.InicioTarefa = inicioTarefa;
            registoTarefas.FimTarefa = fimTarefa;
            return registoTarefas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTarefa
        {
            get
            {
                return _IDTarefa;
            }
            set
            {
                OnIDTarefaChanging(value);
                ReportPropertyChanging("IDTarefa");
                _IDTarefa = StructuralObject.SetValidValue(value, "IDTarefa");
                ReportPropertyChanged("IDTarefa");
                OnIDTarefaChanged();
            }
        }
        private global::System.Int32 _IDTarefa;
        partial void OnIDTarefaChanging(global::System.Int32 value);
        partial void OnIDTarefaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursoHumano
        {
            get
            {
                return _IDRecursoHumano;
            }
            set
            {
                OnIDRecursoHumanoChanging(value);
                ReportPropertyChanging("IDRecursoHumano");
                _IDRecursoHumano = StructuralObject.SetValidValue(value, "IDRecursoHumano");
                ReportPropertyChanged("IDRecursoHumano");
                OnIDRecursoHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursoHumano;
        partial void OnIDRecursoHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursoHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime InicioTarefa
        {
            get
            {
                return _InicioTarefa;
            }
            set
            {
                OnInicioTarefaChanging(value);
                ReportPropertyChanging("InicioTarefa");
                _InicioTarefa = StructuralObject.SetValidValue(value, "InicioTarefa");
                ReportPropertyChanged("InicioTarefa");
                OnInicioTarefaChanged();
            }
        }
        private global::System.DateTime _InicioTarefa;
        partial void OnInicioTarefaChanging(global::System.DateTime value);
        partial void OnInicioTarefaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime FimTarefa
        {
            get
            {
                return _FimTarefa;
            }
            set
            {
                OnFimTarefaChanging(value);
                ReportPropertyChanging("FimTarefa");
                _FimTarefa = StructuralObject.SetValidValue(value, "FimTarefa");
                ReportPropertyChanged("FimTarefa");
                OnFimTarefaChanged();
            }
        }
        private global::System.DateTime _FimTarefa;
        partial void OnFimTarefaChanging(global::System.DateTime value);
        partial void OnFimTarefaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicio;
        partial void OnDataInicioChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> HorasPrevistas
        {
            get
            {
                return _HorasPrevistas;
            }
            set
            {
                OnHorasPrevistasChanging(value);
                ReportPropertyChanging("HorasPrevistas");
                _HorasPrevistas = StructuralObject.SetValidValue(value, "HorasPrevistas");
                ReportPropertyChanged("HorasPrevistas");
                OnHorasPrevistasChanged();
            }
        }
        private Nullable<global::System.Int32> _HorasPrevistas;
        partial void OnHorasPrevistasChanging(Nullable<global::System.Int32> value);
        partial void OnHorasPrevistasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFim
        {
            get
            {
                return _DataFim;
            }
            set
            {
                OnDataFimChanging(value);
                ReportPropertyChanging("DataFim");
                _DataFim = StructuralObject.SetValidValue(value, "DataFim");
                ReportPropertyChanged("DataFim");
                OnDataFimChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFim;
        partial void OnDataFimChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_RegistoTarefas_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_TipoTarefa", "TipoTarefa")]
        public TipoTarefa TipoTarefa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoTarefa>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "TipoTarefa").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoTarefa>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "TipoTarefa").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoTarefa> TipoTarefaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoTarefa>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "TipoTarefa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoTarefa>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "TipoTarefa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_RegistoTarefas_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Rubricas")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Rubricas : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Rubricas object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static Rubricas CreateRubricas(global::System.Int32 id, global::System.Boolean activo, global::System.Int32 iDEntidadeFinanciadora, global::System.String nome)
        {
            Rubricas rubricas = new Rubricas();
            rubricas.ID = id;
            rubricas.Activo = activo;
            rubricas.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            rubricas.Nome = nome;
            return rubricas;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRubricaPai
        {
            get
            {
                return _IDRubricaPai;
            }
            set
            {
                OnIDRubricaPaiChanging(value);
                ReportPropertyChanging("IDRubricaPai");
                _IDRubricaPai = StructuralObject.SetValidValue(value, "IDRubricaPai");
                ReportPropertyChanged("IDRubricaPai");
                OnIDRubricaPaiChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRubricaPai;
        partial void OnIDRubricaPaiChanging(Nullable<global::System.Int32> value);
        partial void OnIDRubricaPaiChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoRubricaExcel
        {
            get
            {
                return _CodigoRubricaExcel;
            }
            set
            {
                OnCodigoRubricaExcelChanging(value);
                ReportPropertyChanging("CodigoRubricaExcel");
                _CodigoRubricaExcel = StructuralObject.SetValidValue(value, true, "CodigoRubricaExcel");
                ReportPropertyChanged("CodigoRubricaExcel");
                OnCodigoRubricaExcelChanged();
            }
        }
        private global::System.String _CodigoRubricaExcel;
        partial void OnCodigoRubricaExcelChanging(global::System.String value);
        partial void OnCodigoRubricaExcelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoRubricaFormularios
        {
            get
            {
                return _CodigoRubricaFormularios;
            }
            set
            {
                OnCodigoRubricaFormulariosChanging(value);
                ReportPropertyChanging("CodigoRubricaFormularios");
                _CodigoRubricaFormularios = StructuralObject.SetValidValue(value, true, "CodigoRubricaFormularios");
                ReportPropertyChanged("CodigoRubricaFormularios");
                OnCodigoRubricaFormulariosChanged();
            }
        }
        private global::System.String _CodigoRubricaFormularios;
        partial void OnCodigoRubricaFormulariosChanging(global::System.String value);
        partial void OnCodigoRubricaFormulariosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> GastosGerais
        {
            get
            {
                return _GastosGerais;
            }
            set
            {
                OnGastosGeraisChanging(value);
                ReportPropertyChanging("GastosGerais");
                _GastosGerais = StructuralObject.SetValidValue(value, "GastosGerais");
                ReportPropertyChanged("GastosGerais");
                OnGastosGeraisChanged();
            }
        }
        private Nullable<global::System.Boolean> _GastosGerais;
        partial void OnGastosGeraisChanging(Nullable<global::System.Boolean> value);
        partial void OnGastosGeraisChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> RecursosHumanos
        {
            get
            {
                return _RecursosHumanos;
            }
            set
            {
                OnRecursosHumanosChanging(value);
                ReportPropertyChanging("RecursosHumanos");
                _RecursosHumanos = StructuralObject.SetValidValue(value, "RecursosHumanos");
                ReportPropertyChanged("RecursosHumanos");
                OnRecursosHumanosChanged();
            }
        }
        private Nullable<global::System.Boolean> _RecursosHumanos;
        partial void OnRecursosHumanosChanging(Nullable<global::System.Boolean> value);
        partial void OnRecursosHumanosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> AjudasCustoDeslocacoes
        {
            get
            {
                return _AjudasCustoDeslocacoes;
            }
            set
            {
                OnAjudasCustoDeslocacoesChanging(value);
                ReportPropertyChanging("AjudasCustoDeslocacoes");
                _AjudasCustoDeslocacoes = StructuralObject.SetValidValue(value, "AjudasCustoDeslocacoes");
                ReportPropertyChanged("AjudasCustoDeslocacoes");
                OnAjudasCustoDeslocacoesChanged();
            }
        }
        private Nullable<global::System.Boolean> _AjudasCustoDeslocacoes;
        partial void OnAjudasCustoDeslocacoesChanging(Nullable<global::System.Boolean> value);
        partial void OnAjudasCustoDeslocacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> PropinasDDM
        {
            get
            {
                return _PropinasDDM;
            }
            set
            {
                OnPropinasDDMChanging(value);
                ReportPropertyChanging("PropinasDDM");
                _PropinasDDM = StructuralObject.SetValidValue(value, "PropinasDDM");
                ReportPropertyChanged("PropinasDDM");
                OnPropinasDDMChanged();
            }
        }
        private Nullable<global::System.Boolean> _PropinasDDM;
        partial void OnPropinasDDMChanging(Nullable<global::System.Boolean> value);
        partial void OnPropinasDDMChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaOrcamento_Rubricas", "CandidaturaOrcamento")]
        public EntityCollection<CandidaturaOrcamento> CandidaturaOrcamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "CandidaturaOrcamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaOrcamento>("GestaoProjectosModel.FK_CandidaturaOrcamento_Rubricas", "CandidaturaOrcamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Rubricas_Rubricas", "Rubricas1")]
        public EntityCollection<Rubricas> Rubricas1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas1");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas1", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Rubricas_Rubricas", "Rubricas")]
        public Rubricas Rubricas2
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Rubricas> Rubricas2Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Rubricas>("GestaoProjectosModel.FK_Rubricas_Rubricas", "Rubricas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_Rubricas", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_Rubricas", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_PedidosContraFaturas_Rubricas", "PedidosContraFaturas")]
        public EntityCollection<PedidosContraFaturas> PedidosContraFaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "PedidosContraFaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<PedidosContraFaturas>("GestaoProjectosModel.FK_PedidosContraFaturas_Rubricas", "PedidosContraFaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_Rubricas_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmDespesaExecutada_Rubricas", "AdmDespesaExecutada")]
        public EntityCollection<AdmDespesaExecutada> AdmDespesaExecutada
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmDespesaExecutada>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "AdmDespesaExecutada");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmDespesaExecutada>("GestaoProjectosModel.FK_AdmDespesaExecutada_Rubricas", "AdmDespesaExecutada", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmOrcamento_Rubricas", "AdmOrcamento")]
        public EntityCollection<AdmOrcamento> AdmOrcamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmOrcamento>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "AdmOrcamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmOrcamento>("GestaoProjectosModel.FK_AdmOrcamento_Rubricas", "AdmOrcamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_AdmPedidoPagamento_Rubricas", "AdmPedidoPagamento")]
        public EntityCollection<AdmPedidoPagamento> AdmPedidoPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<AdmPedidoPagamento>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "AdmPedidoPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<AdmPedidoPagamento>("GestaoProjectosModel.FK_AdmPedidoPagamento_Rubricas", "AdmPedidoPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_Rubricas", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_Rubricas", "Despesas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Seguradoras")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Seguradoras : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Seguradoras object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="morada">Initial value of the Morada property.</param>
        /// <param name="localidade">Initial value of the Localidade property.</param>
        /// <param name="codigoPostal">Initial value of the CodigoPostal property.</param>
        /// <param name="telefone">Initial value of the Telefone property.</param>
        /// <param name="fax">Initial value of the Fax property.</param>
        /// <param name="email">Initial value of the Email property.</param>
        public static Seguradoras CreateSeguradoras(global::System.Int32 id, global::System.String nome, global::System.String morada, global::System.String localidade, global::System.String codigoPostal, global::System.String telefone, global::System.String fax, global::System.String email)
        {
            Seguradoras seguradoras = new Seguradoras();
            seguradoras.ID = id;
            seguradoras.Nome = nome;
            seguradoras.Morada = morada;
            seguradoras.Localidade = localidade;
            seguradoras.CodigoPostal = codigoPostal;
            seguradoras.Telefone = telefone;
            seguradoras.Fax = fax;
            seguradoras.Email = email;
            return seguradoras;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, false, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Localidade
        {
            get
            {
                return _Localidade;
            }
            set
            {
                OnLocalidadeChanging(value);
                ReportPropertyChanging("Localidade");
                _Localidade = StructuralObject.SetValidValue(value, false, "Localidade");
                ReportPropertyChanged("Localidade");
                OnLocalidadeChanged();
            }
        }
        private global::System.String _Localidade;
        partial void OnLocalidadeChanging(global::System.String value);
        partial void OnLocalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, false, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Telefone
        {
            get
            {
                return _Telefone;
            }
            set
            {
                OnTelefoneChanging(value);
                ReportPropertyChanging("Telefone");
                _Telefone = StructuralObject.SetValidValue(value, false, "Telefone");
                ReportPropertyChanged("Telefone");
                OnTelefoneChanged();
            }
        }
        private global::System.String _Telefone;
        partial void OnTelefoneChanging(global::System.String value);
        partial void OnTelefoneChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Fax
        {
            get
            {
                return _Fax;
            }
            set
            {
                OnFaxChanging(value);
                ReportPropertyChanging("Fax");
                _Fax = StructuralObject.SetValidValue(value, false, "Fax");
                ReportPropertyChanged("Fax");
                OnFaxChanged();
            }
        }
        private global::System.String _Fax;
        partial void OnFaxChanging(global::System.String value);
        partial void OnFaxChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Email
        {
            get
            {
                return _Email;
            }
            set
            {
                OnEmailChanging(value);
                ReportPropertyChanging("Email");
                _Email = StructuralObject.SetValidValue(value, false, "Email");
                ReportPropertyChanged("Email");
                OnEmailChanged();
            }
        }
        private global::System.String _Email;
        partial void OnEmailChanging(global::System.String value);
        partial void OnEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_Seguradoras", "Seguros")]
        public EntityCollection<Seguros> Seguros
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguros");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Seguros>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguros", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SeguroPagamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class SeguroPagamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SeguroPagamento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDApolice">Initial value of the IDApolice property.</param>
        /// <param name="dataEnvio">Initial value of the DataEnvio property.</param>
        /// <param name="numeroDocumento">Initial value of the NumeroDocumento property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="documentoPagamento">Initial value of the DocumentoPagamento property.</param>
        public static SeguroPagamento CreateSeguroPagamento(global::System.Int32 id, global::System.Int32 iDApolice, global::System.DateTime dataEnvio, global::System.String numeroDocumento, global::System.String descricao, global::System.Double valor, global::System.String documentoPagamento)
        {
            SeguroPagamento seguroPagamento = new SeguroPagamento();
            seguroPagamento.ID = id;
            seguroPagamento.IDApolice = iDApolice;
            seguroPagamento.DataEnvio = dataEnvio;
            seguroPagamento.NumeroDocumento = numeroDocumento;
            seguroPagamento.Descricao = descricao;
            seguroPagamento.Valor = valor;
            seguroPagamento.DocumentoPagamento = documentoPagamento;
            return seguroPagamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDApolice
        {
            get
            {
                return _IDApolice;
            }
            set
            {
                OnIDApoliceChanging(value);
                ReportPropertyChanging("IDApolice");
                _IDApolice = StructuralObject.SetValidValue(value, "IDApolice");
                ReportPropertyChanged("IDApolice");
                OnIDApoliceChanged();
            }
        }
        private global::System.Int32 _IDApolice;
        partial void OnIDApoliceChanging(global::System.Int32 value);
        partial void OnIDApoliceChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataEnvio
        {
            get
            {
                return _DataEnvio;
            }
            set
            {
                OnDataEnvioChanging(value);
                ReportPropertyChanging("DataEnvio");
                _DataEnvio = StructuralObject.SetValidValue(value, "DataEnvio");
                ReportPropertyChanged("DataEnvio");
                OnDataEnvioChanged();
            }
        }
        private global::System.DateTime _DataEnvio;
        partial void OnDataEnvioChanging(global::System.DateTime value);
        partial void OnDataEnvioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NumeroDocumento
        {
            get
            {
                return _NumeroDocumento;
            }
            set
            {
                OnNumeroDocumentoChanging(value);
                ReportPropertyChanging("NumeroDocumento");
                _NumeroDocumento = StructuralObject.SetValidValue(value, false, "NumeroDocumento");
                ReportPropertyChanged("NumeroDocumento");
                OnNumeroDocumentoChanged();
            }
        }
        private global::System.String _NumeroDocumento;
        partial void OnNumeroDocumentoChanging(global::System.String value);
        partial void OnNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEstadoPagamento
        {
            get
            {
                return _IDEstadoPagamento;
            }
            set
            {
                OnIDEstadoPagamentoChanging(value);
                ReportPropertyChanging("IDEstadoPagamento");
                _IDEstadoPagamento = StructuralObject.SetValidValue(value, "IDEstadoPagamento");
                ReportPropertyChanged("IDEstadoPagamento");
                OnIDEstadoPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEstadoPagamento;
        partial void OnIDEstadoPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDEstadoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DocumentoPagamento
        {
            get
            {
                return _DocumentoPagamento;
            }
            set
            {
                OnDocumentoPagamentoChanging(value);
                ReportPropertyChanging("DocumentoPagamento");
                _DocumentoPagamento = StructuralObject.SetValidValue(value, false, "DocumentoPagamento");
                ReportPropertyChanged("DocumentoPagamento");
                OnDocumentoPagamentoChanged();
            }
        }
        private global::System.String _DocumentoPagamento;
        partial void OnDocumentoPagamentoChanging(global::System.String value);
        partial void OnDocumentoPagamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Estados", "Estados")]
        public Estados Estados
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "Estados").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "Estados").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Estados> EstadosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Estados>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "Estados");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Estados>("GestaoProjectosModel.FK_SeguroPagamento_Estados", "Estados", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Seguros", "Seguros")]
        public Seguros Seguros
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguros>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "Seguros").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguros>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "Seguros").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Seguros> SegurosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguros>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "Seguros");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Seguros>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "Seguros", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Seguros")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Seguros : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Seguros object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDRecursosHumano">Initial value of the IDRecursosHumano property.</param>
        /// <param name="iDContrato">Initial value of the IDContrato property.</param>
        /// <param name="numeroApolice">Initial value of the NumeroApolice property.</param>
        /// <param name="dataApolice">Initial value of the DataApolice property.</param>
        /// <param name="iDSeguradora">Initial value of the IDSeguradora property.</param>
        /// <param name="custo">Initial value of the Custo property.</param>
        /// <param name="cobertura">Initial value of the Cobertura property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static Seguros CreateSeguros(global::System.Int32 id, global::System.Int32 iDRecursosHumano, global::System.Int32 iDContrato, global::System.String numeroApolice, global::System.DateTime dataApolice, global::System.Int32 iDSeguradora, global::System.Double custo, global::System.Double cobertura, global::System.Boolean activo)
        {
            Seguros seguros = new Seguros();
            seguros.ID = id;
            seguros.IDRecursosHumano = iDRecursosHumano;
            seguros.IDContrato = iDContrato;
            seguros.NumeroApolice = numeroApolice;
            seguros.DataApolice = dataApolice;
            seguros.IDSeguradora = iDSeguradora;
            seguros.Custo = custo;
            seguros.Cobertura = cobertura;
            seguros.Activo = activo;
            return seguros;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRecursosHumano
        {
            get
            {
                return _IDRecursosHumano;
            }
            set
            {
                OnIDRecursosHumanoChanging(value);
                ReportPropertyChanging("IDRecursosHumano");
                _IDRecursosHumano = StructuralObject.SetValidValue(value, "IDRecursosHumano");
                ReportPropertyChanged("IDRecursosHumano");
                OnIDRecursosHumanoChanged();
            }
        }
        private global::System.Int32 _IDRecursosHumano;
        partial void OnIDRecursosHumanoChanging(global::System.Int32 value);
        partial void OnIDRecursosHumanoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDContrato
        {
            get
            {
                return _IDContrato;
            }
            set
            {
                OnIDContratoChanging(value);
                ReportPropertyChanging("IDContrato");
                _IDContrato = StructuralObject.SetValidValue(value, "IDContrato");
                ReportPropertyChanged("IDContrato");
                OnIDContratoChanged();
            }
        }
        private global::System.Int32 _IDContrato;
        partial void OnIDContratoChanging(global::System.Int32 value);
        partial void OnIDContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NumeroApolice
        {
            get
            {
                return _NumeroApolice;
            }
            set
            {
                OnNumeroApoliceChanging(value);
                ReportPropertyChanging("NumeroApolice");
                _NumeroApolice = StructuralObject.SetValidValue(value, false, "NumeroApolice");
                ReportPropertyChanged("NumeroApolice");
                OnNumeroApoliceChanged();
            }
        }
        private global::System.String _NumeroApolice;
        partial void OnNumeroApoliceChanging(global::System.String value);
        partial void OnNumeroApoliceChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataApolice
        {
            get
            {
                return _DataApolice;
            }
            set
            {
                OnDataApoliceChanging(value);
                ReportPropertyChanging("DataApolice");
                _DataApolice = StructuralObject.SetValidValue(value, "DataApolice");
                ReportPropertyChanged("DataApolice");
                OnDataApoliceChanged();
            }
        }
        private global::System.DateTime _DataApolice;
        partial void OnDataApoliceChanging(global::System.DateTime value);
        partial void OnDataApoliceChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDSeguradora
        {
            get
            {
                return _IDSeguradora;
            }
            set
            {
                OnIDSeguradoraChanging(value);
                ReportPropertyChanging("IDSeguradora");
                _IDSeguradora = StructuralObject.SetValidValue(value, "IDSeguradora");
                ReportPropertyChanged("IDSeguradora");
                OnIDSeguradoraChanged();
            }
        }
        private global::System.Int32 _IDSeguradora;
        partial void OnIDSeguradoraChanging(global::System.Int32 value);
        partial void OnIDSeguradoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Custo
        {
            get
            {
                return _Custo;
            }
            set
            {
                OnCustoChanging(value);
                ReportPropertyChanging("Custo");
                _Custo = StructuralObject.SetValidValue(value, "Custo");
                ReportPropertyChanged("Custo");
                OnCustoChanged();
            }
        }
        private global::System.Double _Custo;
        partial void OnCustoChanging(global::System.Double value);
        partial void OnCustoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Cobertura
        {
            get
            {
                return _Cobertura;
            }
            set
            {
                OnCoberturaChanging(value);
                ReportPropertyChanging("Cobertura");
                _Cobertura = StructuralObject.SetValidValue(value, "Cobertura");
                ReportPropertyChanged("Cobertura");
                OnCoberturaChanged();
            }
        }
        private global::System.Double _Cobertura;
        partial void OnCoberturaChanging(global::System.Double value);
        partial void OnCoberturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String AnexoContrato
        {
            get
            {
                return _AnexoContrato;
            }
            set
            {
                OnAnexoContratoChanging(value);
                ReportPropertyChanging("AnexoContrato");
                _AnexoContrato = StructuralObject.SetValidValue(value, true, "AnexoContrato");
                ReportPropertyChanged("AnexoContrato");
                OnAnexoContratoChanged();
            }
        }
        private global::System.String _AnexoContrato;
        partial void OnAnexoContratoChanging(global::System.String value);
        partial void OnAnexoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTermino
        {
            get
            {
                return _DataTermino;
            }
            set
            {
                OnDataTerminoChanging(value);
                ReportPropertyChanging("DataTermino");
                _DataTermino = StructuralObject.SetValidValue(value, "DataTermino");
                ReportPropertyChanged("DataTermino");
                OnDataTerminoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTermino;
        partial void OnDataTerminoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTerminoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorEstorno
        {
            get
            {
                return _ValorEstorno;
            }
            set
            {
                OnValorEstornoChanging(value);
                ReportPropertyChanging("ValorEstorno");
                _ValorEstorno = StructuralObject.SetValidValue(value, "ValorEstorno");
                ReportPropertyChanged("ValorEstorno");
                OnValorEstornoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorEstorno;
        partial void OnValorEstornoChanging(Nullable<global::System.Double> value);
        partial void OnValorEstornoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataCancelamento
        {
            get
            {
                return _DataCancelamento;
            }
            set
            {
                OnDataCancelamentoChanging(value);
                ReportPropertyChanging("DataCancelamento");
                _DataCancelamento = StructuralObject.SetValidValue(value, "DataCancelamento");
                ReportPropertyChanged("DataCancelamento");
                OnDataCancelamentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataCancelamento;
        partial void OnDataCancelamentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataCancelamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_RecursoHumano", "RecursoHumano")]
        public RecursoHumano RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "RecursoHumano").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "RecursoHumano").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<RecursoHumano> RecursoHumanoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<RecursoHumano>("GestaoProjectosModel.FK_Seguros_RecursoHumano", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_Seguradoras", "Seguradoras")]
        public Seguradoras Seguradoras
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguradoras>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguradoras").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguradoras>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguradoras").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Seguradoras> SeguradorasReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Seguradoras>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguradoras");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Seguradoras>("GestaoProjectosModel.FK_Seguros_Seguradoras", "Seguradoras", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_SeguroPagamento_Seguros", "SeguroPagamento")]
        public EntityCollection<SeguroPagamento> SeguroPagamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<SeguroPagamento>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "SeguroPagamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<SeguroPagamento>("GestaoProjectosModel.FK_SeguroPagamento_Seguros", "SeguroPagamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Seguros_Contratos", "Contratos")]
        public Contratos Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_Seguros_Contratos", "Contratos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_Seguros_Contratos", "Contratos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Contratos> ContratosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Contratos>("GestaoProjectosModel.FK_Seguros_Contratos", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Contratos>("GestaoProjectosModel.FK_Seguros_Contratos", "Contratos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TemplateFile")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TemplateFile : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TemplateFile object.
        /// </summary>
        /// <param name="iDTemplate">Initial value of the IDTemplate property.</param>
        /// <param name="fileNameT">Initial value of the FileNameT property.</param>
        /// <param name="fileTipoT">Initial value of the FileTipoT property.</param>
        /// <param name="fileContentT">Initial value of the FileContentT property.</param>
        public static TemplateFile CreateTemplateFile(global::System.Int32 iDTemplate, global::System.String fileNameT, global::System.String fileTipoT, global::System.Byte[] fileContentT)
        {
            TemplateFile templateFile = new TemplateFile();
            templateFile.IDTemplate = iDTemplate;
            templateFile.FileNameT = fileNameT;
            templateFile.FileTipoT = fileTipoT;
            templateFile.FileContentT = fileContentT;
            return templateFile;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTemplate
        {
            get
            {
                return _IDTemplate;
            }
            set
            {
                if (_IDTemplate != value)
                {
                    OnIDTemplateChanging(value);
                    ReportPropertyChanging("IDTemplate");
                    _IDTemplate = StructuralObject.SetValidValue(value, "IDTemplate");
                    ReportPropertyChanged("IDTemplate");
                    OnIDTemplateChanged();
                }
            }
        }
        private global::System.Int32 _IDTemplate;
        partial void OnIDTemplateChanging(global::System.Int32 value);
        partial void OnIDTemplateChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FileNameT
        {
            get
            {
                return _FileNameT;
            }
            set
            {
                OnFileNameTChanging(value);
                ReportPropertyChanging("FileNameT");
                _FileNameT = StructuralObject.SetValidValue(value, false, "FileNameT");
                ReportPropertyChanged("FileNameT");
                OnFileNameTChanged();
            }
        }
        private global::System.String _FileNameT;
        partial void OnFileNameTChanging(global::System.String value);
        partial void OnFileNameTChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FileTipoT
        {
            get
            {
                return _FileTipoT;
            }
            set
            {
                OnFileTipoTChanging(value);
                ReportPropertyChanging("FileTipoT");
                _FileTipoT = StructuralObject.SetValidValue(value, false, "FileTipoT");
                ReportPropertyChanged("FileTipoT");
                OnFileTipoTChanged();
            }
        }
        private global::System.String _FileTipoT;
        partial void OnFileTipoTChanging(global::System.String value);
        partial void OnFileTipoTChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Byte[] FileContentT
        {
            get
            {
                return StructuralObject.GetValidValue(_FileContentT);
            }
            set
            {
                OnFileContentTChanging(value);
                ReportPropertyChanging("FileContentT");
                _FileContentT = StructuralObject.SetValidValue(value, false, "FileContentT");
                ReportPropertyChanged("FileContentT");
                OnFileContentTChanged();
            }
        }
        private global::System.Byte[] _FileContentT;
        partial void OnFileContentTChanging(global::System.Byte[] value);
        partial void OnFileContentTChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TemplatesEmails")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TemplatesEmails : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TemplatesEmails object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        /// <param name="texto">Initial value of the Texto property.</param>
        public static TemplatesEmails CreateTemplatesEmails(global::System.String codigo, global::System.String texto)
        {
            TemplatesEmails templatesEmails = new TemplatesEmails();
            templatesEmails.Codigo = codigo;
            templatesEmails.Texto = texto;
            return templatesEmails;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Texto
        {
            get
            {
                return _Texto;
            }
            set
            {
                OnTextoChanging(value);
                ReportPropertyChanging("Texto");
                _Texto = StructuralObject.SetValidValue(value, false, "Texto");
                ReportPropertyChanged("Texto");
                OnTextoChanged();
            }
        }
        private global::System.String _Texto;
        partial void OnTextoChanging(global::System.String value);
        partial void OnTextoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Assunto
        {
            get
            {
                return _Assunto;
            }
            set
            {
                OnAssuntoChanging(value);
                ReportPropertyChanging("Assunto");
                _Assunto = StructuralObject.SetValidValue(value, true, "Assunto");
                ReportPropertyChanged("Assunto");
                OnAssuntoChanged();
            }
        }
        private global::System.String _Assunto;
        partial void OnAssuntoChanging(global::System.String value);
        partial void OnAssuntoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoAgregacaoPrograma")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoAgregacaoPrograma : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoAgregacaoPrograma object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeAgregacao">Initial value of the NomeAgregacao property.</param>
        public static TipoAgregacaoPrograma CreateTipoAgregacaoPrograma(global::System.Int32 id, global::System.String nomeAgregacao)
        {
            TipoAgregacaoPrograma tipoAgregacaoPrograma = new TipoAgregacaoPrograma();
            tipoAgregacaoPrograma.ID = id;
            tipoAgregacaoPrograma.NomeAgregacao = nomeAgregacao;
            return tipoAgregacaoPrograma;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeAgregacao
        {
            get
            {
                return _NomeAgregacao;
            }
            set
            {
                OnNomeAgregacaoChanging(value);
                ReportPropertyChanging("NomeAgregacao");
                _NomeAgregacao = StructuralObject.SetValidValue(value, false, "NomeAgregacao");
                ReportPropertyChanged("NomeAgregacao");
                OnNomeAgregacaoChanged();
            }
        }
        private global::System.String _NomeAgregacao;
        partial void OnNomeAgregacaoChanging(global::System.String value);
        partial void OnNomeAgregacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaQuadro_TipoAgregacaoPrograma", "ProgramaQuadro")]
        public EntityCollection<ProgramaQuadro> ProgramaQuadro
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "ProgramaQuadro");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaQuadro>("GestaoProjectosModel.FK_ProgramaQuadro_TipoAgregacaoPrograma", "ProgramaQuadro", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoAgregacaoProgramaOperacional")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoAgregacaoProgramaOperacional : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoAgregacaoProgramaOperacional object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeAgregacao">Initial value of the NomeAgregacao property.</param>
        public static TipoAgregacaoProgramaOperacional CreateTipoAgregacaoProgramaOperacional(global::System.Int32 id, global::System.String nomeAgregacao)
        {
            TipoAgregacaoProgramaOperacional tipoAgregacaoProgramaOperacional = new TipoAgregacaoProgramaOperacional();
            tipoAgregacaoProgramaOperacional.ID = id;
            tipoAgregacaoProgramaOperacional.NomeAgregacao = nomeAgregacao;
            return tipoAgregacaoProgramaOperacional;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeAgregacao
        {
            get
            {
                return _NomeAgregacao;
            }
            set
            {
                OnNomeAgregacaoChanging(value);
                ReportPropertyChanging("NomeAgregacao");
                _NomeAgregacao = StructuralObject.SetValidValue(value, false, "NomeAgregacao");
                ReportPropertyChanged("NomeAgregacao");
                OnNomeAgregacaoChanged();
            }
        }
        private global::System.String _NomeAgregacao;
        partial void OnNomeAgregacaoChanging(global::System.String value);
        partial void OnNomeAgregacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "ProgramaOperacional")]
        public EntityCollection<ProgramaOperacional> ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProgramaOperacional>("GestaoProjectosModel.FK_ProgramaOperacional_TipoAgregacaoProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoBolsa")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoBolsa : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoBolsa object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="valorBolsa">Initial value of the ValorBolsa property.</param>
        /// <param name="dataInicioVigor">Initial value of the DataInicioVigor property.</param>
        /// <param name="dataFimVigor">Initial value of the DataFimVigor property.</param>
        public static TipoBolsa CreateTipoBolsa(global::System.Int32 id, global::System.Int32 iDEntidadeFinanciadora, global::System.Boolean activo, global::System.String sigla, global::System.String nome, global::System.Double valorBolsa, global::System.DateTime dataInicioVigor, global::System.DateTime dataFimVigor)
        {
            TipoBolsa tipoBolsa = new TipoBolsa();
            tipoBolsa.ID = id;
            tipoBolsa.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            tipoBolsa.Activo = activo;
            tipoBolsa.Sigla = sigla;
            tipoBolsa.Nome = nome;
            tipoBolsa.ValorBolsa = valorBolsa;
            tipoBolsa.DataInicioVigor = dataInicioVigor;
            tipoBolsa.DataFimVigor = dataFimVigor;
            return tipoBolsa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double ValorBolsa
        {
            get
            {
                return _ValorBolsa;
            }
            set
            {
                OnValorBolsaChanging(value);
                ReportPropertyChanging("ValorBolsa");
                _ValorBolsa = StructuralObject.SetValidValue(value, "ValorBolsa");
                ReportPropertyChanged("ValorBolsa");
                OnValorBolsaChanged();
            }
        }
        private global::System.Double _ValorBolsa;
        partial void OnValorBolsaChanging(global::System.Double value);
        partial void OnValorBolsaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataInicioVigor
        {
            get
            {
                return _DataInicioVigor;
            }
            set
            {
                OnDataInicioVigorChanging(value);
                ReportPropertyChanging("DataInicioVigor");
                _DataInicioVigor = StructuralObject.SetValidValue(value, "DataInicioVigor");
                ReportPropertyChanged("DataInicioVigor");
                OnDataInicioVigorChanged();
            }
        }
        private global::System.DateTime _DataInicioVigor;
        partial void OnDataInicioVigorChanging(global::System.DateTime value);
        partial void OnDataInicioVigorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataFimVigor
        {
            get
            {
                return _DataFimVigor;
            }
            set
            {
                OnDataFimVigorChanging(value);
                ReportPropertyChanging("DataFimVigor");
                _DataFimVigor = StructuralObject.SetValidValue(value, "DataFimVigor");
                ReportPropertyChanged("DataFimVigor");
                OnDataFimVigorChanged();
            }
        }
        private global::System.DateTime _DataFimVigor;
        partial void OnDataFimVigorChanging(global::System.DateTime value);
        partial void OnDataFimVigorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaEquipa_TipoBolsa", "CandidaturaEquipa")]
        public EntityCollection<CandidaturaEquipa> CandidaturaEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "CandidaturaEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaEquipa>("GestaoProjectosModel.FK_CandidaturaEquipa_TipoBolsa", "CandidaturaEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoEquipa_TipoBolsa", "ProjectoEquipa")]
        public EntityCollection<ProjectoEquipa> ProjectoEquipa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "ProjectoEquipa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoEquipa>("GestaoProjectosModel.FK_ProjectoEquipa_TipoBolsa", "ProjectoEquipa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_TipoBolsa", "Contratos")]
        public EntityCollection<Contratos> Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_TipoBolsa", "Contratos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoBolsa_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoDocumento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoDocumento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoDocumento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="codigoTipoDocumentoExcel">Initial value of the CodigoTipoDocumentoExcel property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="classeDocumento">Initial value of the ClasseDocumento property.</param>
        public static TipoDocumento CreateTipoDocumento(global::System.Int32 id, global::System.Int32 iDEntidadeFinanciadora, global::System.String codigoTipoDocumentoExcel, global::System.String descricao, global::System.Boolean activo, global::System.String classeDocumento)
        {
            TipoDocumento tipoDocumento = new TipoDocumento();
            tipoDocumento.ID = id;
            tipoDocumento.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            tipoDocumento.CodigoTipoDocumentoExcel = codigoTipoDocumentoExcel;
            tipoDocumento.Descricao = descricao;
            tipoDocumento.Activo = activo;
            tipoDocumento.ClasseDocumento = classeDocumento;
            return tipoDocumento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoDocumentoRelatorio
        {
            get
            {
                return _CodigoTipoDocumentoRelatorio;
            }
            set
            {
                OnCodigoTipoDocumentoRelatorioChanging(value);
                ReportPropertyChanging("CodigoTipoDocumentoRelatorio");
                _CodigoTipoDocumentoRelatorio = StructuralObject.SetValidValue(value, true, "CodigoTipoDocumentoRelatorio");
                ReportPropertyChanged("CodigoTipoDocumentoRelatorio");
                OnCodigoTipoDocumentoRelatorioChanged();
            }
        }
        private global::System.String _CodigoTipoDocumentoRelatorio;
        partial void OnCodigoTipoDocumentoRelatorioChanging(global::System.String value);
        partial void OnCodigoTipoDocumentoRelatorioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoDocumentoExcel
        {
            get
            {
                return _CodigoTipoDocumentoExcel;
            }
            set
            {
                OnCodigoTipoDocumentoExcelChanging(value);
                ReportPropertyChanging("CodigoTipoDocumentoExcel");
                _CodigoTipoDocumentoExcel = StructuralObject.SetValidValue(value, false, "CodigoTipoDocumentoExcel");
                ReportPropertyChanged("CodigoTipoDocumentoExcel");
                OnCodigoTipoDocumentoExcelChanged();
            }
        }
        private global::System.String _CodigoTipoDocumentoExcel;
        partial void OnCodigoTipoDocumentoExcelChanging(global::System.String value);
        partial void OnCodigoTipoDocumentoExcelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ClasseDocumento
        {
            get
            {
                return _ClasseDocumento;
            }
            set
            {
                OnClasseDocumentoChanging(value);
                ReportPropertyChanging("ClasseDocumento");
                _ClasseDocumento = StructuralObject.SetValidValue(value, false, "ClasseDocumento");
                ReportPropertyChanged("ClasseDocumento");
                OnClasseDocumentoChanged();
            }
        }
        private global::System.String _ClasseDocumento;
        partial void OnClasseDocumentoChanging(global::System.String value);
        partial void OnClasseDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPCodigoDocumento
        {
            get
            {
                return _ERPCodigoDocumento;
            }
            set
            {
                OnERPCodigoDocumentoChanging(value);
                ReportPropertyChanging("ERPCodigoDocumento");
                _ERPCodigoDocumento = StructuralObject.SetValidValue(value, true, "ERPCodigoDocumento");
                ReportPropertyChanged("ERPCodigoDocumento");
                OnERPCodigoDocumentoChanged();
            }
        }
        private global::System.String _ERPCodigoDocumento;
        partial void OnERPCodigoDocumentoChanging(global::System.String value);
        partial void OnERPCodigoDocumentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa")]
        public ClasseDocumentoDespesa ClasseDocumentoDespesa
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ClasseDocumentoDespesa>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ClasseDocumentoDespesa>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ClasseDocumentoDespesa> ClasseDocumentoDespesaReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ClasseDocumentoDespesa>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ClasseDocumentoDespesa>("GestaoProjectosModel.FK_TipoDocumento_ClasseDocumentoDespesa", "ClasseDocumentoDespesa", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_TipoDocumento_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TipoDocumento", "Despesas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TipoDocumento1", "Despesas")]
        public EntityCollection<Despesas> Despesas1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TipoDocumento1", "Despesas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoDocumentoIdentificacao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoDocumentoIdentificacao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoDocumentoIdentificacao object.
        /// </summary>
        /// <param name="documentoIdentificacaoTipo">Initial value of the DocumentoIdentificacaoTipo property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static TipoDocumentoIdentificacao CreateTipoDocumentoIdentificacao(global::System.String documentoIdentificacaoTipo, global::System.String nome)
        {
            TipoDocumentoIdentificacao tipoDocumentoIdentificacao = new TipoDocumentoIdentificacao();
            tipoDocumentoIdentificacao.DocumentoIdentificacaoTipo = documentoIdentificacaoTipo;
            tipoDocumentoIdentificacao.Nome = nome;
            return tipoDocumentoIdentificacao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DocumentoIdentificacaoTipo
        {
            get
            {
                return _DocumentoIdentificacaoTipo;
            }
            set
            {
                if (_DocumentoIdentificacaoTipo != value)
                {
                    OnDocumentoIdentificacaoTipoChanging(value);
                    ReportPropertyChanging("DocumentoIdentificacaoTipo");
                    _DocumentoIdentificacaoTipo = StructuralObject.SetValidValue(value, false, "DocumentoIdentificacaoTipo");
                    ReportPropertyChanged("DocumentoIdentificacaoTipo");
                    OnDocumentoIdentificacaoTipoChanged();
                }
            }
        }
        private global::System.String _DocumentoIdentificacaoTipo;
        partial void OnDocumentoIdentificacaoTipoChanging(global::System.String value);
        partial void OnDocumentoIdentificacaoTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoDocumentoIdentificacao", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoDocumentoIdentificacao", "RecursoHumano", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoEntidade")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoEntidade : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoEntidade object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        public static TipoEntidade CreateTipoEntidade(global::System.String codigo, global::System.String descricao)
        {
            TipoEntidade tipoEntidade = new TipoEntidade();
            tipoEntidade.Codigo = codigo;
            tipoEntidade.Descricao = descricao;
            return tipoEntidade;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_EntidadeFinanciadora_TipoEntidade", "EntidadeFinanciadora")]
        public EntityCollection<EntidadeFinanciadora> EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<EntidadeFinanciadora>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<EntidadeFinanciadora>("GestaoProjectosModel.FK_EntidadeFinanciadora_TipoEntidade", "EntidadeFinanciadora", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoEstatutos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoEstatutos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoEstatutos object.
        /// </summary>
        /// <param name="estatuto">Initial value of the Estatuto property.</param>
        /// <param name="ordem">Initial value of the Ordem property.</param>
        public static TipoEstatutos CreateTipoEstatutos(global::System.String estatuto, global::System.Int32 ordem)
        {
            TipoEstatutos tipoEstatutos = new TipoEstatutos();
            tipoEstatutos.Estatuto = estatuto;
            tipoEstatutos.Ordem = ordem;
            return tipoEstatutos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Estatuto
        {
            get
            {
                return _Estatuto;
            }
            set
            {
                if (_Estatuto != value)
                {
                    OnEstatutoChanging(value);
                    ReportPropertyChanging("Estatuto");
                    _Estatuto = StructuralObject.SetValidValue(value, false, "Estatuto");
                    ReportPropertyChanged("Estatuto");
                    OnEstatutoChanged();
                }
            }
        }
        private global::System.String _Estatuto;
        partial void OnEstatutoChanging(global::System.String value);
        partial void OnEstatutoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ordem
        {
            get
            {
                return _Ordem;
            }
            set
            {
                OnOrdemChanging(value);
                ReportPropertyChanging("Ordem");
                _Ordem = StructuralObject.SetValidValue(value, "Ordem");
                ReportPropertyChanged("Ordem");
                OnOrdemChanged();
            }
        }
        private global::System.Int32 _Ordem;
        partial void OnOrdemChanging(global::System.Int32 value);
        partial void OnOrdemChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "UnidadesInvestigadoresEstatutos")]
        public EntityCollection<UnidadesInvestigadoresEstatutos> UnidadesInvestigadoresEstatutos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<UnidadesInvestigadoresEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "UnidadesInvestigadoresEstatutos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<UnidadesInvestigadoresEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "UnidadesInvestigadoresEstatutos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoInstituicao")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoInstituicao : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoInstituicao object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static TipoInstituicao CreateTipoInstituicao(global::System.Int32 id, global::System.String nome)
        {
            TipoInstituicao tipoInstituicao = new TipoInstituicao();
            tipoInstituicao.ID = id;
            tipoInstituicao.Nome = nome;
            return tipoInstituicao;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Instituicao_TipoInstituicao", "Instituicao")]
        public EntityCollection<Instituicao> Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Instituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Instituicao>("GestaoProjectosModel.FK_Instituicao_TipoInstituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipologiaProjeto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipologiaProjeto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipologiaProjeto object.
        /// </summary>
        /// <param name="iDTipologiaProjeto">Initial value of the IDTipologiaProjeto property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static TipologiaProjeto CreateTipologiaProjeto(global::System.Int32 iDTipologiaProjeto, global::System.String descricao, global::System.Boolean activo)
        {
            TipologiaProjeto tipologiaProjeto = new TipologiaProjeto();
            tipologiaProjeto.IDTipologiaProjeto = iDTipologiaProjeto;
            tipologiaProjeto.Descricao = descricao;
            tipologiaProjeto.Activo = activo;
            return tipologiaProjeto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTipologiaProjeto
        {
            get
            {
                return _IDTipologiaProjeto;
            }
            set
            {
                if (_IDTipologiaProjeto != value)
                {
                    OnIDTipologiaProjetoChanging(value);
                    ReportPropertyChanging("IDTipologiaProjeto");
                    _IDTipologiaProjeto = StructuralObject.SetValidValue(value, "IDTipologiaProjeto");
                    ReportPropertyChanged("IDTipologiaProjeto");
                    OnIDTipologiaProjetoChanged();
                }
            }
        }
        private global::System.Int32 _IDTipologiaProjeto;
        partial void OnIDTipologiaProjetoChanging(global::System.Int32 value);
        partial void OnIDTipologiaProjetoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Projectos_TipologiaProjeto", "Projectos")]
        public EntityCollection<Projectos> Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Projectos>("GestaoProjectosModel.FK_Projectos_TipologiaProjeto", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoPagamento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoPagamento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoPagamento object.
        /// </summary>
        /// <param name="codigoTipoPagamento">Initial value of the CodigoTipoPagamento property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        /// <param name="flagContraFatura">Initial value of the FlagContraFatura property.</param>
        /// <param name="flagRegularizacaoContraFatura">Initial value of the FlagRegularizacaoContraFatura property.</param>
        public static TipoPagamento CreateTipoPagamento(global::System.String codigoTipoPagamento, global::System.String descricao, global::System.Boolean flagContraFatura, global::System.Boolean flagRegularizacaoContraFatura)
        {
            TipoPagamento tipoPagamento = new TipoPagamento();
            tipoPagamento.CodigoTipoPagamento = codigoTipoPagamento;
            tipoPagamento.Descricao = descricao;
            tipoPagamento.FlagContraFatura = flagContraFatura;
            tipoPagamento.FlagRegularizacaoContraFatura = flagRegularizacaoContraFatura;
            return tipoPagamento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoPagamento
        {
            get
            {
                return _CodigoTipoPagamento;
            }
            set
            {
                if (_CodigoTipoPagamento != value)
                {
                    OnCodigoTipoPagamentoChanging(value);
                    ReportPropertyChanging("CodigoTipoPagamento");
                    _CodigoTipoPagamento = StructuralObject.SetValidValue(value, false, "CodigoTipoPagamento");
                    ReportPropertyChanged("CodigoTipoPagamento");
                    OnCodigoTipoPagamentoChanged();
                }
            }
        }
        private global::System.String _CodigoTipoPagamento;
        partial void OnCodigoTipoPagamentoChanging(global::System.String value);
        partial void OnCodigoTipoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagContraFatura
        {
            get
            {
                return _FlagContraFatura;
            }
            set
            {
                OnFlagContraFaturaChanging(value);
                ReportPropertyChanging("FlagContraFatura");
                _FlagContraFatura = StructuralObject.SetValidValue(value, "FlagContraFatura");
                ReportPropertyChanged("FlagContraFatura");
                OnFlagContraFaturaChanged();
            }
        }
        private global::System.Boolean _FlagContraFatura;
        partial void OnFlagContraFaturaChanging(global::System.Boolean value);
        partial void OnFlagContraFaturaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagRegularizacaoContraFatura
        {
            get
            {
                return _FlagRegularizacaoContraFatura;
            }
            set
            {
                OnFlagRegularizacaoContraFaturaChanging(value);
                ReportPropertyChanging("FlagRegularizacaoContraFatura");
                _FlagRegularizacaoContraFatura = StructuralObject.SetValidValue(value, "FlagRegularizacaoContraFatura");
                ReportPropertyChanged("FlagRegularizacaoContraFatura");
                OnFlagRegularizacaoContraFaturaChanged();
            }
        }
        private global::System.Boolean _FlagRegularizacaoContraFatura;
        partial void OnFlagRegularizacaoContraFaturaChanging(global::System.Boolean value);
        partial void OnFlagRegularizacaoContraFaturaChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Pagamentos_TipoPagamento", "Pagamentos")]
        public EntityCollection<Pagamentos> Pagamentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "Pagamentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Pagamentos>("GestaoProjectosModel.FK_Pagamentos_TipoPagamento", "Pagamentos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoProjecto")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoProjecto : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoProjecto object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProgramaOperacional">Initial value of the IDProgramaOperacional property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static TipoProjecto CreateTipoProjecto(global::System.Int32 id, global::System.Int32 iDProgramaOperacional, global::System.String sigla, global::System.String nome)
        {
            TipoProjecto tipoProjecto = new TipoProjecto();
            tipoProjecto.ID = id;
            tipoProjecto.IDProgramaOperacional = iDProgramaOperacional;
            tipoProjecto.Sigla = sigla;
            tipoProjecto.Nome = nome;
            return tipoProjecto;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProgramaOperacional
        {
            get
            {
                return _IDProgramaOperacional;
            }
            set
            {
                OnIDProgramaOperacionalChanging(value);
                ReportPropertyChanging("IDProgramaOperacional");
                _IDProgramaOperacional = StructuralObject.SetValidValue(value, "IDProgramaOperacional");
                ReportPropertyChanged("IDProgramaOperacional");
                OnIDProgramaOperacionalChanged();
            }
        }
        private global::System.Int32 _IDProgramaOperacional;
        partial void OnIDProgramaOperacionalChanging(global::System.Int32 value);
        partial void OnIDProgramaOperacionalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Eixo
        {
            get
            {
                return _Eixo;
            }
            set
            {
                OnEixoChanging(value);
                ReportPropertyChanging("Eixo");
                _Eixo = StructuralObject.SetValidValue(value, true, "Eixo");
                ReportPropertyChanged("Eixo");
                OnEixoChanged();
            }
        }
        private global::System.String _Eixo;
        partial void OnEixoChanging(global::System.String value);
        partial void OnEixoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional")]
        public ProgramaOperacional ProgramaOperacional
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProgramaOperacional> ProgramaOperacionalReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProgramaOperacional>("GestaoProjectosModel.FK_TipoProjecto_ProgramaOperacional", "ProgramaOperacional", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_CandidaturaFinanciamento_TipoProjecto", "CandidaturaFinanciamento")]
        public EntityCollection<CandidaturaFinanciamento> CandidaturaFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "CandidaturaFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<CandidaturaFinanciamento>("GestaoProjectosModel.FK_CandidaturaFinanciamento_TipoProjecto", "CandidaturaFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ProjectoFinanciamento_TipoProjecto", "ProjectoFinanciamento")]
        public EntityCollection<ProjectoFinanciamento> ProjectoFinanciamento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "ProjectoFinanciamento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ProjectoFinanciamento>("GestaoProjectosModel.FK_ProjectoFinanciamento_TipoProjecto", "ProjectoFinanciamento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_TipoProjecto", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_TipoProjecto", "Candidaturas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoRecursoHumano")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoRecursoHumano : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoRecursoHumano object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        public static TipoRecursoHumano CreateTipoRecursoHumano(global::System.Int32 id, global::System.String descricao)
        {
            TipoRecursoHumano tipoRecursoHumano = new TipoRecursoHumano();
            tipoRecursoHumano.ID = id;
            tipoRecursoHumano.Descricao = descricao;
            return tipoRecursoHumano;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_TipoRecursoHumano", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_TipoRecursoHumano", "RecursoHumano", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TiposAgregacaoFundosFinancimento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TiposAgregacaoFundosFinancimento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TiposAgregacaoFundosFinancimento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static TiposAgregacaoFundosFinancimento CreateTiposAgregacaoFundosFinancimento(global::System.Int32 id, global::System.Boolean activo)
        {
            TiposAgregacaoFundosFinancimento tiposAgregacaoFundosFinancimento = new TiposAgregacaoFundosFinancimento();
            tiposAgregacaoFundosFinancimento.ID = id;
            tiposAgregacaoFundosFinancimento.Activo = activo;
            return tiposAgregacaoFundosFinancimento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, true, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.Byte[] Logotipo
        {
            get
            {
                return StructuralObject.GetValidValue(_Logotipo);
            }
            set
            {
                OnLogotipoChanging(value);
                ReportPropertyChanging("Logotipo");
                _Logotipo = StructuralObject.SetValidValue(value, true, "Logotipo");
                ReportPropertyChanged("Logotipo");
                OnLogotipoChanged();
            }
        }
        private global::System.Byte[] _Logotipo;
        partial void OnLogotipoChanging(global::System.Byte[] value);
        partial void OnLogotipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "FundoFinanciamentoAgregacao")]
        public EntityCollection<FundoFinanciamentoAgregacao> FundoFinanciamentoAgregacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<FundoFinanciamentoAgregacao>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "FundoFinanciamentoAgregacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<FundoFinanciamentoAgregacao>("GestaoProjectosModel.FK_FundoFinanciamentoAgregacao_TiposAgregacaoFundosFinancimento", "FundoFinanciamentoAgregacao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TiposProcedimentoContratacaoPublica")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TiposProcedimentoContratacaoPublica : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TiposProcedimentoContratacaoPublica object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="codigoRubricaExcel">Initial value of the CodigoRubricaExcel property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        /// <param name="compromissoCabimentosSIFUM">Initial value of the CompromissoCabimentosSIFUM property.</param>
        public static TiposProcedimentoContratacaoPublica CreateTiposProcedimentoContratacaoPublica(global::System.Int32 id, global::System.String nome, global::System.String codigoRubricaExcel, global::System.Boolean activo, global::System.Boolean compromissoCabimentosSIFUM)
        {
            TiposProcedimentoContratacaoPublica tiposProcedimentoContratacaoPublica = new TiposProcedimentoContratacaoPublica();
            tiposProcedimentoContratacaoPublica.ID = id;
            tiposProcedimentoContratacaoPublica.Nome = nome;
            tiposProcedimentoContratacaoPublica.CodigoRubricaExcel = codigoRubricaExcel;
            tiposProcedimentoContratacaoPublica.Activo = activo;
            tiposProcedimentoContratacaoPublica.CompromissoCabimentosSIFUM = compromissoCabimentosSIFUM;
            return tiposProcedimentoContratacaoPublica;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoRubricaExcel
        {
            get
            {
                return _CodigoRubricaExcel;
            }
            set
            {
                OnCodigoRubricaExcelChanging(value);
                ReportPropertyChanging("CodigoRubricaExcel");
                _CodigoRubricaExcel = StructuralObject.SetValidValue(value, false, "CodigoRubricaExcel");
                ReportPropertyChanged("CodigoRubricaExcel");
                OnCodigoRubricaExcelChanged();
            }
        }
        private global::System.String _CodigoRubricaExcel;
        partial void OnCodigoRubricaExcelChanging(global::System.String value);
        partial void OnCodigoRubricaExcelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.Boolean _Activo;
        partial void OnActivoChanging(global::System.Boolean value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean CompromissoCabimentosSIFUM
        {
            get
            {
                return _CompromissoCabimentosSIFUM;
            }
            set
            {
                OnCompromissoCabimentosSIFUMChanging(value);
                ReportPropertyChanging("CompromissoCabimentosSIFUM");
                _CompromissoCabimentosSIFUM = StructuralObject.SetValidValue(value, "CompromissoCabimentosSIFUM");
                ReportPropertyChanged("CompromissoCabimentosSIFUM");
                OnCompromissoCabimentosSIFUMChanged();
            }
        }
        private global::System.Boolean _CompromissoCabimentosSIFUM;
        partial void OnCompromissoCabimentosSIFUMChanging(global::System.Boolean value);
        partial void OnCompromissoCabimentosSIFUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ContratacaoPublicaNaoAplicavel
        {
            get
            {
                return _ContratacaoPublicaNaoAplicavel;
            }
            set
            {
                OnContratacaoPublicaNaoAplicavelChanging(value);
                ReportPropertyChanging("ContratacaoPublicaNaoAplicavel");
                _ContratacaoPublicaNaoAplicavel = StructuralObject.SetValidValue(value, "ContratacaoPublicaNaoAplicavel");
                ReportPropertyChanged("ContratacaoPublicaNaoAplicavel");
                OnContratacaoPublicaNaoAplicavelChanged();
            }
        }
        private Nullable<global::System.Boolean> _ContratacaoPublicaNaoAplicavel;
        partial void OnContratacaoPublicaNaoAplicavelChanging(Nullable<global::System.Boolean> value);
        partial void OnContratacaoPublicaNaoAplicavelChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Despesas_TiposProcedimentoContratacaoPublica", "Despesas")]
        public EntityCollection<Despesas> Despesas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "Despesas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Despesas>("GestaoProjectosModel.FK_Despesas_TiposProcedimentoContratacaoPublica", "Despesas", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TiposRecebimento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TiposRecebimento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TiposRecebimento object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        public static TiposRecebimento CreateTiposRecebimento(global::System.String codigo, global::System.String descricao)
        {
            TiposRecebimento tiposRecebimento = new TiposRecebimento();
            tiposRecebimento.Codigo = codigo;
            tiposRecebimento.Descricao = descricao;
            return tiposRecebimento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> PedidoPagamento
        {
            get
            {
                return _PedidoPagamento;
            }
            set
            {
                OnPedidoPagamentoChanging(value);
                ReportPropertyChanging("PedidoPagamento");
                _PedidoPagamento = StructuralObject.SetValidValue(value, "PedidoPagamento");
                ReportPropertyChanged("PedidoPagamento");
                OnPedidoPagamentoChanged();
            }
        }
        private Nullable<global::System.Boolean> _PedidoPagamento;
        partial void OnPedidoPagamentoChanging(Nullable<global::System.Boolean> value);
        partial void OnPedidoPagamentoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Recebimentos_TiposRecebimento", "Recebimentos")]
        public EntityCollection<Recebimentos> Recebimentos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "Recebimentos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Recebimentos>("GestaoProjectosModel.FK_Recebimentos_TiposRecebimento", "Recebimentos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecebimentosParticipantes_TiposRecebimento", "RecebimentosParticipantes")]
        public EntityCollection<RecebimentosParticipantes> RecebimentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "RecebimentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecebimentosParticipantes>("GestaoProjectosModel.FK_RecebimentosParticipantes_TiposRecebimento", "RecebimentosParticipantes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoTarefa")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoTarefa : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoTarefa object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static TipoTarefa CreateTipoTarefa(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.String nome)
        {
            TipoTarefa tipoTarefa = new TipoTarefa();
            tipoTarefa.ID = id;
            tipoTarefa.IDProjecto = iDProjecto;
            tipoTarefa.Nome = nome;
            return tipoTarefa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String WorkPackageNumero
        {
            get
            {
                return _WorkPackageNumero;
            }
            set
            {
                OnWorkPackageNumeroChanging(value);
                ReportPropertyChanging("WorkPackageNumero");
                _WorkPackageNumero = StructuralObject.SetValidValue(value, true, "WorkPackageNumero");
                ReportPropertyChanged("WorkPackageNumero");
                OnWorkPackageNumeroChanged();
            }
        }
        private global::System.String _WorkPackageNumero;
        partial void OnWorkPackageNumeroChanging(global::System.String value);
        partial void OnWorkPackageNumeroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String WorkPackageDescricao
        {
            get
            {
                return _WorkPackageDescricao;
            }
            set
            {
                OnWorkPackageDescricaoChanging(value);
                ReportPropertyChanging("WorkPackageDescricao");
                _WorkPackageDescricao = StructuralObject.SetValidValue(value, true, "WorkPackageDescricao");
                ReportPropertyChanged("WorkPackageDescricao");
                OnWorkPackageDescricaoChanged();
            }
        }
        private global::System.String _WorkPackageDescricao;
        partial void OnWorkPackageDescricaoChanging(global::System.String value);
        partial void OnWorkPackageDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicio
        {
            get
            {
                return _DataInicio;
            }
            set
            {
                OnDataInicioChanging(value);
                ReportPropertyChanging("DataInicio");
                _DataInicio = StructuralObject.SetValidValue(value, "DataInicio");
                ReportPropertyChanged("DataInicio");
                OnDataInicioChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicio;
        partial void OnDataInicioChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFim
        {
            get
            {
                return _DataFim;
            }
            set
            {
                OnDataFimChanging(value);
                ReportPropertyChanging("DataFim");
                _DataFim = StructuralObject.SetValidValue(value, "DataFim");
                ReportPropertyChanged("DataFim");
                OnDataFimChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFim;
        partial void OnDataFimChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> HorasPrevistas
        {
            get
            {
                return _HorasPrevistas;
            }
            set
            {
                OnHorasPrevistasChanging(value);
                ReportPropertyChanging("HorasPrevistas");
                _HorasPrevistas = StructuralObject.SetValidValue(value, "HorasPrevistas");
                ReportPropertyChanged("HorasPrevistas");
                OnHorasPrevistasChanged();
            }
        }
        private Nullable<global::System.Int32> _HorasPrevistas;
        partial void OnHorasPrevistasChanging(Nullable<global::System.Int32> value);
        partial void OnHorasPrevistasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Atividade
        {
            get
            {
                return _Atividade;
            }
            set
            {
                OnAtividadeChanging(value);
                ReportPropertyChanging("Atividade");
                _Atividade = StructuralObject.SetValidValue(value, true, "Atividade");
                ReportPropertyChanged("Atividade");
                OnAtividadeChanged();
            }
        }
        private global::System.String _Atividade;
        partial void OnAtividadeChanging(global::System.String value);
        partial void OnAtividadeChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RegistoTarefas_TipoTarefa", "RegistoTarefas")]
        public EntityCollection<RegistoTarefas> RegistoTarefas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "RegistoTarefas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RegistoTarefas>("GestaoProjectosModel.FK_RegistoTarefas_TipoTarefa", "RegistoTarefas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TipoTarefa_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_TipoTarefa_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TipoUnidade")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TipoUnidade : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TipoUnidade object.
        /// </summary>
        /// <param name="codigo">Initial value of the Codigo property.</param>
        /// <param name="descricao">Initial value of the Descricao property.</param>
        public static TipoUnidade CreateTipoUnidade(global::System.String codigo, global::System.String descricao)
        {
            TipoUnidade tipoUnidade = new TipoUnidade();
            tipoUnidade.Codigo = codigo;
            tipoUnidade.Descricao = descricao;
            return tipoUnidade;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                if (_Codigo != value)
                {
                    OnCodigoChanging(value);
                    ReportPropertyChanging("Codigo");
                    _Codigo = StructuralObject.SetValidValue(value, false, "Codigo");
                    ReportPropertyChanged("Codigo");
                    OnCodigoChanged();
                }
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, false, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Unidades_TipoUnidade", "Unidades")]
        public EntityCollection<Unidades> Unidades
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Unidades>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "Unidades");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Unidades>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "Unidades", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TranferenciasPagamentosParticipantes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TranferenciasPagamentosParticipantes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TranferenciasPagamentosParticipantes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDTransferenciaParticipante">Initial value of the IDTransferenciaParticipante property.</param>
        /// <param name="iDPagamentoParticipante">Initial value of the IDPagamentoParticipante property.</param>
        public static TranferenciasPagamentosParticipantes CreateTranferenciasPagamentosParticipantes(global::System.Int32 id, global::System.Int32 iDTransferenciaParticipante, global::System.Int32 iDPagamentoParticipante)
        {
            TranferenciasPagamentosParticipantes tranferenciasPagamentosParticipantes = new TranferenciasPagamentosParticipantes();
            tranferenciasPagamentosParticipantes.ID = id;
            tranferenciasPagamentosParticipantes.IDTransferenciaParticipante = iDTransferenciaParticipante;
            tranferenciasPagamentosParticipantes.IDPagamentoParticipante = iDPagamentoParticipante;
            return tranferenciasPagamentosParticipantes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDTransferenciaParticipante
        {
            get
            {
                return _IDTransferenciaParticipante;
            }
            set
            {
                OnIDTransferenciaParticipanteChanging(value);
                ReportPropertyChanging("IDTransferenciaParticipante");
                _IDTransferenciaParticipante = StructuralObject.SetValidValue(value, "IDTransferenciaParticipante");
                ReportPropertyChanged("IDTransferenciaParticipante");
                OnIDTransferenciaParticipanteChanged();
            }
        }
        private global::System.Int32 _IDTransferenciaParticipante;
        partial void OnIDTransferenciaParticipanteChanging(global::System.Int32 value);
        partial void OnIDTransferenciaParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDPagamentoParticipante
        {
            get
            {
                return _IDPagamentoParticipante;
            }
            set
            {
                OnIDPagamentoParticipanteChanging(value);
                ReportPropertyChanging("IDPagamentoParticipante");
                _IDPagamentoParticipante = StructuralObject.SetValidValue(value, "IDPagamentoParticipante");
                ReportPropertyChanged("IDPagamentoParticipante");
                OnIDPagamentoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDPagamentoParticipante;
        partial void OnIDPagamentoParticipanteChanging(global::System.Int32 value);
        partial void OnIDPagamentoParticipanteChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes")]
        public PagamentosParticipantes PagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<PagamentosParticipantes> PagamentosParticipantesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<PagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_PagamentosParticipantes", "PagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes")]
        public TransferenciasParticipantes TransferenciasParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TransferenciasParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TransferenciasParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TransferenciasParticipantes> TransferenciasParticipantesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TransferenciasParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TransferenciasParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TransferenciasParticipantes", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="TransferenciasParticipantes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class TransferenciasParticipantes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new TransferenciasParticipantes object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicaoParticipante">Initial value of the IDInstituicaoParticipante property.</param>
        /// <param name="iDEntidadeFinanciadora">Initial value of the IDEntidadeFinanciadora property.</param>
        /// <param name="codigoTipoRecebimento">Initial value of the CodigoTipoRecebimento property.</param>
        /// <param name="eRPNReg">Initial value of the ERPNReg property.</param>
        /// <param name="eRPDiario">Initial value of the ERPDiario property.</param>
        /// <param name="eRPContaPOCE">Initial value of the ERPContaPOCE property.</param>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        public static TransferenciasParticipantes CreateTransferenciasParticipantes(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicaoParticipante, global::System.Int32 iDEntidadeFinanciadora, global::System.String codigoTipoRecebimento, global::System.String eRPNReg, global::System.String eRPDiario, global::System.String eRPContaPOCE, global::System.DateTime data, global::System.Double valor)
        {
            TransferenciasParticipantes transferenciasParticipantes = new TransferenciasParticipantes();
            transferenciasParticipantes.ID = id;
            transferenciasParticipantes.IDProjecto = iDProjecto;
            transferenciasParticipantes.IDInstituicaoParticipante = iDInstituicaoParticipante;
            transferenciasParticipantes.IDEntidadeFinanciadora = iDEntidadeFinanciadora;
            transferenciasParticipantes.CodigoTipoRecebimento = codigoTipoRecebimento;
            transferenciasParticipantes.ERPNReg = eRPNReg;
            transferenciasParticipantes.ERPDiario = eRPDiario;
            transferenciasParticipantes.ERPContaPOCE = eRPContaPOCE;
            transferenciasParticipantes.Data = data;
            transferenciasParticipantes.Valor = valor;
            return transferenciasParticipantes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicaoParticipante
        {
            get
            {
                return _IDInstituicaoParticipante;
            }
            set
            {
                OnIDInstituicaoParticipanteChanging(value);
                ReportPropertyChanging("IDInstituicaoParticipante");
                _IDInstituicaoParticipante = StructuralObject.SetValidValue(value, "IDInstituicaoParticipante");
                ReportPropertyChanged("IDInstituicaoParticipante");
                OnIDInstituicaoParticipanteChanged();
            }
        }
        private global::System.Int32 _IDInstituicaoParticipante;
        partial void OnIDInstituicaoParticipanteChanging(global::System.Int32 value);
        partial void OnIDInstituicaoParticipanteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEntidadeFinanciadora
        {
            get
            {
                return _IDEntidadeFinanciadora;
            }
            set
            {
                OnIDEntidadeFinanciadoraChanging(value);
                ReportPropertyChanging("IDEntidadeFinanciadora");
                _IDEntidadeFinanciadora = StructuralObject.SetValidValue(value, "IDEntidadeFinanciadora");
                ReportPropertyChanged("IDEntidadeFinanciadora");
                OnIDEntidadeFinanciadoraChanged();
            }
        }
        private global::System.Int32 _IDEntidadeFinanciadora;
        partial void OnIDEntidadeFinanciadoraChanging(global::System.Int32 value);
        partial void OnIDEntidadeFinanciadoraChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoRecebimento
        {
            get
            {
                return _CodigoTipoRecebimento;
            }
            set
            {
                OnCodigoTipoRecebimentoChanging(value);
                ReportPropertyChanging("CodigoTipoRecebimento");
                _CodigoTipoRecebimento = StructuralObject.SetValidValue(value, false, "CodigoTipoRecebimento");
                ReportPropertyChanged("CodigoTipoRecebimento");
                OnCodigoTipoRecebimentoChanged();
            }
        }
        private global::System.String _CodigoTipoRecebimento;
        partial void OnCodigoTipoRecebimentoChanging(global::System.String value);
        partial void OnCodigoTipoRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ERPNReg
        {
            get
            {
                return _ERPNReg;
            }
            set
            {
                OnERPNRegChanging(value);
                ReportPropertyChanging("ERPNReg");
                _ERPNReg = StructuralObject.SetValidValue(value, false, "ERPNReg");
                ReportPropertyChanged("ERPNReg");
                OnERPNRegChanged();
            }
        }
        private global::System.String _ERPNReg;
        partial void OnERPNRegChanging(global::System.String value);
        partial void OnERPNRegChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ERPDiario
        {
            get
            {
                return _ERPDiario;
            }
            set
            {
                OnERPDiarioChanging(value);
                ReportPropertyChanging("ERPDiario");
                _ERPDiario = StructuralObject.SetValidValue(value, false, "ERPDiario");
                ReportPropertyChanged("ERPDiario");
                OnERPDiarioChanged();
            }
        }
        private global::System.String _ERPDiario;
        partial void OnERPDiarioChanging(global::System.String value);
        partial void OnERPDiarioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ERPContaPOCE
        {
            get
            {
                return _ERPContaPOCE;
            }
            set
            {
                OnERPContaPOCEChanging(value);
                ReportPropertyChanging("ERPContaPOCE");
                _ERPContaPOCE = StructuralObject.SetValidValue(value, false, "ERPContaPOCE");
                ReportPropertyChanged("ERPContaPOCE");
                OnERPContaPOCEChanged();
            }
        }
        private global::System.String _ERPContaPOCE;
        partial void OnERPContaPOCEChanging(global::System.String value);
        partial void OnERPContaPOCEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TranferenciasPagamentosParticipantes")]
        public EntityCollection<TranferenciasPagamentosParticipantes> TranferenciasPagamentosParticipantes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<TranferenciasPagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TranferenciasPagamentosParticipantes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<TranferenciasPagamentosParticipantes>("GestaoProjectosModel.FK_TranferenciasPagamentosParticipantes_TransferenciasParticipantes", "TranferenciasPagamentosParticipantes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_TransferenciasParticipantes_Projectos", "Projectos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_TransferenciasParticipantes_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_TransferenciasParticipantes_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="UnidadeInvestigadores")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class UnidadeInvestigadores : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new UnidadeInvestigadores object.
        /// </summary>
        /// <param name="codigoUnidade">Initial value of the CodigoUnidade property.</param>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="nContrato">Initial value of the NContrato property.</param>
        /// <param name="login">Initial value of the Login property.</param>
        public static UnidadeInvestigadores CreateUnidadeInvestigadores(global::System.String codigoUnidade, global::System.String nMecanografico, global::System.Int32 nContrato, global::System.String login)
        {
            UnidadeInvestigadores unidadeInvestigadores = new UnidadeInvestigadores();
            unidadeInvestigadores.CodigoUnidade = codigoUnidade;
            unidadeInvestigadores.NMecanografico = nMecanografico;
            unidadeInvestigadores.NContrato = nContrato;
            unidadeInvestigadores.Login = login;
            return unidadeInvestigadores;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                if (_CodigoUnidade != value)
                {
                    OnCodigoUnidadeChanging(value);
                    ReportPropertyChanging("CodigoUnidade");
                    _CodigoUnidade = StructuralObject.SetValidValue(value, false, "CodigoUnidade");
                    ReportPropertyChanged("CodigoUnidade");
                    OnCodigoUnidadeChanged();
                }
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                if (_NMecanografico != value)
                {
                    OnNMecanograficoChanging(value);
                    ReportPropertyChanging("NMecanografico");
                    _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                    ReportPropertyChanged("NMecanografico");
                    OnNMecanograficoChanged();
                }
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NContrato
        {
            get
            {
                return _NContrato;
            }
            set
            {
                if (_NContrato != value)
                {
                    OnNContratoChanging(value);
                    ReportPropertyChanging("NContrato");
                    _NContrato = StructuralObject.SetValidValue(value, "NContrato");
                    ReportPropertyChanged("NContrato");
                    OnNContratoChanged();
                }
            }
        }
        private global::System.Int32 _NContrato;
        partial void OnNContratoChanging(global::System.Int32 value);
        partial void OnNContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Login
        {
            get
            {
                return _Login;
            }
            set
            {
                OnLoginChanging(value);
                ReportPropertyChanging("Login");
                _Login = StructuralObject.SetValidValue(value, false, "Login");
                ReportPropertyChanged("Login");
                OnLoginChanged();
            }
        }
        private global::System.String _Login;
        partial void OnLoginChanging(global::System.String value);
        partial void OnLoginChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadesInvestigadoresEstatutos")]
        public EntityCollection<UnidadesInvestigadoresEstatutos> UnidadesInvestigadoresEstatutos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<UnidadesInvestigadoresEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadesInvestigadoresEstatutos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<UnidadesInvestigadoresEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadesInvestigadoresEstatutos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="Unidades")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class Unidades : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new Unidades object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeUnidade">Initial value of the NomeUnidade property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static Unidades CreateUnidades(global::System.Int32 id, global::System.String nomeUnidade, global::System.String sigla, global::System.String activo)
        {
            Unidades unidades = new Unidades();
            unidades.ID = id;
            unidades.NomeUnidade = nomeUnidade;
            unidades.Sigla = sigla;
            unidades.Activo = activo;
            return unidades;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInstituicao;
        partial void OnIDInstituicaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                OnCodigoChanging(value);
                ReportPropertyChanging("Codigo");
                _Codigo = StructuralObject.SetValidValue(value, true, "Codigo");
                ReportPropertyChanged("Codigo");
                OnCodigoChanged();
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeUnidade
        {
            get
            {
                return _NomeUnidade;
            }
            set
            {
                OnNomeUnidadeChanging(value);
                ReportPropertyChanging("NomeUnidade");
                _NomeUnidade = StructuralObject.SetValidValue(value, false, "NomeUnidade");
                ReportPropertyChanged("NomeUnidade");
                OnNomeUnidadeChanged();
            }
        }
        private global::System.String _NomeUnidade;
        partial void OnNomeUnidadeChanging(global::System.String value);
        partial void OnNomeUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoUnidade
        {
            get
            {
                return _TipoUnidade;
            }
            set
            {
                OnTipoUnidadeChanging(value);
                ReportPropertyChanging("TipoUnidade");
                _TipoUnidade = StructuralObject.SetValidValue(value, true, "TipoUnidade");
                ReportPropertyChanged("TipoUnidade");
                OnTipoUnidadeChanged();
            }
        }
        private global::System.String _TipoUnidade;
        partial void OnTipoUnidadeChanging(global::System.String value);
        partial void OnTipoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UnidadeMae
        {
            get
            {
                return _UnidadeMae;
            }
            set
            {
                OnUnidadeMaeChanging(value);
                ReportPropertyChanging("UnidadeMae");
                _UnidadeMae = StructuralObject.SetValidValue(value, true, "UnidadeMae");
                ReportPropertyChanged("UnidadeMae");
                OnUnidadeMaeChanged();
            }
        }
        private global::System.String _UnidadeMae;
        partial void OnUnidadeMaeChanging(global::System.String value);
        partial void OnUnidadeMaeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Terminal
        {
            get
            {
                return _Terminal;
            }
            set
            {
                OnTerminalChanging(value);
                ReportPropertyChanging("Terminal");
                _Terminal = StructuralObject.SetValidValue(value, true, "Terminal");
                ReportPropertyChanged("Terminal");
                OnTerminalChanged();
            }
        }
        private global::System.String _Terminal;
        partial void OnTerminalChanging(global::System.String value);
        partial void OnTerminalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, true, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, true, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone1
        {
            get
            {
                return _Telefone1;
            }
            set
            {
                OnTelefone1Changing(value);
                ReportPropertyChanging("Telefone1");
                _Telefone1 = StructuralObject.SetValidValue(value, true, "Telefone1");
                ReportPropertyChanged("Telefone1");
                OnTelefone1Changed();
            }
        }
        private global::System.String _Telefone1;
        partial void OnTelefone1Changing(global::System.String value);
        partial void OnTelefone1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone2
        {
            get
            {
                return _Telefone2;
            }
            set
            {
                OnTelefone2Changing(value);
                ReportPropertyChanging("Telefone2");
                _Telefone2 = StructuralObject.SetValidValue(value, true, "Telefone2");
                ReportPropertyChanged("Telefone2");
                OnTelefone2Changed();
            }
        }
        private global::System.String _Telefone2;
        partial void OnTelefone2Changing(global::System.String value);
        partial void OnTelefone2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Fax
        {
            get
            {
                return _Fax;
            }
            set
            {
                OnFaxChanging(value);
                ReportPropertyChanging("Fax");
                _Fax = StructuralObject.SetValidValue(value, true, "Fax");
                ReportPropertyChanged("Fax");
                OnFaxChanged();
            }
        }
        private global::System.String _Fax;
        partial void OnFaxChanging(global::System.String value);
        partial void OnFaxChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Email
        {
            get
            {
                return _Email;
            }
            set
            {
                OnEmailChanging(value);
                ReportPropertyChanging("Email");
                _Email = StructuralObject.SetValidValue(value, true, "Email");
                ReportPropertyChanged("Email");
                OnEmailChanged();
            }
        }
        private global::System.String _Email;
        partial void OnEmailChanging(global::System.String value);
        partial void OnEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NmecanograficoResponsavel
        {
            get
            {
                return _NmecanograficoResponsavel;
            }
            set
            {
                OnNmecanograficoResponsavelChanging(value);
                ReportPropertyChanging("NmecanograficoResponsavel");
                _NmecanograficoResponsavel = StructuralObject.SetValidValue(value, true, "NmecanograficoResponsavel");
                ReportPropertyChanged("NmecanograficoResponsavel");
                OnNmecanograficoResponsavelChanged();
            }
        }
        private global::System.String _NmecanograficoResponsavel;
        partial void OnNmecanograficoResponsavelChanging(global::System.String value);
        partial void OnNmecanograficoResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Responsavel
        {
            get
            {
                return _Responsavel;
            }
            set
            {
                OnResponsavelChanging(value);
                ReportPropertyChanging("Responsavel");
                _Responsavel = StructuralObject.SetValidValue(value, true, "Responsavel");
                ReportPropertyChanged("Responsavel");
                OnResponsavelChanged();
            }
        }
        private global::System.String _Responsavel;
        partial void OnResponsavelChanging(global::System.String value);
        partial void OnResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailResponsavel
        {
            get
            {
                return _EmailResponsavel;
            }
            set
            {
                OnEmailResponsavelChanging(value);
                ReportPropertyChanging("EmailResponsavel");
                _EmailResponsavel = StructuralObject.SetValidValue(value, true, "EmailResponsavel");
                ReportPropertyChanged("EmailResponsavel");
                OnEmailResponsavelChanged();
            }
        }
        private global::System.String _EmailResponsavel;
        partial void OnEmailResponsavelChanging(global::System.String value);
        partial void OnEmailResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, false, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.String _Activo;
        partial void OnActivoChanging(global::System.String value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DominioEmail
        {
            get
            {
                return _DominioEmail;
            }
            set
            {
                OnDominioEmailChanging(value);
                ReportPropertyChanging("DominioEmail");
                _DominioEmail = StructuralObject.SetValidValue(value, true, "DominioEmail");
                ReportPropertyChanged("DominioEmail");
                OnDominioEmailChanged();
            }
        }
        private global::System.String _DominioEmail;
        partial void OnDominioEmailChanging(global::System.String value);
        partial void OnDominioEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ValidaCandidaturas
        {
            get
            {
                return _ValidaCandidaturas;
            }
            set
            {
                OnValidaCandidaturasChanging(value);
                ReportPropertyChanging("ValidaCandidaturas");
                _ValidaCandidaturas = StructuralObject.SetValidValue(value, "ValidaCandidaturas");
                ReportPropertyChanged("ValidaCandidaturas");
                OnValidaCandidaturasChanged();
            }
        }
        private Nullable<global::System.Boolean> _ValidaCandidaturas;
        partial void OnValidaCandidaturasChanging(Nullable<global::System.Boolean> value);
        partial void OnValidaCandidaturasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> CentroFCT
        {
            get
            {
                return _CentroFCT;
            }
            set
            {
                OnCentroFCTChanging(value);
                ReportPropertyChanging("CentroFCT");
                _CentroFCT = StructuralObject.SetValidValue(value, "CentroFCT");
                ReportPropertyChanged("CentroFCT");
                OnCentroFCTChanged();
            }
        }
        private Nullable<global::System.Boolean> _CentroFCT;
        partial void OnCentroFCTChanging(Nullable<global::System.Boolean> value);
        partial void OnCentroFCTChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFCT
        {
            get
            {
                return _NomeFCT;
            }
            set
            {
                OnNomeFCTChanging(value);
                ReportPropertyChanging("NomeFCT");
                _NomeFCT = StructuralObject.SetValidValue(value, true, "NomeFCT");
                ReportPropertyChanged("NomeFCT");
                OnNomeFCTChanged();
            }
        }
        private global::System.String _NomeFCT;
        partial void OnNomeFCTChanging(global::System.String value);
        partial void OnNomeFCTChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Unidades_TipoUnidade", "TipoUnidade")]
        public TipoUnidade TipoUnidade1
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoUnidade>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "TipoUnidade").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoUnidade>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "TipoUnidade").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoUnidade> TipoUnidade1Reference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoUnidade>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "TipoUnidade");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoUnidade>("GestaoProjectosModel.FK_Unidades_TipoUnidade", "TipoUnidade", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_GruposInvestigacao_Unidades", "GruposInvestigacao")]
        public EntityCollection<GruposInvestigacao> GruposInvestigacao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<GruposInvestigacao>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "GruposInvestigacao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<GruposInvestigacao>("GestaoProjectosModel.FK_GruposInvestigacao_Unidades", "GruposInvestigacao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_RecursoHumano_Unidades", "RecursoHumano")]
        public EntityCollection<RecursoHumano> RecursoHumano
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "RecursoHumano");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<RecursoHumano>("GestaoProjectosModel.FK_RecursoHumano_Unidades", "RecursoHumano", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Contratos_Unidades", "Contratos")]
        public EntityCollection<Contratos> Contratos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_Unidades", "Contratos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Contratos>("GestaoProjectosModel.FK_Contratos_Unidades", "Contratos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_InternoProjecto_Unidades", "InternoProjecto")]
        public EntityCollection<InternoProjecto> InternoProjecto
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<InternoProjecto>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "InternoProjecto");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<InternoProjecto>("GestaoProjectosModel.FK_InternoProjecto_Unidades", "InternoProjecto", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Candidaturas_Unidades", "Candidaturas")]
        public EntityCollection<Candidaturas> Candidaturas
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Candidaturas");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Candidaturas>("GestaoProjectosModel.FK_Candidaturas_Unidades", "Candidaturas", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_Unidades_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Unidades_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Unidades_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_Unidades_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_Unidades_Instituicao", "Instituicao", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="UnidadesInvestigadoresEstatutos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class UnidadesInvestigadoresEstatutos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new UnidadesInvestigadoresEstatutos object.
        /// </summary>
        /// <param name="codigoUnidade">Initial value of the CodigoUnidade property.</param>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="estatuto">Initial value of the Estatuto property.</param>
        /// <param name="nContrato">Initial value of the NContrato property.</param>
        public static UnidadesInvestigadoresEstatutos CreateUnidadesInvestigadoresEstatutos(global::System.String codigoUnidade, global::System.String nMecanografico, global::System.String estatuto, global::System.Int32 nContrato)
        {
            UnidadesInvestigadoresEstatutos unidadesInvestigadoresEstatutos = new UnidadesInvestigadoresEstatutos();
            unidadesInvestigadoresEstatutos.CodigoUnidade = codigoUnidade;
            unidadesInvestigadoresEstatutos.NMecanografico = nMecanografico;
            unidadesInvestigadoresEstatutos.Estatuto = estatuto;
            unidadesInvestigadoresEstatutos.NContrato = nContrato;
            return unidadesInvestigadoresEstatutos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                if (_CodigoUnidade != value)
                {
                    OnCodigoUnidadeChanging(value);
                    ReportPropertyChanging("CodigoUnidade");
                    _CodigoUnidade = StructuralObject.SetValidValue(value, false, "CodigoUnidade");
                    ReportPropertyChanged("CodigoUnidade");
                    OnCodigoUnidadeChanged();
                }
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                if (_NMecanografico != value)
                {
                    OnNMecanograficoChanging(value);
                    ReportPropertyChanging("NMecanografico");
                    _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                    ReportPropertyChanged("NMecanografico");
                    OnNMecanograficoChanged();
                }
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Estatuto
        {
            get
            {
                return _Estatuto;
            }
            set
            {
                if (_Estatuto != value)
                {
                    OnEstatutoChanging(value);
                    ReportPropertyChanging("Estatuto");
                    _Estatuto = StructuralObject.SetValidValue(value, false, "Estatuto");
                    ReportPropertyChanged("Estatuto");
                    OnEstatutoChanged();
                }
            }
        }
        private global::System.String _Estatuto;
        partial void OnEstatutoChanging(global::System.String value);
        partial void OnEstatutoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NContrato
        {
            get
            {
                return _NContrato;
            }
            set
            {
                if (_NContrato != value)
                {
                    OnNContratoChanging(value);
                    ReportPropertyChanging("NContrato");
                    _NContrato = StructuralObject.SetValidValue(value, "NContrato");
                    ReportPropertyChanged("NContrato");
                    OnNContratoChanged();
                }
            }
        }
        private global::System.Int32 _NContrato;
        partial void OnNContratoChanging(global::System.Int32 value);
        partial void OnNContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Dummy
        {
            get
            {
                return _Dummy;
            }
            set
            {
                OnDummyChanging(value);
                ReportPropertyChanging("Dummy");
                _Dummy = StructuralObject.SetValidValue(value, "Dummy");
                ReportPropertyChanged("Dummy");
                OnDummyChanged();
            }
        }
        private Nullable<global::System.Boolean> _Dummy;
        partial void OnDummyChanging(Nullable<global::System.Boolean> value);
        partial void OnDummyChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos")]
        public TipoEstatutos TipoEstatutos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<TipoEstatutos> TipoEstatutosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<TipoEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<TipoEstatutos>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_TipoEstatutos", "TipoEstatutos", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores")]
        public UnidadeInvestigadores UnidadeInvestigadores
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UnidadeInvestigadores>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UnidadeInvestigadores>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<UnidadeInvestigadores> UnidadeInvestigadoresReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<UnidadeInvestigadores>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<UnidadeInvestigadores>("GestaoProjectosModel.FK_UnidadesInvestigadoresEstatutos_UnidadeInvestigadores", "UnidadeInvestigadores", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VerbasMovimento")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VerbasMovimento : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VerbasMovimento object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="tipo">Initial value of the Tipo property.</param>
        /// <param name="dataMovimento">Initial value of the DataMovimento property.</param>
        /// <param name="verba">Initial value of the Verba property.</param>
        /// <param name="numeroDocumento">Initial value of the NumeroDocumento property.</param>
        /// <param name="flagConsolidado">Initial value of the FlagConsolidado property.</param>
        /// <param name="centroCustos">Initial value of the CentroCustos property.</param>
        public static VerbasMovimento CreateVerbasMovimento(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.String tipo, global::System.DateTime dataMovimento, global::System.Double verba, global::System.String numeroDocumento, global::System.Boolean flagConsolidado, global::System.String centroCustos)
        {
            VerbasMovimento verbasMovimento = new VerbasMovimento();
            verbasMovimento.ID = id;
            verbasMovimento.IDProjecto = iDProjecto;
            verbasMovimento.Tipo = tipo;
            verbasMovimento.DataMovimento = dataMovimento;
            verbasMovimento.Verba = verba;
            verbasMovimento.NumeroDocumento = numeroDocumento;
            verbasMovimento.FlagConsolidado = flagConsolidado;
            verbasMovimento.CentroCustos = centroCustos;
            return verbasMovimento;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, false, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataMovimento
        {
            get
            {
                return _DataMovimento;
            }
            set
            {
                OnDataMovimentoChanging(value);
                ReportPropertyChanging("DataMovimento");
                _DataMovimento = StructuralObject.SetValidValue(value, "DataMovimento");
                ReportPropertyChanged("DataMovimento");
                OnDataMovimentoChanged();
            }
        }
        private global::System.DateTime _DataMovimento;
        partial void OnDataMovimentoChanging(global::System.DateTime value);
        partial void OnDataMovimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Verba
        {
            get
            {
                return _Verba;
            }
            set
            {
                OnVerbaChanging(value);
                ReportPropertyChanging("Verba");
                _Verba = StructuralObject.SetValidValue(value, "Verba");
                ReportPropertyChanged("Verba");
                OnVerbaChanged();
            }
        }
        private global::System.Double _Verba;
        partial void OnVerbaChanging(global::System.Double value);
        partial void OnVerbaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NumeroDocumento
        {
            get
            {
                return _NumeroDocumento;
            }
            set
            {
                OnNumeroDocumentoChanging(value);
                ReportPropertyChanging("NumeroDocumento");
                _NumeroDocumento = StructuralObject.SetValidValue(value, false, "NumeroDocumento");
                ReportPropertyChanged("NumeroDocumento");
                OnNumeroDocumentoChanged();
            }
        }
        private global::System.String _NumeroDocumento;
        partial void OnNumeroDocumentoChanging(global::System.String value);
        partial void OnNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInstituicao;
        partial void OnIDInstituicaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDEntidade
        {
            get
            {
                return _IDEntidade;
            }
            set
            {
                OnIDEntidadeChanging(value);
                ReportPropertyChanging("IDEntidade");
                _IDEntidade = StructuralObject.SetValidValue(value, "IDEntidade");
                ReportPropertyChanged("IDEntidade");
                OnIDEntidadeChanged();
            }
        }
        private Nullable<global::System.Int32> _IDEntidade;
        partial void OnIDEntidadeChanging(Nullable<global::System.Int32> value);
        partial void OnIDEntidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagConsolidado
        {
            get
            {
                return _FlagConsolidado;
            }
            set
            {
                OnFlagConsolidadoChanging(value);
                ReportPropertyChanging("FlagConsolidado");
                _FlagConsolidado = StructuralObject.SetValidValue(value, "FlagConsolidado");
                ReportPropertyChanged("FlagConsolidado");
                OnFlagConsolidadoChanged();
            }
        }
        private global::System.Boolean _FlagConsolidado;
        partial void OnFlagConsolidadoChanging(global::System.Boolean value);
        partial void OnFlagConsolidadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataConsolidacao
        {
            get
            {
                return _DataConsolidacao;
            }
            set
            {
                OnDataConsolidacaoChanging(value);
                ReportPropertyChanging("DataConsolidacao");
                _DataConsolidacao = StructuralObject.SetValidValue(value, "DataConsolidacao");
                ReportPropertyChanged("DataConsolidacao");
                OnDataConsolidacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataConsolidacao;
        partial void OnDataConsolidacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataConsolidacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, false, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverheads_VerbasMovimento", "VerbasOverheads")]
        public EntityCollection<VerbasOverheads> VerbasOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasOverheads", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora")]
        public EntidadeFinanciadora EntidadeFinanciadora
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<EntidadeFinanciadora> EntidadeFinanciadoraReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<EntidadeFinanciadora>("GestaoProjectosModel.FK_VerbasMovimento_EntidadeFinanciadora", "EntidadeFinanciadora", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Instituicao", "Instituicao")]
        public Instituicao Instituicao
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "Instituicao").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "Instituicao").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Instituicao> InstituicaoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Instituicao>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "Instituicao");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Instituicao>("GestaoProjectosModel.FK_VerbasMovimento_Instituicao", "Instituicao", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasMovimento_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasMovimento_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VerbasOverheads")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VerbasOverheads : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VerbasOverheads object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDVerba">Initial value of the IDVerba property.</param>
        /// <param name="dataDebito">Initial value of the DataDebito property.</param>
        /// <param name="flagConsolidado">Initial value of the FlagConsolidado property.</param>
        public static VerbasOverheads CreateVerbasOverheads(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDVerba, global::System.DateTime dataDebito, global::System.Boolean flagConsolidado)
        {
            VerbasOverheads verbasOverheads = new VerbasOverheads();
            verbasOverheads.ID = id;
            verbasOverheads.IDProjecto = iDProjecto;
            verbasOverheads.IDVerba = iDVerba;
            verbasOverheads.DataDebito = dataDebito;
            verbasOverheads.FlagConsolidado = flagConsolidado;
            return verbasOverheads;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                if (_ID != value)
                {
                    OnIDChanging(value);
                    ReportPropertyChanging("ID");
                    _ID = StructuralObject.SetValidValue(value, "ID");
                    ReportPropertyChanged("ID");
                    OnIDChanged();
                }
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDVerba
        {
            get
            {
                return _IDVerba;
            }
            set
            {
                OnIDVerbaChanging(value);
                ReportPropertyChanging("IDVerba");
                _IDVerba = StructuralObject.SetValidValue(value, "IDVerba");
                ReportPropertyChanged("IDVerba");
                OnIDVerbaChanged();
            }
        }
        private global::System.Int32 _IDVerba;
        partial void OnIDVerbaChanging(global::System.Int32 value);
        partial void OnIDVerbaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime DataDebito
        {
            get
            {
                return _DataDebito;
            }
            set
            {
                OnDataDebitoChanging(value);
                ReportPropertyChanging("DataDebito");
                _DataDebito = StructuralObject.SetValidValue(value, "DataDebito");
                ReportPropertyChanged("DataDebito");
                OnDataDebitoChanged();
            }
        }
        private global::System.DateTime _DataDebito;
        partial void OnDataDebitoChanging(global::System.DateTime value);
        partial void OnDataDebitoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagConsolidado
        {
            get
            {
                return _FlagConsolidado;
            }
            set
            {
                OnFlagConsolidadoChanging(value);
                ReportPropertyChanging("FlagConsolidado");
                _FlagConsolidado = StructuralObject.SetValidValue(value, "FlagConsolidado");
                ReportPropertyChanged("FlagConsolidado");
                OnFlagConsolidadoChanged();
            }
        }
        private global::System.Boolean _FlagConsolidado;
        partial void OnFlagConsolidadoChanging(global::System.Boolean value);
        partial void OnFlagConsolidadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataConsolidacao
        {
            get
            {
                return _DataConsolidacao;
            }
            set
            {
                OnDataConsolidacaoChanging(value);
                ReportPropertyChanging("DataConsolidacao");
                _DataConsolidacao = StructuralObject.SetValidValue(value, "DataConsolidacao");
                ReportPropertyChanged("DataConsolidacao");
                OnDataConsolidacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataConsolidacao;
        partial void OnDataConsolidacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataConsolidacaoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento")]
        public VerbasMovimento VerbasMovimento
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasMovimento>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasMovimento>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<VerbasMovimento> VerbasMovimentoReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasMovimento>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<VerbasMovimento>("GestaoProjectosModel.FK_VerbasOverheads_VerbasMovimento", "VerbasMovimento", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheadValor")]
        public EntityCollection<VerbasOverheadValor> VerbasOverheadValor
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<VerbasOverheadValor>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheadValor");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<VerbasOverheadValor>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheadValor", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverheads_Projectos", "Projectos")]
        public Projectos Projectos
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "Projectos").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "Projectos").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Projectos> ProjectosReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "Projectos");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Projectos>("GestaoProjectosModel.FK_VerbasOverheads_Projectos", "Projectos", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VerbasOverheadValor")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VerbasOverheadValor : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VerbasOverheadValor object.
        /// </summary>
        /// <param name="iDVerbaOverhead">Initial value of the IDVerbaOverhead property.</param>
        /// <param name="iDProjectoOverhead">Initial value of the IDProjectoOverhead property.</param>
        /// <param name="valor">Initial value of the Valor property.</param>
        /// <param name="centroCusto">Initial value of the CentroCusto property.</param>
        public static VerbasOverheadValor CreateVerbasOverheadValor(global::System.Int32 iDVerbaOverhead, global::System.Int32 iDProjectoOverhead, global::System.Double valor, global::System.String centroCusto)
        {
            VerbasOverheadValor verbasOverheadValor = new VerbasOverheadValor();
            verbasOverheadValor.IDVerbaOverhead = iDVerbaOverhead;
            verbasOverheadValor.IDProjectoOverhead = iDProjectoOverhead;
            verbasOverheadValor.Valor = valor;
            verbasOverheadValor.CentroCusto = centroCusto;
            return verbasOverheadValor;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDVerbaOverhead
        {
            get
            {
                return _IDVerbaOverhead;
            }
            set
            {
                if (_IDVerbaOverhead != value)
                {
                    OnIDVerbaOverheadChanging(value);
                    ReportPropertyChanging("IDVerbaOverhead");
                    _IDVerbaOverhead = StructuralObject.SetValidValue(value, "IDVerbaOverhead");
                    ReportPropertyChanged("IDVerbaOverhead");
                    OnIDVerbaOverheadChanged();
                }
            }
        }
        private global::System.Int32 _IDVerbaOverhead;
        partial void OnIDVerbaOverheadChanging(global::System.Int32 value);
        partial void OnIDVerbaOverheadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjectoOverhead
        {
            get
            {
                return _IDProjectoOverhead;
            }
            set
            {
                if (_IDProjectoOverhead != value)
                {
                    OnIDProjectoOverheadChanging(value);
                    ReportPropertyChanging("IDProjectoOverhead");
                    _IDProjectoOverhead = StructuralObject.SetValidValue(value, "IDProjectoOverhead");
                    ReportPropertyChanged("IDProjectoOverhead");
                    OnIDProjectoOverheadChanged();
                }
            }
        }
        private global::System.Int32 _IDProjectoOverhead;
        partial void OnIDProjectoOverheadChanging(global::System.Int32 value);
        partial void OnIDProjectoOverheadChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.Double _Valor;
        partial void OnValorChanging(global::System.Double value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CentroCusto
        {
            get
            {
                return _CentroCusto;
            }
            set
            {
                OnCentroCustoChanging(value);
                ReportPropertyChanging("CentroCusto");
                _CentroCusto = StructuralObject.SetValidValue(value, false, "CentroCusto");
                ReportPropertyChanged("CentroCusto");
                OnCentroCustoChanged();
            }
        }
        private global::System.String _CentroCusto;
        partial void OnCentroCustoChanging(global::System.String value);
        partial void OnCentroCustoChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads")]
        public ProjectoOverheads ProjectoOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<ProjectoOverheads> ProjectoOverheadsReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<ProjectoOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<ProjectoOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_ProjectoOverheads", "ProjectoOverheads", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads")]
        public VerbasOverheads VerbasOverheads
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<VerbasOverheads> VerbasOverheadsReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<VerbasOverheads>("GestaoProjectosModel.FK_VerbasOverHeadValor_VerbasOverheads", "VerbasOverheads", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="View")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class View : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new View object.
        /// </summary>
        /// <param name="viewName">Initial value of the ViewName property.</param>
        /// <param name="view1">Initial value of the View1 property.</param>
        public static View CreateView(global::System.String viewName, global::System.String view1)
        {
            View view = new View();
            view.ViewName = viewName;
            view.View1 = view1;
            return view;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ViewName
        {
            get
            {
                return _ViewName;
            }
            set
            {
                if (_ViewName != value)
                {
                    OnViewNameChanging(value);
                    ReportPropertyChanging("ViewName");
                    _ViewName = StructuralObject.SetValidValue(value, false, "ViewName");
                    ReportPropertyChanged("ViewName");
                    OnViewNameChanged();
                }
            }
        }
        private global::System.String _ViewName;
        partial void OnViewNameChanging(global::System.String value);
        partial void OnViewNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String View1
        {
            get
            {
                return _View1;
            }
            set
            {
                OnView1Changing(value);
                ReportPropertyChanging("View1");
                _View1 = StructuralObject.SetValidValue(value, false, "View1");
                ReportPropertyChanged("View1");
                OnView1Changed();
            }
        }
        private global::System.String _View1;
        partial void OnView1Changing(global::System.String value);
        partial void OnView1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Params
        {
            get
            {
                return _Params;
            }
            set
            {
                OnParamsChanging(value);
                ReportPropertyChanging("Params");
                _Params = StructuralObject.SetValidValue(value, true, "Params");
                ReportPropertyChanged("Params");
                OnParamsChanged();
            }
        }
        private global::System.String _Params;
        partial void OnParamsChanging(global::System.String value);
        partial void OnParamsChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_Views", "ViewsPermissoes")]
        public EntityCollection<ViewsPermissoes> ViewsPermissoes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<ViewsPermissoes>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "ViewsPermissoes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<ViewsPermissoes>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "ViewsPermissoes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "Perfil_View_DefaultViewFK", "Perfil")]
        public EntityCollection<Perfil> Perfil
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedCollection<Perfil>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "Perfil");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedCollection<Perfil>("GestaoProjectosModel.Perfil_View_DefaultViewFK", "Perfil", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ViewsPermissoes")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class ViewsPermissoes : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ViewsPermissoes object.
        /// </summary>
        /// <param name="viewName">Initial value of the ViewName property.</param>
        /// <param name="codigoPermissao">Initial value of the CodigoPermissao property.</param>
        public static ViewsPermissoes CreateViewsPermissoes(global::System.String viewName, global::System.String codigoPermissao)
        {
            ViewsPermissoes viewsPermissoes = new ViewsPermissoes();
            viewsPermissoes.ViewName = viewName;
            viewsPermissoes.CodigoPermissao = codigoPermissao;
            return viewsPermissoes;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ViewName
        {
            get
            {
                return _ViewName;
            }
            set
            {
                if (_ViewName != value)
                {
                    OnViewNameChanging(value);
                    ReportPropertyChanging("ViewName");
                    _ViewName = StructuralObject.SetValidValue(value, false, "ViewName");
                    ReportPropertyChanged("ViewName");
                    OnViewNameChanged();
                }
            }
        }
        private global::System.String _ViewName;
        partial void OnViewNameChanging(global::System.String value);
        partial void OnViewNameChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoPermissao
        {
            get
            {
                return _CodigoPermissao;
            }
            set
            {
                if (_CodigoPermissao != value)
                {
                    OnCodigoPermissaoChanging(value);
                    ReportPropertyChanging("CodigoPermissao");
                    _CodigoPermissao = StructuralObject.SetValidValue(value, false, "CodigoPermissao");
                    ReportPropertyChanged("CodigoPermissao");
                    OnCodigoPermissaoChanged();
                }
            }
        }
        private global::System.String _CodigoPermissao;
        partial void OnCodigoPermissaoChanging(global::System.String value);
        partial void OnCodigoPermissaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Dummy
        {
            get
            {
                return _Dummy;
            }
            set
            {
                OnDummyChanging(value);
                ReportPropertyChanging("Dummy");
                _Dummy = StructuralObject.SetValidValue(value, "Dummy");
                ReportPropertyChanged("Dummy");
                OnDummyChanged();
            }
        }
        private Nullable<global::System.Int32> _Dummy;
        partial void OnDummyChanging(Nullable<global::System.Int32> value);
        partial void OnDummyChanged();

        #endregion

        #region Navigation Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_NomesPermissao", "Permissoes")]
        public Permissoes Permissoes
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Permissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "Permissoes").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Permissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "Permissoes").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<Permissoes> PermissoesReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<Permissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "Permissoes");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<Permissoes>("GestaoProjectosModel.FK_ViewsPermissoes_NomesPermissao", "Permissoes", value);
                }
            }
        }
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [XmlIgnoreAttribute()]
        [SoapIgnoreAttribute()]
        [DataMemberAttribute()]
        [EdmRelationshipNavigationPropertyAttribute("GestaoProjectosModel", "FK_ViewsPermissoes_Views", "View")]
        public View View
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "View").Value;
            }
            set
            {
                ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "View").Value = value;
            }
        }
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [BrowsableAttribute(false)]
        [DataMemberAttribute()]
        public EntityReference<View> ViewReference
        {
            get
            {
                return ((IEntityWithRelationships)this).RelationshipManager.GetRelatedReference<View>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "View");
            }
            set
            {
                if ((value != null))
                {
                    ((IEntityWithRelationships)this).RelationshipManager.InitializeRelatedReference<View>("GestaoProjectosModel.FK_ViewsPermissoes_Views", "View", value);
                }
            }
        }

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VW_FuncionarioContrato")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VW_FuncionarioContrato : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VW_FuncionarioContrato object.
        /// </summary>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="autorizaDivulgarDataNascimento">Initial value of the AutorizaDivulgarDataNascimento property.</param>
        /// <param name="descricaoCategoria">Initial value of the DescricaoCategoria property.</param>
        /// <param name="login">Initial value of the Login property.</param>
        public static VW_FuncionarioContrato CreateVW_FuncionarioContrato(global::System.String nMecanografico, global::System.String nome, global::System.String autorizaDivulgarDataNascimento, global::System.String descricaoCategoria, global::System.String login)
        {
            VW_FuncionarioContrato vW_FuncionarioContrato = new VW_FuncionarioContrato();
            vW_FuncionarioContrato.NMecanografico = nMecanografico;
            vW_FuncionarioContrato.Nome = nome;
            vW_FuncionarioContrato.AutorizaDivulgarDataNascimento = autorizaDivulgarDataNascimento;
            vW_FuncionarioContrato.DescricaoCategoria = descricaoCategoria;
            vW_FuncionarioContrato.Login = login;
            return vW_FuncionarioContrato;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                if (_NMecanografico != value)
                {
                    OnNMecanograficoChanging(value);
                    ReportPropertyChanging("NMecanografico");
                    _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                    ReportPropertyChanged("NMecanografico");
                    OnNMecanograficoChanged();
                }
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String BDOrigem
        {
            get
            {
                return _BDOrigem;
            }
            set
            {
                OnBDOrigemChanging(value);
                ReportPropertyChanging("BDOrigem");
                _BDOrigem = StructuralObject.SetValidValue(value, true, "BDOrigem");
                ReportPropertyChanged("BDOrigem");
                OnBDOrigemChanged();
            }
        }
        private global::System.String _BDOrigem;
        partial void OnBDOrigemChanging(global::System.String value);
        partial void OnBDOrigemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                if (_Nome != value)
                {
                    OnNomeChanging(value);
                    ReportPropertyChanging("Nome");
                    _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                    ReportPropertyChanged("Nome");
                    OnNomeChanged();
                }
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeAbreviado
        {
            get
            {
                return _NomeAbreviado;
            }
            set
            {
                OnNomeAbreviadoChanging(value);
                ReportPropertyChanging("NomeAbreviado");
                _NomeAbreviado = StructuralObject.SetValidValue(value, true, "NomeAbreviado");
                ReportPropertyChanged("NomeAbreviado");
                OnNomeAbreviadoChanged();
            }
        }
        private global::System.String _NomeAbreviado;
        partial void OnNomeAbreviadoChanging(global::System.String value);
        partial void OnNomeAbreviadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataNascimento
        {
            get
            {
                return _DataNascimento;
            }
            set
            {
                OnDataNascimentoChanging(value);
                ReportPropertyChanging("DataNascimento");
                _DataNascimento = StructuralObject.SetValidValue(value, "DataNascimento");
                ReportPropertyChanged("DataNascimento");
                OnDataNascimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataNascimento;
        partial void OnDataNascimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String AutorizaDivulgarDataNascimento
        {
            get
            {
                return _AutorizaDivulgarDataNascimento;
            }
            set
            {
                if (_AutorizaDivulgarDataNascimento != value)
                {
                    OnAutorizaDivulgarDataNascimentoChanging(value);
                    ReportPropertyChanging("AutorizaDivulgarDataNascimento");
                    _AutorizaDivulgarDataNascimento = StructuralObject.SetValidValue(value, false, "AutorizaDivulgarDataNascimento");
                    ReportPropertyChanged("AutorizaDivulgarDataNascimento");
                    OnAutorizaDivulgarDataNascimentoChanged();
                }
            }
        }
        private global::System.String _AutorizaDivulgarDataNascimento;
        partial void OnAutorizaDivulgarDataNascimentoChanging(global::System.String value);
        partial void OnAutorizaDivulgarDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoDocumentoID
        {
            get
            {
                return _TipoDocumentoID;
            }
            set
            {
                OnTipoDocumentoIDChanging(value);
                ReportPropertyChanging("TipoDocumentoID");
                _TipoDocumentoID = StructuralObject.SetValidValue(value, true, "TipoDocumentoID");
                ReportPropertyChanged("TipoDocumentoID");
                OnTipoDocumentoIDChanged();
            }
        }
        private global::System.String _TipoDocumentoID;
        partial void OnTipoDocumentoIDChanging(global::System.String value);
        partial void OnTipoDocumentoIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroDI
        {
            get
            {
                return _NumeroDI;
            }
            set
            {
                OnNumeroDIChanging(value);
                ReportPropertyChanging("NumeroDI");
                _NumeroDI = StructuralObject.SetValidValue(value, true, "NumeroDI");
                ReportPropertyChanged("NumeroDI");
                OnNumeroDIChanged();
            }
        }
        private global::System.String _NumeroDI;
        partial void OnNumeroDIChanging(global::System.String value);
        partial void OnNumeroDIChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroContribuinte
        {
            get
            {
                return _NumeroContribuinte;
            }
            set
            {
                OnNumeroContribuinteChanging(value);
                ReportPropertyChanging("NumeroContribuinte");
                _NumeroContribuinte = StructuralObject.SetValidValue(value, true, "NumeroContribuinte");
                ReportPropertyChanged("NumeroContribuinte");
                OnNumeroContribuinteChanged();
            }
        }
        private global::System.String _NumeroContribuinte;
        partial void OnNumeroContribuinteChanging(global::System.String value);
        partial void OnNumeroContribuinteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sexo
        {
            get
            {
                return _Sexo;
            }
            set
            {
                OnSexoChanging(value);
                ReportPropertyChanging("Sexo");
                _Sexo = StructuralObject.SetValidValue(value, true, "Sexo");
                ReportPropertyChanged("Sexo");
                OnSexoChanged();
            }
        }
        private global::System.String _Sexo;
        partial void OnSexoChanging(global::System.String value);
        partial void OnSexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EstadoCivil
        {
            get
            {
                return _EstadoCivil;
            }
            set
            {
                OnEstadoCivilChanging(value);
                ReportPropertyChanging("EstadoCivil");
                _EstadoCivil = StructuralObject.SetValidValue(value, true, "EstadoCivil");
                ReportPropertyChanged("EstadoCivil");
                OnEstadoCivilChanged();
            }
        }
        private global::System.String _EstadoCivil;
        partial void OnEstadoCivilChanging(global::System.String value);
        partial void OnEstadoCivilChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String HabilitacaoActual
        {
            get
            {
                return _HabilitacaoActual;
            }
            set
            {
                OnHabilitacaoActualChanging(value);
                ReportPropertyChanging("HabilitacaoActual");
                _HabilitacaoActual = StructuralObject.SetValidValue(value, true, "HabilitacaoActual");
                ReportPropertyChanged("HabilitacaoActual");
                OnHabilitacaoActualChanged();
            }
        }
        private global::System.String _HabilitacaoActual;
        partial void OnHabilitacaoActualChanging(global::System.String value);
        partial void OnHabilitacaoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MoradaUM
        {
            get
            {
                return _MoradaUM;
            }
            set
            {
                OnMoradaUMChanging(value);
                ReportPropertyChanging("MoradaUM");
                _MoradaUM = StructuralObject.SetValidValue(value, true, "MoradaUM");
                ReportPropertyChanged("MoradaUM");
                OnMoradaUMChanged();
            }
        }
        private global::System.String _MoradaUM;
        partial void OnMoradaUMChanging(global::System.String value);
        partial void OnMoradaUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostalUM
        {
            get
            {
                return _CodigoPostalUM;
            }
            set
            {
                OnCodigoPostalUMChanging(value);
                ReportPropertyChanging("CodigoPostalUM");
                _CodigoPostalUM = StructuralObject.SetValidValue(value, true, "CodigoPostalUM");
                ReportPropertyChanged("CodigoPostalUM");
                OnCodigoPostalUMChanged();
            }
        }
        private global::System.String _CodigoPostalUM;
        partial void OnCodigoPostalUMChanging(global::System.String value);
        partial void OnCodigoPostalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneUM
        {
            get
            {
                return _TelefoneUM;
            }
            set
            {
                OnTelefoneUMChanging(value);
                ReportPropertyChanging("TelefoneUM");
                _TelefoneUM = StructuralObject.SetValidValue(value, true, "TelefoneUM");
                ReportPropertyChanged("TelefoneUM");
                OnTelefoneUMChanged();
            }
        }
        private global::System.String _TelefoneUM;
        partial void OnTelefoneUMChanging(global::System.String value);
        partial void OnTelefoneUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneUM2
        {
            get
            {
                return _TelefoneUM2;
            }
            set
            {
                OnTelefoneUM2Changing(value);
                ReportPropertyChanging("TelefoneUM2");
                _TelefoneUM2 = StructuralObject.SetValidValue(value, true, "TelefoneUM2");
                ReportPropertyChanged("TelefoneUM2");
                OnTelefoneUM2Changed();
            }
        }
        private global::System.String _TelefoneUM2;
        partial void OnTelefoneUM2Changing(global::System.String value);
        partial void OnTelefoneUM2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FaxUM
        {
            get
            {
                return _FaxUM;
            }
            set
            {
                OnFaxUMChanging(value);
                ReportPropertyChanging("FaxUM");
                _FaxUM = StructuralObject.SetValidValue(value, true, "FaxUM");
                ReportPropertyChanged("FaxUM");
                OnFaxUMChanged();
            }
        }
        private global::System.String _FaxUM;
        partial void OnFaxUMChanging(global::System.String value);
        partial void OnFaxUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailUM
        {
            get
            {
                return _EmailUM;
            }
            set
            {
                OnEmailUMChanging(value);
                ReportPropertyChanging("EmailUM");
                _EmailUM = StructuralObject.SetValidValue(value, true, "EmailUM");
                ReportPropertyChanged("EmailUM");
                OnEmailUMChanged();
            }
        }
        private global::System.String _EmailUM;
        partial void OnEmailUMChanging(global::System.String value);
        partial void OnEmailUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URLPessoalUM
        {
            get
            {
                return _URLPessoalUM;
            }
            set
            {
                OnURLPessoalUMChanging(value);
                ReportPropertyChanging("URLPessoalUM");
                _URLPessoalUM = StructuralObject.SetValidValue(value, true, "URLPessoalUM");
                ReportPropertyChanged("URLPessoalUM");
                OnURLPessoalUMChanged();
            }
        }
        private global::System.String _URLPessoalUM;
        partial void OnURLPessoalUMChanging(global::System.String value);
        partial void OnURLPessoalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, true, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.String _Activo;
        partial void OnActivoChanging(global::System.String value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PessoalUM
        {
            get
            {
                return _PessoalUM;
            }
            set
            {
                OnPessoalUMChanging(value);
                ReportPropertyChanging("PessoalUM");
                _PessoalUM = StructuralObject.SetValidValue(value, true, "PessoalUM");
                ReportPropertyChanged("PessoalUM");
                OnPessoalUMChanged();
            }
        }
        private global::System.String _PessoalUM;
        partial void OnPessoalUMChanging(global::System.String value);
        partial void OnPessoalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NContratoPrincipal
        {
            get
            {
                return _NContratoPrincipal;
            }
            set
            {
                OnNContratoPrincipalChanging(value);
                ReportPropertyChanging("NContratoPrincipal");
                _NContratoPrincipal = StructuralObject.SetValidValue(value, "NContratoPrincipal");
                ReportPropertyChanged("NContratoPrincipal");
                OnNContratoPrincipalChanged();
            }
        }
        private Nullable<global::System.Int32> _NContratoPrincipal;
        partial void OnNContratoPrincipalChanging(Nullable<global::System.Int32> value);
        partial void OnNContratoPrincipalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NContrato
        {
            get
            {
                return _NContrato;
            }
            set
            {
                OnNContratoChanging(value);
                ReportPropertyChanging("NContrato");
                _NContrato = StructuralObject.SetValidValue(value, "NContrato");
                ReportPropertyChanged("NContrato");
                OnNContratoChanged();
            }
        }
        private Nullable<global::System.Int32> _NContrato;
        partial void OnNContratoChanging(Nullable<global::System.Int32> value);
        partial void OnNContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SituacaoContrato
        {
            get
            {
                return _SituacaoContrato;
            }
            set
            {
                OnSituacaoContratoChanging(value);
                ReportPropertyChanging("SituacaoContrato");
                _SituacaoContrato = StructuralObject.SetValidValue(value, true, "SituacaoContrato");
                ReportPropertyChanged("SituacaoContrato");
                OnSituacaoContratoChanged();
            }
        }
        private global::System.String _SituacaoContrato;
        partial void OnSituacaoContratoChanging(global::System.String value);
        partial void OnSituacaoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataSituacaoContrato
        {
            get
            {
                return _DataSituacaoContrato;
            }
            set
            {
                OnDataSituacaoContratoChanging(value);
                ReportPropertyChanging("DataSituacaoContrato");
                _DataSituacaoContrato = StructuralObject.SetValidValue(value, "DataSituacaoContrato");
                ReportPropertyChanged("DataSituacaoContrato");
                OnDataSituacaoContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataSituacaoContrato;
        partial void OnDataSituacaoContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataSituacaoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                OnCodigoUnidadeChanging(value);
                ReportPropertyChanging("CodigoUnidade");
                _CodigoUnidade = StructuralObject.SetValidValue(value, true, "CodigoUnidade");
                ReportPropertyChanged("CodigoUnidade");
                OnCodigoUnidadeChanged();
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LocalTrabalho
        {
            get
            {
                return _LocalTrabalho;
            }
            set
            {
                OnLocalTrabalhoChanging(value);
                ReportPropertyChanging("LocalTrabalho");
                _LocalTrabalho = StructuralObject.SetValidValue(value, true, "LocalTrabalho");
                ReportPropertyChanged("LocalTrabalho");
                OnLocalTrabalhoChanged();
            }
        }
        private global::System.String _LocalTrabalho;
        partial void OnLocalTrabalhoChanging(global::System.String value);
        partial void OnLocalTrabalhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataInicioFuncoes
        {
            get
            {
                return _DataInicioFuncoes;
            }
            set
            {
                OnDataInicioFuncoesChanging(value);
                ReportPropertyChanging("DataInicioFuncoes");
                _DataInicioFuncoes = StructuralObject.SetValidValue(value, "DataInicioFuncoes");
                ReportPropertyChanged("DataInicioFuncoes");
                OnDataInicioFuncoesChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataInicioFuncoes;
        partial void OnDataInicioFuncoesChanging(Nullable<global::System.DateTime> value);
        partial void OnDataInicioFuncoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataFimContrato
        {
            get
            {
                return _DataFimContrato;
            }
            set
            {
                OnDataFimContratoChanging(value);
                ReportPropertyChanging("DataFimContrato");
                _DataFimContrato = StructuralObject.SetValidValue(value, "DataFimContrato");
                ReportPropertyChanged("DataFimContrato");
                OnDataFimContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataFimContrato;
        partial void OnDataFimContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataFimContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRescisao
        {
            get
            {
                return _DataRescisao;
            }
            set
            {
                OnDataRescisaoChanging(value);
                ReportPropertyChanging("DataRescisao");
                _DataRescisao = StructuralObject.SetValidValue(value, "DataRescisao");
                ReportPropertyChanged("DataRescisao");
                OnDataRescisaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRescisao;
        partial void OnDataRescisaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRescisaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoCategoria
        {
            get
            {
                return _CodigoCategoria;
            }
            set
            {
                OnCodigoCategoriaChanging(value);
                ReportPropertyChanging("CodigoCategoria");
                _CodigoCategoria = StructuralObject.SetValidValue(value, true, "CodigoCategoria");
                ReportPropertyChanged("CodigoCategoria");
                OnCodigoCategoriaChanged();
            }
        }
        private global::System.String _CodigoCategoria;
        partial void OnCodigoCategoriaChanging(global::System.String value);
        partial void OnCodigoCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataEntradaCategoria
        {
            get
            {
                return _DataEntradaCategoria;
            }
            set
            {
                OnDataEntradaCategoriaChanging(value);
                ReportPropertyChanging("DataEntradaCategoria");
                _DataEntradaCategoria = StructuralObject.SetValidValue(value, "DataEntradaCategoria");
                ReportPropertyChanged("DataEntradaCategoria");
                OnDataEntradaCategoriaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataEntradaCategoria;
        partial void OnDataEntradaCategoriaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataEntradaCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TemNivelCategorial
        {
            get
            {
                return _TemNivelCategorial;
            }
            set
            {
                OnTemNivelCategorialChanging(value);
                ReportPropertyChanging("TemNivelCategorial");
                _TemNivelCategorial = StructuralObject.SetValidValue(value, true, "TemNivelCategorial");
                ReportPropertyChanged("TemNivelCategorial");
                OnTemNivelCategorialChanged();
            }
        }
        private global::System.String _TemNivelCategorial;
        partial void OnTemNivelCategorialChanging(global::System.String value);
        partial void OnTemNivelCategorialChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NivelCategoria
        {
            get
            {
                return _NivelCategoria;
            }
            set
            {
                OnNivelCategoriaChanging(value);
                ReportPropertyChanging("NivelCategoria");
                _NivelCategoria = StructuralObject.SetValidValue(value, "NivelCategoria");
                ReportPropertyChanged("NivelCategoria");
                OnNivelCategoriaChanged();
            }
        }
        private Nullable<global::System.Int32> _NivelCategoria;
        partial void OnNivelCategoriaChanging(Nullable<global::System.Int32> value);
        partial void OnNivelCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ECarreiraGeral
        {
            get
            {
                return _ECarreiraGeral;
            }
            set
            {
                OnECarreiraGeralChanging(value);
                ReportPropertyChanging("ECarreiraGeral");
                _ECarreiraGeral = StructuralObject.SetValidValue(value, true, "ECarreiraGeral");
                ReportPropertyChanged("ECarreiraGeral");
                OnECarreiraGeralChanged();
            }
        }
        private global::System.String _ECarreiraGeral;
        partial void OnECarreiraGeralChanging(global::System.String value);
        partial void OnECarreiraGeralChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> PercentagemExclusividade
        {
            get
            {
                return _PercentagemExclusividade;
            }
            set
            {
                OnPercentagemExclusividadeChanging(value);
                ReportPropertyChanging("PercentagemExclusividade");
                _PercentagemExclusividade = StructuralObject.SetValidValue(value, "PercentagemExclusividade");
                ReportPropertyChanged("PercentagemExclusividade");
                OnPercentagemExclusividadeChanged();
            }
        }
        private Nullable<global::System.Decimal> _PercentagemExclusividade;
        partial void OnPercentagemExclusividadeChanging(Nullable<global::System.Decimal> value);
        partial void OnPercentagemExclusividadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Exclusividade
        {
            get
            {
                return _Exclusividade;
            }
            set
            {
                OnExclusividadeChanging(value);
                ReportPropertyChanging("Exclusividade");
                _Exclusividade = StructuralObject.SetValidValue(value, true, "Exclusividade");
                ReportPropertyChanged("Exclusividade");
                OnExclusividadeChanged();
            }
        }
        private global::System.String _Exclusividade;
        partial void OnExclusividadeChanging(global::System.String value);
        partial void OnExclusividadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataExclusividade
        {
            get
            {
                return _DataExclusividade;
            }
            set
            {
                OnDataExclusividadeChanging(value);
                ReportPropertyChanging("DataExclusividade");
                _DataExclusividade = StructuralObject.SetValidValue(value, "DataExclusividade");
                ReportPropertyChanged("DataExclusividade");
                OnDataExclusividadeChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataExclusividade;
        partial void OnDataExclusividadeChanging(Nullable<global::System.DateTime> value);
        partial void OnDataExclusividadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoCargo
        {
            get
            {
                return _CodigoCargo;
            }
            set
            {
                OnCodigoCargoChanging(value);
                ReportPropertyChanging("CodigoCargo");
                _CodigoCargo = StructuralObject.SetValidValue(value, true, "CodigoCargo");
                ReportPropertyChanged("CodigoCargo");
                OnCodigoCargoChanged();
            }
        }
        private global::System.String _CodigoCargo;
        partial void OnCodigoCargoChanging(global::System.String value);
        partial void OnCodigoCargoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EBolseiro
        {
            get
            {
                return _EBolseiro;
            }
            set
            {
                OnEBolseiroChanging(value);
                ReportPropertyChanging("EBolseiro");
                _EBolseiro = StructuralObject.SetValidValue(value, true, "EBolseiro");
                ReportPropertyChanged("EBolseiro");
                OnEBolseiroChanged();
            }
        }
        private global::System.String _EBolseiro;
        partial void OnEBolseiroChanging(global::System.String value);
        partial void OnEBolseiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ContratoActivo
        {
            get
            {
                return _ContratoActivo;
            }
            set
            {
                OnContratoActivoChanging(value);
                ReportPropertyChanging("ContratoActivo");
                _ContratoActivo = StructuralObject.SetValidValue(value, true, "ContratoActivo");
                ReportPropertyChanged("ContratoActivo");
                OnContratoActivoChanged();
            }
        }
        private global::System.String _ContratoActivo;
        partial void OnContratoActivoChanging(global::System.String value);
        partial void OnContratoActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PessoalUMinho
        {
            get
            {
                return _PessoalUMinho;
            }
            set
            {
                OnPessoalUMinhoChanging(value);
                ReportPropertyChanging("PessoalUMinho");
                _PessoalUMinho = StructuralObject.SetValidValue(value, true, "PessoalUMinho");
                ReportPropertyChanged("PessoalUMinho");
                OnPessoalUMinhoChanged();
            }
        }
        private global::System.String _PessoalUMinho;
        partial void OnPessoalUMinhoChanging(global::System.String value);
        partial void OnPessoalUMinhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoHabilitacaoActual
        {
            get
            {
                return _CodigoHabilitacaoActual;
            }
            set
            {
                OnCodigoHabilitacaoActualChanging(value);
                ReportPropertyChanging("CodigoHabilitacaoActual");
                _CodigoHabilitacaoActual = StructuralObject.SetValidValue(value, true, "CodigoHabilitacaoActual");
                ReportPropertyChanged("CodigoHabilitacaoActual");
                OnCodigoHabilitacaoActualChanged();
            }
        }
        private global::System.String _CodigoHabilitacaoActual;
        partial void OnCodigoHabilitacaoActualChanging(global::System.String value);
        partial void OnCodigoHabilitacaoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoTipoFuncionario
        {
            get
            {
                return _CodigoTipoFuncionario;
            }
            set
            {
                OnCodigoTipoFuncionarioChanging(value);
                ReportPropertyChanging("CodigoTipoFuncionario");
                _CodigoTipoFuncionario = StructuralObject.SetValidValue(value, true, "CodigoTipoFuncionario");
                ReportPropertyChanged("CodigoTipoFuncionario");
                OnCodigoTipoFuncionarioChanged();
            }
        }
        private global::System.String _CodigoTipoFuncionario;
        partial void OnCodigoTipoFuncionarioChanging(global::System.String value);
        partial void OnCodigoTipoFuncionarioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String RegimePrivado
        {
            get
            {
                return _RegimePrivado;
            }
            set
            {
                OnRegimePrivadoChanging(value);
                ReportPropertyChanging("RegimePrivado");
                _RegimePrivado = StructuralObject.SetValidValue(value, true, "RegimePrivado");
                ReportPropertyChanged("RegimePrivado");
                OnRegimePrivadoChanged();
            }
        }
        private global::System.String _RegimePrivado;
        partial void OnRegimePrivadoChanging(global::System.String value);
        partial void OnRegimePrivadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoCategoria
        {
            get
            {
                return _DescricaoCategoria;
            }
            set
            {
                if (_DescricaoCategoria != value)
                {
                    OnDescricaoCategoriaChanging(value);
                    ReportPropertyChanging("DescricaoCategoria");
                    _DescricaoCategoria = StructuralObject.SetValidValue(value, false, "DescricaoCategoria");
                    ReportPropertyChanged("DescricaoCategoria");
                    OnDescricaoCategoriaChanged();
                }
            }
        }
        private global::System.String _DescricaoCategoria;
        partial void OnDescricaoCategoriaChanging(global::System.String value);
        partial void OnDescricaoCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CarreiraDesignacao
        {
            get
            {
                return _CarreiraDesignacao;
            }
            set
            {
                OnCarreiraDesignacaoChanging(value);
                ReportPropertyChanging("CarreiraDesignacao");
                _CarreiraDesignacao = StructuralObject.SetValidValue(value, true, "CarreiraDesignacao");
                ReportPropertyChanged("CarreiraDesignacao");
                OnCarreiraDesignacaoChanged();
            }
        }
        private global::System.String _CarreiraDesignacao;
        partial void OnCarreiraDesignacaoChanging(global::System.String value);
        partial void OnCarreiraDesignacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Login
        {
            get
            {
                return _Login;
            }
            set
            {
                if (_Login != value)
                {
                    OnLoginChanging(value);
                    ReportPropertyChanging("Login");
                    _Login = StructuralObject.SetValidValue(value, false, "Login");
                    ReportPropertyChanged("Login");
                    OnLoginChanged();
                }
            }
        }
        private global::System.String _Login;
        partial void OnLoginChanging(global::System.String value);
        partial void OnLoginChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VW_Funcionarios")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VW_Funcionarios : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VW_Funcionarios object.
        /// </summary>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="autorizaDivulgarDataNascimento">Initial value of the AutorizaDivulgarDataNascimento property.</param>
        /// <param name="nacionalidade">Initial value of the Nacionalidade property.</param>
        public static VW_Funcionarios CreateVW_Funcionarios(global::System.String nMecanografico, global::System.String nome, global::System.String autorizaDivulgarDataNascimento, global::System.String nacionalidade)
        {
            VW_Funcionarios vW_Funcionarios = new VW_Funcionarios();
            vW_Funcionarios.NMecanografico = nMecanografico;
            vW_Funcionarios.Nome = nome;
            vW_Funcionarios.AutorizaDivulgarDataNascimento = autorizaDivulgarDataNascimento;
            vW_Funcionarios.Nacionalidade = nacionalidade;
            return vW_Funcionarios;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                if (_NMecanografico != value)
                {
                    OnNMecanograficoChanging(value);
                    ReportPropertyChanging("NMecanografico");
                    _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                    ReportPropertyChanged("NMecanografico");
                    OnNMecanograficoChanged();
                }
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String BDOrigem
        {
            get
            {
                return _BDOrigem;
            }
            set
            {
                OnBDOrigemChanging(value);
                ReportPropertyChanging("BDOrigem");
                _BDOrigem = StructuralObject.SetValidValue(value, true, "BDOrigem");
                ReportPropertyChanged("BDOrigem");
                OnBDOrigemChanged();
            }
        }
        private global::System.String _BDOrigem;
        partial void OnBDOrigemChanging(global::System.String value);
        partial void OnBDOrigemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeAbreviado
        {
            get
            {
                return _NomeAbreviado;
            }
            set
            {
                OnNomeAbreviadoChanging(value);
                ReportPropertyChanging("NomeAbreviado");
                _NomeAbreviado = StructuralObject.SetValidValue(value, true, "NomeAbreviado");
                ReportPropertyChanged("NomeAbreviado");
                OnNomeAbreviadoChanged();
            }
        }
        private global::System.String _NomeAbreviado;
        partial void OnNomeAbreviadoChanging(global::System.String value);
        partial void OnNomeAbreviadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataNascimento
        {
            get
            {
                return _DataNascimento;
            }
            set
            {
                OnDataNascimentoChanging(value);
                ReportPropertyChanging("DataNascimento");
                _DataNascimento = StructuralObject.SetValidValue(value, "DataNascimento");
                ReportPropertyChanged("DataNascimento");
                OnDataNascimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataNascimento;
        partial void OnDataNascimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String AutorizaDivulgarDataNascimento
        {
            get
            {
                return _AutorizaDivulgarDataNascimento;
            }
            set
            {
                OnAutorizaDivulgarDataNascimentoChanging(value);
                ReportPropertyChanging("AutorizaDivulgarDataNascimento");
                _AutorizaDivulgarDataNascimento = StructuralObject.SetValidValue(value, false, "AutorizaDivulgarDataNascimento");
                ReportPropertyChanged("AutorizaDivulgarDataNascimento");
                OnAutorizaDivulgarDataNascimentoChanged();
            }
        }
        private global::System.String _AutorizaDivulgarDataNascimento;
        partial void OnAutorizaDivulgarDataNascimentoChanging(global::System.String value);
        partial void OnAutorizaDivulgarDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoDocumentoID
        {
            get
            {
                return _TipoDocumentoID;
            }
            set
            {
                OnTipoDocumentoIDChanging(value);
                ReportPropertyChanging("TipoDocumentoID");
                _TipoDocumentoID = StructuralObject.SetValidValue(value, true, "TipoDocumentoID");
                ReportPropertyChanged("TipoDocumentoID");
                OnTipoDocumentoIDChanged();
            }
        }
        private global::System.String _TipoDocumentoID;
        partial void OnTipoDocumentoIDChanging(global::System.String value);
        partial void OnTipoDocumentoIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroDI
        {
            get
            {
                return _NumeroDI;
            }
            set
            {
                OnNumeroDIChanging(value);
                ReportPropertyChanging("NumeroDI");
                _NumeroDI = StructuralObject.SetValidValue(value, true, "NumeroDI");
                ReportPropertyChanged("NumeroDI");
                OnNumeroDIChanged();
            }
        }
        private global::System.String _NumeroDI;
        partial void OnNumeroDIChanging(global::System.String value);
        partial void OnNumeroDIChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroContribuinte
        {
            get
            {
                return _NumeroContribuinte;
            }
            set
            {
                OnNumeroContribuinteChanging(value);
                ReportPropertyChanging("NumeroContribuinte");
                _NumeroContribuinte = StructuralObject.SetValidValue(value, true, "NumeroContribuinte");
                ReportPropertyChanged("NumeroContribuinte");
                OnNumeroContribuinteChanged();
            }
        }
        private global::System.String _NumeroContribuinte;
        partial void OnNumeroContribuinteChanging(global::System.String value);
        partial void OnNumeroContribuinteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sexo
        {
            get
            {
                return _Sexo;
            }
            set
            {
                OnSexoChanging(value);
                ReportPropertyChanging("Sexo");
                _Sexo = StructuralObject.SetValidValue(value, true, "Sexo");
                ReportPropertyChanged("Sexo");
                OnSexoChanged();
            }
        }
        private global::System.String _Sexo;
        partial void OnSexoChanging(global::System.String value);
        partial void OnSexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EstadoCivil
        {
            get
            {
                return _EstadoCivil;
            }
            set
            {
                OnEstadoCivilChanging(value);
                ReportPropertyChanging("EstadoCivil");
                _EstadoCivil = StructuralObject.SetValidValue(value, true, "EstadoCivil");
                ReportPropertyChanged("EstadoCivil");
                OnEstadoCivilChanged();
            }
        }
        private global::System.String _EstadoCivil;
        partial void OnEstadoCivilChanging(global::System.String value);
        partial void OnEstadoCivilChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String HabilitacaoActual
        {
            get
            {
                return _HabilitacaoActual;
            }
            set
            {
                OnHabilitacaoActualChanging(value);
                ReportPropertyChanging("HabilitacaoActual");
                _HabilitacaoActual = StructuralObject.SetValidValue(value, true, "HabilitacaoActual");
                ReportPropertyChanged("HabilitacaoActual");
                OnHabilitacaoActualChanged();
            }
        }
        private global::System.String _HabilitacaoActual;
        partial void OnHabilitacaoActualChanging(global::System.String value);
        partial void OnHabilitacaoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MoradaUM
        {
            get
            {
                return _MoradaUM;
            }
            set
            {
                OnMoradaUMChanging(value);
                ReportPropertyChanging("MoradaUM");
                _MoradaUM = StructuralObject.SetValidValue(value, true, "MoradaUM");
                ReportPropertyChanged("MoradaUM");
                OnMoradaUMChanged();
            }
        }
        private global::System.String _MoradaUM;
        partial void OnMoradaUMChanging(global::System.String value);
        partial void OnMoradaUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostalUM
        {
            get
            {
                return _CodigoPostalUM;
            }
            set
            {
                OnCodigoPostalUMChanging(value);
                ReportPropertyChanging("CodigoPostalUM");
                _CodigoPostalUM = StructuralObject.SetValidValue(value, true, "CodigoPostalUM");
                ReportPropertyChanged("CodigoPostalUM");
                OnCodigoPostalUMChanged();
            }
        }
        private global::System.String _CodigoPostalUM;
        partial void OnCodigoPostalUMChanging(global::System.String value);
        partial void OnCodigoPostalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneUM
        {
            get
            {
                return _TelefoneUM;
            }
            set
            {
                OnTelefoneUMChanging(value);
                ReportPropertyChanging("TelefoneUM");
                _TelefoneUM = StructuralObject.SetValidValue(value, true, "TelefoneUM");
                ReportPropertyChanged("TelefoneUM");
                OnTelefoneUMChanged();
            }
        }
        private global::System.String _TelefoneUM;
        partial void OnTelefoneUMChanging(global::System.String value);
        partial void OnTelefoneUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneUM2
        {
            get
            {
                return _TelefoneUM2;
            }
            set
            {
                OnTelefoneUM2Changing(value);
                ReportPropertyChanging("TelefoneUM2");
                _TelefoneUM2 = StructuralObject.SetValidValue(value, true, "TelefoneUM2");
                ReportPropertyChanged("TelefoneUM2");
                OnTelefoneUM2Changed();
            }
        }
        private global::System.String _TelefoneUM2;
        partial void OnTelefoneUM2Changing(global::System.String value);
        partial void OnTelefoneUM2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FaxUM
        {
            get
            {
                return _FaxUM;
            }
            set
            {
                OnFaxUMChanging(value);
                ReportPropertyChanging("FaxUM");
                _FaxUM = StructuralObject.SetValidValue(value, true, "FaxUM");
                ReportPropertyChanged("FaxUM");
                OnFaxUMChanged();
            }
        }
        private global::System.String _FaxUM;
        partial void OnFaxUMChanging(global::System.String value);
        partial void OnFaxUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailUM
        {
            get
            {
                return _EmailUM;
            }
            set
            {
                OnEmailUMChanging(value);
                ReportPropertyChanging("EmailUM");
                _EmailUM = StructuralObject.SetValidValue(value, true, "EmailUM");
                ReportPropertyChanged("EmailUM");
                OnEmailUMChanged();
            }
        }
        private global::System.String _EmailUM;
        partial void OnEmailUMChanging(global::System.String value);
        partial void OnEmailUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URLPessoalUM
        {
            get
            {
                return _URLPessoalUM;
            }
            set
            {
                OnURLPessoalUMChanging(value);
                ReportPropertyChanging("URLPessoalUM");
                _URLPessoalUM = StructuralObject.SetValidValue(value, true, "URLPessoalUM");
                ReportPropertyChanged("URLPessoalUM");
                OnURLPessoalUMChanged();
            }
        }
        private global::System.String _URLPessoalUM;
        partial void OnURLPessoalUMChanging(global::System.String value);
        partial void OnURLPessoalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, true, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.String _Activo;
        partial void OnActivoChanging(global::System.String value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PessoalUM
        {
            get
            {
                return _PessoalUM;
            }
            set
            {
                OnPessoalUMChanging(value);
                ReportPropertyChanging("PessoalUM");
                _PessoalUM = StructuralObject.SetValidValue(value, true, "PessoalUM");
                ReportPropertyChanged("PessoalUM");
                OnPessoalUMChanged();
            }
        }
        private global::System.String _PessoalUM;
        partial void OnPessoalUMChanging(global::System.String value);
        partial void OnPessoalUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomePai
        {
            get
            {
                return _NomePai;
            }
            set
            {
                OnNomePaiChanging(value);
                ReportPropertyChanging("NomePai");
                _NomePai = StructuralObject.SetValidValue(value, true, "NomePai");
                ReportPropertyChanged("NomePai");
                OnNomePaiChanged();
            }
        }
        private global::System.String _NomePai;
        partial void OnNomePaiChanging(global::System.String value);
        partial void OnNomePaiChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeMae
        {
            get
            {
                return _NomeMae;
            }
            set
            {
                OnNomeMaeChanging(value);
                ReportPropertyChanging("NomeMae");
                _NomeMae = StructuralObject.SetValidValue(value, true, "NomeMae");
                ReportPropertyChanged("NomeMae");
                OnNomeMaeChanged();
            }
        }
        private global::System.String _NomeMae;
        partial void OnNomeMaeChanging(global::System.String value);
        partial void OnNomeMaeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> NContratoPrincipal
        {
            get
            {
                return _NContratoPrincipal;
            }
            set
            {
                OnNContratoPrincipalChanging(value);
                ReportPropertyChanging("NContratoPrincipal");
                _NContratoPrincipal = StructuralObject.SetValidValue(value, "NContratoPrincipal");
                ReportPropertyChanged("NContratoPrincipal");
                OnNContratoPrincipalChanged();
            }
        }
        private Nullable<global::System.Int32> _NContratoPrincipal;
        partial void OnNContratoPrincipalChanging(Nullable<global::System.Int32> value);
        partial void OnNContratoPrincipalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String MoradaResidencia
        {
            get
            {
                return _MoradaResidencia;
            }
            set
            {
                OnMoradaResidenciaChanging(value);
                ReportPropertyChanging("MoradaResidencia");
                _MoradaResidencia = StructuralObject.SetValidValue(value, true, "MoradaResidencia");
                ReportPropertyChanged("MoradaResidencia");
                OnMoradaResidenciaChanged();
            }
        }
        private global::System.String _MoradaResidencia;
        partial void OnMoradaResidenciaChanging(global::System.String value);
        partial void OnMoradaResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostalResidencia
        {
            get
            {
                return _CodigoPostalResidencia;
            }
            set
            {
                OnCodigoPostalResidenciaChanging(value);
                ReportPropertyChanging("CodigoPostalResidencia");
                _CodigoPostalResidencia = StructuralObject.SetValidValue(value, true, "CodigoPostalResidencia");
                ReportPropertyChanged("CodigoPostalResidencia");
                OnCodigoPostalResidenciaChanged();
            }
        }
        private global::System.String _CodigoPostalResidencia;
        partial void OnCodigoPostalResidenciaChanging(global::System.String value);
        partial void OnCodigoPostalResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nacionalidade
        {
            get
            {
                return _Nacionalidade;
            }
            set
            {
                OnNacionalidadeChanging(value);
                ReportPropertyChanging("Nacionalidade");
                _Nacionalidade = StructuralObject.SetValidValue(value, false, "Nacionalidade");
                ReportPropertyChanged("Nacionalidade");
                OnNacionalidadeChanged();
            }
        }
        private global::System.String _Nacionalidade;
        partial void OnNacionalidadeChanging(global::System.String value);
        partial void OnNacionalidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataValidadeDI
        {
            get
            {
                return _DataValidadeDI;
            }
            set
            {
                OnDataValidadeDIChanging(value);
                ReportPropertyChanging("DataValidadeDI");
                _DataValidadeDI = StructuralObject.SetValidValue(value, "DataValidadeDI");
                ReportPropertyChanged("DataValidadeDI");
                OnDataValidadeDIChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataValidadeDI;
        partial void OnDataValidadeDIChanging(Nullable<global::System.DateTime> value);
        partial void OnDataValidadeDIChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoDistritoResidencia
        {
            get
            {
                return _CodigoDistritoResidencia;
            }
            set
            {
                OnCodigoDistritoResidenciaChanging(value);
                ReportPropertyChanging("CodigoDistritoResidencia");
                _CodigoDistritoResidencia = StructuralObject.SetValidValue(value, true, "CodigoDistritoResidencia");
                ReportPropertyChanged("CodigoDistritoResidencia");
                OnCodigoDistritoResidenciaChanged();
            }
        }
        private global::System.String _CodigoDistritoResidencia;
        partial void OnCodigoDistritoResidenciaChanging(global::System.String value);
        partial void OnCodigoDistritoResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoFreguesiaResidencia
        {
            get
            {
                return _CodigoFreguesiaResidencia;
            }
            set
            {
                OnCodigoFreguesiaResidenciaChanging(value);
                ReportPropertyChanging("CodigoFreguesiaResidencia");
                _CodigoFreguesiaResidencia = StructuralObject.SetValidValue(value, true, "CodigoFreguesiaResidencia");
                ReportPropertyChanged("CodigoFreguesiaResidencia");
                OnCodigoFreguesiaResidenciaChanged();
            }
        }
        private global::System.String _CodigoFreguesiaResidencia;
        partial void OnCodigoFreguesiaResidenciaChanging(global::System.String value);
        partial void OnCodigoFreguesiaResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoConcelhoResidencia
        {
            get
            {
                return _CodigoConcelhoResidencia;
            }
            set
            {
                OnCodigoConcelhoResidenciaChanging(value);
                ReportPropertyChanging("CodigoConcelhoResidencia");
                _CodigoConcelhoResidencia = StructuralObject.SetValidValue(value, true, "CodigoConcelhoResidencia");
                ReportPropertyChanged("CodigoConcelhoResidencia");
                OnCodigoConcelhoResidenciaChanged();
            }
        }
        private global::System.String _CodigoConcelhoResidencia;
        partial void OnCodigoConcelhoResidenciaChanging(global::System.String value);
        partial void OnCodigoConcelhoResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostalResidencia2
        {
            get
            {
                return _CodigoPostalResidencia2;
            }
            set
            {
                OnCodigoPostalResidencia2Changing(value);
                ReportPropertyChanging("CodigoPostalResidencia2");
                _CodigoPostalResidencia2 = StructuralObject.SetValidValue(value, true, "CodigoPostalResidencia2");
                ReportPropertyChanged("CodigoPostalResidencia2");
                OnCodigoPostalResidencia2Changed();
            }
        }
        private global::System.String _CodigoPostalResidencia2;
        partial void OnCodigoPostalResidencia2Changing(global::System.String value);
        partial void OnCodigoPostalResidencia2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPaisResidencia
        {
            get
            {
                return _CodigoPaisResidencia;
            }
            set
            {
                OnCodigoPaisResidenciaChanging(value);
                ReportPropertyChanging("CodigoPaisResidencia");
                _CodigoPaisResidencia = StructuralObject.SetValidValue(value, true, "CodigoPaisResidencia");
                ReportPropertyChanged("CodigoPaisResidencia");
                OnCodigoPaisResidenciaChanged();
            }
        }
        private global::System.String _CodigoPaisResidencia;
        partial void OnCodigoPaisResidenciaChanging(global::System.String value);
        partial void OnCodigoPaisResidenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CheckDigitCC
        {
            get
            {
                return _CheckDigitCC;
            }
            set
            {
                OnCheckDigitCCChanging(value);
                ReportPropertyChanging("CheckDigitCC");
                _CheckDigitCC = StructuralObject.SetValidValue(value, true, "CheckDigitCC");
                ReportPropertyChanged("CheckDigitCC");
                OnCheckDigitCCChanged();
            }
        }
        private global::System.String _CheckDigitCC;
        partial void OnCheckDigitCCChanging(global::System.String value);
        partial void OnCheckDigitCCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DocumentoIDVitalicio
        {
            get
            {
                return _DocumentoIDVitalicio;
            }
            set
            {
                OnDocumentoIDVitalicioChanging(value);
                ReportPropertyChanging("DocumentoIDVitalicio");
                _DocumentoIDVitalicio = StructuralObject.SetValidValue(value, true, "DocumentoIDVitalicio");
                ReportPropertyChanged("DocumentoIDVitalicio");
                OnDocumentoIDVitalicioChanged();
            }
        }
        private global::System.String _DocumentoIDVitalicio;
        partial void OnDocumentoIDVitalicioChanging(global::System.String value);
        partial void OnDocumentoIDVitalicioChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VW_InvestigadoresUnidades")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VW_InvestigadoresUnidades : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VW_InvestigadoresUnidades object.
        /// </summary>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="codigoUnidade">Initial value of the CodigoUnidade property.</param>
        /// <param name="nomeUnidade">Initial value of the NomeUnidade property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="login">Initial value of the Login property.</param>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="descricaoCategoria">Initial value of the DescricaoCategoria property.</param>
        /// <param name="nContrato">Initial value of the NContrato property.</param>
        public static VW_InvestigadoresUnidades CreateVW_InvestigadoresUnidades(global::System.String nome, global::System.String codigoUnidade, global::System.String nomeUnidade, global::System.String sigla, global::System.String login, global::System.String nMecanografico, global::System.String descricaoCategoria, global::System.Int32 nContrato)
        {
            VW_InvestigadoresUnidades vW_InvestigadoresUnidades = new VW_InvestigadoresUnidades();
            vW_InvestigadoresUnidades.Nome = nome;
            vW_InvestigadoresUnidades.CodigoUnidade = codigoUnidade;
            vW_InvestigadoresUnidades.NomeUnidade = nomeUnidade;
            vW_InvestigadoresUnidades.Sigla = sigla;
            vW_InvestigadoresUnidades.Login = login;
            vW_InvestigadoresUnidades.NMecanografico = nMecanografico;
            vW_InvestigadoresUnidades.DescricaoCategoria = descricaoCategoria;
            vW_InvestigadoresUnidades.NContrato = nContrato;
            return vW_InvestigadoresUnidades;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                if (_CodigoUnidade != value)
                {
                    OnCodigoUnidadeChanging(value);
                    ReportPropertyChanging("CodigoUnidade");
                    _CodigoUnidade = StructuralObject.SetValidValue(value, false, "CodigoUnidade");
                    ReportPropertyChanged("CodigoUnidade");
                    OnCodigoUnidadeChanged();
                }
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeUnidade
        {
            get
            {
                return _NomeUnidade;
            }
            set
            {
                OnNomeUnidadeChanging(value);
                ReportPropertyChanging("NomeUnidade");
                _NomeUnidade = StructuralObject.SetValidValue(value, false, "NomeUnidade");
                ReportPropertyChanged("NomeUnidade");
                OnNomeUnidadeChanged();
            }
        }
        private global::System.String _NomeUnidade;
        partial void OnNomeUnidadeChanging(global::System.String value);
        partial void OnNomeUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Login
        {
            get
            {
                return _Login;
            }
            set
            {
                if (_Login != value)
                {
                    OnLoginChanging(value);
                    ReportPropertyChanging("Login");
                    _Login = StructuralObject.SetValidValue(value, false, "Login");
                    ReportPropertyChanged("Login");
                    OnLoginChanged();
                }
            }
        }
        private global::System.String _Login;
        partial void OnLoginChanging(global::System.String value);
        partial void OnLoginChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                OnNMecanograficoChanging(value);
                ReportPropertyChanging("NMecanografico");
                _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                ReportPropertyChanged("NMecanografico");
                OnNMecanograficoChanged();
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoCategoria
        {
            get
            {
                return _CodigoCategoria;
            }
            set
            {
                OnCodigoCategoriaChanging(value);
                ReportPropertyChanging("CodigoCategoria");
                _CodigoCategoria = StructuralObject.SetValidValue(value, true, "CodigoCategoria");
                ReportPropertyChanged("CodigoCategoria");
                OnCodigoCategoriaChanged();
            }
        }
        private global::System.String _CodigoCategoria;
        partial void OnCodigoCategoriaChanging(global::System.String value);
        partial void OnCodigoCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoCategoria
        {
            get
            {
                return _DescricaoCategoria;
            }
            set
            {
                if (_DescricaoCategoria != value)
                {
                    OnDescricaoCategoriaChanging(value);
                    ReportPropertyChanging("DescricaoCategoria");
                    _DescricaoCategoria = StructuralObject.SetValidValue(value, false, "DescricaoCategoria");
                    ReportPropertyChanged("DescricaoCategoria");
                    OnDescricaoCategoriaChanged();
                }
            }
        }
        private global::System.String _DescricaoCategoria;
        partial void OnDescricaoCategoriaChanging(global::System.String value);
        partial void OnDescricaoCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DescricaoHabilitacaoAcademica
        {
            get
            {
                return _DescricaoHabilitacaoAcademica;
            }
            set
            {
                OnDescricaoHabilitacaoAcademicaChanging(value);
                ReportPropertyChanging("DescricaoHabilitacaoAcademica");
                _DescricaoHabilitacaoAcademica = StructuralObject.SetValidValue(value, true, "DescricaoHabilitacaoAcademica");
                ReportPropertyChanged("DescricaoHabilitacaoAcademica");
                OnDescricaoHabilitacaoAcademicaChanged();
            }
        }
        private global::System.String _DescricaoHabilitacaoAcademica;
        partial void OnDescricaoHabilitacaoAcademicaChanging(global::System.String value);
        partial void OnDescricaoHabilitacaoAcademicaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NContrato
        {
            get
            {
                return _NContrato;
            }
            set
            {
                if (_NContrato != value)
                {
                    OnNContratoChanging(value);
                    ReportPropertyChanging("NContrato");
                    _NContrato = StructuralObject.SetValidValue(value, "NContrato");
                    ReportPropertyChanged("NContrato");
                    OnNContratoChanged();
                }
            }
        }
        private global::System.Int32 _NContrato;
        partial void OnNContratoChanging(global::System.Int32 value);
        partial void OnNContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estatuto
        {
            get
            {
                return _Estatuto;
            }
            set
            {
                OnEstatutoChanging(value);
                ReportPropertyChanging("Estatuto");
                _Estatuto = StructuralObject.SetValidValue(value, true, "Estatuto");
                ReportPropertyChanged("Estatuto");
                OnEstatutoChanged();
            }
        }
        private global::System.String _Estatuto;
        partial void OnEstatutoChanging(global::System.String value);
        partial void OnEstatutoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmEntityTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VW_InvestigadoresUnidadesEstatutos")]
    [Serializable()]
    [DataContractAttribute(IsReference=true)]
    public partial class VW_InvestigadoresUnidadesEstatutos : EntityObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VW_InvestigadoresUnidadesEstatutos object.
        /// </summary>
        /// <param name="login">Initial value of the Login property.</param>
        /// <param name="nMecanografico">Initial value of the NMecanografico property.</param>
        /// <param name="codigoUnidade">Initial value of the CodigoUnidade property.</param>
        /// <param name="nContrato">Initial value of the NContrato property.</param>
        /// <param name="estatuto">Initial value of the Estatuto property.</param>
        /// <param name="ordem">Initial value of the Ordem property.</param>
        public static VW_InvestigadoresUnidadesEstatutos CreateVW_InvestigadoresUnidadesEstatutos(global::System.String login, global::System.String nMecanografico, global::System.String codigoUnidade, global::System.Int32 nContrato, global::System.String estatuto, global::System.Int32 ordem)
        {
            VW_InvestigadoresUnidadesEstatutos vW_InvestigadoresUnidadesEstatutos = new VW_InvestigadoresUnidadesEstatutos();
            vW_InvestigadoresUnidadesEstatutos.Login = login;
            vW_InvestigadoresUnidadesEstatutos.NMecanografico = nMecanografico;
            vW_InvestigadoresUnidadesEstatutos.CodigoUnidade = codigoUnidade;
            vW_InvestigadoresUnidadesEstatutos.NContrato = nContrato;
            vW_InvestigadoresUnidadesEstatutos.Estatuto = estatuto;
            vW_InvestigadoresUnidadesEstatutos.Ordem = ordem;
            return vW_InvestigadoresUnidadesEstatutos;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Login
        {
            get
            {
                return _Login;
            }
            set
            {
                if (_Login != value)
                {
                    OnLoginChanging(value);
                    ReportPropertyChanging("Login");
                    _Login = StructuralObject.SetValidValue(value, false, "Login");
                    ReportPropertyChanged("Login");
                    OnLoginChanged();
                }
            }
        }
        private global::System.String _Login;
        partial void OnLoginChanging(global::System.String value);
        partial void OnLoginChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NMecanografico
        {
            get
            {
                return _NMecanografico;
            }
            set
            {
                if (_NMecanografico != value)
                {
                    OnNMecanograficoChanging(value);
                    ReportPropertyChanging("NMecanografico");
                    _NMecanografico = StructuralObject.SetValidValue(value, false, "NMecanografico");
                    ReportPropertyChanged("NMecanografico");
                    OnNMecanograficoChanged();
                }
            }
        }
        private global::System.String _NMecanografico;
        partial void OnNMecanograficoChanging(global::System.String value);
        partial void OnNMecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                if (_CodigoUnidade != value)
                {
                    OnCodigoUnidadeChanging(value);
                    ReportPropertyChanging("CodigoUnidade");
                    _CodigoUnidade = StructuralObject.SetValidValue(value, false, "CodigoUnidade");
                    ReportPropertyChanged("CodigoUnidade");
                    OnCodigoUnidadeChanged();
                }
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 NContrato
        {
            get
            {
                return _NContrato;
            }
            set
            {
                if (_NContrato != value)
                {
                    OnNContratoChanging(value);
                    ReportPropertyChanging("NContrato");
                    _NContrato = StructuralObject.SetValidValue(value, "NContrato");
                    ReportPropertyChanged("NContrato");
                    OnNContratoChanged();
                }
            }
        }
        private global::System.Int32 _NContrato;
        partial void OnNContratoChanging(global::System.Int32 value);
        partial void OnNContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=true, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Estatuto
        {
            get
            {
                return _Estatuto;
            }
            set
            {
                if (_Estatuto != value)
                {
                    OnEstatutoChanging(value);
                    ReportPropertyChanging("Estatuto");
                    _Estatuto = StructuralObject.SetValidValue(value, false, "Estatuto");
                    ReportPropertyChanged("Estatuto");
                    OnEstatutoChanged();
                }
            }
        }
        private global::System.String _Estatuto;
        partial void OnEstatutoChanging(global::System.String value);
        partial void OnEstatutoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 Ordem
        {
            get
            {
                return _Ordem;
            }
            set
            {
                OnOrdemChanging(value);
                ReportPropertyChanging("Ordem");
                _Ordem = StructuralObject.SetValidValue(value, "Ordem");
                ReportPropertyChanged("Ordem");
                OnOrdemChanged();
            }
        }
        private global::System.Int32 _Ordem;
        partial void OnOrdemChanging(global::System.Int32 value);
        partial void OnOrdemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> TemEstatuto
        {
            get
            {
                return _TemEstatuto;
            }
            set
            {
                OnTemEstatutoChanging(value);
                ReportPropertyChanging("TemEstatuto");
                _TemEstatuto = StructuralObject.SetValidValue(value, "TemEstatuto");
                ReportPropertyChanged("TemEstatuto");
                OnTemEstatutoChanged();
            }
        }
        private Nullable<global::System.Boolean> _TemEstatuto;
        partial void OnTemEstatutoChanging(Nullable<global::System.Boolean> value);
        partial void OnTemEstatutoChanged();

        #endregion

    }

    #endregion

    #region ComplexTypes
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="DIMENSAO_Type")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class DIMENSAO_Type : ComplexObject
    {
        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CENTRO_RESPONSABILIDADE
        {
            get
            {
                return _CENTRO_RESPONSABILIDADE;
            }
            set
            {
                OnCENTRO_RESPONSABILIDADEChanging(value);
                ReportPropertyChanging("CENTRO_RESPONSABILIDADE");
                _CENTRO_RESPONSABILIDADE = StructuralObject.SetValidValue(value, true, "CENTRO_RESPONSABILIDADE");
                ReportPropertyChanged("CENTRO_RESPONSABILIDADE");
                OnCENTRO_RESPONSABILIDADEChanged();
            }
        }
        private global::System.String _CENTRO_RESPONSABILIDADE;
        partial void OnCENTRO_RESPONSABILIDADEChanging(global::System.String value);
        partial void OnCENTRO_RESPONSABILIDADEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DESCRI_CENTRO_RESPONSABILIDADE
        {
            get
            {
                return _DESCRI_CENTRO_RESPONSABILIDADE;
            }
            set
            {
                OnDESCRI_CENTRO_RESPONSABILIDADEChanging(value);
                ReportPropertyChanging("DESCRI_CENTRO_RESPONSABILIDADE");
                _DESCRI_CENTRO_RESPONSABILIDADE = StructuralObject.SetValidValue(value, true, "DESCRI_CENTRO_RESPONSABILIDADE");
                ReportPropertyChanged("DESCRI_CENTRO_RESPONSABILIDADE");
                OnDESCRI_CENTRO_RESPONSABILIDADEChanged();
            }
        }
        private global::System.String _DESCRI_CENTRO_RESPONSABILIDADE;
        partial void OnDESCRI_CENTRO_RESPONSABILIDADEChanging(global::System.String value);
        partial void OnDESCRI_CENTRO_RESPONSABILIDADEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SUBCENTRO
        {
            get
            {
                return _SUBCENTRO;
            }
            set
            {
                OnSUBCENTROChanging(value);
                ReportPropertyChanging("SUBCENTRO");
                _SUBCENTRO = StructuralObject.SetValidValue(value, true, "SUBCENTRO");
                ReportPropertyChanged("SUBCENTRO");
                OnSUBCENTROChanged();
            }
        }
        private global::System.String _SUBCENTRO;
        partial void OnSUBCENTROChanging(global::System.String value);
        partial void OnSUBCENTROChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DESC_SUBCENTRO
        {
            get
            {
                return _DESC_SUBCENTRO;
            }
            set
            {
                OnDESC_SUBCENTROChanging(value);
                ReportPropertyChanging("DESC_SUBCENTRO");
                _DESC_SUBCENTRO = StructuralObject.SetValidValue(value, true, "DESC_SUBCENTRO");
                ReportPropertyChanged("DESC_SUBCENTRO");
                OnDESC_SUBCENTROChanged();
            }
        }
        private global::System.String _DESC_SUBCENTRO;
        partial void OnDESC_SUBCENTROChanging(global::System.String value);
        partial void OnDESC_SUBCENTROChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ERP_Despesa")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class ERP_Despesa : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ERP_Despesa object.
        /// </summary>
        /// <param name="estrangeiro">Initial value of the Estrangeiro property.</param>
        /// <param name="taxa_IVA">Initial value of the Taxa_IVA property.</param>
        /// <param name="ano">Initial value of the Ano property.</param>
        /// <param name="vALOR_TOTAL_TRANSF">Initial value of the VALOR_TOTAL_TRANSF property.</param>
        public static ERP_Despesa CreateERP_Despesa(global::System.String estrangeiro, global::System.String taxa_IVA, global::System.Decimal ano, global::System.String vALOR_TOTAL_TRANSF)
        {
            ERP_Despesa eRP_Despesa = new ERP_Despesa();
            eRP_Despesa.Estrangeiro = estrangeiro;
            eRP_Despesa.Taxa_IVA = taxa_IVA;
            eRP_Despesa.Ano = ano;
            eRP_Despesa.VALOR_TOTAL_TRANSF = vALOR_TOTAL_TRANSF;
            return eRP_Despesa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Centro_Resp
        {
            get
            {
                return _Centro_Resp;
            }
            set
            {
                OnCentro_RespChanging(value);
                ReportPropertyChanging("Centro_Resp");
                _Centro_Resp = StructuralObject.SetValidValue(value, true, "Centro_Resp");
                ReportPropertyChanged("Centro_Resp");
                OnCentro_RespChanged();
            }
        }
        private global::System.String _Centro_Resp;
        partial void OnCentro_RespChanging(global::System.String value);
        partial void OnCentro_RespChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Subcen
        {
            get
            {
                return _Subcen;
            }
            set
            {
                OnSubcenChanging(value);
                ReportPropertyChanging("Subcen");
                _Subcen = StructuralObject.SetValidValue(value, true, "Subcen");
                ReportPropertyChanged("Subcen");
                OnSubcenChanged();
            }
        }
        private global::System.String _Subcen;
        partial void OnSubcenChanging(global::System.String value);
        partial void OnSubcenChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Conta_Proj
        {
            get
            {
                return _Conta_Proj;
            }
            set
            {
                OnConta_ProjChanging(value);
                ReportPropertyChanging("Conta_Proj");
                _Conta_Proj = StructuralObject.SetValidValue(value, true, "Conta_Proj");
                ReportPropertyChanged("Conta_Proj");
                OnConta_ProjChanged();
            }
        }
        private global::System.String _Conta_Proj;
        partial void OnConta_ProjChanging(global::System.String value);
        partial void OnConta_ProjChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tipo_Movimento
        {
            get
            {
                return _Tipo_Movimento;
            }
            set
            {
                OnTipo_MovimentoChanging(value);
                ReportPropertyChanging("Tipo_Movimento");
                _Tipo_Movimento = StructuralObject.SetValidValue(value, true, "Tipo_Movimento");
                ReportPropertyChanged("Tipo_Movimento");
                OnTipo_MovimentoChanged();
            }
        }
        private global::System.String _Tipo_Movimento;
        partial void OnTipo_MovimentoChanging(global::System.String value);
        partial void OnTipo_MovimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Desc_Mov
        {
            get
            {
                return _Desc_Mov;
            }
            set
            {
                OnDesc_MovChanging(value);
                ReportPropertyChanging("Desc_Mov");
                _Desc_Mov = StructuralObject.SetValidValue(value, true, "Desc_Mov");
                ReportPropertyChanged("Desc_Mov");
                OnDesc_MovChanged();
            }
        }
        private global::System.String _Desc_Mov;
        partial void OnDesc_MovChanging(global::System.String value);
        partial void OnDesc_MovChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Cod_Ent
        {
            get
            {
                return _Cod_Ent;
            }
            set
            {
                OnCod_EntChanging(value);
                ReportPropertyChanging("Cod_Ent");
                _Cod_Ent = StructuralObject.SetValidValue(value, true, "Cod_Ent");
                ReportPropertyChanged("Cod_Ent");
                OnCod_EntChanged();
            }
        }
        private global::System.String _Cod_Ent;
        partial void OnCod_EntChanging(global::System.String value);
        partial void OnCod_EntChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NIF_Entidade
        {
            get
            {
                return _NIF_Entidade;
            }
            set
            {
                OnNIF_EntidadeChanging(value);
                ReportPropertyChanging("NIF_Entidade");
                _NIF_Entidade = StructuralObject.SetValidValue(value, true, "NIF_Entidade");
                ReportPropertyChanged("NIF_Entidade");
                OnNIF_EntidadeChanged();
            }
        }
        private global::System.String _NIF_Entidade;
        partial void OnNIF_EntidadeChanging(global::System.String value);
        partial void OnNIF_EntidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome_Ent
        {
            get
            {
                return _Nome_Ent;
            }
            set
            {
                OnNome_EntChanging(value);
                ReportPropertyChanging("Nome_Ent");
                _Nome_Ent = StructuralObject.SetValidValue(value, true, "Nome_Ent");
                ReportPropertyChanged("Nome_Ent");
                OnNome_EntChanged();
            }
        }
        private global::System.String _Nome_Ent;
        partial void OnNome_EntChanging(global::System.String value);
        partial void OnNome_EntChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tip_Doc_Despesa
        {
            get
            {
                return _Tip_Doc_Despesa;
            }
            set
            {
                OnTip_Doc_DespesaChanging(value);
                ReportPropertyChanging("Tip_Doc_Despesa");
                _Tip_Doc_Despesa = StructuralObject.SetValidValue(value, true, "Tip_Doc_Despesa");
                ReportPropertyChanged("Tip_Doc_Despesa");
                OnTip_Doc_DespesaChanged();
            }
        }
        private global::System.String _Tip_Doc_Despesa;
        partial void OnTip_Doc_DespesaChanging(global::System.String value);
        partial void OnTip_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Num_Doc_Despesa
        {
            get
            {
                return _Num_Doc_Despesa;
            }
            set
            {
                OnNum_Doc_DespesaChanging(value);
                ReportPropertyChanging("Num_Doc_Despesa");
                _Num_Doc_Despesa = StructuralObject.SetValidValue(value, true, "Num_Doc_Despesa");
                ReportPropertyChanged("Num_Doc_Despesa");
                OnNum_Doc_DespesaChanged();
            }
        }
        private global::System.String _Num_Doc_Despesa;
        partial void OnNum_Doc_DespesaChanging(global::System.String value);
        partial void OnNum_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Data_Doc_Despesa
        {
            get
            {
                return _Data_Doc_Despesa;
            }
            set
            {
                OnData_Doc_DespesaChanging(value);
                ReportPropertyChanging("Data_Doc_Despesa");
                _Data_Doc_Despesa = StructuralObject.SetValidValue(value, "Data_Doc_Despesa");
                ReportPropertyChanged("Data_Doc_Despesa");
                OnData_Doc_DespesaChanged();
            }
        }
        private Nullable<global::System.DateTime> _Data_Doc_Despesa;
        partial void OnData_Doc_DespesaChanging(Nullable<global::System.DateTime> value);
        partial void OnData_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Valor
        {
            get
            {
                return _Valor;
            }
            set
            {
                OnValorChanging(value);
                ReportPropertyChanging("Valor");
                _Valor = StructuralObject.SetValidValue(value, true, "Valor");
                ReportPropertyChanged("Valor");
                OnValorChanged();
            }
        }
        private global::System.String _Valor;
        partial void OnValorChanging(global::System.String value);
        partial void OnValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Valor_IVA
        {
            get
            {
                return _Valor_IVA;
            }
            set
            {
                OnValor_IVAChanging(value);
                ReportPropertyChanging("Valor_IVA");
                _Valor_IVA = StructuralObject.SetValidValue(value, true, "Valor_IVA");
                ReportPropertyChanged("Valor_IVA");
                OnValor_IVAChanged();
            }
        }
        private global::System.String _Valor_IVA;
        partial void OnValor_IVAChanging(global::System.String value);
        partial void OnValor_IVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Valor_S_IVA
        {
            get
            {
                return _Valor_S_IVA;
            }
            set
            {
                OnValor_S_IVAChanging(value);
                ReportPropertyChanging("Valor_S_IVA");
                _Valor_S_IVA = StructuralObject.SetValidValue(value, true, "Valor_S_IVA");
                ReportPropertyChanged("Valor_S_IVA");
                OnValor_S_IVAChanged();
            }
        }
        private global::System.String _Valor_S_IVA;
        partial void OnValor_S_IVAChanging(global::System.String value);
        partial void OnValor_S_IVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Diario
        {
            get
            {
                return _Diario;
            }
            set
            {
                OnDiarioChanging(value);
                ReportPropertyChanging("Diario");
                _Diario = StructuralObject.SetValidValue(value, true, "Diario");
                ReportPropertyChanged("Diario");
                OnDiarioChanged();
            }
        }
        private global::System.String _Diario;
        partial void OnDiarioChanging(global::System.String value);
        partial void OnDiarioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> NReg
        {
            get
            {
                return _NReg;
            }
            set
            {
                OnNRegChanging(value);
                ReportPropertyChanging("NReg");
                _NReg = StructuralObject.SetValidValue(value, "NReg");
                ReportPropertyChanged("NReg");
                OnNRegChanged();
            }
        }
        private Nullable<global::System.Decimal> _NReg;
        partial void OnNRegChanging(Nullable<global::System.Decimal> value);
        partial void OnNRegChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Conta_POCE
        {
            get
            {
                return _Conta_POCE;
            }
            set
            {
                OnConta_POCEChanging(value);
                ReportPropertyChanging("Conta_POCE");
                _Conta_POCE = StructuralObject.SetValidValue(value, true, "Conta_POCE");
                ReportPropertyChanged("Conta_POCE");
                OnConta_POCEChanged();
            }
        }
        private global::System.String _Conta_POCE;
        partial void OnConta_POCEChanging(global::System.String value);
        partial void OnConta_POCEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Tip_Doc_Desp
        {
            get
            {
                return _Pag_Tip_Doc_Desp;
            }
            set
            {
                OnPag_Tip_Doc_DespChanging(value);
                ReportPropertyChanging("Pag_Tip_Doc_Desp");
                _Pag_Tip_Doc_Desp = StructuralObject.SetValidValue(value, true, "Pag_Tip_Doc_Desp");
                ReportPropertyChanged("Pag_Tip_Doc_Desp");
                OnPag_Tip_Doc_DespChanged();
            }
        }
        private global::System.String _Pag_Tip_Doc_Desp;
        partial void OnPag_Tip_Doc_DespChanging(global::System.String value);
        partial void OnPag_Tip_Doc_DespChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Num_Doc_Despesa
        {
            get
            {
                return _Pag_Num_Doc_Despesa;
            }
            set
            {
                OnPag_Num_Doc_DespesaChanging(value);
                ReportPropertyChanging("Pag_Num_Doc_Despesa");
                _Pag_Num_Doc_Despesa = StructuralObject.SetValidValue(value, true, "Pag_Num_Doc_Despesa");
                ReportPropertyChanged("Pag_Num_Doc_Despesa");
                OnPag_Num_Doc_DespesaChanged();
            }
        }
        private global::System.String _Pag_Num_Doc_Despesa;
        partial void OnPag_Num_Doc_DespesaChanging(global::System.String value);
        partial void OnPag_Num_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Grp_Ter_Doc_Desp
        {
            get
            {
                return _Pag_Grp_Ter_Doc_Desp;
            }
            set
            {
                OnPag_Grp_Ter_Doc_DespChanging(value);
                ReportPropertyChanging("Pag_Grp_Ter_Doc_Desp");
                _Pag_Grp_Ter_Doc_Desp = StructuralObject.SetValidValue(value, true, "Pag_Grp_Ter_Doc_Desp");
                ReportPropertyChanged("Pag_Grp_Ter_Doc_Desp");
                OnPag_Grp_Ter_Doc_DespChanged();
            }
        }
        private global::System.String _Pag_Grp_Ter_Doc_Desp;
        partial void OnPag_Grp_Ter_Doc_DespChanging(global::System.String value);
        partial void OnPag_Grp_Ter_Doc_DespChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Pag_Data_Doc_Despesa
        {
            get
            {
                return _Pag_Data_Doc_Despesa;
            }
            set
            {
                OnPag_Data_Doc_DespesaChanging(value);
                ReportPropertyChanging("Pag_Data_Doc_Despesa");
                _Pag_Data_Doc_Despesa = StructuralObject.SetValidValue(value, "Pag_Data_Doc_Despesa");
                ReportPropertyChanged("Pag_Data_Doc_Despesa");
                OnPag_Data_Doc_DespesaChanged();
            }
        }
        private Nullable<global::System.DateTime> _Pag_Data_Doc_Despesa;
        partial void OnPag_Data_Doc_DespesaChanging(Nullable<global::System.DateTime> value);
        partial void OnPag_Data_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Valor
        {
            get
            {
                return _Pag_Valor;
            }
            set
            {
                OnPag_ValorChanging(value);
                ReportPropertyChanging("Pag_Valor");
                _Pag_Valor = StructuralObject.SetValidValue(value, true, "Pag_Valor");
                ReportPropertyChanged("Pag_Valor");
                OnPag_ValorChanged();
            }
        }
        private global::System.String _Pag_Valor;
        partial void OnPag_ValorChanging(global::System.String value);
        partial void OnPag_ValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Valor_S_IVA
        {
            get
            {
                return _Pag_Valor_S_IVA;
            }
            set
            {
                OnPag_Valor_S_IVAChanging(value);
                ReportPropertyChanging("Pag_Valor_S_IVA");
                _Pag_Valor_S_IVA = StructuralObject.SetValidValue(value, true, "Pag_Valor_S_IVA");
                ReportPropertyChanged("Pag_Valor_S_IVA");
                OnPag_Valor_S_IVAChanged();
            }
        }
        private global::System.String _Pag_Valor_S_IVA;
        partial void OnPag_Valor_S_IVAChanging(global::System.String value);
        partial void OnPag_Valor_S_IVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Pag_Valor_IVA
        {
            get
            {
                return _Pag_Valor_IVA;
            }
            set
            {
                OnPag_Valor_IVAChanging(value);
                ReportPropertyChanging("Pag_Valor_IVA");
                _Pag_Valor_IVA = StructuralObject.SetValidValue(value, true, "Pag_Valor_IVA");
                ReportPropertyChanged("Pag_Valor_IVA");
                OnPag_Valor_IVAChanged();
            }
        }
        private global::System.String _Pag_Valor_IVA;
        partial void OnPag_Valor_IVAChanging(global::System.String value);
        partial void OnPag_Valor_IVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Grp_Ter_Doc_Despesa
        {
            get
            {
                return _Grp_Ter_Doc_Despesa;
            }
            set
            {
                OnGrp_Ter_Doc_DespesaChanging(value);
                ReportPropertyChanging("Grp_Ter_Doc_Despesa");
                _Grp_Ter_Doc_Despesa = StructuralObject.SetValidValue(value, true, "Grp_Ter_Doc_Despesa");
                ReportPropertyChanged("Grp_Ter_Doc_Despesa");
                OnGrp_Ter_Doc_DespesaChanged();
            }
        }
        private global::System.String _Grp_Ter_Doc_Despesa;
        partial void OnGrp_Ter_Doc_DespesaChanging(global::System.String value);
        partial void OnGrp_Ter_Doc_DespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Desc_Mov_CTB
        {
            get
            {
                return _Desc_Mov_CTB;
            }
            set
            {
                OnDesc_Mov_CTBChanging(value);
                ReportPropertyChanging("Desc_Mov_CTB");
                _Desc_Mov_CTB = StructuralObject.SetValidValue(value, true, "Desc_Mov_CTB");
                ReportPropertyChanged("Desc_Mov_CTB");
                OnDesc_Mov_CTBChanged();
            }
        }
        private global::System.String _Desc_Mov_CTB;
        partial void OnDesc_Mov_CTBChanging(global::System.String value);
        partial void OnDesc_Mov_CTBChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Num_DSP
        {
            get
            {
                return _Num_DSP;
            }
            set
            {
                OnNum_DSPChanging(value);
                ReportPropertyChanging("Num_DSP");
                _Num_DSP = StructuralObject.SetValidValue(value, true, "Num_DSP");
                ReportPropertyChanged("Num_DSP");
                OnNum_DSPChanged();
            }
        }
        private global::System.String _Num_DSP;
        partial void OnNum_DSPChanging(global::System.String value);
        partial void OnNum_DSPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Estrangeiro
        {
            get
            {
                return _Estrangeiro;
            }
            set
            {
                OnEstrangeiroChanging(value);
                ReportPropertyChanging("Estrangeiro");
                _Estrangeiro = StructuralObject.SetValidValue(value, false, "Estrangeiro");
                ReportPropertyChanged("Estrangeiro");
                OnEstrangeiroChanged();
            }
        }
        private global::System.String _Estrangeiro;
        partial void OnEstrangeiroChanging(global::System.String value);
        partial void OnEstrangeiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Data_CTB
        {
            get
            {
                return _Data_CTB;
            }
            set
            {
                OnData_CTBChanging(value);
                ReportPropertyChanging("Data_CTB");
                _Data_CTB = StructuralObject.SetValidValue(value, "Data_CTB");
                ReportPropertyChanged("Data_CTB");
                OnData_CTBChanged();
            }
        }
        private Nullable<global::System.DateTime> _Data_CTB;
        partial void OnData_CTBChanging(Nullable<global::System.DateTime> value);
        partial void OnData_CTBChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Taxa_IVA
        {
            get
            {
                return _Taxa_IVA;
            }
            set
            {
                OnTaxa_IVAChanging(value);
                ReportPropertyChanging("Taxa_IVA");
                _Taxa_IVA = StructuralObject.SetValidValue(value, false, "Taxa_IVA");
                ReportPropertyChanged("Taxa_IVA");
                OnTaxa_IVAChanged();
            }
        }
        private global::System.String _Taxa_IVA;
        partial void OnTaxa_IVAChanging(global::System.String value);
        partial void OnTaxa_IVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Numero_Ordem
        {
            get
            {
                return _Numero_Ordem;
            }
            set
            {
                OnNumero_OrdemChanging(value);
                ReportPropertyChanging("Numero_Ordem");
                _Numero_Ordem = StructuralObject.SetValidValue(value, true, "Numero_Ordem");
                ReportPropertyChanged("Numero_Ordem");
                OnNumero_OrdemChanged();
            }
        }
        private global::System.String _Numero_Ordem;
        partial void OnNumero_OrdemChanging(global::System.String value);
        partial void OnNumero_OrdemChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal Ano
        {
            get
            {
                return _Ano;
            }
            set
            {
                OnAnoChanging(value);
                ReportPropertyChanging("Ano");
                _Ano = StructuralObject.SetValidValue(value, "Ano");
                ReportPropertyChanged("Ano");
                OnAnoChanged();
            }
        }
        private global::System.Decimal _Ano;
        partial void OnAnoChanging(global::System.Decimal value);
        partial void OnAnoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String VALOR_TOTAL_TRANSF
        {
            get
            {
                return _VALOR_TOTAL_TRANSF;
            }
            set
            {
                OnVALOR_TOTAL_TRANSFChanging(value);
                ReportPropertyChanging("VALOR_TOTAL_TRANSF");
                _VALOR_TOTAL_TRANSF = StructuralObject.SetValidValue(value, false, "VALOR_TOTAL_TRANSF");
                ReportPropertyChanged("VALOR_TOTAL_TRANSF");
                OnVALOR_TOTAL_TRANSFChanged();
            }
        }
        private global::System.String _VALOR_TOTAL_TRANSF;
        partial void OnVALOR_TOTAL_TRANSFChanging(global::System.String value);
        partial void OnVALOR_TOTAL_TRANSFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Num_DSP2
        {
            get
            {
                return _Num_DSP2;
            }
            set
            {
                OnNum_DSP2Changing(value);
                ReportPropertyChanging("Num_DSP2");
                _Num_DSP2 = StructuralObject.SetValidValue(value, true, "Num_DSP2");
                ReportPropertyChanged("Num_DSP2");
                OnNum_DSP2Changed();
            }
        }
        private global::System.String _Num_DSP2;
        partial void OnNum_DSP2Changing(global::System.String value);
        partial void OnNum_DSP2Changed();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ERP_OVERHEAD")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class ERP_OVERHEAD : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ERP_OVERHEAD object.
        /// </summary>
        /// <param name="cENTRO_RESP">Initial value of the CENTRO_RESP property.</param>
        /// <param name="sUBCENTRO">Initial value of the SUBCENTRO property.</param>
        /// <param name="cONTA_PROJECTO">Initial value of the CONTA_PROJECTO property.</param>
        /// <param name="cENTRO_RESP_DESTINO">Initial value of the CENTRO_RESP_DESTINO property.</param>
        /// <param name="sUBCENTRO_DESTINO">Initial value of the SUBCENTRO_DESTINO property.</param>
        /// <param name="cONTA_PROJECTO_DESTINO">Initial value of the CONTA_PROJECTO_DESTINO property.</param>
        /// <param name="pERC_DISTRIB">Initial value of the PERC_DISTRIB property.</param>
        /// <param name="descricaoFormaDistribuicaoOV">Initial value of the DescricaoFormaDistribuicaoOV property.</param>
        /// <param name="descricaoCentroResponsabilidade">Initial value of the DescricaoCentroResponsabilidade property.</param>
        /// <param name="descricaoSubCentro">Initial value of the DescricaoSubCentro property.</param>
        /// <param name="cONTA_PROJECTO_DESC">Initial value of the CONTA_PROJECTO_DESC property.</param>
        /// <param name="cENTRO_RESP_DESTINO_DESC">Initial value of the CENTRO_RESP_DESTINO_DESC property.</param>
        /// <param name="sUBCENTRO_DESTINO_DESC">Initial value of the SUBCENTRO_DESTINO_DESC property.</param>
        /// <param name="cONTA_PROJECTO_DESTINO_DESC">Initial value of the CONTA_PROJECTO_DESTINO_DESC property.</param>
        public static ERP_OVERHEAD CreateERP_OVERHEAD(global::System.String cENTRO_RESP, global::System.String sUBCENTRO, global::System.String cONTA_PROJECTO, global::System.String cENTRO_RESP_DESTINO, global::System.String sUBCENTRO_DESTINO, global::System.String cONTA_PROJECTO_DESTINO, global::System.Decimal pERC_DISTRIB, global::System.String descricaoFormaDistribuicaoOV, global::System.String descricaoCentroResponsabilidade, global::System.String descricaoSubCentro, global::System.String cONTA_PROJECTO_DESC, global::System.String cENTRO_RESP_DESTINO_DESC, global::System.String sUBCENTRO_DESTINO_DESC, global::System.String cONTA_PROJECTO_DESTINO_DESC)
        {
            ERP_OVERHEAD eRP_OVERHEAD = new ERP_OVERHEAD();
            eRP_OVERHEAD.CENTRO_RESP = cENTRO_RESP;
            eRP_OVERHEAD.SUBCENTRO = sUBCENTRO;
            eRP_OVERHEAD.CONTA_PROJECTO = cONTA_PROJECTO;
            eRP_OVERHEAD.CENTRO_RESP_DESTINO = cENTRO_RESP_DESTINO;
            eRP_OVERHEAD.SUBCENTRO_DESTINO = sUBCENTRO_DESTINO;
            eRP_OVERHEAD.CONTA_PROJECTO_DESTINO = cONTA_PROJECTO_DESTINO;
            eRP_OVERHEAD.PERC_DISTRIB = pERC_DISTRIB;
            eRP_OVERHEAD.DescricaoFormaDistribuicaoOV = descricaoFormaDistribuicaoOV;
            eRP_OVERHEAD.DescricaoCentroResponsabilidade = descricaoCentroResponsabilidade;
            eRP_OVERHEAD.DescricaoSubCentro = descricaoSubCentro;
            eRP_OVERHEAD.CONTA_PROJECTO_DESC = cONTA_PROJECTO_DESC;
            eRP_OVERHEAD.CENTRO_RESP_DESTINO_DESC = cENTRO_RESP_DESTINO_DESC;
            eRP_OVERHEAD.SUBCENTRO_DESTINO_DESC = sUBCENTRO_DESTINO_DESC;
            eRP_OVERHEAD.CONTA_PROJECTO_DESTINO_DESC = cONTA_PROJECTO_DESTINO_DESC;
            return eRP_OVERHEAD;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> ANO
        {
            get
            {
                return _ANO;
            }
            set
            {
                OnANOChanging(value);
                ReportPropertyChanging("ANO");
                _ANO = StructuralObject.SetValidValue(value, "ANO");
                ReportPropertyChanged("ANO");
                OnANOChanged();
            }
        }
        private Nullable<global::System.Int32> _ANO;
        partial void OnANOChanging(Nullable<global::System.Int32> value);
        partial void OnANOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CENTRO_RESP
        {
            get
            {
                return _CENTRO_RESP;
            }
            set
            {
                OnCENTRO_RESPChanging(value);
                ReportPropertyChanging("CENTRO_RESP");
                _CENTRO_RESP = StructuralObject.SetValidValue(value, false, "CENTRO_RESP");
                ReportPropertyChanged("CENTRO_RESP");
                OnCENTRO_RESPChanged();
            }
        }
        private global::System.String _CENTRO_RESP;
        partial void OnCENTRO_RESPChanging(global::System.String value);
        partial void OnCENTRO_RESPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String SUBCENTRO
        {
            get
            {
                return _SUBCENTRO;
            }
            set
            {
                OnSUBCENTROChanging(value);
                ReportPropertyChanging("SUBCENTRO");
                _SUBCENTRO = StructuralObject.SetValidValue(value, false, "SUBCENTRO");
                ReportPropertyChanged("SUBCENTRO");
                OnSUBCENTROChanged();
            }
        }
        private global::System.String _SUBCENTRO;
        partial void OnSUBCENTROChanging(global::System.String value);
        partial void OnSUBCENTROChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CONTA_PROJECTO
        {
            get
            {
                return _CONTA_PROJECTO;
            }
            set
            {
                OnCONTA_PROJECTOChanging(value);
                ReportPropertyChanging("CONTA_PROJECTO");
                _CONTA_PROJECTO = StructuralObject.SetValidValue(value, false, "CONTA_PROJECTO");
                ReportPropertyChanged("CONTA_PROJECTO");
                OnCONTA_PROJECTOChanged();
            }
        }
        private global::System.String _CONTA_PROJECTO;
        partial void OnCONTA_PROJECTOChanging(global::System.String value);
        partial void OnCONTA_PROJECTOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CENTRO_RESP_DESTINO
        {
            get
            {
                return _CENTRO_RESP_DESTINO;
            }
            set
            {
                OnCENTRO_RESP_DESTINOChanging(value);
                ReportPropertyChanging("CENTRO_RESP_DESTINO");
                _CENTRO_RESP_DESTINO = StructuralObject.SetValidValue(value, false, "CENTRO_RESP_DESTINO");
                ReportPropertyChanged("CENTRO_RESP_DESTINO");
                OnCENTRO_RESP_DESTINOChanged();
            }
        }
        private global::System.String _CENTRO_RESP_DESTINO;
        partial void OnCENTRO_RESP_DESTINOChanging(global::System.String value);
        partial void OnCENTRO_RESP_DESTINOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String SUBCENTRO_DESTINO
        {
            get
            {
                return _SUBCENTRO_DESTINO;
            }
            set
            {
                OnSUBCENTRO_DESTINOChanging(value);
                ReportPropertyChanging("SUBCENTRO_DESTINO");
                _SUBCENTRO_DESTINO = StructuralObject.SetValidValue(value, false, "SUBCENTRO_DESTINO");
                ReportPropertyChanged("SUBCENTRO_DESTINO");
                OnSUBCENTRO_DESTINOChanged();
            }
        }
        private global::System.String _SUBCENTRO_DESTINO;
        partial void OnSUBCENTRO_DESTINOChanging(global::System.String value);
        partial void OnSUBCENTRO_DESTINOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CONTA_PROJECTO_DESTINO
        {
            get
            {
                return _CONTA_PROJECTO_DESTINO;
            }
            set
            {
                OnCONTA_PROJECTO_DESTINOChanging(value);
                ReportPropertyChanging("CONTA_PROJECTO_DESTINO");
                _CONTA_PROJECTO_DESTINO = StructuralObject.SetValidValue(value, false, "CONTA_PROJECTO_DESTINO");
                ReportPropertyChanged("CONTA_PROJECTO_DESTINO");
                OnCONTA_PROJECTO_DESTINOChanged();
            }
        }
        private global::System.String _CONTA_PROJECTO_DESTINO;
        partial void OnCONTA_PROJECTO_DESTINOChanging(global::System.String value);
        partial void OnCONTA_PROJECTO_DESTINOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal PERC_DISTRIB
        {
            get
            {
                return _PERC_DISTRIB;
            }
            set
            {
                OnPERC_DISTRIBChanging(value);
                ReportPropertyChanging("PERC_DISTRIB");
                _PERC_DISTRIB = StructuralObject.SetValidValue(value, "PERC_DISTRIB");
                ReportPropertyChanged("PERC_DISTRIB");
                OnPERC_DISTRIBChanged();
            }
        }
        private global::System.Decimal _PERC_DISTRIB;
        partial void OnPERC_DISTRIBChanging(global::System.Decimal value);
        partial void OnPERC_DISTRIBChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> LimiteMaximo
        {
            get
            {
                return _LimiteMaximo;
            }
            set
            {
                OnLimiteMaximoChanging(value);
                ReportPropertyChanging("LimiteMaximo");
                _LimiteMaximo = StructuralObject.SetValidValue(value, "LimiteMaximo");
                ReportPropertyChanged("LimiteMaximo");
                OnLimiteMaximoChanged();
            }
        }
        private Nullable<global::System.Decimal> _LimiteMaximo;
        partial void OnLimiteMaximoChanging(Nullable<global::System.Decimal> value);
        partial void OnLimiteMaximoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoFormaDistribuicaoOV
        {
            get
            {
                return _DescricaoFormaDistribuicaoOV;
            }
            set
            {
                OnDescricaoFormaDistribuicaoOVChanging(value);
                ReportPropertyChanging("DescricaoFormaDistribuicaoOV");
                _DescricaoFormaDistribuicaoOV = StructuralObject.SetValidValue(value, false, "DescricaoFormaDistribuicaoOV");
                ReportPropertyChanged("DescricaoFormaDistribuicaoOV");
                OnDescricaoFormaDistribuicaoOVChanged();
            }
        }
        private global::System.String _DescricaoFormaDistribuicaoOV;
        partial void OnDescricaoFormaDistribuicaoOVChanging(global::System.String value);
        partial void OnDescricaoFormaDistribuicaoOVChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoCentroResponsabilidade
        {
            get
            {
                return _DescricaoCentroResponsabilidade;
            }
            set
            {
                OnDescricaoCentroResponsabilidadeChanging(value);
                ReportPropertyChanging("DescricaoCentroResponsabilidade");
                _DescricaoCentroResponsabilidade = StructuralObject.SetValidValue(value, false, "DescricaoCentroResponsabilidade");
                ReportPropertyChanged("DescricaoCentroResponsabilidade");
                OnDescricaoCentroResponsabilidadeChanged();
            }
        }
        private global::System.String _DescricaoCentroResponsabilidade;
        partial void OnDescricaoCentroResponsabilidadeChanging(global::System.String value);
        partial void OnDescricaoCentroResponsabilidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoSubCentro
        {
            get
            {
                return _DescricaoSubCentro;
            }
            set
            {
                OnDescricaoSubCentroChanging(value);
                ReportPropertyChanging("DescricaoSubCentro");
                _DescricaoSubCentro = StructuralObject.SetValidValue(value, false, "DescricaoSubCentro");
                ReportPropertyChanged("DescricaoSubCentro");
                OnDescricaoSubCentroChanged();
            }
        }
        private global::System.String _DescricaoSubCentro;
        partial void OnDescricaoSubCentroChanging(global::System.String value);
        partial void OnDescricaoSubCentroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CONTA_PROJECTO_DESC
        {
            get
            {
                return _CONTA_PROJECTO_DESC;
            }
            set
            {
                OnCONTA_PROJECTO_DESCChanging(value);
                ReportPropertyChanging("CONTA_PROJECTO_DESC");
                _CONTA_PROJECTO_DESC = StructuralObject.SetValidValue(value, false, "CONTA_PROJECTO_DESC");
                ReportPropertyChanged("CONTA_PROJECTO_DESC");
                OnCONTA_PROJECTO_DESCChanged();
            }
        }
        private global::System.String _CONTA_PROJECTO_DESC;
        partial void OnCONTA_PROJECTO_DESCChanging(global::System.String value);
        partial void OnCONTA_PROJECTO_DESCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CENTRO_RESP_DESTINO_DESC
        {
            get
            {
                return _CENTRO_RESP_DESTINO_DESC;
            }
            set
            {
                OnCENTRO_RESP_DESTINO_DESCChanging(value);
                ReportPropertyChanging("CENTRO_RESP_DESTINO_DESC");
                _CENTRO_RESP_DESTINO_DESC = StructuralObject.SetValidValue(value, false, "CENTRO_RESP_DESTINO_DESC");
                ReportPropertyChanged("CENTRO_RESP_DESTINO_DESC");
                OnCENTRO_RESP_DESTINO_DESCChanged();
            }
        }
        private global::System.String _CENTRO_RESP_DESTINO_DESC;
        partial void OnCENTRO_RESP_DESTINO_DESCChanging(global::System.String value);
        partial void OnCENTRO_RESP_DESTINO_DESCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String SUBCENTRO_DESTINO_DESC
        {
            get
            {
                return _SUBCENTRO_DESTINO_DESC;
            }
            set
            {
                OnSUBCENTRO_DESTINO_DESCChanging(value);
                ReportPropertyChanging("SUBCENTRO_DESTINO_DESC");
                _SUBCENTRO_DESTINO_DESC = StructuralObject.SetValidValue(value, false, "SUBCENTRO_DESTINO_DESC");
                ReportPropertyChanged("SUBCENTRO_DESTINO_DESC");
                OnSUBCENTRO_DESTINO_DESCChanged();
            }
        }
        private global::System.String _SUBCENTRO_DESTINO_DESC;
        partial void OnSUBCENTRO_DESTINO_DESCChanging(global::System.String value);
        partial void OnSUBCENTRO_DESTINO_DESCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CONTA_PROJECTO_DESTINO_DESC
        {
            get
            {
                return _CONTA_PROJECTO_DESTINO_DESC;
            }
            set
            {
                OnCONTA_PROJECTO_DESTINO_DESCChanging(value);
                ReportPropertyChanging("CONTA_PROJECTO_DESTINO_DESC");
                _CONTA_PROJECTO_DESTINO_DESC = StructuralObject.SetValidValue(value, false, "CONTA_PROJECTO_DESTINO_DESC");
                ReportPropertyChanged("CONTA_PROJECTO_DESTINO_DESC");
                OnCONTA_PROJECTO_DESTINO_DESCChanged();
            }
        }
        private global::System.String _CONTA_PROJECTO_DESTINO_DESC;
        partial void OnCONTA_PROJECTO_DESTINO_DESCChanging(global::System.String value);
        partial void OnCONTA_PROJECTO_DESTINO_DESCChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="ERP_Tipo_Doc")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class ERP_Tipo_Doc : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new ERP_Tipo_Doc object.
        /// </summary>
        /// <param name="tip_Doc">Initial value of the Tip_Doc property.</param>
        /// <param name="desc_Tip_Doc">Initial value of the Desc_Tip_Doc property.</param>
        public static ERP_Tipo_Doc CreateERP_Tipo_Doc(global::System.String tip_Doc, global::System.String desc_Tip_Doc)
        {
            ERP_Tipo_Doc eRP_Tipo_Doc = new ERP_Tipo_Doc();
            eRP_Tipo_Doc.Tip_Doc = tip_Doc;
            eRP_Tipo_Doc.Desc_Tip_Doc = desc_Tip_Doc;
            return eRP_Tipo_Doc;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tip_Doc
        {
            get
            {
                return _Tip_Doc;
            }
            set
            {
                OnTip_DocChanging(value);
                ReportPropertyChanging("Tip_Doc");
                _Tip_Doc = StructuralObject.SetValidValue(value, false, "Tip_Doc");
                ReportPropertyChanged("Tip_Doc");
                OnTip_DocChanged();
            }
        }
        private global::System.String _Tip_Doc;
        partial void OnTip_DocChanging(global::System.String value);
        partial void OnTip_DocChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Desc_Tip_Doc
        {
            get
            {
                return _Desc_Tip_Doc;
            }
            set
            {
                OnDesc_Tip_DocChanging(value);
                ReportPropertyChanging("Desc_Tip_Doc");
                _Desc_Tip_Doc = StructuralObject.SetValidValue(value, false, "Desc_Tip_Doc");
                ReportPropertyChanged("Desc_Tip_Doc");
                OnDesc_Tip_DocChanged();
            }
        }
        private global::System.String _Desc_Tip_Doc;
        partial void OnDesc_Tip_DocChanging(global::System.String value);
        partial void OnDesc_Tip_DocChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tipo_DespRec
        {
            get
            {
                return _Tipo_DespRec;
            }
            set
            {
                OnTipo_DespRecChanging(value);
                ReportPropertyChanging("Tipo_DespRec");
                _Tipo_DespRec = StructuralObject.SetValidValue(value, true, "Tipo_DespRec");
                ReportPropertyChanged("Tipo_DespRec");
                OnTipo_DespRecChanged();
            }
        }
        private global::System.String _Tipo_DespRec;
        partial void OnTipo_DespRecChanging(global::System.String value);
        partial void OnTipo_DespRecChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="RelacaoDespesasPagamentoSimple")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class RelacaoDespesasPagamentoSimple : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new RelacaoDespesasPagamentoSimple object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="rubricaCodigo">Initial value of the RubricaCodigo property.</param>
        public static RelacaoDespesasPagamentoSimple CreateRelacaoDespesasPagamentoSimple(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 rubricaCodigo)
        {
            RelacaoDespesasPagamentoSimple relacaoDespesasPagamentoSimple = new RelacaoDespesasPagamentoSimple();
            relacaoDespesasPagamentoSimple.ID = id;
            relacaoDespesasPagamentoSimple.IDProjecto = iDProjecto;
            relacaoDespesasPagamentoSimple.RubricaCodigo = rubricaCodigo;
            return relacaoDespesasPagamentoSimple;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private Nullable<global::System.DateTime> _Data;
        partial void OnDataChanging(Nullable<global::System.DateTime> value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DespesaNumeroDocumento
        {
            get
            {
                return _DespesaNumeroDocumento;
            }
            set
            {
                OnDespesaNumeroDocumentoChanging(value);
                ReportPropertyChanging("DespesaNumeroDocumento");
                _DespesaNumeroDocumento = StructuralObject.SetValidValue(value, true, "DespesaNumeroDocumento");
                ReportPropertyChanged("DespesaNumeroDocumento");
                OnDespesaNumeroDocumentoChanged();
            }
        }
        private global::System.String _DespesaNumeroDocumento;
        partial void OnDespesaNumeroDocumentoChanging(global::System.String value);
        partial void OnDespesaNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NIFFornecedor
        {
            get
            {
                return _NIFFornecedor;
            }
            set
            {
                OnNIFFornecedorChanging(value);
                ReportPropertyChanging("NIFFornecedor");
                _NIFFornecedor = StructuralObject.SetValidValue(value, true, "NIFFornecedor");
                ReportPropertyChanged("NIFFornecedor");
                OnNIFFornecedorChanged();
            }
        }
        private global::System.String _NIFFornecedor;
        partial void OnNIFFornecedorChanging(global::System.String value);
        partial void OnNIFFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Fornecedor
        {
            get
            {
                return _Fornecedor;
            }
            set
            {
                OnFornecedorChanging(value);
                ReportPropertyChanging("Fornecedor");
                _Fornecedor = StructuralObject.SetValidValue(value, true, "Fornecedor");
                ReportPropertyChanged("Fornecedor");
                OnFornecedorChanged();
            }
        }
        private global::System.String _Fornecedor;
        partial void OnFornecedorChanging(global::System.String value);
        partial void OnFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPagamento
        {
            get
            {
                return _IDPagamento;
            }
            set
            {
                OnIDPagamentoChanging(value);
                ReportPropertyChanging("IDPagamento");
                _IDPagamento = StructuralObject.SetValidValue(value, "IDPagamento");
                ReportPropertyChanged("IDPagamento");
                OnIDPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPagamento;
        partial void OnIDPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoEstado
        {
            get
            {
                return _CodigoEstado;
            }
            set
            {
                OnCodigoEstadoChanging(value);
                ReportPropertyChanging("CodigoEstado");
                _CodigoEstado = StructuralObject.SetValidValue(value, true, "CodigoEstado");
                ReportPropertyChanged("CodigoEstado");
                OnCodigoEstadoChanged();
            }
        }
        private global::System.String _CodigoEstado;
        partial void OnCodigoEstadoChanging(global::System.String value);
        partial void OnCodigoEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estado
        {
            get
            {
                return _Estado;
            }
            set
            {
                OnEstadoChanging(value);
                ReportPropertyChanging("Estado");
                _Estado = StructuralObject.SetValidValue(value, true, "Estado");
                ReportPropertyChanged("Estado");
                OnEstadoChanged();
            }
        }
        private global::System.String _Estado;
        partial void OnEstadoChanging(global::System.String value);
        partial void OnEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> UnidadeInvestigacaoPodeCorrigir
        {
            get
            {
                return _UnidadeInvestigacaoPodeCorrigir;
            }
            set
            {
                OnUnidadeInvestigacaoPodeCorrigirChanging(value);
                ReportPropertyChanging("UnidadeInvestigacaoPodeCorrigir");
                _UnidadeInvestigacaoPodeCorrigir = StructuralObject.SetValidValue(value, "UnidadeInvestigacaoPodeCorrigir");
                ReportPropertyChanged("UnidadeInvestigacaoPodeCorrigir");
                OnUnidadeInvestigacaoPodeCorrigirChanged();
            }
        }
        private Nullable<global::System.Boolean> _UnidadeInvestigacaoPodeCorrigir;
        partial void OnUnidadeInvestigacaoPodeCorrigirChanging(Nullable<global::System.Boolean> value);
        partial void OnUnidadeInvestigacaoPodeCorrigirChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CorEstado
        {
            get
            {
                return _CorEstado;
            }
            set
            {
                OnCorEstadoChanging(value);
                ReportPropertyChanging("CorEstado");
                _CorEstado = StructuralObject.SetValidValue(value, true, "CorEstado");
                ReportPropertyChanged("CorEstado");
                OnCorEstadoChanged();
            }
        }
        private global::System.String _CorEstado;
        partial void OnCorEstadoChanging(global::System.String value);
        partial void OnCorEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorIVA
        {
            get
            {
                return _ValorIVA;
            }
            set
            {
                OnValorIVAChanging(value);
                ReportPropertyChanging("ValorIVA");
                _ValorIVA = StructuralObject.SetValidValue(value, "ValorIVA");
                ReportPropertyChanged("ValorIVA");
                OnValorIVAChanged();
            }
        }
        private Nullable<global::System.Double> _ValorIVA;
        partial void OnValorIVAChanging(Nullable<global::System.Double> value);
        partial void OnValorIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorSemIVA
        {
            get
            {
                return _ValorSemIVA;
            }
            set
            {
                OnValorSemIVAChanging(value);
                ReportPropertyChanging("ValorSemIVA");
                _ValorSemIVA = StructuralObject.SetValidValue(value, "ValorSemIVA");
                ReportPropertyChanged("ValorSemIVA");
                OnValorSemIVAChanged();
            }
        }
        private Nullable<global::System.Double> _ValorSemIVA;
        partial void OnValorSemIVAChanging(Nullable<global::System.Double> value);
        partial void OnValorSemIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> Imputacao
        {
            get
            {
                return _Imputacao;
            }
            set
            {
                OnImputacaoChanging(value);
                ReportPropertyChanging("Imputacao");
                _Imputacao = StructuralObject.SetValidValue(value, "Imputacao");
                ReportPropertyChanged("Imputacao");
                OnImputacaoChanged();
            }
        }
        private Nullable<global::System.Double> _Imputacao;
        partial void OnImputacaoChanging(Nullable<global::System.Double> value);
        partial void OnImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 RubricaCodigo
        {
            get
            {
                return _RubricaCodigo;
            }
            set
            {
                OnRubricaCodigoChanging(value);
                ReportPropertyChanging("RubricaCodigo");
                _RubricaCodigo = StructuralObject.SetValidValue(value, "RubricaCodigo");
                ReportPropertyChanged("RubricaCodigo");
                OnRubricaCodigoChanged();
            }
        }
        private global::System.Int32 _RubricaCodigo;
        partial void OnRubricaCodigoChanging(global::System.Int32 value);
        partial void OnRubricaCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Rubrica
        {
            get
            {
                return _Rubrica;
            }
            set
            {
                OnRubricaChanging(value);
                ReportPropertyChanging("Rubrica");
                _Rubrica = StructuralObject.SetValidValue(value, true, "Rubrica");
                ReportPropertyChanged("Rubrica");
                OnRubricaChanged();
            }
        }
        private global::System.String _Rubrica;
        partial void OnRubricaChanging(global::System.String value);
        partial void OnRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorReembolsado
        {
            get
            {
                return _ValorReembolsado;
            }
            set
            {
                OnValorReembolsadoChanging(value);
                ReportPropertyChanging("ValorReembolsado");
                _ValorReembolsado = StructuralObject.SetValidValue(value, "ValorReembolsado");
                ReportPropertyChanged("ValorReembolsado");
                OnValorReembolsadoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorReembolsado;
        partial void OnValorReembolsadoChanging(Nullable<global::System.Double> value);
        partial void OnValorReembolsadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorTotal
        {
            get
            {
                return _ValorTotal;
            }
            set
            {
                OnValorTotalChanging(value);
                ReportPropertyChanging("ValorTotal");
                _ValorTotal = StructuralObject.SetValidValue(value, "ValorTotal");
                ReportPropertyChanged("ValorTotal");
                OnValorTotalChanged();
            }
        }
        private Nullable<global::System.Double> _ValorTotal;
        partial void OnValorTotalChanging(Nullable<global::System.Double> value);
        partial void OnValorTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPNReg
        {
            get
            {
                return _ERPNReg;
            }
            set
            {
                OnERPNRegChanging(value);
                ReportPropertyChanging("ERPNReg");
                _ERPNReg = StructuralObject.SetValidValue(value, true, "ERPNReg");
                ReportPropertyChanged("ERPNReg");
                OnERPNRegChanged();
            }
        }
        private global::System.String _ERPNReg;
        partial void OnERPNRegChanging(global::System.String value);
        partial void OnERPNRegChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> RubricaExecutado
        {
            get
            {
                return _RubricaExecutado;
            }
            set
            {
                OnRubricaExecutadoChanging(value);
                ReportPropertyChanging("RubricaExecutado");
                _RubricaExecutado = StructuralObject.SetValidValue(value, "RubricaExecutado");
                ReportPropertyChanged("RubricaExecutado");
                OnRubricaExecutadoChanged();
            }
        }
        private Nullable<global::System.Double> _RubricaExecutado;
        partial void OnRubricaExecutadoChanging(Nullable<global::System.Double> value);
        partial void OnRubricaExecutadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> RubricaOrcamentada
        {
            get
            {
                return _RubricaOrcamentada;
            }
            set
            {
                OnRubricaOrcamentadaChanging(value);
                ReportPropertyChanging("RubricaOrcamentada");
                _RubricaOrcamentada = StructuralObject.SetValidValue(value, "RubricaOrcamentada");
                ReportPropertyChanged("RubricaOrcamentada");
                OnRubricaOrcamentadaChanged();
            }
        }
        private Nullable<global::System.Double> _RubricaOrcamentada;
        partial void OnRubricaOrcamentadaChanging(Nullable<global::System.Double> value);
        partial void OnRubricaOrcamentadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> RubricaSaldo
        {
            get
            {
                return _RubricaSaldo;
            }
            set
            {
                OnRubricaSaldoChanging(value);
                ReportPropertyChanging("RubricaSaldo");
                _RubricaSaldo = StructuralObject.SetValidValue(value, "RubricaSaldo");
                ReportPropertyChanged("RubricaSaldo");
                OnRubricaSaldoChanged();
            }
        }
        private Nullable<global::System.Double> _RubricaSaldo;
        partial void OnRubricaSaldoChanging(Nullable<global::System.Double> value);
        partial void OnRubricaSaldoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorImputado
        {
            get
            {
                return _ValorImputado;
            }
            set
            {
                OnValorImputadoChanging(value);
                ReportPropertyChanging("ValorImputado");
                _ValorImputado = StructuralObject.SetValidValue(value, "ValorImputado");
                ReportPropertyChanged("ValorImputado");
                OnValorImputadoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorImputado;
        partial void OnValorImputadoChanging(Nullable<global::System.Double> value);
        partial void OnValorImputadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivelEfectivo
        {
            get
            {
                return _ValorElegivelEfectivo;
            }
            set
            {
                OnValorElegivelEfectivoChanging(value);
                ReportPropertyChanging("ValorElegivelEfectivo");
                _ValorElegivelEfectivo = StructuralObject.SetValidValue(value, "ValorElegivelEfectivo");
                ReportPropertyChanged("ValorElegivelEfectivo");
                OnValorElegivelEfectivoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivelEfectivo;
        partial void OnValorElegivelEfectivoChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelEfectivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorReembolsadoEfectivo
        {
            get
            {
                return _ValorReembolsadoEfectivo;
            }
            set
            {
                OnValorReembolsadoEfectivoChanging(value);
                ReportPropertyChanging("ValorReembolsadoEfectivo");
                _ValorReembolsadoEfectivo = StructuralObject.SetValidValue(value, "ValorReembolsadoEfectivo");
                ReportPropertyChanged("ValorReembolsadoEfectivo");
                OnValorReembolsadoEfectivoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorReembolsadoEfectivo;
        partial void OnValorReembolsadoEfectivoChanging(Nullable<global::System.Double> value);
        partial void OnValorReembolsadoEfectivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FornecedorAbreviado
        {
            get
            {
                return _FornecedorAbreviado;
            }
            set
            {
                OnFornecedorAbreviadoChanging(value);
                ReportPropertyChanging("FornecedorAbreviado");
                _FornecedorAbreviado = StructuralObject.SetValidValue(value, true, "FornecedorAbreviado");
                ReportPropertyChanged("FornecedorAbreviado");
                OnFornecedorAbreviadoChanged();
            }
        }
        private global::System.String _FornecedorAbreviado;
        partial void OnFornecedorAbreviadoChanging(global::System.String value);
        partial void OnFornecedorAbreviadoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_ADM_DespesasRecursosHumanos_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_ADM_DespesasRecursosHumanos_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_ADM_DespesasRecursosHumanos_Result object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        public static SSP_ADM_DespesasRecursosHumanos_Result CreateSSP_ADM_DespesasRecursosHumanos_Result(global::System.Int32 id)
        {
            SSP_ADM_DespesasRecursosHumanos_Result sSP_ADM_DespesasRecursosHumanos_Result = new SSP_ADM_DespesasRecursosHumanos_Result();
            sSP_ADM_DespesasRecursosHumanos_Result.ID = id;
            return sSP_ADM_DespesasRecursosHumanos_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DIMENSAO
        {
            get
            {
                return _DIMENSAO;
            }
            set
            {
                OnDIMENSAOChanging(value);
                ReportPropertyChanging("DIMENSAO");
                _DIMENSAO = StructuralObject.SetValidValue(value, true, "DIMENSAO");
                ReportPropertyChanged("DIMENSAO");
                OnDIMENSAOChanged();
            }
        }
        private global::System.String _DIMENSAO;
        partial void OnDIMENSAOChanging(global::System.String value);
        partial void OnDIMENSAOChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorBolsas
        {
            get
            {
                return _ValorBolsas;
            }
            set
            {
                OnValorBolsasChanging(value);
                ReportPropertyChanging("ValorBolsas");
                _ValorBolsas = StructuralObject.SetValidValue(value, "ValorBolsas");
                ReportPropertyChanged("ValorBolsas");
                OnValorBolsasChanged();
            }
        }
        private Nullable<global::System.Double> _ValorBolsas;
        partial void OnValorBolsasChanging(Nullable<global::System.Double> value);
        partial void OnValorBolsasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorOutras
        {
            get
            {
                return _ValorOutras;
            }
            set
            {
                OnValorOutrasChanging(value);
                ReportPropertyChanging("ValorOutras");
                _ValorOutras = StructuralObject.SetValidValue(value, "ValorOutras");
                ReportPropertyChanged("ValorOutras");
                OnValorOutrasChanged();
            }
        }
        private Nullable<global::System.Double> _ValorOutras;
        partial void OnValorOutrasChanging(Nullable<global::System.Double> value);
        partial void OnValorOutrasChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> VALOR_AJUDAS
        {
            get
            {
                return _VALOR_AJUDAS;
            }
            set
            {
                OnVALOR_AJUDASChanging(value);
                ReportPropertyChanging("VALOR_AJUDAS");
                _VALOR_AJUDAS = StructuralObject.SetValidValue(value, "VALOR_AJUDAS");
                ReportPropertyChanged("VALOR_AJUDAS");
                OnVALOR_AJUDASChanged();
            }
        }
        private Nullable<global::System.Double> _VALOR_AJUDAS;
        partial void OnVALOR_AJUDASChanging(Nullable<global::System.Double> value);
        partial void OnVALOR_AJUDASChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> VALOR_TODAS
        {
            get
            {
                return _VALOR_TODAS;
            }
            set
            {
                OnVALOR_TODASChanging(value);
                ReportPropertyChanging("VALOR_TODAS");
                _VALOR_TODAS = StructuralObject.SetValidValue(value, "VALOR_TODAS");
                ReportPropertyChanged("VALOR_TODAS");
                OnVALOR_TODASChanged();
            }
        }
        private Nullable<global::System.Double> _VALOR_TODAS;
        partial void OnVALOR_TODASChanging(Nullable<global::System.Double> value);
        partial void OnVALOR_TODASChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_ADM_DespesasVerbas_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_ADM_DespesasVerbas_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_ADM_DespesasVerbas_Result object.
        /// </summary>
        /// <param name="projectoId">Initial value of the ProjectoId property.</param>
        /// <param name="rubricaId">Initial value of the RubricaId property.</param>
        /// <param name="totalExecutado">Initial value of the TotalExecutado property.</param>
        /// <param name="totalPago">Initial value of the TotalPago property.</param>
        public static SSP_ADM_DespesasVerbas_Result CreateSSP_ADM_DespesasVerbas_Result(global::System.Int32 projectoId, global::System.Int32 rubricaId, global::System.Double totalExecutado, global::System.Double totalPago)
        {
            SSP_ADM_DespesasVerbas_Result sSP_ADM_DespesasVerbas_Result = new SSP_ADM_DespesasVerbas_Result();
            sSP_ADM_DespesasVerbas_Result.ProjectoId = projectoId;
            sSP_ADM_DespesasVerbas_Result.RubricaId = rubricaId;
            sSP_ADM_DespesasVerbas_Result.TotalExecutado = totalExecutado;
            sSP_ADM_DespesasVerbas_Result.TotalPago = totalPago;
            return sSP_ADM_DespesasVerbas_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ProjectoId
        {
            get
            {
                return _ProjectoId;
            }
            set
            {
                OnProjectoIdChanging(value);
                ReportPropertyChanging("ProjectoId");
                _ProjectoId = StructuralObject.SetValidValue(value, "ProjectoId");
                ReportPropertyChanged("ProjectoId");
                OnProjectoIdChanged();
            }
        }
        private global::System.Int32 _ProjectoId;
        partial void OnProjectoIdChanging(global::System.Int32 value);
        partial void OnProjectoIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 RubricaId
        {
            get
            {
                return _RubricaId;
            }
            set
            {
                OnRubricaIdChanging(value);
                ReportPropertyChanging("RubricaId");
                _RubricaId = StructuralObject.SetValidValue(value, "RubricaId");
                ReportPropertyChanged("RubricaId");
                OnRubricaIdChanged();
            }
        }
        private global::System.Int32 _RubricaId;
        partial void OnRubricaIdChanging(global::System.Int32 value);
        partial void OnRubricaIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double TotalExecutado
        {
            get
            {
                return _TotalExecutado;
            }
            set
            {
                OnTotalExecutadoChanging(value);
                ReportPropertyChanging("TotalExecutado");
                _TotalExecutado = StructuralObject.SetValidValue(value, "TotalExecutado");
                ReportPropertyChanged("TotalExecutado");
                OnTotalExecutadoChanged();
            }
        }
        private global::System.Double _TotalExecutado;
        partial void OnTotalExecutadoChanging(global::System.Double value);
        partial void OnTotalExecutadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double TotalPago
        {
            get
            {
                return _TotalPago;
            }
            set
            {
                OnTotalPagoChanging(value);
                ReportPropertyChanging("TotalPago");
                _TotalPago = StructuralObject.SetValidValue(value, "TotalPago");
                ReportPropertyChanged("TotalPago");
                OnTotalPagoChanged();
            }
        }
        private global::System.Double _TotalPago;
        partial void OnTotalPagoChanging(global::System.Double value);
        partial void OnTotalPagoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_ADM_DespesasVerbasSemRubricas_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_ADM_DespesasVerbasSemRubricas_Result : ComplexObject
    {
        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> ProjectoId
        {
            get
            {
                return _ProjectoId;
            }
            set
            {
                OnProjectoIdChanging(value);
                ReportPropertyChanging("ProjectoId");
                _ProjectoId = StructuralObject.SetValidValue(value, "ProjectoId");
                ReportPropertyChanged("ProjectoId");
                OnProjectoIdChanged();
            }
        }
        private Nullable<global::System.Int32> _ProjectoId;
        partial void OnProjectoIdChanging(Nullable<global::System.Int32> value);
        partial void OnProjectoIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> RubricaId
        {
            get
            {
                return _RubricaId;
            }
            set
            {
                OnRubricaIdChanging(value);
                ReportPropertyChanging("RubricaId");
                _RubricaId = StructuralObject.SetValidValue(value, "RubricaId");
                ReportPropertyChanged("RubricaId");
                OnRubricaIdChanged();
            }
        }
        private Nullable<global::System.Int32> _RubricaId;
        partial void OnRubricaIdChanging(Nullable<global::System.Int32> value);
        partial void OnRubricaIdChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> TotalExecutado
        {
            get
            {
                return _TotalExecutado;
            }
            set
            {
                OnTotalExecutadoChanging(value);
                ReportPropertyChanging("TotalExecutado");
                _TotalExecutado = StructuralObject.SetValidValue(value, "TotalExecutado");
                ReportPropertyChanged("TotalExecutado");
                OnTotalExecutadoChanged();
            }
        }
        private Nullable<global::System.Double> _TotalExecutado;
        partial void OnTotalExecutadoChanging(Nullable<global::System.Double> value);
        partial void OnTotalExecutadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> TotalPago
        {
            get
            {
                return _TotalPago;
            }
            set
            {
                OnTotalPagoChanging(value);
                ReportPropertyChanging("TotalPago");
                _TotalPago = StructuralObject.SetValidValue(value, "TotalPago");
                ReportPropertyChanged("TotalPago");
                OnTotalPagoChanged();
            }
        }
        private Nullable<global::System.Double> _TotalPago;
        partial void OnTotalPagoChanging(Nullable<global::System.Double> value);
        partial void OnTotalPagoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ClassificacaoEconomica
        {
            get
            {
                return _ClassificacaoEconomica;
            }
            set
            {
                OnClassificacaoEconomicaChanging(value);
                ReportPropertyChanging("ClassificacaoEconomica");
                _ClassificacaoEconomica = StructuralObject.SetValidValue(value, true, "ClassificacaoEconomica");
                ReportPropertyChanged("ClassificacaoEconomica");
                OnClassificacaoEconomicaChanged();
            }
        }
        private global::System.String _ClassificacaoEconomica;
        partial void OnClassificacaoEconomicaChanging(global::System.String value);
        partial void OnClassificacaoEconomicaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DescricaoClassificacaoEconomica
        {
            get
            {
                return _DescricaoClassificacaoEconomica;
            }
            set
            {
                OnDescricaoClassificacaoEconomicaChanging(value);
                ReportPropertyChanging("DescricaoClassificacaoEconomica");
                _DescricaoClassificacaoEconomica = StructuralObject.SetValidValue(value, true, "DescricaoClassificacaoEconomica");
                ReportPropertyChanged("DescricaoClassificacaoEconomica");
                OnDescricaoClassificacaoEconomicaChanged();
            }
        }
        private global::System.String _DescricaoClassificacaoEconomica;
        partial void OnDescricaoClassificacaoEconomicaChanging(global::System.String value);
        partial void OnDescricaoClassificacaoEconomicaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeRubricaEF
        {
            get
            {
                return _NomeRubricaEF;
            }
            set
            {
                OnNomeRubricaEFChanging(value);
                ReportPropertyChanging("NomeRubricaEF");
                _NomeRubricaEF = StructuralObject.SetValidValue(value, true, "NomeRubricaEF");
                ReportPropertyChanged("NomeRubricaEF");
                OnNomeRubricaEFChanged();
            }
        }
        private global::System.String _NomeRubricaEF;
        partial void OnNomeRubricaEFChanging(global::System.String value);
        partial void OnNomeRubricaEFChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_Despesas_BySubCentro_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_Despesas_BySubCentro_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_Despesas_BySubCentro_Result object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="iDInstituicao">Initial value of the IDInstituicao property.</param>
        /// <param name="iDRubrica">Initial value of the IDRubrica property.</param>
        /// <param name="descricaoDespesa">Initial value of the DescricaoDespesa property.</param>
        /// <param name="iDEstado">Initial value of the IDEstado property.</param>
        public static SSP_Despesas_BySubCentro_Result CreateSSP_Despesas_BySubCentro_Result(global::System.Int32 id, global::System.Int32 iDProjecto, global::System.Int32 iDInstituicao, global::System.Int32 iDRubrica, global::System.String descricaoDespesa, global::System.Int32 iDEstado)
        {
            SSP_Despesas_BySubCentro_Result sSP_Despesas_BySubCentro_Result = new SSP_Despesas_BySubCentro_Result();
            sSP_Despesas_BySubCentro_Result.ID = id;
            sSP_Despesas_BySubCentro_Result.IDProjecto = iDProjecto;
            sSP_Despesas_BySubCentro_Result.IDInstituicao = iDInstituicao;
            sSP_Despesas_BySubCentro_Result.IDRubrica = iDRubrica;
            sSP_Despesas_BySubCentro_Result.DescricaoDespesa = descricaoDespesa;
            sSP_Despesas_BySubCentro_Result.IDEstado = iDEstado;
            return sSP_Despesas_BySubCentro_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private global::System.Int32 _IDInstituicao;
        partial void OnIDInstituicaoChanging(global::System.Int32 value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDRubrica
        {
            get
            {
                return _IDRubrica;
            }
            set
            {
                OnIDRubricaChanging(value);
                ReportPropertyChanging("IDRubrica");
                _IDRubrica = StructuralObject.SetValidValue(value, "IDRubrica");
                ReportPropertyChanged("IDRubrica");
                OnIDRubricaChanged();
            }
        }
        private global::System.Int32 _IDRubrica;
        partial void OnIDRubricaChanging(global::System.Int32 value);
        partial void OnIDRubricaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String DescricaoDespesa
        {
            get
            {
                return _DescricaoDespesa;
            }
            set
            {
                OnDescricaoDespesaChanging(value);
                ReportPropertyChanging("DescricaoDespesa");
                _DescricaoDespesa = StructuralObject.SetValidValue(value, false, "DescricaoDespesa");
                ReportPropertyChanged("DescricaoDespesa");
                OnDescricaoDespesaChanged();
            }
        }
        private global::System.String _DescricaoDespesa;
        partial void OnDescricaoDespesaChanging(global::System.String value);
        partial void OnDescricaoDespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NIFFornecedor
        {
            get
            {
                return _NIFFornecedor;
            }
            set
            {
                OnNIFFornecedorChanging(value);
                ReportPropertyChanging("NIFFornecedor");
                _NIFFornecedor = StructuralObject.SetValidValue(value, true, "NIFFornecedor");
                ReportPropertyChanged("NIFFornecedor");
                OnNIFFornecedorChanged();
            }
        }
        private global::System.String _NIFFornecedor;
        partial void OnNIFFornecedorChanging(global::System.String value);
        partial void OnNIFFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeFornecedor
        {
            get
            {
                return _NomeFornecedor;
            }
            set
            {
                OnNomeFornecedorChanging(value);
                ReportPropertyChanging("NomeFornecedor");
                _NomeFornecedor = StructuralObject.SetValidValue(value, true, "NomeFornecedor");
                ReportPropertyChanged("NomeFornecedor");
                OnNomeFornecedorChanged();
            }
        }
        private global::System.String _NomeFornecedor;
        partial void OnNomeFornecedorChanging(global::System.String value);
        partial void OnNomeFornecedorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DespesaNumeroDocumento
        {
            get
            {
                return _DespesaNumeroDocumento;
            }
            set
            {
                OnDespesaNumeroDocumentoChanging(value);
                ReportPropertyChanging("DespesaNumeroDocumento");
                _DespesaNumeroDocumento = StructuralObject.SetValidValue(value, true, "DespesaNumeroDocumento");
                ReportPropertyChanged("DespesaNumeroDocumento");
                OnDespesaNumeroDocumentoChanged();
            }
        }
        private global::System.String _DespesaNumeroDocumento;
        partial void OnDespesaNumeroDocumentoChanging(global::System.String value);
        partial void OnDespesaNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDDespesaTipoDocumento
        {
            get
            {
                return _IDDespesaTipoDocumento;
            }
            set
            {
                OnIDDespesaTipoDocumentoChanging(value);
                ReportPropertyChanging("IDDespesaTipoDocumento");
                _IDDespesaTipoDocumento = StructuralObject.SetValidValue(value, "IDDespesaTipoDocumento");
                ReportPropertyChanged("IDDespesaTipoDocumento");
                OnIDDespesaTipoDocumentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDDespesaTipoDocumento;
        partial void OnIDDespesaTipoDocumentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDDespesaTipoDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DespesaDataDocumento
        {
            get
            {
                return _DespesaDataDocumento;
            }
            set
            {
                OnDespesaDataDocumentoChanging(value);
                ReportPropertyChanging("DespesaDataDocumento");
                _DespesaDataDocumento = StructuralObject.SetValidValue(value, "DespesaDataDocumento");
                ReportPropertyChanged("DespesaDataDocumento");
                OnDespesaDataDocumentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DespesaDataDocumento;
        partial void OnDespesaDataDocumentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDespesaDataDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaValor
        {
            get
            {
                return _DespesaValor;
            }
            set
            {
                OnDespesaValorChanging(value);
                ReportPropertyChanging("DespesaValor");
                _DespesaValor = StructuralObject.SetValidValue(value, "DespesaValor");
                ReportPropertyChanged("DespesaValor");
                OnDespesaValorChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaValor;
        partial void OnDespesaValorChanging(Nullable<global::System.Double> value);
        partial void OnDespesaValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaIVA
        {
            get
            {
                return _DespesaIVA;
            }
            set
            {
                OnDespesaIVAChanging(value);
                ReportPropertyChanging("DespesaIVA");
                _DespesaIVA = StructuralObject.SetValidValue(value, "DespesaIVA");
                ReportPropertyChanged("DespesaIVA");
                OnDespesaIVAChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaIVA;
        partial void OnDespesaIVAChanging(Nullable<global::System.Double> value);
        partial void OnDespesaIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DespesaAnexo
        {
            get
            {
                return _DespesaAnexo;
            }
            set
            {
                OnDespesaAnexoChanging(value);
                ReportPropertyChanging("DespesaAnexo");
                _DespesaAnexo = StructuralObject.SetValidValue(value, true, "DespesaAnexo");
                ReportPropertyChanged("DespesaAnexo");
                OnDespesaAnexoChanged();
            }
        }
        private global::System.String _DespesaAnexo;
        partial void OnDespesaAnexoChanging(global::System.String value);
        partial void OnDespesaAnexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String QuitacaoNumeroDocumento
        {
            get
            {
                return _QuitacaoNumeroDocumento;
            }
            set
            {
                OnQuitacaoNumeroDocumentoChanging(value);
                ReportPropertyChanging("QuitacaoNumeroDocumento");
                _QuitacaoNumeroDocumento = StructuralObject.SetValidValue(value, true, "QuitacaoNumeroDocumento");
                ReportPropertyChanged("QuitacaoNumeroDocumento");
                OnQuitacaoNumeroDocumentoChanged();
            }
        }
        private global::System.String _QuitacaoNumeroDocumento;
        partial void OnQuitacaoNumeroDocumentoChanging(global::System.String value);
        partial void OnQuitacaoNumeroDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDQuitacaoTipoDocumento
        {
            get
            {
                return _IDQuitacaoTipoDocumento;
            }
            set
            {
                OnIDQuitacaoTipoDocumentoChanging(value);
                ReportPropertyChanging("IDQuitacaoTipoDocumento");
                _IDQuitacaoTipoDocumento = StructuralObject.SetValidValue(value, "IDQuitacaoTipoDocumento");
                ReportPropertyChanged("IDQuitacaoTipoDocumento");
                OnIDQuitacaoTipoDocumentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDQuitacaoTipoDocumento;
        partial void OnIDQuitacaoTipoDocumentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDQuitacaoTipoDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> QuitacaoDataDocumento
        {
            get
            {
                return _QuitacaoDataDocumento;
            }
            set
            {
                OnQuitacaoDataDocumentoChanging(value);
                ReportPropertyChanging("QuitacaoDataDocumento");
                _QuitacaoDataDocumento = StructuralObject.SetValidValue(value, "QuitacaoDataDocumento");
                ReportPropertyChanged("QuitacaoDataDocumento");
                OnQuitacaoDataDocumentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _QuitacaoDataDocumento;
        partial void OnQuitacaoDataDocumentoChanging(Nullable<global::System.DateTime> value);
        partial void OnQuitacaoDataDocumentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> QuitacaoValor
        {
            get
            {
                return _QuitacaoValor;
            }
            set
            {
                OnQuitacaoValorChanging(value);
                ReportPropertyChanging("QuitacaoValor");
                _QuitacaoValor = StructuralObject.SetValidValue(value, "QuitacaoValor");
                ReportPropertyChanged("QuitacaoValor");
                OnQuitacaoValorChanged();
            }
        }
        private Nullable<global::System.Double> _QuitacaoValor;
        partial void OnQuitacaoValorChanging(Nullable<global::System.Double> value);
        partial void OnQuitacaoValorChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> QuitacaoIVA
        {
            get
            {
                return _QuitacaoIVA;
            }
            set
            {
                OnQuitacaoIVAChanging(value);
                ReportPropertyChanging("QuitacaoIVA");
                _QuitacaoIVA = StructuralObject.SetValidValue(value, "QuitacaoIVA");
                ReportPropertyChanged("QuitacaoIVA");
                OnQuitacaoIVAChanged();
            }
        }
        private Nullable<global::System.Double> _QuitacaoIVA;
        partial void OnQuitacaoIVAChanging(Nullable<global::System.Double> value);
        partial void OnQuitacaoIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String QuitacaoAnexo
        {
            get
            {
                return _QuitacaoAnexo;
            }
            set
            {
                OnQuitacaoAnexoChanging(value);
                ReportPropertyChanging("QuitacaoAnexo");
                _QuitacaoAnexo = StructuralObject.SetValidValue(value, true, "QuitacaoAnexo");
                ReportPropertyChanged("QuitacaoAnexo");
                OnQuitacaoAnexoChanged();
            }
        }
        private global::System.String _QuitacaoAnexo;
        partial void OnQuitacaoAnexoChanging(global::System.String value);
        partial void OnQuitacaoAnexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPOC
        {
            get
            {
                return _CodigoPOC;
            }
            set
            {
                OnCodigoPOCChanging(value);
                ReportPropertyChanging("CodigoPOC");
                _CodigoPOC = StructuralObject.SetValidValue(value, true, "CodigoPOC");
                ReportPropertyChanged("CodigoPOC");
                OnCodigoPOCChanged();
            }
        }
        private global::System.String _CodigoPOC;
        partial void OnCodigoPOCChanging(global::System.String value);
        partial void OnCodigoPOCChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> TaxaImputacao
        {
            get
            {
                return _TaxaImputacao;
            }
            set
            {
                OnTaxaImputacaoChanging(value);
                ReportPropertyChanging("TaxaImputacao");
                _TaxaImputacao = StructuralObject.SetValidValue(value, "TaxaImputacao");
                ReportPropertyChanged("TaxaImputacao");
                OnTaxaImputacaoChanged();
            }
        }
        private Nullable<global::System.Double> _TaxaImputacao;
        partial void OnTaxaImputacaoChanging(Nullable<global::System.Double> value);
        partial void OnTaxaImputacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Anulada
        {
            get
            {
                return _Anulada;
            }
            set
            {
                OnAnuladaChanging(value);
                ReportPropertyChanging("Anulada");
                _Anulada = StructuralObject.SetValidValue(value, "Anulada");
                ReportPropertyChanged("Anulada");
                OnAnuladaChanged();
            }
        }
        private Nullable<global::System.Boolean> _Anulada;
        partial void OnAnuladaChanging(Nullable<global::System.Boolean> value);
        partial void OnAnuladaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPagamento
        {
            get
            {
                return _IDPagamento;
            }
            set
            {
                OnIDPagamentoChanging(value);
                ReportPropertyChanging("IDPagamento");
                _IDPagamento = StructuralObject.SetValidValue(value, "IDPagamento");
                ReportPropertyChanged("IDPagamento");
                OnIDPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPagamento;
        partial void OnIDPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataValidacao
        {
            get
            {
                return _DataValidacao;
            }
            set
            {
                OnDataValidacaoChanging(value);
                ReportPropertyChanging("DataValidacao");
                _DataValidacao = StructuralObject.SetValidValue(value, "DataValidacao");
                ReportPropertyChanged("DataValidacao");
                OnDataValidacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataValidacao;
        partial void OnDataValidacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataValidacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDEstado
        {
            get
            {
                return _IDEstado;
            }
            set
            {
                OnIDEstadoChanging(value);
                ReportPropertyChanging("IDEstado");
                _IDEstado = StructuralObject.SetValidValue(value, "IDEstado");
                ReportPropertyChanged("IDEstado");
                OnIDEstadoChanged();
            }
        }
        private global::System.Int32 _IDEstado;
        partial void OnIDEstadoChanging(global::System.Int32 value);
        partial void OnIDEstadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPDiario
        {
            get
            {
                return _ERPDiario;
            }
            set
            {
                OnERPDiarioChanging(value);
                ReportPropertyChanging("ERPDiario");
                _ERPDiario = StructuralObject.SetValidValue(value, true, "ERPDiario");
                ReportPropertyChanged("ERPDiario");
                OnERPDiarioChanged();
            }
        }
        private global::System.String _ERPDiario;
        partial void OnERPDiarioChanging(global::System.String value);
        partial void OnERPDiarioChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPNReg
        {
            get
            {
                return _ERPNReg;
            }
            set
            {
                OnERPNRegChanging(value);
                ReportPropertyChanging("ERPNReg");
                _ERPNReg = StructuralObject.SetValidValue(value, true, "ERPNReg");
                ReportPropertyChanged("ERPNReg");
                OnERPNRegChanged();
            }
        }
        private global::System.String _ERPNReg;
        partial void OnERPNRegChanging(global::System.String value);
        partial void OnERPNRegChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> Legada
        {
            get
            {
                return _Legada;
            }
            set
            {
                OnLegadaChanging(value);
                ReportPropertyChanging("Legada");
                _Legada = StructuralObject.SetValidValue(value, "Legada");
                ReportPropertyChanged("Legada");
                OnLegadaChanged();
            }
        }
        private Nullable<global::System.Boolean> _Legada;
        partial void OnLegadaChanging(Nullable<global::System.Boolean> value);
        partial void OnLegadaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Estrangeiro
        {
            get
            {
                return _Estrangeiro;
            }
            set
            {
                OnEstrangeiroChanging(value);
                ReportPropertyChanging("Estrangeiro");
                _Estrangeiro = StructuralObject.SetValidValue(value, true, "Estrangeiro");
                ReportPropertyChanged("Estrangeiro");
                OnEstrangeiroChanged();
            }
        }
        private global::System.String _Estrangeiro;
        partial void OnEstrangeiroChanging(global::System.String value);
        partial void OnEstrangeiroChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataContabilistica
        {
            get
            {
                return _DataContabilistica;
            }
            set
            {
                OnDataContabilisticaChanging(value);
                ReportPropertyChanging("DataContabilistica");
                _DataContabilistica = StructuralObject.SetValidValue(value, "DataContabilistica");
                ReportPropertyChanged("DataContabilistica");
                OnDataContabilisticaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataContabilistica;
        partial void OnDataContabilisticaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataContabilisticaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> DespesaTaxaIVA
        {
            get
            {
                return _DespesaTaxaIVA;
            }
            set
            {
                OnDespesaTaxaIVAChanging(value);
                ReportPropertyChanging("DespesaTaxaIVA");
                _DespesaTaxaIVA = StructuralObject.SetValidValue(value, "DespesaTaxaIVA");
                ReportPropertyChanged("DespesaTaxaIVA");
                OnDespesaTaxaIVAChanged();
            }
        }
        private Nullable<global::System.Double> _DespesaTaxaIVA;
        partial void OnDespesaTaxaIVAChanging(Nullable<global::System.Double> value);
        partial void OnDespesaTaxaIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorConsiderar
        {
            get
            {
                return _ValorConsiderar;
            }
            set
            {
                OnValorConsiderarChanging(value);
                ReportPropertyChanging("ValorConsiderar");
                _ValorConsiderar = StructuralObject.SetValidValue(value, "ValorConsiderar");
                ReportPropertyChanged("ValorConsiderar");
                OnValorConsiderarChanged();
            }
        }
        private Nullable<global::System.Double> _ValorConsiderar;
        partial void OnValorConsiderarChanging(Nullable<global::System.Double> value);
        partial void OnValorConsiderarChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorReembolsado
        {
            get
            {
                return _ValorReembolsado;
            }
            set
            {
                OnValorReembolsadoChanging(value);
                ReportPropertyChanging("ValorReembolsado");
                _ValorReembolsado = StructuralObject.SetValidValue(value, "ValorReembolsado");
                ReportPropertyChanged("ValorReembolsado");
                OnValorReembolsadoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorReembolsado;
        partial void OnValorReembolsadoChanging(Nullable<global::System.Double> value);
        partial void OnValorReembolsadoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> DespesaRegistadaDFP
        {
            get
            {
                return _DespesaRegistadaDFP;
            }
            set
            {
                OnDespesaRegistadaDFPChanging(value);
                ReportPropertyChanging("DespesaRegistadaDFP");
                _DespesaRegistadaDFP = StructuralObject.SetValidValue(value, "DespesaRegistadaDFP");
                ReportPropertyChanged("DespesaRegistadaDFP");
                OnDespesaRegistadaDFPChanged();
            }
        }
        private Nullable<global::System.Boolean> _DespesaRegistadaDFP;
        partial void OnDespesaRegistadaDFPChanging(Nullable<global::System.Boolean> value);
        partial void OnDespesaRegistadaDFPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String ERPDescMovCTB
        {
            get
            {
                return _ERPDescMovCTB;
            }
            set
            {
                OnERPDescMovCTBChanging(value);
                ReportPropertyChanging("ERPDescMovCTB");
                _ERPDescMovCTB = StructuralObject.SetValidValue(value, true, "ERPDescMovCTB");
                ReportPropertyChanged("ERPDescMovCTB");
                OnERPDescMovCTBChanged();
            }
        }
        private global::System.String _ERPDescMovCTB;
        partial void OnERPDescMovCTBChanging(global::System.String value);
        partial void OnERPDescMovCTBChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CentroCustos
        {
            get
            {
                return _CentroCustos;
            }
            set
            {
                OnCentroCustosChanging(value);
                ReportPropertyChanging("CentroCustos");
                _CentroCustos = StructuralObject.SetValidValue(value, true, "CentroCustos");
                ReportPropertyChanged("CentroCustos");
                OnCentroCustosChanged();
            }
        }
        private global::System.String _CentroCustos;
        partial void OnCentroCustosChanging(global::System.String value);
        partial void OnCentroCustosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDDSP
        {
            get
            {
                return _IDDSP;
            }
            set
            {
                OnIDDSPChanging(value);
                ReportPropertyChanging("IDDSP");
                _IDDSP = StructuralObject.SetValidValue(value, "IDDSP");
                ReportPropertyChanged("IDDSP");
                OnIDDSPChanged();
            }
        }
        private Nullable<global::System.Int32> _IDDSP;
        partial void OnIDDSPChanging(Nullable<global::System.Int32> value);
        partial void OnIDDSPChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ImputacaoDespesa
        {
            get
            {
                return _ImputacaoDespesa;
            }
            set
            {
                OnImputacaoDespesaChanging(value);
                ReportPropertyChanging("ImputacaoDespesa");
                _ImputacaoDespesa = StructuralObject.SetValidValue(value, "ImputacaoDespesa");
                ReportPropertyChanged("ImputacaoDespesa");
                OnImputacaoDespesaChanged();
            }
        }
        private Nullable<global::System.Boolean> _ImputacaoDespesa;
        partial void OnImputacaoDespesaChanging(Nullable<global::System.Boolean> value);
        partial void OnImputacaoDespesaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorTotalTransferencia
        {
            get
            {
                return _ValorTotalTransferencia;
            }
            set
            {
                OnValorTotalTransferenciaChanging(value);
                ReportPropertyChanging("ValorTotalTransferencia");
                _ValorTotalTransferencia = StructuralObject.SetValidValue(value, "ValorTotalTransferencia");
                ReportPropertyChanged("ValorTotalTransferencia");
                OnValorTotalTransferenciaChanged();
            }
        }
        private Nullable<global::System.Double> _ValorTotalTransferencia;
        partial void OnValorTotalTransferenciaChanging(Nullable<global::System.Double> value);
        partial void OnValorTotalTransferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDTipoProcedimentoPublico
        {
            get
            {
                return _IDTipoProcedimentoPublico;
            }
            set
            {
                OnIDTipoProcedimentoPublicoChanging(value);
                ReportPropertyChanging("IDTipoProcedimentoPublico");
                _IDTipoProcedimentoPublico = StructuralObject.SetValidValue(value, "IDTipoProcedimentoPublico");
                ReportPropertyChanged("IDTipoProcedimentoPublico");
                OnIDTipoProcedimentoPublicoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDTipoProcedimentoPublico;
        partial void OnIDTipoProcedimentoPublicoChanging(Nullable<global::System.Int32> value);
        partial void OnIDTipoProcedimentoPublicoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataDecisaoContrato
        {
            get
            {
                return _DataDecisaoContrato;
            }
            set
            {
                OnDataDecisaoContratoChanging(value);
                ReportPropertyChanging("DataDecisaoContrato");
                _DataDecisaoContrato = StructuralObject.SetValidValue(value, "DataDecisaoContrato");
                ReportPropertyChanged("DataDecisaoContrato");
                OnDataDecisaoContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataDecisaoContrato;
        partial void OnDataDecisaoContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataDecisaoContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataContrato
        {
            get
            {
                return _DataContrato;
            }
            set
            {
                OnDataContratoChanging(value);
                ReportPropertyChanging("DataContrato");
                _DataContrato = StructuralObject.SetValidValue(value, "DataContrato");
                ReportPropertyChanged("DataContrato");
                OnDataContratoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataContrato;
        partial void OnDataContratoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataContratoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> AmorticacaoTaxa
        {
            get
            {
                return _AmorticacaoTaxa;
            }
            set
            {
                OnAmorticacaoTaxaChanging(value);
                ReportPropertyChanging("AmorticacaoTaxa");
                _AmorticacaoTaxa = StructuralObject.SetValidValue(value, "AmorticacaoTaxa");
                ReportPropertyChanged("AmorticacaoTaxa");
                OnAmorticacaoTaxaChanged();
            }
        }
        private Nullable<global::System.Decimal> _AmorticacaoTaxa;
        partial void OnAmorticacaoTaxaChanging(Nullable<global::System.Decimal> value);
        partial void OnAmorticacaoTaxaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> AmorticacaoInicioAfetacao
        {
            get
            {
                return _AmorticacaoInicioAfetacao;
            }
            set
            {
                OnAmorticacaoInicioAfetacaoChanging(value);
                ReportPropertyChanging("AmorticacaoInicioAfetacao");
                _AmorticacaoInicioAfetacao = StructuralObject.SetValidValue(value, "AmorticacaoInicioAfetacao");
                ReportPropertyChanged("AmorticacaoInicioAfetacao");
                OnAmorticacaoInicioAfetacaoChanged();
            }
        }
        private Nullable<global::System.DateTime> _AmorticacaoInicioAfetacao;
        partial void OnAmorticacaoInicioAfetacaoChanging(Nullable<global::System.DateTime> value);
        partial void OnAmorticacaoInicioAfetacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> AmorticacaoFimAfetacaoProjecto
        {
            get
            {
                return _AmorticacaoFimAfetacaoProjecto;
            }
            set
            {
                OnAmorticacaoFimAfetacaoProjectoChanging(value);
                ReportPropertyChanging("AmorticacaoFimAfetacaoProjecto");
                _AmorticacaoFimAfetacaoProjecto = StructuralObject.SetValidValue(value, "AmorticacaoFimAfetacaoProjecto");
                ReportPropertyChanged("AmorticacaoFimAfetacaoProjecto");
                OnAmorticacaoFimAfetacaoProjectoChanged();
            }
        }
        private Nullable<global::System.DateTime> _AmorticacaoFimAfetacaoProjecto;
        partial void OnAmorticacaoFimAfetacaoProjectoChanging(Nullable<global::System.DateTime> value);
        partial void OnAmorticacaoFimAfetacaoProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorContratoSemIVA
        {
            get
            {
                return _ValorContratoSemIVA;
            }
            set
            {
                OnValorContratoSemIVAChanging(value);
                ReportPropertyChanging("ValorContratoSemIVA");
                _ValorContratoSemIVA = StructuralObject.SetValidValue(value, "ValorContratoSemIVA");
                ReportPropertyChanged("ValorContratoSemIVA");
                OnValorContratoSemIVAChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorContratoSemIVA;
        partial void OnValorContratoSemIVAChanging(Nullable<global::System.Decimal> value);
        partial void OnValorContratoSemIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Decimal> ValorContratoComIVA
        {
            get
            {
                return _ValorContratoComIVA;
            }
            set
            {
                OnValorContratoComIVAChanging(value);
                ReportPropertyChanging("ValorContratoComIVA");
                _ValorContratoComIVA = StructuralObject.SetValidValue(value, "ValorContratoComIVA");
                ReportPropertyChanged("ValorContratoComIVA");
                OnValorContratoComIVAChanged();
            }
        }
        private Nullable<global::System.Decimal> _ValorContratoComIVA;
        partial void OnValorContratoComIVAChanging(Nullable<global::System.Decimal> value);
        partial void OnValorContratoComIVAChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroContrato
        {
            get
            {
                return _NumeroContrato;
            }
            set
            {
                OnNumeroContratoChanging(value);
                ReportPropertyChanging("NumeroContrato");
                _NumeroContrato = StructuralObject.SetValidValue(value, true, "NumeroContrato");
                ReportPropertyChanged("NumeroContrato");
                OnNumeroContratoChanged();
            }
        }
        private global::System.String _NumeroContrato;
        partial void OnNumeroContratoChanging(global::System.String value);
        partial void OnNumeroContratoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_Funcionario_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_Funcionario_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_Funcionario_Result object.
        /// </summary>
        /// <param name="nmecanografico">Initial value of the Nmecanografico property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        /// <param name="sexo">Initial value of the Sexo property.</param>
        /// <param name="codigoUnidade">Initial value of the CodigoUnidade property.</param>
        /// <param name="unidade">Initial value of the Unidade property.</param>
        /// <param name="categoria">Initial value of the Categoria property.</param>
        /// <param name="tipo">Initial value of the Tipo property.</param>
        public static SSP_Funcionario_Result CreateSSP_Funcionario_Result(global::System.String nmecanografico, global::System.String nome, global::System.String sexo, global::System.String codigoUnidade, global::System.String unidade, global::System.String categoria, global::System.String tipo)
        {
            SSP_Funcionario_Result sSP_Funcionario_Result = new SSP_Funcionario_Result();
            sSP_Funcionario_Result.Nmecanografico = nmecanografico;
            sSP_Funcionario_Result.Nome = nome;
            sSP_Funcionario_Result.Sexo = sexo;
            sSP_Funcionario_Result.CodigoUnidade = codigoUnidade;
            sSP_Funcionario_Result.Unidade = unidade;
            sSP_Funcionario_Result.Categoria = categoria;
            sSP_Funcionario_Result.Tipo = tipo;
            return sSP_Funcionario_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nmecanografico
        {
            get
            {
                return _Nmecanografico;
            }
            set
            {
                OnNmecanograficoChanging(value);
                ReportPropertyChanging("Nmecanografico");
                _Nmecanografico = StructuralObject.SetValidValue(value, false, "Nmecanografico");
                ReportPropertyChanged("Nmecanografico");
                OnNmecanograficoChanged();
            }
        }
        private global::System.String _Nmecanografico;
        partial void OnNmecanograficoChanging(global::System.String value);
        partial void OnNmecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataNascimento
        {
            get
            {
                return _DataNascimento;
            }
            set
            {
                OnDataNascimentoChanging(value);
                ReportPropertyChanging("DataNascimento");
                _DataNascimento = StructuralObject.SetValidValue(value, "DataNascimento");
                ReportPropertyChanged("DataNascimento");
                OnDataNascimentoChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataNascimento;
        partial void OnDataNascimentoChanging(Nullable<global::System.DateTime> value);
        partial void OnDataNascimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoDocumentoID
        {
            get
            {
                return _TipoDocumentoID;
            }
            set
            {
                OnTipoDocumentoIDChanging(value);
                ReportPropertyChanging("TipoDocumentoID");
                _TipoDocumentoID = StructuralObject.SetValidValue(value, true, "TipoDocumentoID");
                ReportPropertyChanged("TipoDocumentoID");
                OnTipoDocumentoIDChanged();
            }
        }
        private global::System.String _TipoDocumentoID;
        partial void OnTipoDocumentoIDChanging(global::System.String value);
        partial void OnTipoDocumentoIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroDI
        {
            get
            {
                return _NumeroDI;
            }
            set
            {
                OnNumeroDIChanging(value);
                ReportPropertyChanging("NumeroDI");
                _NumeroDI = StructuralObject.SetValidValue(value, true, "NumeroDI");
                ReportPropertyChanged("NumeroDI");
                OnNumeroDIChanged();
            }
        }
        private global::System.String _NumeroDI;
        partial void OnNumeroDIChanging(global::System.String value);
        partial void OnNumeroDIChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroContribuinte
        {
            get
            {
                return _NumeroContribuinte;
            }
            set
            {
                OnNumeroContribuinteChanging(value);
                ReportPropertyChanging("NumeroContribuinte");
                _NumeroContribuinte = StructuralObject.SetValidValue(value, true, "NumeroContribuinte");
                ReportPropertyChanged("NumeroContribuinte");
                OnNumeroContribuinteChanged();
            }
        }
        private global::System.String _NumeroContribuinte;
        partial void OnNumeroContribuinteChanging(global::System.String value);
        partial void OnNumeroContribuinteChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sexo
        {
            get
            {
                return _Sexo;
            }
            set
            {
                OnSexoChanging(value);
                ReportPropertyChanging("Sexo");
                _Sexo = StructuralObject.SetValidValue(value, false, "Sexo");
                ReportPropertyChanged("Sexo");
                OnSexoChanged();
            }
        }
        private global::System.String _Sexo;
        partial void OnSexoChanging(global::System.String value);
        partial void OnSexoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String HabilitacaoActual
        {
            get
            {
                return _HabilitacaoActual;
            }
            set
            {
                OnHabilitacaoActualChanging(value);
                ReportPropertyChanging("HabilitacaoActual");
                _HabilitacaoActual = StructuralObject.SetValidValue(value, true, "HabilitacaoActual");
                ReportPropertyChanged("HabilitacaoActual");
                OnHabilitacaoActualChanged();
            }
        }
        private global::System.String _HabilitacaoActual;
        partial void OnHabilitacaoActualChanging(global::System.String value);
        partial void OnHabilitacaoActualChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                OnCodigoUnidadeChanging(value);
                ReportPropertyChanging("CodigoUnidade");
                _CodigoUnidade = StructuralObject.SetValidValue(value, false, "CodigoUnidade");
                ReportPropertyChanged("CodigoUnidade");
                OnCodigoUnidadeChanged();
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Unidade
        {
            get
            {
                return _Unidade;
            }
            set
            {
                OnUnidadeChanging(value);
                ReportPropertyChanging("Unidade");
                _Unidade = StructuralObject.SetValidValue(value, false, "Unidade");
                ReportPropertyChanged("Unidade");
                OnUnidadeChanged();
            }
        }
        private global::System.String _Unidade;
        partial void OnUnidadeChanging(global::System.String value);
        partial void OnUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String LocalTrabalho
        {
            get
            {
                return _LocalTrabalho;
            }
            set
            {
                OnLocalTrabalhoChanging(value);
                ReportPropertyChanging("LocalTrabalho");
                _LocalTrabalho = StructuralObject.SetValidValue(value, true, "LocalTrabalho");
                ReportPropertyChanged("LocalTrabalho");
                OnLocalTrabalhoChanged();
            }
        }
        private global::System.String _LocalTrabalho;
        partial void OnLocalTrabalhoChanging(global::System.String value);
        partial void OnLocalTrabalhoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Categoria
        {
            get
            {
                return _Categoria;
            }
            set
            {
                OnCategoriaChanging(value);
                ReportPropertyChanging("Categoria");
                _Categoria = StructuralObject.SetValidValue(value, false, "Categoria");
                ReportPropertyChanged("Categoria");
                OnCategoriaChanged();
            }
        }
        private global::System.String _Categoria;
        partial void OnCategoriaChanging(global::System.String value);
        partial void OnCategoriaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, false, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TelefoneUM
        {
            get
            {
                return _TelefoneUM;
            }
            set
            {
                OnTelefoneUMChanging(value);
                ReportPropertyChanging("TelefoneUM");
                _TelefoneUM = StructuralObject.SetValidValue(value, true, "TelefoneUM");
                ReportPropertyChanged("TelefoneUM");
                OnTelefoneUMChanged();
            }
        }
        private global::System.String _TelefoneUM;
        partial void OnTelefoneUMChanging(global::System.String value);
        partial void OnTelefoneUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FaxUM
        {
            get
            {
                return _FaxUM;
            }
            set
            {
                OnFaxUMChanging(value);
                ReportPropertyChanging("FaxUM");
                _FaxUM = StructuralObject.SetValidValue(value, true, "FaxUM");
                ReportPropertyChanged("FaxUM");
                OnFaxUMChanged();
            }
        }
        private global::System.String _FaxUM;
        partial void OnFaxUMChanging(global::System.String value);
        partial void OnFaxUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailUM
        {
            get
            {
                return _EmailUM;
            }
            set
            {
                OnEmailUMChanging(value);
                ReportPropertyChanging("EmailUM");
                _EmailUM = StructuralObject.SetValidValue(value, true, "EmailUM");
                ReportPropertyChanged("EmailUM");
                OnEmailUMChanged();
            }
        }
        private global::System.String _EmailUM;
        partial void OnEmailUMChanging(global::System.String value);
        partial void OnEmailUMChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, true, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.String _Activo;
        partial void OnActivoChanging(global::System.String value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String PessoalUM
        {
            get
            {
                return _PessoalUM;
            }
            set
            {
                OnPessoalUMChanging(value);
                ReportPropertyChanging("PessoalUM");
                _PessoalUM = StructuralObject.SetValidValue(value, true, "PessoalUM");
                ReportPropertyChanged("PessoalUM");
                OnPessoalUMChanged();
            }
        }
        private global::System.String _PessoalUM;
        partial void OnPessoalUMChanging(global::System.String value);
        partial void OnPessoalUMChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_FuncionarioByTermo_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_FuncionarioByTermo_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_FuncionarioByTermo_Result object.
        /// </summary>
        /// <param name="nmecanografico">Initial value of the Nmecanografico property.</param>
        /// <param name="nome">Initial value of the Nome property.</param>
        public static SSP_FuncionarioByTermo_Result CreateSSP_FuncionarioByTermo_Result(global::System.String nmecanografico, global::System.String nome)
        {
            SSP_FuncionarioByTermo_Result sSP_FuncionarioByTermo_Result = new SSP_FuncionarioByTermo_Result();
            sSP_FuncionarioByTermo_Result.Nmecanografico = nmecanografico;
            sSP_FuncionarioByTermo_Result.Nome = nome;
            return sSP_FuncionarioByTermo_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nmecanografico
        {
            get
            {
                return _Nmecanografico;
            }
            set
            {
                OnNmecanograficoChanging(value);
                ReportPropertyChanging("Nmecanografico");
                _Nmecanografico = StructuralObject.SetValidValue(value, false, "Nmecanografico");
                ReportPropertyChanged("Nmecanografico");
                OnNmecanograficoChanged();
            }
        }
        private global::System.String _Nmecanografico;
        partial void OnNmecanograficoChanging(global::System.String value);
        partial void OnNmecanograficoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, false, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailUM
        {
            get
            {
                return _EmailUM;
            }
            set
            {
                OnEmailUMChanging(value);
                ReportPropertyChanging("EmailUM");
                _EmailUM = StructuralObject.SetValidValue(value, true, "EmailUM");
                ReportPropertyChanged("EmailUM");
                OnEmailUMChanged();
            }
        }
        private global::System.String _EmailUM;
        partial void OnEmailUMChanging(global::System.String value);
        partial void OnEmailUMChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_GetFontesFinanciamentoHierarquico_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_GetFontesFinanciamentoHierarquico_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_GetFontesFinanciamentoHierarquico_Result object.
        /// </summary>
        /// <param name="flagMostraTabular">Initial value of the FlagMostraTabular property.</param>
        /// <param name="flagTemFilhos">Initial value of the FlagTemFilhos property.</param>
        public static SSP_GetFontesFinanciamentoHierarquico_Result CreateSSP_GetFontesFinanciamentoHierarquico_Result(global::System.Boolean flagMostraTabular, global::System.Int32 flagTemFilhos)
        {
            SSP_GetFontesFinanciamentoHierarquico_Result sSP_GetFontesFinanciamentoHierarquico_Result = new SSP_GetFontesFinanciamentoHierarquico_Result();
            sSP_GetFontesFinanciamentoHierarquico_Result.FlagMostraTabular = flagMostraTabular;
            sSP_GetFontesFinanciamentoHierarquico_Result.FlagTemFilhos = flagTemFilhos;
            return sSP_GetFontesFinanciamentoHierarquico_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private Nullable<global::System.Int32> _ID;
        partial void OnIDChanging(Nullable<global::System.Int32> value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDFonteFinanciamentoPai
        {
            get
            {
                return _IDFonteFinanciamentoPai;
            }
            set
            {
                OnIDFonteFinanciamentoPaiChanging(value);
                ReportPropertyChanging("IDFonteFinanciamentoPai");
                _IDFonteFinanciamentoPai = StructuralObject.SetValidValue(value, "IDFonteFinanciamentoPai");
                ReportPropertyChanged("IDFonteFinanciamentoPai");
                OnIDFonteFinanciamentoPaiChanged();
            }
        }
        private Nullable<global::System.Int32> _IDFonteFinanciamentoPai;
        partial void OnIDFonteFinanciamentoPaiChanging(Nullable<global::System.Int32> value);
        partial void OnIDFonteFinanciamentoPaiChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Level
        {
            get
            {
                return _Level;
            }
            set
            {
                OnLevelChanging(value);
                ReportPropertyChanging("Level");
                _Level = StructuralObject.SetValidValue(value, "Level");
                ReportPropertyChanged("Level");
                OnLevelChanged();
            }
        }
        private Nullable<global::System.Int32> _Level;
        partial void OnLevelChanging(Nullable<global::System.Int32> value);
        partial void OnLevelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Path
        {
            get
            {
                return _Path;
            }
            set
            {
                OnPathChanging(value);
                ReportPropertyChanging("Path");
                _Path = StructuralObject.SetValidValue(value, true, "Path");
                ReportPropertyChanged("Path");
                OnPathChanged();
            }
        }
        private global::System.String _Path;
        partial void OnPathChanging(global::System.String value);
        partial void OnPathChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Nome
        {
            get
            {
                return _Nome;
            }
            set
            {
                OnNomeChanging(value);
                ReportPropertyChanging("Nome");
                _Nome = StructuralObject.SetValidValue(value, true, "Nome");
                ReportPropertyChanged("Nome");
                OnNomeChanged();
            }
        }
        private global::System.String _Nome;
        partial void OnNomeChanging(global::System.String value);
        partial void OnNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Descricao
        {
            get
            {
                return _Descricao;
            }
            set
            {
                OnDescricaoChanging(value);
                ReportPropertyChanging("Descricao");
                _Descricao = StructuralObject.SetValidValue(value, true, "Descricao");
                ReportPropertyChanged("Descricao");
                OnDescricaoChanged();
            }
        }
        private global::System.String _Descricao;
        partial void OnDescricaoChanging(global::System.String value);
        partial void OnDescricaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Boolean FlagMostraTabular
        {
            get
            {
                return _FlagMostraTabular;
            }
            set
            {
                OnFlagMostraTabularChanging(value);
                ReportPropertyChanging("FlagMostraTabular");
                _FlagMostraTabular = StructuralObject.SetValidValue(value, "FlagMostraTabular");
                ReportPropertyChanged("FlagMostraTabular");
                OnFlagMostraTabularChanged();
            }
        }
        private global::System.Boolean _FlagMostraTabular;
        partial void OnFlagMostraTabularChanging(global::System.Boolean value);
        partial void OnFlagMostraTabularChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 FlagTemFilhos
        {
            get
            {
                return _FlagTemFilhos;
            }
            set
            {
                OnFlagTemFilhosChanging(value);
                ReportPropertyChanging("FlagTemFilhos");
                _FlagTemFilhos = StructuralObject.SetValidValue(value, "FlagTemFilhos");
                ReportPropertyChanged("FlagTemFilhos");
                OnFlagTemFilhosChanged();
            }
        }
        private global::System.Int32 _FlagTemFilhos;
        partial void OnFlagTemFilhosChanging(global::System.Int32 value);
        partial void OnFlagTemFilhosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CaminhoIDs
        {
            get
            {
                return _CaminhoIDs;
            }
            set
            {
                OnCaminhoIDsChanging(value);
                ReportPropertyChanging("CaminhoIDs");
                _CaminhoIDs = StructuralObject.SetValidValue(value, true, "CaminhoIDs");
                ReportPropertyChanged("CaminhoIDs");
                OnCaminhoIDsChanged();
            }
        }
        private global::System.String _CaminhoIDs;
        partial void OnCaminhoIDsChanging(global::System.String value);
        partial void OnCaminhoIDsChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CaminhoNomes
        {
            get
            {
                return _CaminhoNomes;
            }
            set
            {
                OnCaminhoNomesChanging(value);
                ReportPropertyChanging("CaminhoNomes");
                _CaminhoNomes = StructuralObject.SetValidValue(value, true, "CaminhoNomes");
                ReportPropertyChanged("CaminhoNomes");
                OnCaminhoNomesChanged();
            }
        }
        private global::System.String _CaminhoNomes;
        partial void OnCaminhoNomesChanging(global::System.String value);
        partial void OnCaminhoNomesChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_GetUnidadeEscola_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_GetUnidadeEscola_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_GetUnidadeEscola_Result object.
        /// </summary>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="nomeUnidade">Initial value of the NomeUnidade property.</param>
        /// <param name="sigla">Initial value of the Sigla property.</param>
        /// <param name="activo">Initial value of the Activo property.</param>
        public static SSP_GetUnidadeEscola_Result CreateSSP_GetUnidadeEscola_Result(global::System.Int32 id, global::System.String nomeUnidade, global::System.String sigla, global::System.String activo)
        {
            SSP_GetUnidadeEscola_Result sSP_GetUnidadeEscola_Result = new SSP_GetUnidadeEscola_Result();
            sSP_GetUnidadeEscola_Result.ID = id;
            sSP_GetUnidadeEscola_Result.NomeUnidade = nomeUnidade;
            sSP_GetUnidadeEscola_Result.Sigla = sigla;
            sSP_GetUnidadeEscola_Result.Activo = activo;
            return sSP_GetUnidadeEscola_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private global::System.Int32 _ID;
        partial void OnIDChanging(global::System.Int32 value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDInstituicao
        {
            get
            {
                return _IDInstituicao;
            }
            set
            {
                OnIDInstituicaoChanging(value);
                ReportPropertyChanging("IDInstituicao");
                _IDInstituicao = StructuralObject.SetValidValue(value, "IDInstituicao");
                ReportPropertyChanged("IDInstituicao");
                OnIDInstituicaoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDInstituicao;
        partial void OnIDInstituicaoChanging(Nullable<global::System.Int32> value);
        partial void OnIDInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Codigo
        {
            get
            {
                return _Codigo;
            }
            set
            {
                OnCodigoChanging(value);
                ReportPropertyChanging("Codigo");
                _Codigo = StructuralObject.SetValidValue(value, true, "Codigo");
                ReportPropertyChanged("Codigo");
                OnCodigoChanged();
            }
        }
        private global::System.String _Codigo;
        partial void OnCodigoChanging(global::System.String value);
        partial void OnCodigoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeUnidade
        {
            get
            {
                return _NomeUnidade;
            }
            set
            {
                OnNomeUnidadeChanging(value);
                ReportPropertyChanging("NomeUnidade");
                _NomeUnidade = StructuralObject.SetValidValue(value, false, "NomeUnidade");
                ReportPropertyChanged("NomeUnidade");
                OnNomeUnidadeChanged();
            }
        }
        private global::System.String _NomeUnidade;
        partial void OnNomeUnidadeChanging(global::System.String value);
        partial void OnNomeUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, false, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoUnidade
        {
            get
            {
                return _TipoUnidade;
            }
            set
            {
                OnTipoUnidadeChanging(value);
                ReportPropertyChanging("TipoUnidade");
                _TipoUnidade = StructuralObject.SetValidValue(value, true, "TipoUnidade");
                ReportPropertyChanged("TipoUnidade");
                OnTipoUnidadeChanged();
            }
        }
        private global::System.String _TipoUnidade;
        partial void OnTipoUnidadeChanging(global::System.String value);
        partial void OnTipoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String UnidadeMae
        {
            get
            {
                return _UnidadeMae;
            }
            set
            {
                OnUnidadeMaeChanging(value);
                ReportPropertyChanging("UnidadeMae");
                _UnidadeMae = StructuralObject.SetValidValue(value, true, "UnidadeMae");
                ReportPropertyChanged("UnidadeMae");
                OnUnidadeMaeChanged();
            }
        }
        private global::System.String _UnidadeMae;
        partial void OnUnidadeMaeChanging(global::System.String value);
        partial void OnUnidadeMaeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Terminal
        {
            get
            {
                return _Terminal;
            }
            set
            {
                OnTerminalChanging(value);
                ReportPropertyChanging("Terminal");
                _Terminal = StructuralObject.SetValidValue(value, true, "Terminal");
                ReportPropertyChanged("Terminal");
                OnTerminalChanged();
            }
        }
        private global::System.String _Terminal;
        partial void OnTerminalChanging(global::System.String value);
        partial void OnTerminalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Morada
        {
            get
            {
                return _Morada;
            }
            set
            {
                OnMoradaChanging(value);
                ReportPropertyChanging("Morada");
                _Morada = StructuralObject.SetValidValue(value, true, "Morada");
                ReportPropertyChanged("Morada");
                OnMoradaChanged();
            }
        }
        private global::System.String _Morada;
        partial void OnMoradaChanging(global::System.String value);
        partial void OnMoradaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoPostal
        {
            get
            {
                return _CodigoPostal;
            }
            set
            {
                OnCodigoPostalChanging(value);
                ReportPropertyChanging("CodigoPostal");
                _CodigoPostal = StructuralObject.SetValidValue(value, true, "CodigoPostal");
                ReportPropertyChanged("CodigoPostal");
                OnCodigoPostalChanged();
            }
        }
        private global::System.String _CodigoPostal;
        partial void OnCodigoPostalChanging(global::System.String value);
        partial void OnCodigoPostalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone1
        {
            get
            {
                return _Telefone1;
            }
            set
            {
                OnTelefone1Changing(value);
                ReportPropertyChanging("Telefone1");
                _Telefone1 = StructuralObject.SetValidValue(value, true, "Telefone1");
                ReportPropertyChanged("Telefone1");
                OnTelefone1Changed();
            }
        }
        private global::System.String _Telefone1;
        partial void OnTelefone1Changing(global::System.String value);
        partial void OnTelefone1Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Telefone2
        {
            get
            {
                return _Telefone2;
            }
            set
            {
                OnTelefone2Changing(value);
                ReportPropertyChanging("Telefone2");
                _Telefone2 = StructuralObject.SetValidValue(value, true, "Telefone2");
                ReportPropertyChanged("Telefone2");
                OnTelefone2Changed();
            }
        }
        private global::System.String _Telefone2;
        partial void OnTelefone2Changing(global::System.String value);
        partial void OnTelefone2Changed();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Fax
        {
            get
            {
                return _Fax;
            }
            set
            {
                OnFaxChanging(value);
                ReportPropertyChanging("Fax");
                _Fax = StructuralObject.SetValidValue(value, true, "Fax");
                ReportPropertyChanged("Fax");
                OnFaxChanged();
            }
        }
        private global::System.String _Fax;
        partial void OnFaxChanging(global::System.String value);
        partial void OnFaxChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Email
        {
            get
            {
                return _Email;
            }
            set
            {
                OnEmailChanging(value);
                ReportPropertyChanging("Email");
                _Email = StructuralObject.SetValidValue(value, true, "Email");
                ReportPropertyChanged("Email");
                OnEmailChanged();
            }
        }
        private global::System.String _Email;
        partial void OnEmailChanging(global::System.String value);
        partial void OnEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String URL
        {
            get
            {
                return _URL;
            }
            set
            {
                OnURLChanging(value);
                ReportPropertyChanging("URL");
                _URL = StructuralObject.SetValidValue(value, true, "URL");
                ReportPropertyChanged("URL");
                OnURLChanged();
            }
        }
        private global::System.String _URL;
        partial void OnURLChanging(global::System.String value);
        partial void OnURLChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NmecanograficoResponsavel
        {
            get
            {
                return _NmecanograficoResponsavel;
            }
            set
            {
                OnNmecanograficoResponsavelChanging(value);
                ReportPropertyChanging("NmecanograficoResponsavel");
                _NmecanograficoResponsavel = StructuralObject.SetValidValue(value, true, "NmecanograficoResponsavel");
                ReportPropertyChanged("NmecanograficoResponsavel");
                OnNmecanograficoResponsavelChanged();
            }
        }
        private global::System.String _NmecanograficoResponsavel;
        partial void OnNmecanograficoResponsavelChanging(global::System.String value);
        partial void OnNmecanograficoResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Responsavel
        {
            get
            {
                return _Responsavel;
            }
            set
            {
                OnResponsavelChanging(value);
                ReportPropertyChanging("Responsavel");
                _Responsavel = StructuralObject.SetValidValue(value, true, "Responsavel");
                ReportPropertyChanged("Responsavel");
                OnResponsavelChanged();
            }
        }
        private global::System.String _Responsavel;
        partial void OnResponsavelChanging(global::System.String value);
        partial void OnResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String EmailResponsavel
        {
            get
            {
                return _EmailResponsavel;
            }
            set
            {
                OnEmailResponsavelChanging(value);
                ReportPropertyChanging("EmailResponsavel");
                _EmailResponsavel = StructuralObject.SetValidValue(value, true, "EmailResponsavel");
                ReportPropertyChanged("EmailResponsavel");
                OnEmailResponsavelChanged();
            }
        }
        private global::System.String _EmailResponsavel;
        partial void OnEmailResponsavelChanging(global::System.String value);
        partial void OnEmailResponsavelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Observacoes
        {
            get
            {
                return _Observacoes;
            }
            set
            {
                OnObservacoesChanging(value);
                ReportPropertyChanging("Observacoes");
                _Observacoes = StructuralObject.SetValidValue(value, true, "Observacoes");
                ReportPropertyChanged("Observacoes");
                OnObservacoesChanged();
            }
        }
        private global::System.String _Observacoes;
        partial void OnObservacoesChanging(global::System.String value);
        partial void OnObservacoesChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Activo
        {
            get
            {
                return _Activo;
            }
            set
            {
                OnActivoChanging(value);
                ReportPropertyChanging("Activo");
                _Activo = StructuralObject.SetValidValue(value, false, "Activo");
                ReportPropertyChanged("Activo");
                OnActivoChanged();
            }
        }
        private global::System.String _Activo;
        partial void OnActivoChanging(global::System.String value);
        partial void OnActivoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DominioEmail
        {
            get
            {
                return _DominioEmail;
            }
            set
            {
                OnDominioEmailChanging(value);
                ReportPropertyChanging("DominioEmail");
                _DominioEmail = StructuralObject.SetValidValue(value, true, "DominioEmail");
                ReportPropertyChanged("DominioEmail");
                OnDominioEmailChanged();
            }
        }
        private global::System.String _DominioEmail;
        partial void OnDominioEmailChanging(global::System.String value);
        partial void OnDominioEmailChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> ValidaCandidaturas
        {
            get
            {
                return _ValidaCandidaturas;
            }
            set
            {
                OnValidaCandidaturasChanging(value);
                ReportPropertyChanging("ValidaCandidaturas");
                _ValidaCandidaturas = StructuralObject.SetValidValue(value, "ValidaCandidaturas");
                ReportPropertyChanged("ValidaCandidaturas");
                OnValidaCandidaturasChanged();
            }
        }
        private Nullable<global::System.Boolean> _ValidaCandidaturas;
        partial void OnValidaCandidaturasChanging(Nullable<global::System.Boolean> value);
        partial void OnValidaCandidaturasChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_GETUnidadesDrillDown_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_GETUnidadesDrillDown_Result : ComplexObject
    {
        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private Nullable<global::System.Int32> _ID;
        partial void OnIDChanging(Nullable<global::System.Int32> value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String CodigoUnidade
        {
            get
            {
                return _CodigoUnidade;
            }
            set
            {
                OnCodigoUnidadeChanging(value);
                ReportPropertyChanging("CodigoUnidade");
                _CodigoUnidade = StructuralObject.SetValidValue(value, true, "CodigoUnidade");
                ReportPropertyChanged("CodigoUnidade");
                OnCodigoUnidadeChanged();
            }
        }
        private global::System.String _CodigoUnidade;
        partial void OnCodigoUnidadeChanging(global::System.String value);
        partial void OnCodigoUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NomeUnidade
        {
            get
            {
                return _NomeUnidade;
            }
            set
            {
                OnNomeUnidadeChanging(value);
                ReportPropertyChanging("NomeUnidade");
                _NomeUnidade = StructuralObject.SetValidValue(value, true, "NomeUnidade");
                ReportPropertyChanged("NomeUnidade");
                OnNomeUnidadeChanged();
            }
        }
        private global::System.String _NomeUnidade;
        partial void OnNomeUnidadeChanging(global::System.String value);
        partial void OnNomeUnidadeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Sigla
        {
            get
            {
                return _Sigla;
            }
            set
            {
                OnSiglaChanging(value);
                ReportPropertyChanging("Sigla");
                _Sigla = StructuralObject.SetValidValue(value, true, "Sigla");
                ReportPropertyChanged("Sigla");
                OnSiglaChanged();
            }
        }
        private global::System.String _Sigla;
        partial void OnSiglaChanging(global::System.String value);
        partial void OnSiglaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> Nivel
        {
            get
            {
                return _Nivel;
            }
            set
            {
                OnNivelChanging(value);
                ReportPropertyChanging("Nivel");
                _Nivel = StructuralObject.SetValidValue(value, "Nivel");
                ReportPropertyChanged("Nivel");
                OnNivelChanged();
            }
        }
        private Nullable<global::System.Int32> _Nivel;
        partial void OnNivelChanging(Nullable<global::System.Int32> value);
        partial void OnNivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String Tipo
        {
            get
            {
                return _Tipo;
            }
            set
            {
                OnTipoChanging(value);
                ReportPropertyChanging("Tipo");
                _Tipo = StructuralObject.SetValidValue(value, true, "Tipo");
                ReportPropertyChanged("Tipo");
                OnTipoChanged();
            }
        }
        private global::System.String _Tipo;
        partial void OnTipoChanging(global::System.String value);
        partial void OnTipoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Boolean> CentroFCT
        {
            get
            {
                return _CentroFCT;
            }
            set
            {
                OnCentroFCTChanging(value);
                ReportPropertyChanging("CentroFCT");
                _CentroFCT = StructuralObject.SetValidValue(value, "CentroFCT");
                ReportPropertyChanged("CentroFCT");
                OnCentroFCTChanged();
            }
        }
        private Nullable<global::System.Boolean> _CentroFCT;
        partial void OnCentroFCTChanging(Nullable<global::System.Boolean> value);
        partial void OnCentroFCTChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_GetValorDividaInsituicaoParticipante_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_GetValorDividaInsituicaoParticipante_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_GetValorDividaInsituicaoParticipante_Result object.
        /// </summary>
        /// <param name="iDProjecto">Initial value of the IDProjecto property.</param>
        /// <param name="nomeInstituicao">Initial value of the NomeInstituicao property.</param>
        public static SSP_GetValorDividaInsituicaoParticipante_Result CreateSSP_GetValorDividaInsituicaoParticipante_Result(global::System.Int32 iDProjecto, global::System.String nomeInstituicao)
        {
            SSP_GetValorDividaInsituicaoParticipante_Result sSP_GetValorDividaInsituicaoParticipante_Result = new SSP_GetValorDividaInsituicaoParticipante_Result();
            sSP_GetValorDividaInsituicaoParticipante_Result.IDProjecto = iDProjecto;
            sSP_GetValorDividaInsituicaoParticipante_Result.NomeInstituicao = nomeInstituicao;
            return sSP_GetValorDividaInsituicaoParticipante_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Int32 IDProjecto
        {
            get
            {
                return _IDProjecto;
            }
            set
            {
                OnIDProjectoChanging(value);
                ReportPropertyChanging("IDProjecto");
                _IDProjecto = StructuralObject.SetValidValue(value, "IDProjecto");
                ReportPropertyChanged("IDProjecto");
                OnIDProjectoChanged();
            }
        }
        private global::System.Int32 _IDProjecto;
        partial void OnIDProjectoChanging(global::System.Int32 value);
        partial void OnIDProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeInstituicao
        {
            get
            {
                return _NomeInstituicao;
            }
            set
            {
                OnNomeInstituicaoChanging(value);
                ReportPropertyChanging("NomeInstituicao");
                _NomeInstituicao = StructuralObject.SetValidValue(value, false, "NomeInstituicao");
                ReportPropertyChanged("NomeInstituicao");
                OnNomeInstituicaoChanged();
            }
        }
        private global::System.String _NomeInstituicao;
        partial void OnNomeInstituicaoChanging(global::System.String value);
        partial void OnNomeInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> SaldoIntituicaoParticipante
        {
            get
            {
                return _SaldoIntituicaoParticipante;
            }
            set
            {
                OnSaldoIntituicaoParticipanteChanging(value);
                ReportPropertyChanging("SaldoIntituicaoParticipante");
                _SaldoIntituicaoParticipante = StructuralObject.SetValidValue(value, "SaldoIntituicaoParticipante");
                ReportPropertyChanged("SaldoIntituicaoParticipante");
                OnSaldoIntituicaoParticipanteChanged();
            }
        }
        private Nullable<global::System.Double> _SaldoIntituicaoParticipante;
        partial void OnSaldoIntituicaoParticipanteChanging(Nullable<global::System.Double> value);
        partial void OnSaldoIntituicaoParticipanteChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result object.
        /// </summary>
        /// <param name="referenciaProjecto">Initial value of the ReferenciaProjecto property.</param>
        /// <param name="nomeInstituicao">Initial value of the NomeInstituicao property.</param>
        public static SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result CreateSSP_STAT_ResumoRelacaoInstituicaoParticipante_Result(global::System.String referenciaProjecto, global::System.String nomeInstituicao)
        {
            SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result sSP_STAT_ResumoRelacaoInstituicaoParticipante_Result = new SSP_STAT_ResumoRelacaoInstituicaoParticipante_Result();
            sSP_STAT_ResumoRelacaoInstituicaoParticipante_Result.ReferenciaProjecto = referenciaProjecto;
            sSP_STAT_ResumoRelacaoInstituicaoParticipante_Result.NomeInstituicao = nomeInstituicao;
            return sSP_STAT_ResumoRelacaoInstituicaoParticipante_Result;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ReferenciaProjecto
        {
            get
            {
                return _ReferenciaProjecto;
            }
            set
            {
                OnReferenciaProjectoChanging(value);
                ReportPropertyChanging("ReferenciaProjecto");
                _ReferenciaProjecto = StructuralObject.SetValidValue(value, false, "ReferenciaProjecto");
                ReportPropertyChanged("ReferenciaProjecto");
                OnReferenciaProjectoChanged();
            }
        }
        private global::System.String _ReferenciaProjecto;
        partial void OnReferenciaProjectoChanging(global::System.String value);
        partial void OnReferenciaProjectoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String NomeInstituicao
        {
            get
            {
                return _NomeInstituicao;
            }
            set
            {
                OnNomeInstituicaoChanging(value);
                ReportPropertyChanging("NomeInstituicao");
                _NomeInstituicao = StructuralObject.SetValidValue(value, false, "NomeInstituicao");
                ReportPropertyChanged("NomeInstituicao");
                OnNomeInstituicaoChanged();
            }
        }
        private global::System.String _NomeInstituicao;
        partial void OnNomeInstituicaoChanging(global::System.String value);
        partial void OnNomeInstituicaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String TipoRecebimento
        {
            get
            {
                return _TipoRecebimento;
            }
            set
            {
                OnTipoRecebimentoChanging(value);
                ReportPropertyChanging("TipoRecebimento");
                _TipoRecebimento = StructuralObject.SetValidValue(value, true, "TipoRecebimento");
                ReportPropertyChanged("TipoRecebimento");
                OnTipoRecebimentoChanged();
            }
        }
        private global::System.String _TipoRecebimento;
        partial void OnTipoRecebimentoChanging(global::System.String value);
        partial void OnTipoRecebimentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDLinhaFacturaRecibo
        {
            get
            {
                return _IDLinhaFacturaRecibo;
            }
            set
            {
                OnIDLinhaFacturaReciboChanging(value);
                ReportPropertyChanging("IDLinhaFacturaRecibo");
                _IDLinhaFacturaRecibo = StructuralObject.SetValidValue(value, true, "IDLinhaFacturaRecibo");
                ReportPropertyChanged("IDLinhaFacturaRecibo");
                OnIDLinhaFacturaReciboChanged();
            }
        }
        private global::System.String _IDLinhaFacturaRecibo;
        partial void OnIDLinhaFacturaReciboChanging(global::System.String value);
        partial void OnIDLinhaFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorRecebidoEF
        {
            get
            {
                return _ValorRecebidoEF;
            }
            set
            {
                OnValorRecebidoEFChanging(value);
                ReportPropertyChanging("ValorRecebidoEF");
                _ValorRecebidoEF = StructuralObject.SetValidValue(value, "ValorRecebidoEF");
                ReportPropertyChanged("ValorRecebidoEF");
                OnValorRecebidoEFChanged();
            }
        }
        private Nullable<global::System.Double> _ValorRecebidoEF;
        partial void OnValorRecebidoEFChanging(Nullable<global::System.Double> value);
        partial void OnValorRecebidoEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataRecebimentoEF
        {
            get
            {
                return _DataRecebimentoEF;
            }
            set
            {
                OnDataRecebimentoEFChanging(value);
                ReportPropertyChanging("DataRecebimentoEF");
                _DataRecebimentoEF = StructuralObject.SetValidValue(value, "DataRecebimentoEF");
                ReportPropertyChanged("DataRecebimentoEF");
                OnDataRecebimentoEFChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataRecebimentoEF;
        partial void OnDataRecebimentoEFChanging(Nullable<global::System.DateTime> value);
        partial void OnDataRecebimentoEFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDPedidoPagamento
        {
            get
            {
                return _IDPedidoPagamento;
            }
            set
            {
                OnIDPedidoPagamentoChanging(value);
                ReportPropertyChanging("IDPedidoPagamento");
                _IDPedidoPagamento = StructuralObject.SetValidValue(value, "IDPedidoPagamento");
                ReportPropertyChanged("IDPedidoPagamento");
                OnIDPedidoPagamentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDPedidoPagamento;
        partial void OnIDPedidoPagamentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDPedidoPagamentoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorElegivel
        {
            get
            {
                return _ValorElegivel;
            }
            set
            {
                OnValorElegivelChanging(value);
                ReportPropertyChanging("ValorElegivel");
                _ValorElegivel = StructuralObject.SetValidValue(value, "ValorElegivel");
                ReportPropertyChanged("ValorElegivel");
                OnValorElegivelChanged();
            }
        }
        private Nullable<global::System.Double> _ValorElegivel;
        partial void OnValorElegivelChanging(Nullable<global::System.Double> value);
        partial void OnValorElegivelChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Double> ValorTransferido
        {
            get
            {
                return _ValorTransferido;
            }
            set
            {
                OnValorTransferidoChanging(value);
                ReportPropertyChanging("ValorTransferido");
                _ValorTransferido = StructuralObject.SetValidValue(value, "ValorTransferido");
                ReportPropertyChanged("ValorTransferido");
                OnValorTransferidoChanged();
            }
        }
        private Nullable<global::System.Double> _ValorTransferido;
        partial void OnValorTransferidoChanging(Nullable<global::System.Double> value);
        partial void OnValorTransferidoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.DateTime> DataTransferencia
        {
            get
            {
                return _DataTransferencia;
            }
            set
            {
                OnDataTransferenciaChanging(value);
                ReportPropertyChanging("DataTransferencia");
                _DataTransferencia = StructuralObject.SetValidValue(value, "DataTransferencia");
                ReportPropertyChanged("DataTransferencia");
                OnDataTransferenciaChanged();
            }
        }
        private Nullable<global::System.DateTime> _DataTransferencia;
        partial void OnDataTransferenciaChanging(Nullable<global::System.DateTime> value);
        partial void OnDataTransferenciaChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String NumeroRegistoContabilistico
        {
            get
            {
                return _NumeroRegistoContabilistico;
            }
            set
            {
                OnNumeroRegistoContabilisticoChanging(value);
                ReportPropertyChanging("NumeroRegistoContabilistico");
                _NumeroRegistoContabilistico = StructuralObject.SetValidValue(value, true, "NumeroRegistoContabilistico");
                ReportPropertyChanged("NumeroRegistoContabilistico");
                OnNumeroRegistoContabilisticoChanged();
            }
        }
        private global::System.String _NumeroRegistoContabilistico;
        partial void OnNumeroRegistoContabilisticoChanging(global::System.String value);
        partial void OnNumeroRegistoContabilisticoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDRecebimento
        {
            get
            {
                return _IDRecebimento;
            }
            set
            {
                OnIDRecebimentoChanging(value);
                ReportPropertyChanging("IDRecebimento");
                _IDRecebimento = StructuralObject.SetValidValue(value, "IDRecebimento");
                ReportPropertyChanged("IDRecebimento");
                OnIDRecebimentoChanged();
            }
        }
        private Nullable<global::System.Int32> _IDRecebimento;
        partial void OnIDRecebimentoChanging(Nullable<global::System.Int32> value);
        partial void OnIDRecebimentoChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="SSSP_ERP_GET_SUBCENTRO_Result")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class SSSP_ERP_GET_SUBCENTRO_Result : ComplexObject
    {
        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String SUBCENTRO
        {
            get
            {
                return _SUBCENTRO;
            }
            set
            {
                OnSUBCENTROChanging(value);
                ReportPropertyChanging("SUBCENTRO");
                _SUBCENTRO = StructuralObject.SetValidValue(value, true, "SUBCENTRO");
                ReportPropertyChanged("SUBCENTRO");
                OnSUBCENTROChanged();
            }
        }
        private global::System.String _SUBCENTRO;
        partial void OnSUBCENTROChanging(global::System.String value);
        partial void OnSUBCENTROChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String DESC_SUBCENTRO
        {
            get
            {
                return _DESC_SUBCENTRO;
            }
            set
            {
                OnDESC_SUBCENTROChanging(value);
                ReportPropertyChanging("DESC_SUBCENTRO");
                _DESC_SUBCENTRO = StructuralObject.SetValidValue(value, true, "DESC_SUBCENTRO");
                ReportPropertyChanged("DESC_SUBCENTRO");
                OnDESC_SUBCENTROChanged();
            }
        }
        private global::System.String _DESC_SUBCENTRO;
        partial void OnDESC_SUBCENTROChanging(global::System.String value);
        partial void OnDESC_SUBCENTROChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VERBAS_Despesa")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class VERBAS_Despesa : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VERBAS_Despesa object.
        /// </summary>
        /// <param name="fornecedorNIF">Initial value of the FornecedorNIF property.</param>
        /// <param name="fornecedorNome">Initial value of the FornecedorNome property.</param>
        /// <param name="valorComprometidoNE">Initial value of the ValorComprometidoNE property.</param>
        public static VERBAS_Despesa CreateVERBAS_Despesa(global::System.String fornecedorNIF, global::System.String fornecedorNome, global::System.Decimal valorComprometidoNE)
        {
            VERBAS_Despesa vERBAS_Despesa = new VERBAS_Despesa();
            vERBAS_Despesa.FornecedorNIF = fornecedorNIF;
            vERBAS_Despesa.FornecedorNome = fornecedorNome;
            vERBAS_Despesa.ValorComprometidoNE = valorComprometidoNE;
            return vERBAS_Despesa;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String IDNE
        {
            get
            {
                return _IDNE;
            }
            set
            {
                OnIDNEChanging(value);
                ReportPropertyChanging("IDNE");
                _IDNE = StructuralObject.SetValidValue(value, true, "IDNE");
                ReportPropertyChanged("IDNE");
                OnIDNEChanged();
            }
        }
        private global::System.String _IDNE;
        partial void OnIDNEChanging(global::System.String value);
        partial void OnIDNEChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FornecedorNIF
        {
            get
            {
                return _FornecedorNIF;
            }
            set
            {
                OnFornecedorNIFChanging(value);
                ReportPropertyChanging("FornecedorNIF");
                _FornecedorNIF = StructuralObject.SetValidValue(value, false, "FornecedorNIF");
                ReportPropertyChanged("FornecedorNIF");
                OnFornecedorNIFChanged();
            }
        }
        private global::System.String _FornecedorNIF;
        partial void OnFornecedorNIFChanging(global::System.String value);
        partial void OnFornecedorNIFChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String FornecedorNome
        {
            get
            {
                return _FornecedorNome;
            }
            set
            {
                OnFornecedorNomeChanging(value);
                ReportPropertyChanging("FornecedorNome");
                _FornecedorNome = StructuralObject.SetValidValue(value, false, "FornecedorNome");
                ReportPropertyChanged("FornecedorNome");
                OnFornecedorNomeChanged();
            }
        }
        private global::System.String _FornecedorNome;
        partial void OnFornecedorNomeChanging(global::System.String value);
        partial void OnFornecedorNomeChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Decimal ValorComprometidoNE
        {
            get
            {
                return _ValorComprometidoNE;
            }
            set
            {
                OnValorComprometidoNEChanging(value);
                ReportPropertyChanging("ValorComprometidoNE");
                _ValorComprometidoNE = StructuralObject.SetValidValue(value, "ValorComprometidoNE");
                ReportPropertyChanged("ValorComprometidoNE");
                OnValorComprometidoNEChanged();
            }
        }
        private global::System.Decimal _ValorComprometidoNE;
        partial void OnValorComprometidoNEChanging(global::System.Decimal value);
        partial void OnValorComprometidoNEChanged();

        #endregion

    }
    
    /// <summary>
    /// No Metadata Documentation available.
    /// </summary>
    [EdmComplexTypeAttribute(NamespaceName="GestaoProjectosModel", Name="VERBAS_Factura_Recibo")]
    [DataContractAttribute(IsReference=true)]
    [Serializable()]
    public partial class VERBAS_Factura_Recibo : ComplexObject
    {
        #region Factory Method
    
        /// <summary>
        /// Create a new VERBAS_Factura_Recibo object.
        /// </summary>
        /// <param name="data">Initial value of the Data property.</param>
        /// <param name="serie">Initial value of the Serie property.</param>
        /// <param name="iDFacturasRecibos">Initial value of the IDFacturasRecibos property.</param>
        /// <param name="id">Initial value of the ID property.</param>
        /// <param name="total">Initial value of the Total property.</param>
        /// <param name="designacao">Initial value of the Designacao property.</param>
        public static VERBAS_Factura_Recibo CreateVERBAS_Factura_Recibo(global::System.DateTime data, global::System.String serie, global::System.String iDFacturasRecibos, global::System.String id, global::System.Double total, global::System.String designacao)
        {
            VERBAS_Factura_Recibo vERBAS_Factura_Recibo = new VERBAS_Factura_Recibo();
            vERBAS_Factura_Recibo.Data = data;
            vERBAS_Factura_Recibo.Serie = serie;
            vERBAS_Factura_Recibo.IDFacturasRecibos = iDFacturasRecibos;
            vERBAS_Factura_Recibo.ID = id;
            vERBAS_Factura_Recibo.Total = total;
            vERBAS_Factura_Recibo.Designacao = designacao;
            return vERBAS_Factura_Recibo;
        }

        #endregion

        #region Simple Properties
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.DateTime Data
        {
            get
            {
                return _Data;
            }
            set
            {
                OnDataChanging(value);
                ReportPropertyChanging("Data");
                _Data = StructuralObject.SetValidValue(value, "Data");
                ReportPropertyChanged("Data");
                OnDataChanged();
            }
        }
        private global::System.DateTime _Data;
        partial void OnDataChanging(global::System.DateTime value);
        partial void OnDataChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Serie
        {
            get
            {
                return _Serie;
            }
            set
            {
                OnSerieChanging(value);
                ReportPropertyChanging("Serie");
                _Serie = StructuralObject.SetValidValue(value, false, "Serie");
                ReportPropertyChanged("Serie");
                OnSerieChanged();
            }
        }
        private global::System.String _Serie;
        partial void OnSerieChanging(global::System.String value);
        partial void OnSerieChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String IDFacturasRecibos
        {
            get
            {
                return _IDFacturasRecibos;
            }
            set
            {
                OnIDFacturasRecibosChanging(value);
                ReportPropertyChanging("IDFacturasRecibos");
                _IDFacturasRecibos = StructuralObject.SetValidValue(value, false, "IDFacturasRecibos");
                ReportPropertyChanged("IDFacturasRecibos");
                OnIDFacturasRecibosChanged();
            }
        }
        private global::System.String _IDFacturasRecibos;
        partial void OnIDFacturasRecibosChanging(global::System.String value);
        partial void OnIDFacturasRecibosChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String ID
        {
            get
            {
                return _ID;
            }
            set
            {
                OnIDChanging(value);
                ReportPropertyChanging("ID");
                _ID = StructuralObject.SetValidValue(value, false, "ID");
                ReportPropertyChanged("ID");
                OnIDChanged();
            }
        }
        private global::System.String _ID;
        partial void OnIDChanging(global::System.String value);
        partial void OnIDChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.Double Total
        {
            get
            {
                return _Total;
            }
            set
            {
                OnTotalChanging(value);
                ReportPropertyChanging("Total");
                _Total = StructuralObject.SetValidValue(value, "Total");
                ReportPropertyChanged("Total");
                OnTotalChanged();
            }
        }
        private global::System.Double _Total;
        partial void OnTotalChanging(global::System.Double value);
        partial void OnTotalChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=false)]
        [DataMemberAttribute()]
        public global::System.String Designacao
        {
            get
            {
                return _Designacao;
            }
            set
            {
                OnDesignacaoChanging(value);
                ReportPropertyChanging("Designacao");
                _Designacao = StructuralObject.SetValidValue(value, false, "Designacao");
                ReportPropertyChanged("Designacao");
                OnDesignacaoChanged();
            }
        }
        private global::System.String _Designacao;
        partial void OnDesignacaoChanging(global::System.String value);
        partial void OnDesignacaoChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public global::System.String FacturaRecibo
        {
            get
            {
                return _FacturaRecibo;
            }
            set
            {
                OnFacturaReciboChanging(value);
                ReportPropertyChanging("FacturaRecibo");
                _FacturaRecibo = StructuralObject.SetValidValue(value, true, "FacturaRecibo");
                ReportPropertyChanged("FacturaRecibo");
                OnFacturaReciboChanged();
            }
        }
        private global::System.String _FacturaRecibo;
        partial void OnFacturaReciboChanging(global::System.String value);
        partial void OnFacturaReciboChanged();
    
        /// <summary>
        /// No Metadata Documentation available.
        /// </summary>
        [EdmScalarPropertyAttribute(EntityKeyProperty=false, IsNullable=true)]
        [DataMemberAttribute()]
        public Nullable<global::System.Int32> IDReceitas
        {
            get
            {
                return _IDReceitas;
            }
            set
            {
                OnIDReceitasChanging(value);
                ReportPropertyChanging("IDReceitas");
                _IDReceitas = StructuralObject.SetValidValue(value, "IDReceitas");
                ReportPropertyChanged("IDReceitas");
                OnIDReceitasChanged();
            }
        }
        private Nullable<global::System.Int32> _IDReceitas;
        partial void OnIDReceitasChanging(Nullable<global::System.Int32> value);
        partial void OnIDReceitasChanged();

        #endregion

    }

    #endregion

}
