Files
MedAP/MedAP_data/APModel.edmx
T
2018-01-03 17:27:29 +01:00

1659 lines
91 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="MAPModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<EntityType Name="Anagr_elem_doc">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="rif_tipo" Type="int" />
<Property Name="cod" Type="nvarchar" MaxLength="50" />
<Property Name="descrizione" Type="nvarchar" MaxLength="255" />
<Property Name="rif_anagr_fatt" Type="int" />
</EntityType>
<EntityType Name="Anagr_elem_movimenti">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="descrizione" Type="nvarchar" MaxLength="50" />
<Property Name="rif_movimento" Type="int" />
<Property Name="giorni_decorrenza" Type="int" />
<Property Name="rif_conto_dest" Type="int" />
<Property Name="rif_conto_origine" Type="int" />
<Property Name="percentuale" Type="float" />
<Property Name="SSMA_TimeStamp" Type="timestamp" StoreGeneratedPattern="Computed" Nullable="false" />
</EntityType>
<EntityType Name="Anagr_gruppi_righe_voci_fatt">
<Key>
<PropertyRef Name="idxGruppo" />
</Key>
<Property Name="idxGruppo" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Descrizione" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="Anagr_movimenti">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="descrizione" Type="nvarchar" MaxLength="50" />
</EntityType>
<!--Errori trovati durante la generazione:
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.Anagr_righe_voci_fatt'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
<EntityType Name="Anagr_righe_voci_fatt">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="descrizione" Type="ntext" />
<Property Name="um" Type="nvarchar" MaxLength="50" />
<Property Name="prezzo_um" Type="float" />
<Property Name="qta" Type="float" />
<Property Name="sconto" Type="float" />
<Property Name="iva" Type="float" />
<Property Name="no_ritenuta" Type="bit" />
</EntityType>
<EntityType Name="Anagr_tipo_elem">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="descrizione" Type="nvarchar" MaxLength="250" />
<Property Name="metodo" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="AreaCap">
<Key>
<PropertyRef Name="CAP" />
<PropertyRef Name="località" />
</Key>
<Property Name="CAP" Type="nvarchar" MaxLength="255" Nullable="false" />
<Property Name="località" Type="nvarchar" MaxLength="255" Nullable="false" />
<Property Name="gruppo" Type="nvarchar" MaxLength="255" />
</EntityType>
<EntityType Name="C_iva">
<Key>
<PropertyRef Name="C_iva" />
</Key>
<Property Name="C_iva" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="iva" Type="float" />
<Property Name="descrizione" Type="nvarchar" MaxLength="250" />
</EntityType>
<EntityType Name="CDC">
<Key>
<PropertyRef Name="COD_CDC" />
</Key>
<Property Name="COD_CDC" Type="varchar" MaxLength="10" Nullable="false" />
<Property Name="DESCRIZIONE" Type="varchar" MaxLength="200" />
<Property Name="COD_TIPO" Type="varchar" MaxLength="1" Nullable="false" />
<Property Name="POSIZIONE" Type="varchar" MaxLength="100" />
</EntityType>
<EntityType Name="Clienti">
<Key>
<PropertyRef Name="idxCli" />
</Key>
<Property Name="idxCli" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="RagSoc" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Sesso" Type="char" MaxLength="1" Nullable="false" />
<Property Name="POBirth" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="DOBirth" Type="datetime" Nullable="false" />
<Property Name="P_iva" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="C_Fisc" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Via" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="Località" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Cap" Type="nvarchar" MaxLength="5" Nullable="false" />
<Property Name="Provincia" Type="nvarchar" MaxLength="2" Nullable="false" />
<Property Name="Pagamento" Type="nvarchar" MaxLength="250" Nullable="false" />
<Property Name="Note" Type="ntext" Nullable="false" />
<Property Name="idxGruppo" Type="nvarchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="Contributi">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Descrizione" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Percentuale" Type="float" Nullable="false" />
<Property Name="Imponibile" Type="bit" Nullable="false" />
<Property Name="Ritenuta" Type="bit" Nullable="false" />
</EntityType>
<EntityType Name="CostiAssorbiti">
<Key>
<PropertyRef Name="IdxFatt" />
</Key>
<Property Name="IdxFatt" Type="int" Nullable="false" />
<Property Name="netto" Type="money" Nullable="false" />
<Property Name="note" Type="nvarchar" MaxLength="2500" Nullable="false" />
</EntityType>
<EntityType Name="DIRITTI">
<Key>
<PropertyRef Name="USER_NAME" />
<PropertyRef Name="COD_CDC" />
<PropertyRef Name="COD_MODULO" />
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="USER_NAME" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="COD_CDC" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="COD_MODULO" Type="nvarchar" MaxLength="31" Nullable="false" />
<Property Name="COD_FUNZIONE" Type="nvarchar" MaxLength="31" Nullable="false" />
<Property Name="VALUE" Type="varchar" MaxLength="255" />
</EntityType>
<EntityType Name="Fatture">
<Key>
<PropertyRef Name="IdxFatt" />
</Key>
<Property Name="IdxFatt" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Anno" Type="int" Nullable="false" />
<Property Name="Num" Type="int" Nullable="false" />
<Property Name="idxCli" Type="int" Nullable="false" />
<Property Name="Tipo" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Data" Type="datetime" Nullable="false" />
<Property Name="Ritenuta" Type="float" Nullable="false" />
<Property Name="IsTemplate" Type="bit" Nullable="false" />
<Property Name="IdxTemplate" Type="int" Nullable="false" />
<Property Name="Id" Type="int" StoreGeneratedPattern="Computed" Nullable="false" />
</EntityType>
<EntityType Name="FUNZIONE">
<Key>
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="COD_FUNZIONE" Type="nvarchar" MaxLength="31" Nullable="false" />
<Property Name="DESCRIZIONE" Type="nvarchar" MaxLength="500" />
</EntityType>
<EntityType Name="Gruppi">
<Key>
<PropertyRef Name="IdxGruppo" />
</Key>
<Property Name="IdxGruppo" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Descr" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="Lingue">
<Key>
<PropertyRef Name="Lingua" />
</Key>
<Property Name="Lingua" Type="nvarchar" MaxLength="3" Nullable="false" />
<Property Name="DescrizioneLingua" Type="nvarchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="ListValues">
<Key>
<PropertyRef Name="TableName" />
<PropertyRef Name="FieldName" />
<PropertyRef Name="value" />
</Key>
<Property Name="TableName" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="FieldName" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="value" Type="nvarchar" MaxLength="10" Nullable="false" />
<Property Name="label" Type="nvarchar" MaxLength="50" />
<Property Name="ordinal" Type="int" />
</EntityType>
<EntityType Name="MODULO">
<Key>
<PropertyRef Name="COD_MODULO" />
</Key>
<Property Name="COD_MODULO" Type="nvarchar" MaxLength="31" Nullable="false" />
<Property Name="DESCRIZIONE" Type="varchar" MaxLength="200" />
</EntityType>
<EntityType Name="Pagamenti">
<Key>
<PropertyRef Name="Id_fatt" />
<PropertyRef Name="data" />
</Key>
<Property Name="Id_fatt" Type="int" Nullable="false" />
<Property Name="data" Type="datetime" Nullable="false" />
<Property Name="netto" Type="money" />
<Property Name="importo" Type="money" />
<Property Name="note" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="Permessi">
<Key>
<PropertyRef Name="COD_PERMESSO" />
</Key>
<Property Name="COD_PERMESSO" Type="varchar" MaxLength="50" Nullable="false" />
<Property Name="URL" Type="varchar" MaxLength="250" Nullable="false" />
<Property Name="GRUPPO" Type="int" />
<Property Name="NUMERO" Type="int" />
<Property Name="NOME" Type="varchar" MaxLength="50" />
<Property Name="DESCRIZIONE" Type="varchar" MaxLength="50" />
</EntityType>
<EntityType Name="Permessi2Funzione">
<Key>
<PropertyRef Name="COD_PERMESSO" />
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="COD_PERMESSO" Type="varchar" MaxLength="50" Nullable="false" />
<Property Name="COD_FUNZIONE" Type="nvarchar" MaxLength="31" Nullable="false" />
<Property Name="READWRITE" Type="char" MaxLength="1" />
</EntityType>
<EntityType Name="Righe_fatt">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="idxDoc" Type="int" />
<Property Name="Descrizione" Type="nvarchar" MaxLength="1500" />
<Property Name="um" Type="nvarchar" MaxLength="50" />
<Property Name="prezzo/um" Type="money" />
<Property Name="qta" Type="real" Nullable="false" />
<Property Name="sconto" Type="real" Nullable="false" />
<Property Name="c_iva" Type="int" />
<Property Name="no_ritenuta" Type="bit" Nullable="false" />
<Property Name="valuta" Type="nvarchar" MaxLength="255" Nullable="false" />
<Property Name="Id_fatt" Type="int" StoreGeneratedPattern="Computed" />
<Property Name="codExt" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="quotaProj" Type="float" Nullable="false" />
</EntityType>
<EntityType Name="RigheFatt">
<Key>
<PropertyRef Name="IdxRigheFatt" />
</Key>
<Property Name="IdxRigheFatt" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="IdxFatt" Type="int" />
<Property Name="Descrizione" Type="ntext" />
<Property Name="um" Type="nvarchar" MaxLength="50" />
<Property Name="PrezzoUm" Type="money" />
<Property Name="qta" Type="int" />
<Property Name="sconto" Type="real" />
<Property Name="C_iva" Type="int" />
<Property Name="no_ritenuta" Type="bit" />
</EntityType>
<EntityType Name="Scadenze">
<Key>
<PropertyRef Name="Id_fatt" />
<PropertyRef Name="data" />
</Key>
<Property Name="Id_fatt" Type="int" Nullable="false" />
<Property Name="data" Type="datetime" Nullable="false" />
<Property Name="netto" Type="money" />
<Property Name="importo" Type="money" />
<Property Name="note" Type="nvarchar" MaxLength="50" />
</EntityType>
<EntityType Name="sysdiagrams">
<Key>
<PropertyRef Name="diagram_id" />
</Key>
<Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
<Property Name="principal_id" Type="int" Nullable="false" />
<Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="version" Type="int" />
<Property Name="definition" Type="varbinary(max)" />
</EntityType>
<EntityType Name="UTENTE">
<Key>
<PropertyRef Name="USER_NAME" />
</Key>
<Property Name="DOMINIO" Type="varchar" MaxLength="30" />
<Property Name="USER_NAME" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="COGNOME" Type="varchar" MaxLength="100" />
<Property Name="NOME" Type="varchar" MaxLength="100" />
<Property Name="COD_SOCIETA" Type="varchar" MaxLength="5" />
<Property Name="MATRICOLA" Type="varchar" MaxLength="5" />
<Property Name="COD_CDC" Type="varchar" MaxLength="10" />
<Property Name="EMAIL" Type="varchar" MaxLength="100" />
<Property Name="SIGLA" Type="nvarchar" MaxLength="5" />
<Property Name="COD_LINGUA" Type="varchar" MaxLength="3" />
<Property Name="ATTIVO" Type="char" MaxLength="1" />
</EntityType>
<EntityType Name="Vocabolario">
<Key>
<PropertyRef Name="Lingua" />
<PropertyRef Name="Lemma" />
</Key>
<Property Name="Lingua" Type="nvarchar" MaxLength="3" Nullable="false" />
<Property Name="Lemma" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Traduzione" Type="nvarchar" MaxLength="500" Nullable="false" />
</EntityType>
<!--Errori trovati durante la generazione:
avviso 6002: Nessuna chiave primaria definita per la tabella/visualizzazione 'MedAP.dbo.v_docsExpl'. La chiave è stata dedotta e la definizione è stata creata come tabella/visualizzazione di sola lettura.-->
<EntityType Name="v_docsExpl">
<Key>
<PropertyRef Name="idxDoc" />
<PropertyRef Name="Gruppo" />
<PropertyRef Name="RagSoc" />
<PropertyRef Name="num" />
<PropertyRef Name="anno" />
<PropertyRef Name="netto" />
<PropertyRef Name="iva" />
<PropertyRef Name="importo" />
<PropertyRef Name="tipo" />
<PropertyRef Name="idxCli" />
<PropertyRef Name="totPagato" />
<PropertyRef Name="totScadenze" />
<PropertyRef Name="Descrizione" />
<PropertyRef Name="ritenuta" />
<PropertyRef Name="CostiAss" />
</Key>
<Property Name="idxDoc" Type="int" Nullable="false" />
<Property Name="emesso" Type="date" />
<Property Name="Gruppo" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="RagSoc" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="num" Type="int" Nullable="false" />
<Property Name="anno" Type="int" Nullable="false" />
<Property Name="Trim" Type="int" />
<Property Name="Mese" Type="int" />
<Property Name="netto" Type="decimal" Precision="9" Scale="2" Nullable="false" />
<Property Name="iva" Type="decimal" Precision="9" Scale="2" Nullable="false" />
<Property Name="importo" Type="decimal" Precision="9" Scale="2" Nullable="false" />
<Property Name="tipo" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="idxCli" Type="int" Nullable="false" />
<Property Name="totPagato" Type="money" Nullable="false" />
<Property Name="totScadenze" Type="money" Nullable="false" />
<Property Name="Descrizione" Type="nvarchar(max)" Nullable="false" />
<Property Name="ritenuta" Type="float" Nullable="false" />
<Property Name="CostiAss" Type="money" Nullable="false" />
</EntityType>
<Association Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
<End Role="Anagr_tipo_elem" Type="Self.Anagr_tipo_elem" Multiplicity="0..1" />
<End Role="Anagr_elem_doc" Type="Self.Anagr_elem_doc" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Anagr_tipo_elem">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="Anagr_elem_doc">
<PropertyRef Name="rif_tipo" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_CostiAssorbiti_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="CostiAssorbiti" Type="Self.CostiAssorbiti" Multiplicity="0..1" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="CostiAssorbiti">
<PropertyRef Name="IdxFatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_FUNZIONE">
<End Role="FUNZIONE" Type="Self.FUNZIONE" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="FUNZIONE">
<PropertyRef Name="COD_FUNZIONE" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="COD_FUNZIONE" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_MODULO">
<End Role="MODULO" Type="Self.MODULO" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="MODULO">
<PropertyRef Name="COD_MODULO" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="COD_MODULO" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_UTENTE">
<End Role="UTENTE" Type="Self.UTENTE" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="UTENTE">
<PropertyRef Name="USER_NAME" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="USER_NAME" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Fatture_Clienti">
<End Role="Clienti" Type="Self.Clienti" Multiplicity="1" />
<End Role="Fatture" Type="Self.Fatture" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Clienti">
<PropertyRef Name="idxCli" />
</Principal>
<Dependent Role="Fatture">
<PropertyRef Name="idxCli" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Pagamenti_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="Pagamenti" Type="Self.Pagamenti" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Pagamenti">
<PropertyRef Name="Id_fatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Permessi2Funzione_Permessi">
<End Role="Permessi" Type="Self.Permessi" Multiplicity="1" />
<End Role="Permessi2Funzione" Type="Self.Permessi2Funzione" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Permessi">
<PropertyRef Name="COD_PERMESSO" />
</Principal>
<Dependent Role="Permessi2Funzione">
<PropertyRef Name="COD_PERMESSO" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="C_iva">
<PropertyRef Name="C_iva" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="c_iva" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="idxDoc" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="C_iva">
<PropertyRef Name="C_iva" />
</Principal>
<Dependent Role="RigheFatt">
<PropertyRef Name="C_iva" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="RigheFatt">
<PropertyRef Name="IdxFatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Scadenze_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="Scadenze" Type="Self.Scadenze" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Scadenze">
<PropertyRef Name="Id_fatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_UTENTE_CDC">
<End Role="CDC" Type="Self.CDC" Multiplicity="0..1" />
<End Role="UTENTE" Type="Self.UTENTE" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="CDC">
<PropertyRef Name="COD_CDC" />
</Principal>
<Dependent Role="UTENTE">
<PropertyRef Name="COD_CDC" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Vocabolario_Lingue">
<End Role="Lingue" Type="Self.Lingue" Multiplicity="1" />
<End Role="Vocabolario" Type="Self.Vocabolario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Lingue">
<PropertyRef Name="Lingua" />
</Principal>
<Dependent Role="Vocabolario">
<PropertyRef Name="Lingua" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="MAPModelStoreContainer">
<EntitySet Name="Anagr_elem_doc" EntityType="Self.Anagr_elem_doc" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Anagr_elem_movimenti" EntityType="Self.Anagr_elem_movimenti" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Anagr_gruppi_righe_voci_fatt" EntityType="Self.Anagr_gruppi_righe_voci_fatt" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Anagr_movimenti" EntityType="Self.Anagr_movimenti" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Anagr_tipo_elem" EntityType="Self.Anagr_tipo_elem" Schema="dbo" store:Type="Tables" />
<EntitySet Name="AreaCap" EntityType="Self.AreaCap" Schema="dbo" store:Type="Tables" />
<EntitySet Name="C_iva" EntityType="Self.C_iva" Schema="dbo" store:Type="Tables" />
<EntitySet Name="CDC" EntityType="Self.CDC" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Clienti" EntityType="Self.Clienti" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Contributi" EntityType="Self.Contributi" Schema="dbo" store:Type="Tables" />
<EntitySet Name="CostiAssorbiti" EntityType="Self.CostiAssorbiti" Schema="dbo" store:Type="Tables" />
<EntitySet Name="DIRITTI" EntityType="Self.DIRITTI" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Fatture" EntityType="Self.Fatture" Schema="dbo" store:Type="Tables" />
<EntitySet Name="FUNZIONE" EntityType="Self.FUNZIONE" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Gruppi" EntityType="Self.Gruppi" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Lingue" EntityType="Self.Lingue" Schema="dbo" store:Type="Tables" />
<EntitySet Name="ListValues" EntityType="Self.ListValues" Schema="dbo" store:Type="Tables" />
<EntitySet Name="MODULO" EntityType="Self.MODULO" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Pagamenti" EntityType="Self.Pagamenti" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Permessi" EntityType="Self.Permessi" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Permessi2Funzione" EntityType="Self.Permessi2Funzione" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Righe_fatt" EntityType="Self.Righe_fatt" Schema="dbo" store:Type="Tables" />
<EntitySet Name="RigheFatt" EntityType="Self.RigheFatt" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Scadenze" EntityType="Self.Scadenze" Schema="dbo" store:Type="Tables" />
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
<EntitySet Name="UTENTE" EntityType="Self.UTENTE" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Vocabolario" EntityType="Self.Vocabolario" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Anagr_righe_voci_fatt" EntityType="Self.Anagr_righe_voci_fatt" store:Type="Tables" store:Schema="dbo">
<DefiningQuery>SELECT
[Anagr_righe_voci_fatt].[id] AS [id],
[Anagr_righe_voci_fatt].[descrizione] AS [descrizione],
[Anagr_righe_voci_fatt].[um] AS [um],
[Anagr_righe_voci_fatt].[prezzo_um] AS [prezzo_um],
[Anagr_righe_voci_fatt].[qta] AS [qta],
[Anagr_righe_voci_fatt].[sconto] AS [sconto],
[Anagr_righe_voci_fatt].[iva] AS [iva],
[Anagr_righe_voci_fatt].[no_ritenuta] AS [no_ritenuta]
FROM [dbo].[Anagr_righe_voci_fatt] AS [Anagr_righe_voci_fatt]</DefiningQuery>
</EntitySet>
<EntitySet Name="v_docsExpl" EntityType="Self.v_docsExpl" store:Type="Views" store:Schema="dbo">
<DefiningQuery>SELECT
[v_docsExpl].[idxDoc] AS [idxDoc],
[v_docsExpl].[emesso] AS [emesso],
[v_docsExpl].[Gruppo] AS [Gruppo],
[v_docsExpl].[RagSoc] AS [RagSoc],
[v_docsExpl].[num] AS [num],
[v_docsExpl].[anno] AS [anno],
[v_docsExpl].[Trim] AS [Trim],
[v_docsExpl].[Mese] AS [Mese],
[v_docsExpl].[netto] AS [netto],
[v_docsExpl].[iva] AS [iva],
[v_docsExpl].[importo] AS [importo],
[v_docsExpl].[tipo] AS [tipo],
[v_docsExpl].[idxCli] AS [idxCli],
[v_docsExpl].[totPagato] AS [totPagato],
[v_docsExpl].[totScadenze] AS [totScadenze],
[v_docsExpl].[Descrizione] AS [Descrizione],
[v_docsExpl].[ritenuta] AS [ritenuta],
[v_docsExpl].[CostiAss] AS [CostiAss]
FROM [dbo].[v_docsExpl] AS [v_docsExpl]</DefiningQuery>
</EntitySet>
<AssociationSet Name="anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}" Association="Self.anagr_elem_doc${EF6530B8-621C-4A01-B6E9-82278E2DA243}">
<End Role="Anagr_tipo_elem" EntitySet="Anagr_tipo_elem" />
<End Role="Anagr_elem_doc" EntitySet="Anagr_elem_doc" />
</AssociationSet>
<AssociationSet Name="FK_CostiAssorbiti_Fatture" Association="Self.FK_CostiAssorbiti_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="CostiAssorbiti" EntitySet="CostiAssorbiti" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_FUNZIONE" Association="Self.FK_DIRITTI_FUNZIONE">
<End Role="FUNZIONE" EntitySet="FUNZIONE" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_MODULO" Association="Self.FK_DIRITTI_MODULO">
<End Role="MODULO" EntitySet="MODULO" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_UTENTE" Association="Self.FK_DIRITTI_UTENTE">
<End Role="UTENTE" EntitySet="UTENTE" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_Fatture_Clienti" Association="Self.FK_Fatture_Clienti">
<End Role="Clienti" EntitySet="Clienti" />
<End Role="Fatture" EntitySet="Fatture" />
</AssociationSet>
<AssociationSet Name="FK_Pagamenti_Fatture" Association="Self.FK_Pagamenti_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Pagamenti" EntitySet="Pagamenti" />
</AssociationSet>
<AssociationSet Name="FK_Permessi2Funzione_Permessi" Association="Self.FK_Permessi2Funzione_Permessi">
<End Role="Permessi" EntitySet="Permessi" />
<End Role="Permessi2Funzione" EntitySet="Permessi2Funzione" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_C_iva" Association="Self.FK_Righe_fatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_Fatture" Association="Self.FK_Righe_fatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_C_iva" Association="Self.FK_RigheFatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_Fatture" Association="Self.FK_RigheFatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
</AssociationSet>
<AssociationSet Name="FK_Scadenze_Fatture" Association="Self.FK_Scadenze_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Scadenze" EntitySet="Scadenze" />
</AssociationSet>
<AssociationSet Name="FK_UTENTE_CDC" Association="Self.FK_UTENTE_CDC">
<End Role="CDC" EntitySet="CDC" />
<End Role="UTENTE" EntitySet="UTENTE" />
</AssociationSet>
<AssociationSet Name="FK_Vocabolario_Lingue" Association="Self.FK_Vocabolario_Lingue">
<End Role="Lingue" EntitySet="Lingue" />
<End Role="Vocabolario" EntitySet="Vocabolario" />
</AssociationSet>
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="MAPModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
<EntityType Name="Anagr_elem_doc">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="rif_tipo" Type="Int32" />
<Property Name="cod" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="descrizione" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
<Property Name="rif_anagr_fatt" Type="Int32" />
<NavigationProperty Name="Anagr_tipo_elem" Relationship="Self.anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_" FromRole="Anagr_elem_doc" ToRole="Anagr_tipo_elem" />
</EntityType>
<EntityType Name="Anagr_elem_movimenti">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="descrizione" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="rif_movimento" Type="Int32" />
<Property Name="giorni_decorrenza" Type="Int32" />
<Property Name="rif_conto_dest" Type="Int32" />
<Property Name="rif_conto_origine" Type="Int32" />
<Property Name="percentuale" Type="Double" />
<Property Name="SSMA_TimeStamp" Type="Binary" MaxLength="8" FixedLength="true" Nullable="false" annotation:StoreGeneratedPattern="Computed" />
</EntityType>
<EntityType Name="Anagr_gruppi_righe_voci_fatt">
<Key>
<PropertyRef Name="idxGruppo" />
</Key>
<Property Name="idxGruppo" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Descrizione" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="Anagr_movimenti">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="descrizione" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="Anagr_tipo_elem">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="descrizione" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
<Property Name="metodo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Anagr_elem_doc" Relationship="Self.anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_" FromRole="Anagr_tipo_elem" ToRole="Anagr_elem_doc" />
</EntityType>
<EntityType Name="AreaCap">
<Key>
<PropertyRef Name="CAP" />
<PropertyRef Name="località" />
</Key>
<Property Name="CAP" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="località" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="gruppo" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="C_iva">
<Key>
<PropertyRef Name="C_iva1" />
</Key>
<Property Name="C_iva1" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="iva" Type="Double" />
<Property Name="descrizione" Type="String" MaxLength="250" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Righe_fatt" Relationship="Self.FK_Righe_fatt_C_iva" FromRole="C_iva" ToRole="Righe_fatt" />
<NavigationProperty Name="RigheFatt" Relationship="Self.FK_RigheFatt_C_iva" FromRole="C_iva" ToRole="RigheFatt" />
</EntityType>
<EntityType Name="CDC">
<Key>
<PropertyRef Name="COD_CDC" />
</Key>
<Property Name="COD_CDC" Type="String" MaxLength="10" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="DESCRIZIONE" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
<Property Name="COD_TIPO" Type="String" MaxLength="1" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="POSIZIONE" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
<NavigationProperty Name="UTENTE" Relationship="Self.FK_UTENTE_CDC" FromRole="CDC" ToRole="UTENTE" />
</EntityType>
<EntityType Name="Clienti">
<Key>
<PropertyRef Name="idxCli" />
</Key>
<Property Name="idxCli" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="RagSoc" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Sesso" Type="String" MaxLength="1" FixedLength="true" Unicode="false" Nullable="false" />
<Property Name="POBirth" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="DOBirth" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="P_iva" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="C_Fisc" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Via" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Località" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Cap" Type="String" MaxLength="5" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Provincia" Type="String" MaxLength="2" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Pagamento" Type="String" MaxLength="250" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Note" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="idxGruppo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Fatture_Clienti" FromRole="Clienti" ToRole="Fatture" />
</EntityType>
<EntityType Name="Contributi">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Descrizione" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Percentuale" Type="Double" Nullable="false" />
<Property Name="Imponibile" Type="Boolean" Nullable="false" />
<Property Name="Ritenuta" Type="Boolean" Nullable="false" />
</EntityType>
<EntityType Name="CostiAssorbiti">
<Key>
<PropertyRef Name="IdxFatt" />
</Key>
<Property Name="IdxFatt" Type="Int32" Nullable="false" />
<Property Name="netto" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
<Property Name="note" Type="String" MaxLength="2500" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_CostiAssorbiti_Fatture" FromRole="CostiAssorbiti" ToRole="Fatture" />
</EntityType>
<EntityType Name="DIRITTI">
<Key>
<PropertyRef Name="USER_NAME" />
<PropertyRef Name="COD_CDC" />
<PropertyRef Name="COD_MODULO" />
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="USER_NAME" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="COD_CDC" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="COD_MODULO" Type="String" MaxLength="31" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="COD_FUNZIONE" Type="String" MaxLength="31" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="VALUE" Type="String" MaxLength="255" FixedLength="false" Unicode="false" />
<NavigationProperty Name="FUNZIONE" Relationship="Self.FK_DIRITTI_FUNZIONE" FromRole="DIRITTI" ToRole="FUNZIONE" />
<NavigationProperty Name="MODULO" Relationship="Self.FK_DIRITTI_MODULO" FromRole="DIRITTI" ToRole="MODULO" />
<NavigationProperty Name="UTENTE" Relationship="Self.FK_DIRITTI_UTENTE" FromRole="DIRITTI" ToRole="UTENTE" />
</EntityType>
<EntityType Name="Fatture">
<Key>
<PropertyRef Name="IdxFatt" />
</Key>
<Property Name="IdxFatt" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Anno" Type="Int32" Nullable="false" />
<Property Name="Num" Type="Int32" Nullable="false" />
<Property Name="idxCli" Type="Int32" Nullable="false" />
<Property Name="Tipo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Data" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="Ritenuta" Type="Double" Nullable="false" />
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Computed" />
<NavigationProperty Name="Clienti" Relationship="Self.FK_Fatture_Clienti" FromRole="Fatture" ToRole="Clienti" />
<NavigationProperty Name="CostiAssorbiti" Relationship="Self.FK_CostiAssorbiti_Fatture" FromRole="Fatture" ToRole="CostiAssorbiti" />
<NavigationProperty Name="Pagamenti" Relationship="Self.FK_Pagamenti_Fatture" FromRole="Fatture" ToRole="Pagamenti" />
<NavigationProperty Name="Righe_fatt" Relationship="Self.FK_Righe_fatt_Fatture" FromRole="Fatture" ToRole="Righe_fatt" />
<NavigationProperty Name="RigheFatt" Relationship="Self.FK_RigheFatt_Fatture" FromRole="Fatture" ToRole="RigheFatt" />
<NavigationProperty Name="Scadenze" Relationship="Self.FK_Scadenze_Fatture" FromRole="Fatture" ToRole="Scadenze" />
<Property Name="IsTemplate" Type="Boolean" Nullable="false" />
<Property Name="IdxTemplate" Type="Int32" Nullable="false" />
</EntityType>
<EntityType Name="FUNZIONE">
<Key>
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="COD_FUNZIONE" Type="String" MaxLength="31" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="DESCRIZIONE" Type="String" MaxLength="500" FixedLength="false" Unicode="true" />
<NavigationProperty Name="DIRITTI" Relationship="Self.FK_DIRITTI_FUNZIONE" FromRole="FUNZIONE" ToRole="DIRITTI" />
</EntityType>
<EntityType Name="Gruppi">
<Key>
<PropertyRef Name="IdxGruppo" />
</Key>
<Property Name="IdxGruppo" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Descr" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="Lingue">
<Key>
<PropertyRef Name="Lingua" />
</Key>
<Property Name="Lingua" Type="String" MaxLength="3" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="DescrizioneLingua" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Vocabolario" Relationship="Self.FK_Vocabolario_Lingue" FromRole="Lingue" ToRole="Vocabolario" />
</EntityType>
<EntityType Name="ListValues">
<Key>
<PropertyRef Name="TableName" />
<PropertyRef Name="FieldName" />
<PropertyRef Name="value" />
</Key>
<Property Name="TableName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="FieldName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="value" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="label" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="ordinal" Type="Int32" />
</EntityType>
<EntityType Name="MODULO">
<Key>
<PropertyRef Name="COD_MODULO" />
</Key>
<Property Name="COD_MODULO" Type="String" MaxLength="31" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="DESCRIZIONE" Type="String" MaxLength="200" FixedLength="false" Unicode="false" />
<NavigationProperty Name="DIRITTI" Relationship="Self.FK_DIRITTI_MODULO" FromRole="MODULO" ToRole="DIRITTI" />
</EntityType>
<EntityType Name="Pagamenti">
<Key>
<PropertyRef Name="Id_fatt" />
<PropertyRef Name="data" />
</Key>
<Property Name="Id_fatt" Type="Int32" Nullable="false" />
<Property Name="data" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="netto" Type="Decimal" Precision="19" Scale="4" />
<Property Name="importo" Type="Decimal" Precision="19" Scale="4" />
<Property Name="note" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Pagamenti_Fatture" FromRole="Pagamenti" ToRole="Fatture" />
</EntityType>
<EntityType Name="Permessi">
<Key>
<PropertyRef Name="COD_PERMESSO" />
</Key>
<Property Name="COD_PERMESSO" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="URL" Type="String" MaxLength="250" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="GRUPPO" Type="Int32" />
<Property Name="NUMERO" Type="Int32" />
<Property Name="NOME" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="DESCRIZIONE" Type="String" MaxLength="50" FixedLength="false" Unicode="false" />
<NavigationProperty Name="Permessi2Funzione" Relationship="Self.FK_Permessi2Funzione_Permessi" FromRole="Permessi" ToRole="Permessi2Funzione" />
</EntityType>
<EntityType Name="Permessi2Funzione">
<Key>
<PropertyRef Name="COD_PERMESSO" />
<PropertyRef Name="COD_FUNZIONE" />
</Key>
<Property Name="COD_PERMESSO" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
<Property Name="COD_FUNZIONE" Type="String" MaxLength="31" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="READWRITE" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<NavigationProperty Name="Permessi" Relationship="Self.FK_Permessi2Funzione_Permessi" FromRole="Permessi2Funzione" ToRole="Permessi" />
</EntityType>
<EntityType Name="Righe_fatt">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="idxDoc" Type="Int32" />
<Property Name="Descrizione" Type="String" MaxLength="1500" FixedLength="false" Unicode="true" />
<Property Name="um" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="prezzo_um" Type="Decimal" Precision="19" Scale="4" />
<Property Name="qta" Type="Single" Nullable="false" />
<Property Name="sconto" Type="Single" Nullable="false" />
<Property Name="c_iva" Type="Int32" />
<Property Name="no_ritenuta" Type="Boolean" Nullable="false" />
<Property Name="valuta" Type="String" MaxLength="255" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Id_fatt" Type="Int32" annotation:StoreGeneratedPattern="Computed" />
<Property Name="codExt" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="quotaProj" Type="Double" Nullable="false" />
<NavigationProperty Name="C_iva1" Relationship="Self.FK_Righe_fatt_C_iva" FromRole="Righe_fatt" ToRole="C_iva" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Righe_fatt_Fatture" FromRole="Righe_fatt" ToRole="Fatture" />
</EntityType>
<EntityType Name="RigheFatt">
<Key>
<PropertyRef Name="IdxRigheFatt" />
</Key>
<Property Name="IdxRigheFatt" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="IdxFatt" Type="Int32" />
<Property Name="Descrizione" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="um" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="PrezzoUm" Type="Decimal" Precision="19" Scale="4" />
<Property Name="qta" Type="Int32" />
<Property Name="sconto" Type="Single" />
<Property Name="C_iva" Type="Int32" />
<Property Name="no_ritenuta" Type="Boolean" />
<NavigationProperty Name="C_iva1" Relationship="Self.FK_RigheFatt_C_iva" FromRole="RigheFatt" ToRole="C_iva" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_RigheFatt_Fatture" FromRole="RigheFatt" ToRole="Fatture" />
</EntityType>
<EntityType Name="Scadenze">
<Key>
<PropertyRef Name="Id_fatt" />
<PropertyRef Name="data" />
</Key>
<Property Name="Id_fatt" Type="Int32" Nullable="false" />
<Property Name="data" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="netto" Type="Decimal" Precision="19" Scale="4" />
<Property Name="importo" Type="Decimal" Precision="19" Scale="4" />
<Property Name="note" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Fatture" Relationship="Self.FK_Scadenze_Fatture" FromRole="Scadenze" ToRole="Fatture" />
</EntityType>
<EntityType Name="sysdiagrams">
<Key>
<PropertyRef Name="diagram_id" />
</Key>
<Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="principal_id" Type="Int32" Nullable="false" />
<Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="version" Type="Int32" />
<Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
</EntityType>
<EntityType Name="UTENTE">
<Key>
<PropertyRef Name="USER_NAME" />
</Key>
<Property Name="DOMINIO" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="USER_NAME" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="COGNOME" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
<Property Name="NOME" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
<Property Name="COD_SOCIETA" Type="String" MaxLength="5" FixedLength="false" Unicode="false" />
<Property Name="MATRICOLA" Type="String" MaxLength="5" FixedLength="false" Unicode="false" />
<Property Name="COD_CDC" Type="String" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="EMAIL" Type="String" MaxLength="100" FixedLength="false" Unicode="false" />
<Property Name="SIGLA" Type="String" MaxLength="5" FixedLength="false" Unicode="true" />
<Property Name="COD_LINGUA" Type="String" MaxLength="3" FixedLength="false" Unicode="false" />
<Property Name="ATTIVO" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
<NavigationProperty Name="CDC" Relationship="Self.FK_UTENTE_CDC" FromRole="UTENTE" ToRole="CDC" />
<NavigationProperty Name="DIRITTI" Relationship="Self.FK_DIRITTI_UTENTE" FromRole="UTENTE" ToRole="DIRITTI" />
</EntityType>
<EntityType Name="Vocabolario">
<Key>
<PropertyRef Name="Lingua" />
<PropertyRef Name="Lemma" />
</Key>
<Property Name="Lingua" Type="String" MaxLength="3" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Lemma" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Traduzione" Type="String" MaxLength="500" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Lingue" Relationship="Self.FK_Vocabolario_Lingue" FromRole="Vocabolario" ToRole="Lingue" />
</EntityType>
<EntityType Name="Anagr_righe_voci_fatt">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="descrizione" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="um" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="prezzo_um" Type="Double" />
<Property Name="qta" Type="Double" />
<Property Name="sconto" Type="Double" />
<Property Name="iva" Type="Double" />
<Property Name="no_ritenuta" Type="Boolean" />
</EntityType>
<Association Name="anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_">
<End Role="Anagr_tipo_elem" Type="Self.Anagr_tipo_elem" Multiplicity="0..1" />
<End Role="Anagr_elem_doc" Type="Self.Anagr_elem_doc" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Anagr_tipo_elem">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="Anagr_elem_doc">
<PropertyRef Name="rif_tipo" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="C_iva">
<PropertyRef Name="C_iva1" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="c_iva" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_C_iva">
<End Role="C_iva" Type="Self.C_iva" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="C_iva">
<PropertyRef Name="C_iva1" />
</Principal>
<Dependent Role="RigheFatt">
<PropertyRef Name="C_iva" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_UTENTE_CDC">
<End Role="CDC" Type="Self.CDC" Multiplicity="0..1" />
<End Role="UTENTE" Type="Self.UTENTE" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="CDC">
<PropertyRef Name="COD_CDC" />
</Principal>
<Dependent Role="UTENTE">
<PropertyRef Name="COD_CDC" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Fatture_Clienti">
<End Role="Clienti" Type="Self.Clienti" Multiplicity="1" />
<End Role="Fatture" Type="Self.Fatture" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Clienti">
<PropertyRef Name="idxCli" />
</Principal>
<Dependent Role="Fatture">
<PropertyRef Name="idxCli" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_CostiAssorbiti_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="CostiAssorbiti" Type="Self.CostiAssorbiti" Multiplicity="0..1" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="CostiAssorbiti">
<PropertyRef Name="IdxFatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_FUNZIONE">
<End Role="FUNZIONE" Type="Self.FUNZIONE" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="FUNZIONE">
<PropertyRef Name="COD_FUNZIONE" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="COD_FUNZIONE" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_MODULO">
<End Role="MODULO" Type="Self.MODULO" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="MODULO">
<PropertyRef Name="COD_MODULO" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="COD_MODULO" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_DIRITTI_UTENTE">
<End Role="UTENTE" Type="Self.UTENTE" Multiplicity="1" />
<End Role="DIRITTI" Type="Self.DIRITTI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="UTENTE">
<PropertyRef Name="USER_NAME" />
</Principal>
<Dependent Role="DIRITTI">
<PropertyRef Name="USER_NAME" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Pagamenti_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="Pagamenti" Type="Self.Pagamenti" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Pagamenti">
<PropertyRef Name="Id_fatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Righe_fatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="Righe_fatt" Type="Self.Righe_fatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Righe_fatt">
<PropertyRef Name="idxDoc" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_RigheFatt_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="0..1" />
<End Role="RigheFatt" Type="Self.RigheFatt" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="RigheFatt">
<PropertyRef Name="IdxFatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Scadenze_Fatture">
<End Role="Fatture" Type="Self.Fatture" Multiplicity="1" />
<End Role="Scadenze" Type="Self.Scadenze" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Fatture">
<PropertyRef Name="IdxFatt" />
</Principal>
<Dependent Role="Scadenze">
<PropertyRef Name="Id_fatt" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Vocabolario_Lingue">
<End Role="Lingue" Type="Self.Lingue" Multiplicity="1" />
<End Role="Vocabolario" Type="Self.Vocabolario" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Lingue">
<PropertyRef Name="Lingua" />
</Principal>
<Dependent Role="Vocabolario">
<PropertyRef Name="Lingua" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_Permessi2Funzione_Permessi">
<End Role="Permessi" Type="Self.Permessi" Multiplicity="1" />
<End Role="Permessi2Funzione" Type="Self.Permessi2Funzione" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Permessi">
<PropertyRef Name="COD_PERMESSO" />
</Principal>
<Dependent Role="Permessi2Funzione">
<PropertyRef Name="COD_PERMESSO" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="MAPEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Anagr_elem_doc" EntityType="Self.Anagr_elem_doc" />
<EntitySet Name="Anagr_elem_movimenti" EntityType="Self.Anagr_elem_movimenti" />
<EntitySet Name="Anagr_gruppi_righe_voci_fatt" EntityType="Self.Anagr_gruppi_righe_voci_fatt" />
<EntitySet Name="Anagr_movimenti" EntityType="Self.Anagr_movimenti" />
<EntitySet Name="Anagr_tipo_elem" EntityType="Self.Anagr_tipo_elem" />
<EntitySet Name="AreaCap" EntityType="Self.AreaCap" />
<EntitySet Name="C_iva" EntityType="Self.C_iva" />
<EntitySet Name="CDC" EntityType="Self.CDC" />
<EntitySet Name="Clienti" EntityType="Self.Clienti" />
<EntitySet Name="Contributi" EntityType="Self.Contributi" />
<EntitySet Name="CostiAssorbiti" EntityType="Self.CostiAssorbiti" />
<EntitySet Name="DIRITTI" EntityType="Self.DIRITTI" />
<EntitySet Name="Fatture" EntityType="Self.Fatture" />
<EntitySet Name="FUNZIONE" EntityType="Self.FUNZIONE" />
<EntitySet Name="Gruppi" EntityType="Self.Gruppi" />
<EntitySet Name="Lingue" EntityType="Self.Lingue" />
<EntitySet Name="ListValues" EntityType="Self.ListValues" />
<EntitySet Name="MODULO" EntityType="Self.MODULO" />
<EntitySet Name="Pagamenti" EntityType="Self.Pagamenti" />
<EntitySet Name="Permessi" EntityType="Self.Permessi" />
<EntitySet Name="Permessi2Funzione" EntityType="Self.Permessi2Funzione" />
<EntitySet Name="Righe_fatt" EntityType="Self.Righe_fatt" />
<EntitySet Name="RigheFatt" EntityType="Self.RigheFatt" />
<EntitySet Name="Scadenze" EntityType="Self.Scadenze" />
<EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
<EntitySet Name="UTENTE" EntityType="Self.UTENTE" />
<EntitySet Name="Vocabolario" EntityType="Self.Vocabolario" />
<EntitySet Name="Anagr_righe_voci_fatt" EntityType="Self.Anagr_righe_voci_fatt" />
<AssociationSet Name="anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_" Association="Self.anagr_elem_doc__EF6530B8_621C_4A01_B6E9_82278E2DA243_">
<End Role="Anagr_tipo_elem" EntitySet="Anagr_tipo_elem" />
<End Role="Anagr_elem_doc" EntitySet="Anagr_elem_doc" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_C_iva" Association="Self.FK_Righe_fatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_C_iva" Association="Self.FK_RigheFatt_C_iva">
<End Role="C_iva" EntitySet="C_iva" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
</AssociationSet>
<AssociationSet Name="FK_UTENTE_CDC" Association="Self.FK_UTENTE_CDC">
<End Role="CDC" EntitySet="CDC" />
<End Role="UTENTE" EntitySet="UTENTE" />
</AssociationSet>
<AssociationSet Name="FK_Fatture_Clienti" Association="Self.FK_Fatture_Clienti">
<End Role="Clienti" EntitySet="Clienti" />
<End Role="Fatture" EntitySet="Fatture" />
</AssociationSet>
<AssociationSet Name="FK_CostiAssorbiti_Fatture" Association="Self.FK_CostiAssorbiti_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="CostiAssorbiti" EntitySet="CostiAssorbiti" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_FUNZIONE" Association="Self.FK_DIRITTI_FUNZIONE">
<End Role="FUNZIONE" EntitySet="FUNZIONE" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_MODULO" Association="Self.FK_DIRITTI_MODULO">
<End Role="MODULO" EntitySet="MODULO" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_DIRITTI_UTENTE" Association="Self.FK_DIRITTI_UTENTE">
<End Role="UTENTE" EntitySet="UTENTE" />
<End Role="DIRITTI" EntitySet="DIRITTI" />
</AssociationSet>
<AssociationSet Name="FK_Pagamenti_Fatture" Association="Self.FK_Pagamenti_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Pagamenti" EntitySet="Pagamenti" />
</AssociationSet>
<AssociationSet Name="FK_Righe_fatt_Fatture" Association="Self.FK_Righe_fatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Righe_fatt" EntitySet="Righe_fatt" />
</AssociationSet>
<AssociationSet Name="FK_RigheFatt_Fatture" Association="Self.FK_RigheFatt_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="RigheFatt" EntitySet="RigheFatt" />
</AssociationSet>
<AssociationSet Name="FK_Scadenze_Fatture" Association="Self.FK_Scadenze_Fatture">
<End Role="Fatture" EntitySet="Fatture" />
<End Role="Scadenze" EntitySet="Scadenze" />
</AssociationSet>
<AssociationSet Name="FK_Vocabolario_Lingue" Association="Self.FK_Vocabolario_Lingue">
<End Role="Lingue" EntitySet="Lingue" />
<End Role="Vocabolario" EntitySet="Vocabolario" />
</AssociationSet>
<AssociationSet Name="FK_Permessi2Funzione_Permessi" Association="Self.FK_Permessi2Funzione_Permessi">
<End Role="Permessi" EntitySet="Permessi" />
<End Role="Permessi2Funzione" EntitySet="Permessi2Funzione" />
</AssociationSet>
<EntitySet Name="Documenti" EntityType="MAPModel.Documenti" />
</EntityContainer>
<EntityType Name="Documenti">
<Key>
<PropertyRef Name="idxDoc" />
<PropertyRef Name="Gruppo" />
<PropertyRef Name="RagSoc" />
<PropertyRef Name="num" />
<PropertyRef Name="anno" />
<PropertyRef Name="netto" />
<PropertyRef Name="iva" />
<PropertyRef Name="importo" />
<PropertyRef Name="tipo" />
<PropertyRef Name="idxCli" />
<PropertyRef Name="totPagato" />
<PropertyRef Name="totScadenze" />
<PropertyRef Name="Descrizione" />
<PropertyRef Name="ritenuta" />
<PropertyRef Name="CostiAss" />
</Key>
<Property Name="idxDoc" Type="Int32" Nullable="false" />
<Property Name="emesso" Type="DateTime" Precision="0" />
<Property Name="Gruppo" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="RagSoc" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="num" Type="Int32" Nullable="false" />
<Property Name="anno" Type="Int32" Nullable="false" />
<Property Name="Trim" Type="Int32" />
<Property Name="Mese" Type="Int32" />
<Property Name="netto" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="iva" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="importo" Type="Decimal" Nullable="false" Precision="9" Scale="2" />
<Property Name="tipo" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="idxCli" Type="Int32" Nullable="false" />
<Property Name="totPagato" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
<Property Name="totScadenze" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
<Property Name="Descrizione" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="ritenuta" Type="Double" Nullable="false" />
<Property Name="CostiAss" Type="Decimal" Nullable="false" Precision="19" Scale="4" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="MAPModelStoreContainer" CdmEntityContainer="MAPEntities">
<EntitySetMapping Name="Anagr_elem_doc">
<EntityTypeMapping TypeName="MAPModel.Anagr_elem_doc">
<MappingFragment StoreEntitySet="Anagr_elem_doc">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="rif_tipo" ColumnName="rif_tipo" />
<ScalarProperty Name="cod" ColumnName="cod" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
<ScalarProperty Name="rif_anagr_fatt" ColumnName="rif_anagr_fatt" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Anagr_elem_movimenti">
<EntityTypeMapping TypeName="MAPModel.Anagr_elem_movimenti">
<MappingFragment StoreEntitySet="Anagr_elem_movimenti">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
<ScalarProperty Name="rif_movimento" ColumnName="rif_movimento" />
<ScalarProperty Name="giorni_decorrenza" ColumnName="giorni_decorrenza" />
<ScalarProperty Name="rif_conto_dest" ColumnName="rif_conto_dest" />
<ScalarProperty Name="rif_conto_origine" ColumnName="rif_conto_origine" />
<ScalarProperty Name="percentuale" ColumnName="percentuale" />
<ScalarProperty Name="SSMA_TimeStamp" ColumnName="SSMA_TimeStamp" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Anagr_gruppi_righe_voci_fatt">
<EntityTypeMapping TypeName="MAPModel.Anagr_gruppi_righe_voci_fatt">
<MappingFragment StoreEntitySet="Anagr_gruppi_righe_voci_fatt">
<ScalarProperty Name="idxGruppo" ColumnName="idxGruppo" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Anagr_movimenti">
<EntityTypeMapping TypeName="MAPModel.Anagr_movimenti">
<MappingFragment StoreEntitySet="Anagr_movimenti">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Anagr_tipo_elem">
<EntityTypeMapping TypeName="MAPModel.Anagr_tipo_elem">
<MappingFragment StoreEntitySet="Anagr_tipo_elem">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
<ScalarProperty Name="metodo" ColumnName="metodo" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="AreaCap">
<EntityTypeMapping TypeName="MAPModel.AreaCap">
<MappingFragment StoreEntitySet="AreaCap">
<ScalarProperty Name="CAP" ColumnName="CAP" />
<ScalarProperty Name="località" ColumnName="località" />
<ScalarProperty Name="gruppo" ColumnName="gruppo" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="C_iva">
<EntityTypeMapping TypeName="MAPModel.C_iva">
<MappingFragment StoreEntitySet="C_iva">
<ScalarProperty Name="C_iva1" ColumnName="C_iva" />
<ScalarProperty Name="iva" ColumnName="iva" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="CDC">
<EntityTypeMapping TypeName="MAPModel.CDC">
<MappingFragment StoreEntitySet="CDC">
<ScalarProperty Name="COD_CDC" ColumnName="COD_CDC" />
<ScalarProperty Name="DESCRIZIONE" ColumnName="DESCRIZIONE" />
<ScalarProperty Name="COD_TIPO" ColumnName="COD_TIPO" />
<ScalarProperty Name="POSIZIONE" ColumnName="POSIZIONE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Clienti">
<EntityTypeMapping TypeName="MAPModel.Clienti">
<MappingFragment StoreEntitySet="Clienti">
<ScalarProperty Name="idxCli" ColumnName="idxCli" />
<ScalarProperty Name="RagSoc" ColumnName="RagSoc" />
<ScalarProperty Name="Sesso" ColumnName="Sesso" />
<ScalarProperty Name="POBirth" ColumnName="POBirth" />
<ScalarProperty Name="DOBirth" ColumnName="DOBirth" />
<ScalarProperty Name="P_iva" ColumnName="P_iva" />
<ScalarProperty Name="C_Fisc" ColumnName="C_Fisc" />
<ScalarProperty Name="Via" ColumnName="Via" />
<ScalarProperty Name="Località" ColumnName="Località" />
<ScalarProperty Name="Cap" ColumnName="Cap" />
<ScalarProperty Name="Provincia" ColumnName="Provincia" />
<ScalarProperty Name="Pagamento" ColumnName="Pagamento" />
<ScalarProperty Name="Note" ColumnName="Note" />
<ScalarProperty Name="idxGruppo" ColumnName="idxGruppo" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Contributi">
<EntityTypeMapping TypeName="MAPModel.Contributi">
<MappingFragment StoreEntitySet="Contributi">
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="Percentuale" ColumnName="Percentuale" />
<ScalarProperty Name="Imponibile" ColumnName="Imponibile" />
<ScalarProperty Name="Ritenuta" ColumnName="Ritenuta" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="CostiAssorbiti">
<EntityTypeMapping TypeName="MAPModel.CostiAssorbiti">
<MappingFragment StoreEntitySet="CostiAssorbiti">
<ScalarProperty Name="IdxFatt" ColumnName="IdxFatt" />
<ScalarProperty Name="netto" ColumnName="netto" />
<ScalarProperty Name="note" ColumnName="note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="DIRITTI">
<EntityTypeMapping TypeName="MAPModel.DIRITTI">
<MappingFragment StoreEntitySet="DIRITTI">
<ScalarProperty Name="USER_NAME" ColumnName="USER_NAME" />
<ScalarProperty Name="COD_CDC" ColumnName="COD_CDC" />
<ScalarProperty Name="COD_MODULO" ColumnName="COD_MODULO" />
<ScalarProperty Name="COD_FUNZIONE" ColumnName="COD_FUNZIONE" />
<ScalarProperty Name="VALUE" ColumnName="VALUE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Fatture">
<EntityTypeMapping TypeName="MAPModel.Fatture">
<MappingFragment StoreEntitySet="Fatture">
<ScalarProperty Name="IdxTemplate" ColumnName="IdxTemplate" />
<ScalarProperty Name="IsTemplate" ColumnName="IsTemplate" />
<ScalarProperty Name="IdxFatt" ColumnName="IdxFatt" />
<ScalarProperty Name="Anno" ColumnName="Anno" />
<ScalarProperty Name="Num" ColumnName="Num" />
<ScalarProperty Name="idxCli" ColumnName="idxCli" />
<ScalarProperty Name="Tipo" ColumnName="Tipo" />
<ScalarProperty Name="Data" ColumnName="Data" />
<ScalarProperty Name="Ritenuta" ColumnName="Ritenuta" />
<ScalarProperty Name="Id" ColumnName="Id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="FUNZIONE">
<EntityTypeMapping TypeName="MAPModel.FUNZIONE">
<MappingFragment StoreEntitySet="FUNZIONE">
<ScalarProperty Name="COD_FUNZIONE" ColumnName="COD_FUNZIONE" />
<ScalarProperty Name="DESCRIZIONE" ColumnName="DESCRIZIONE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Gruppi">
<EntityTypeMapping TypeName="MAPModel.Gruppi">
<MappingFragment StoreEntitySet="Gruppi">
<ScalarProperty Name="IdxGruppo" ColumnName="IdxGruppo" />
<ScalarProperty Name="Descr" ColumnName="Descr" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Lingue">
<EntityTypeMapping TypeName="MAPModel.Lingue">
<MappingFragment StoreEntitySet="Lingue">
<ScalarProperty Name="Lingua" ColumnName="Lingua" />
<ScalarProperty Name="DescrizioneLingua" ColumnName="DescrizioneLingua" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="ListValues">
<EntityTypeMapping TypeName="MAPModel.ListValues">
<MappingFragment StoreEntitySet="ListValues">
<ScalarProperty Name="TableName" ColumnName="TableName" />
<ScalarProperty Name="FieldName" ColumnName="FieldName" />
<ScalarProperty Name="value" ColumnName="value" />
<ScalarProperty Name="label" ColumnName="label" />
<ScalarProperty Name="ordinal" ColumnName="ordinal" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="MODULO">
<EntityTypeMapping TypeName="MAPModel.MODULO">
<MappingFragment StoreEntitySet="MODULO">
<ScalarProperty Name="COD_MODULO" ColumnName="COD_MODULO" />
<ScalarProperty Name="DESCRIZIONE" ColumnName="DESCRIZIONE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Pagamenti">
<EntityTypeMapping TypeName="MAPModel.Pagamenti">
<MappingFragment StoreEntitySet="Pagamenti">
<ScalarProperty Name="Id_fatt" ColumnName="Id_fatt" />
<ScalarProperty Name="data" ColumnName="data" />
<ScalarProperty Name="netto" ColumnName="netto" />
<ScalarProperty Name="importo" ColumnName="importo" />
<ScalarProperty Name="note" ColumnName="note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Permessi">
<EntityTypeMapping TypeName="MAPModel.Permessi">
<MappingFragment StoreEntitySet="Permessi">
<ScalarProperty Name="COD_PERMESSO" ColumnName="COD_PERMESSO" />
<ScalarProperty Name="URL" ColumnName="URL" />
<ScalarProperty Name="GRUPPO" ColumnName="GRUPPO" />
<ScalarProperty Name="NUMERO" ColumnName="NUMERO" />
<ScalarProperty Name="NOME" ColumnName="NOME" />
<ScalarProperty Name="DESCRIZIONE" ColumnName="DESCRIZIONE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Permessi2Funzione">
<EntityTypeMapping TypeName="MAPModel.Permessi2Funzione">
<MappingFragment StoreEntitySet="Permessi2Funzione">
<ScalarProperty Name="COD_PERMESSO" ColumnName="COD_PERMESSO" />
<ScalarProperty Name="COD_FUNZIONE" ColumnName="COD_FUNZIONE" />
<ScalarProperty Name="READWRITE" ColumnName="READWRITE" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Righe_fatt">
<EntityTypeMapping TypeName="MAPModel.Righe_fatt">
<MappingFragment StoreEntitySet="Righe_fatt">
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="um" ColumnName="um" />
<ScalarProperty Name="prezzo_um" ColumnName="prezzo/um" />
<ScalarProperty Name="qta" ColumnName="qta" />
<ScalarProperty Name="sconto" ColumnName="sconto" />
<ScalarProperty Name="c_iva" ColumnName="c_iva" />
<ScalarProperty Name="no_ritenuta" ColumnName="no_ritenuta" />
<ScalarProperty Name="valuta" ColumnName="valuta" />
<ScalarProperty Name="Id_fatt" ColumnName="Id_fatt" />
<ScalarProperty Name="codExt" ColumnName="codExt" />
<ScalarProperty Name="quotaProj" ColumnName="quotaProj" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="RigheFatt">
<EntityTypeMapping TypeName="MAPModel.RigheFatt">
<MappingFragment StoreEntitySet="RigheFatt">
<ScalarProperty Name="IdxRigheFatt" ColumnName="IdxRigheFatt" />
<ScalarProperty Name="IdxFatt" ColumnName="IdxFatt" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="um" ColumnName="um" />
<ScalarProperty Name="PrezzoUm" ColumnName="PrezzoUm" />
<ScalarProperty Name="qta" ColumnName="qta" />
<ScalarProperty Name="sconto" ColumnName="sconto" />
<ScalarProperty Name="C_iva" ColumnName="C_iva" />
<ScalarProperty Name="no_ritenuta" ColumnName="no_ritenuta" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Scadenze">
<EntityTypeMapping TypeName="MAPModel.Scadenze">
<MappingFragment StoreEntitySet="Scadenze">
<ScalarProperty Name="Id_fatt" ColumnName="Id_fatt" />
<ScalarProperty Name="data" ColumnName="data" />
<ScalarProperty Name="netto" ColumnName="netto" />
<ScalarProperty Name="importo" ColumnName="importo" />
<ScalarProperty Name="note" ColumnName="note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="sysdiagrams">
<EntityTypeMapping TypeName="MAPModel.sysdiagrams">
<MappingFragment StoreEntitySet="sysdiagrams">
<ScalarProperty Name="name" ColumnName="name" />
<ScalarProperty Name="principal_id" ColumnName="principal_id" />
<ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
<ScalarProperty Name="version" ColumnName="version" />
<ScalarProperty Name="definition" ColumnName="definition" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="UTENTE">
<EntityTypeMapping TypeName="MAPModel.UTENTE">
<MappingFragment StoreEntitySet="UTENTE">
<ScalarProperty Name="DOMINIO" ColumnName="DOMINIO" />
<ScalarProperty Name="USER_NAME" ColumnName="USER_NAME" />
<ScalarProperty Name="COGNOME" ColumnName="COGNOME" />
<ScalarProperty Name="NOME" ColumnName="NOME" />
<ScalarProperty Name="COD_SOCIETA" ColumnName="COD_SOCIETA" />
<ScalarProperty Name="MATRICOLA" ColumnName="MATRICOLA" />
<ScalarProperty Name="COD_CDC" ColumnName="COD_CDC" />
<ScalarProperty Name="EMAIL" ColumnName="EMAIL" />
<ScalarProperty Name="SIGLA" ColumnName="SIGLA" />
<ScalarProperty Name="COD_LINGUA" ColumnName="COD_LINGUA" />
<ScalarProperty Name="ATTIVO" ColumnName="ATTIVO" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Vocabolario">
<EntityTypeMapping TypeName="MAPModel.Vocabolario">
<MappingFragment StoreEntitySet="Vocabolario">
<ScalarProperty Name="Lingua" ColumnName="Lingua" />
<ScalarProperty Name="Lemma" ColumnName="Lemma" />
<ScalarProperty Name="Traduzione" ColumnName="Traduzione" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Anagr_righe_voci_fatt">
<EntityTypeMapping TypeName="MAPModel.Anagr_righe_voci_fatt">
<MappingFragment StoreEntitySet="Anagr_righe_voci_fatt">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="descrizione" ColumnName="descrizione" />
<ScalarProperty Name="um" ColumnName="um" />
<ScalarProperty Name="prezzo_um" ColumnName="prezzo_um" />
<ScalarProperty Name="qta" ColumnName="qta" />
<ScalarProperty Name="sconto" ColumnName="sconto" />
<ScalarProperty Name="iva" ColumnName="iva" />
<ScalarProperty Name="no_ritenuta" ColumnName="no_ritenuta" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Documenti">
<EntityTypeMapping TypeName="MAPModel.Documenti">
<MappingFragment StoreEntitySet="v_docsExpl">
<ScalarProperty Name="CostiAss" ColumnName="CostiAss" />
<ScalarProperty Name="ritenuta" ColumnName="ritenuta" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="totScadenze" ColumnName="totScadenze" />
<ScalarProperty Name="totPagato" ColumnName="totPagato" />
<ScalarProperty Name="idxCli" ColumnName="idxCli" />
<ScalarProperty Name="tipo" ColumnName="tipo" />
<ScalarProperty Name="importo" ColumnName="importo" />
<ScalarProperty Name="iva" ColumnName="iva" />
<ScalarProperty Name="netto" ColumnName="netto" />
<ScalarProperty Name="Mese" ColumnName="Mese" />
<ScalarProperty Name="Trim" ColumnName="Trim" />
<ScalarProperty Name="anno" ColumnName="anno" />
<ScalarProperty Name="num" ColumnName="num" />
<ScalarProperty Name="RagSoc" ColumnName="RagSoc" />
<ScalarProperty Name="Gruppo" ColumnName="Gruppo" />
<ScalarProperty Name="emesso" ColumnName="emesso" />
<ScalarProperty Name="idxDoc" ColumnName="idxDoc" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="false" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="false" />
<DesignerProperty Name="CodeGenerationStrategy" Value="Nessuno" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>