Skip to content

Commit

Permalink
Fix issues with publishing using Visual Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
exalted committed Nov 13, 2015
1 parent fffcf02 commit c708e42
Show file tree
Hide file tree
Showing 5 changed files with 248 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/Dispatch.Api/Dispatch.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,6 @@
<Content Include="bin\Models\AgendaModel.ssdl" />
<Content Include="bin\Models\AgendaModel.msl" />
<Content Include="bin\Models\AgendaModel.csdl" />
<Content Include="configs\apexnet-pushservice.config" />
<Content Include="configs\hangfirestorage-redis.config" />
<Content Include="configs\smtp.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
Expand Down
4 changes: 2 additions & 2 deletions src/Dispatch.Api/Web.Release.config
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@
</mailSettings>
</system.net>

<HangfireStorage xdt:Transform="RemoveAll"></HangfireStorage>
<HangfireStorage xmlns="urn:Apexnet.JobQueue.Configuration" xdt:Transform="RemoveAll"></HangfireStorage>
<HangfireStorage xmlns="urn:Apexnet.JobQueue.Configuration" xdt:Transform="Insert">
<redisStorage connectionString="{HANGFIRE_STORAGE_REDIS_CONNECTION}" />
</HangfireStorage>

<ApexnetPushService xdt:Transform="RemoveAll"></ApexnetPushService>
<ApexnetPushService xmlns="urn:Apexnet.Messaging.Configuration" xdt:Transform="RemoveAll"></ApexnetPushService>
<ApexnetPushService xmlns="urn:Apexnet.Messaging.Configuration" xdt:Transform="Insert">
<apexnetPushServiceReference url="{APEXNET_PUSH_SERVICE_URL}" />
</ApexnetPushService>
Expand Down
114 changes: 114 additions & 0 deletions src/Dispatch.Api/bin/Models/AgendaModel.csdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="utf-8"?>
<Schema xmlns="http://schemas.microsoft.com/ado/2009/11/edm" xmlns:cg="http://schemas.microsoft.com/ado/2006/04/codegeneration" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" Namespace="AgendaModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" annotation:UseStrongSpatialTypes="false">
<EntityContainer Name="AgendaContext" annotation:LazyLoadingEnabled="true">
<EntitySet Name="AGE_ACCESSI" EntityType="AgendaModel.AccessiUtente" />
<EntitySet Name="AGE_UTENTI" EntityType="AgendaModel.Utenti" />
<AssociationSet Name="FK_UtentiAccessiUtente" Association="AgendaModel.FK_UtentiAccessiUtente">
<End Role="AGE_UTENTI" EntitySet="AGE_UTENTI" />
<End Role="AccessiUtente" EntitySet="AGE_ACCESSI" />
</AssociationSet>
<EntitySet Name="AGE_QUERY_CUSTOM" EntityType="AgendaModel.QueryCustom" />
<EntitySet Name="AGE_QUERY_FILTRI" EntityType="AgendaModel.QueryFiltri" />
<AssociationSet Name="QueryCustomFiltri" Association="AgendaModel.QueryCustomFiltri">
<End Role="VistaAgenda" EntitySet="AGE_QUERY_CUSTOM" />
<End Role="VistaCondizione" EntitySet="AGE_QUERY_FILTRI" />
</AssociationSet>
</EntityContainer>
<EntityType Name="AccessiUtente">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Type="String" Name="USER_ID" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
<Property Type="DateTime" Name="DataAccesso" Nullable="false" />
<Property Type="String" Name="ServerVariables" MaxLength="2000" FixedLength="false" Unicode="true" />
<Property Type="String" Name="Modulo" Nullable="true" MaxLength="255" />
<NavigationProperty Name="AGE_UTENTI" Relationship="AgendaModel.FK_UtentiAccessiUtente" FromRole="AccessiUtente" ToRole="AGE_UTENTI" />
</EntityType>
<EntityType Name="Utenti">
<Key>
<PropertyRef Name="UserId" />
</Key>
<Property Type="String" Name="UserId" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
<Property Type="String" Name="Nome" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Type="String" Name="Cognome" MaxLength="50" FixedLength="false" Unicode="true" />
<NavigationProperty Name="AGE_ACCESSI" Relationship="AgendaModel.FK_UtentiAccessiUtente" FromRole="AGE_UTENTI" ToRole="AccessiUtente" />
</EntityType>
<Association Name="FK_UtentiAccessiUtente">
<End Type="AgendaModel.Utenti" Role="AGE_UTENTI" Multiplicity="1" />
<End Type="AgendaModel.AccessiUtente" Role="AccessiUtente" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="AGE_UTENTI">
<PropertyRef Name="UserId" />
</Principal>
<Dependent Role="AccessiUtente">
<PropertyRef Name="USER_ID" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityType Name="QueryCustom">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Type="String" Name="Codice" MaxLength="80" FixedLength="false" Unicode="true" Nullable="false">
<Documentation>
<Summary>codice univoco</Summary>
</Documentation>
</Property>
<Property Type="String" Name="ColumnsList" Nullable="true" MaxLength="2000" FixedLength="false" Unicode="true">
<Documentation>
<Summary>contenuto della select (*, CODICE, ANNO, ...), se vuoto allora è un * implicito</Summary>
</Documentation>
</Property>
<Property Type="String" Name="Source" Nullable="false" MaxLength="2000" FixedLength="false" Unicode="true">
<Documentation>
<Summary>corrisponde alla from, quindi da dove leggere i dati (es. ADM_CONCORSI)</Summary>
</Documentation>
</Property>
<Property Type="String" Name="Descrizione" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true">
<Documentation>
<Summary>descrizione interna di spiegazione</Summary>
</Documentation>
</Property>
<Property Type="String" Name="Modulo" Nullable="true" MaxLength="255">
<Documentation>
<Summary>codice del modulo progetto (es. ADM, CLK,...)</Summary>
</Documentation>
</Property>
<NavigationProperty Name="VistaCondizione" Relationship="AgendaModel.QueryCustomFiltri" FromRole="VistaAgenda" ToRole="VistaCondizione" />
<Property Type="String" Name="Note" Nullable="true" MaxLength="2000" FixedLength="false" Unicode="true" />
</EntityType>
<EntityType Name="QueryFiltri">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<NavigationProperty Name="VistaAgenda" Relationship="AgendaModel.QueryCustomFiltri" FromRole="VistaCondizione" ToRole="VistaAgenda" />
<Property Type="Int32" Name="QueryCustomId" Nullable="false" />
<Property Type="String" Name="Codice" Nullable="false" MaxLength="80" FixedLength="false" Unicode="true" />
<Property Type="String" Name="Filtro" Nullable="false" MaxLength="2000" FixedLength="false" Unicode="true">
<Documentation>
<Summary>condizione sql senza la clausula di where (es. ANNO=2015 AND CODICE='a')</Summary>
</Documentation>
</Property>
<Property Type="String" Name="Descrizione" Nullable="false" MaxLength="255" FixedLength="false" Unicode="true">
<Documentation>
<Summary>descrizione interna di spiegazione</Summary>
</Documentation>
</Property>
<Property Type="String" Name="Note" Nullable="true" MaxLength="2000" FixedLength="false" Unicode="true" />
</EntityType>
<Association Name="QueryCustomFiltri">
<End Type="AgendaModel.QueryCustom" Role="VistaAgenda" Multiplicity="1" />
<End Type="AgendaModel.QueryFiltri" Role="VistaCondizione" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="VistaAgenda">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="VistaCondizione">
<PropertyRef Name="QueryCustomId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>
50 changes: 50 additions & 0 deletions src/Dispatch.Api/bin/Models/AgendaModel.msl
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="AgendaModelStoreContainer" CdmEntityContainer="AgendaContext">
<EntitySetMapping Name="AGE_ACCESSI">
<EntityTypeMapping TypeName="AgendaModel.AccessiUtente">
<MappingFragment StoreEntitySet="AGE_ACCESSI">
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="USER_ID" ColumnName="USER_ID" />
<ScalarProperty Name="DataAccesso" ColumnName="DataAccesso" />
<ScalarProperty Name="ServerVariables" ColumnName="ServerVariables" />
<ScalarProperty Name="Modulo" ColumnName="Modulo" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="AGE_UTENTI">
<EntityTypeMapping TypeName="AgendaModel.Utenti">
<MappingFragment StoreEntitySet="AGE_UTENTI">
<ScalarProperty Name="UserId" ColumnName="UserId" />
<ScalarProperty Name="Nome" ColumnName="Nome" />
<ScalarProperty Name="Cognome" ColumnName="Cognome" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="AGE_QUERY_CUSTOM">
<EntityTypeMapping TypeName="AgendaModel.QueryCustom">
<MappingFragment StoreEntitySet="AGE_QUERY_CUSTOM">
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="Codice" ColumnName="Codice" />
<ScalarProperty Name="ColumnsList" ColumnName="ColumnsList" />
<ScalarProperty Name="Source" ColumnName="Source" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="Modulo" ColumnName="Modulo" />
<ScalarProperty Name="Note" ColumnName="Note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="AGE_QUERY_FILTRI">
<EntityTypeMapping TypeName="AgendaModel.QueryFiltri">
<MappingFragment StoreEntitySet="AGE_QUERY_FILTRI">
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="QueryCustomId" ColumnName="QueryCustomId" />
<ScalarProperty Name="Codice" ColumnName="Codice" />
<ScalarProperty Name="Filtro" ColumnName="Filtro" />
<ScalarProperty Name="Descrizione" ColumnName="Descrizione" />
<ScalarProperty Name="Note" ColumnName="Note" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
82 changes: 82 additions & 0 deletions src/Dispatch.Api/bin/Models/AgendaModel.ssdl
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="AgendaModel.Store" Alias="Self" Provider="Oracle.DataAccess.Client" ProviderManifestToken="11.2" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator">
<EntityContainer Name="AgendaModelStoreContainer">
<EntitySet Name="AGE_ACCESSI" EntityType="AgendaModel.Store.AGE_ACCESSI" store:Type="Tables" />
<EntitySet Name="AGE_UTENTI" EntityType="AgendaModel.Store.AGE_UTENTI" store:Type="Tables" />
<EntitySet Name="AGE_QUERY_CUSTOM" EntityType="AgendaModel.Store.AGE_QUERY_CUSTOM" store:Type="Tables" />
<EntitySet Name="AGE_QUERY_FILTRI" EntityType="AgendaModel.Store.AGE_QUERY_FILTRI" store:Type="Tables" />
<AssociationSet Name="FK_UtentiAccessiUtente" Association="AgendaModel.Store.FK_UtentiAccessiUtente">
<End Role="AGE_UTENTI" EntitySet="AGE_UTENTI" />
<End Role="AccessiUtente" EntitySet="AGE_ACCESSI" />
</AssociationSet>
<AssociationSet Name="QueryCustomFiltri" Association="AgendaModel.Store.QueryCustomFiltri">
<End Role="VistaAgenda" EntitySet="AGE_QUERY_CUSTOM" />
<End Role="VistaCondizione" EntitySet="AGE_QUERY_FILTRI" />
</AssociationSet>
</EntityContainer>
<EntityType Name="AGE_ACCESSI">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="number" Nullable="false" Precision="10" StoreGeneratedPattern="Identity" />
<Property Name="USER_ID" Type="varchar2" Nullable="false" MaxLength="255" />
<Property Name="DataAccesso" Type="date" Nullable="false" />
<Property Name="ServerVariables" Type="nvarchar2" Nullable="true" MaxLength="2000" />
<Property Name="Modulo" Type="nvarchar2" Nullable="true" MaxLength="255" />
</EntityType>
<EntityType Name="AGE_UTENTI">
<Key>
<PropertyRef Name="UserId" />
</Key>
<Property Name="UserId" Type="varchar2" Nullable="false" MaxLength="255" />
<Property Name="Nome" Type="nvarchar2" Nullable="true" MaxLength="50" />
<Property Name="Cognome" Type="nvarchar2" Nullable="true" MaxLength="50" />
</EntityType>
<EntityType Name="AGE_QUERY_CUSTOM">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="number" Nullable="false" Precision="10" StoreGeneratedPattern="Identity" />
<Property Name="Codice" Type="nvarchar2" Nullable="false" MaxLength="80" />
<Property Name="ColumnsList" Type="nvarchar2" Nullable="true" MaxLength="2000" />
<Property Name="Source" Type="nvarchar2" Nullable="false" MaxLength="2000" />
<Property Name="Descrizione" Type="nvarchar2" Nullable="false" MaxLength="255" />
<Property Name="Modulo" Type="nvarchar2" Nullable="true" MaxLength="255" />
<Property Name="Note" Type="nvarchar2" Nullable="true" MaxLength="2000" />
</EntityType>
<EntityType Name="AGE_QUERY_FILTRI">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="number" Nullable="false" Precision="10" StoreGeneratedPattern="Identity" />
<Property Name="QueryCustomId" Type="number" Nullable="false" Precision="10" />
<Property Name="Codice" Type="nvarchar2" Nullable="false" MaxLength="80" />
<Property Name="Filtro" Type="nvarchar2" Nullable="false" MaxLength="2000" />
<Property Name="Descrizione" Type="nvarchar2" Nullable="false" MaxLength="255" />
<Property Name="Note" Type="nvarchar2" Nullable="true" MaxLength="2000" />
</EntityType>
<Association Name="FK_UtentiAccessiUtente">
<End Role="AGE_UTENTI" Type="AgendaModel.Store.AGE_UTENTI" Multiplicity="1" />
<End Role="AccessiUtente" Type="AgendaModel.Store.AGE_ACCESSI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="AGE_UTENTI">
<PropertyRef Name="UserId" />
</Principal>
<Dependent Role="AccessiUtente">
<PropertyRef Name="USER_ID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="QueryCustomFiltri">
<End Role="VistaAgenda" Type="AgendaModel.Store.AGE_QUERY_CUSTOM" Multiplicity="1" />
<End Role="VistaCondizione" Type="AgendaModel.Store.AGE_QUERY_FILTRI" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="VistaAgenda">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="VistaCondizione">
<PropertyRef Name="QueryCustomId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>

0 comments on commit c708e42

Please sign in to comment.