Updating database, adding db code to proj, making Automation debug folder self sufficient
This commit is contained in:
Родитель
2cca190ef8
Коммит
06b02703a7
|
@ -80,6 +80,15 @@
|
|||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>copy $(ProjectDir)..\SmvCmdlets\*.ps1 $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)EntityFramework.dll $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)EntityFramework.SqlServer.dll $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)Microsoft.WindowsAzure.Storage.dll $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)SmvCmdlets.dll $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)SmvCmdlets.dll.config $(TargetDir)
|
||||
copy $(ProjectDir)..\SmvCmdlets\$(OutDir)SmvDb.dll $(TargetDir)</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
|
@ -16,5 +16,7 @@
|
|||
</entityFramework>
|
||||
<connectionStrings>
|
||||
<add name="SmvDbEntities" connectionString="metadata=res://*/SmvDataModel.csdl|res://*/SmvDataModel.ssdl|res://*/SmvDataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=smvsqlserver.database.windows.net;initial catalog=SmvDb;persist security info=True;user id=smvadmin;password=***REMOVED***;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
|
||||
<add name="StorageConnectionString" connectionString="" />
|
||||
<add name="StorageKey" connectionString="" />
|
||||
</connectionStrings>
|
||||
</configuration>
|
|
@ -0,0 +1,5 @@
|
|||
param([string] $folderPath)
|
||||
$configPath = "$folderPath\SmvCmdlets.dll.config"
|
||||
[System.AppDomain]::CurrentDomain.SetData("APP_CONFIG_FILE", $configPath)
|
||||
Add-Type -AssemblyName System.Configuration
|
||||
Import-Module "$folderPath\SmvCmdlets.dll"
|
|
@ -13,8 +13,10 @@ namespace SmvDb
|
|||
|
||||
public partial class ActionDiffBetweenTwoSessions_Result
|
||||
{
|
||||
public string ActionName { get; set; }
|
||||
public string WorkingDirectory { get; set; }
|
||||
public string Success { get; set; }
|
||||
public string ModulePath { get; set; }
|
||||
public string PluginName { get; set; }
|
||||
public string Bugs { get; set; }
|
||||
public int ActionSuccessCount { get; set; }
|
||||
public int ActionFailureCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,5 +17,5 @@
|
|||
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
||||
</providers>
|
||||
</entityFramework>
|
||||
<connectionStrings><add name="SmvDbEntities" connectionString="metadata=res://*/SmvDataModel.csdl|res://*/SmvDataModel.ssdl|res://*/SmvDataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=smvsqlserver.database.windows.net;initial catalog=SmvDb;persist security info=True;user id=smvadmin;password=***REMOVED***;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings>
|
||||
<connectionStrings><add name="SmvDbEntities" connectionString="metadata=res://*/SmvDataModel.csdl|res://*/SmvDataModel.ssdl|res://*/SmvDataModel.msl;provider=System.Data.SqlClient;provider connection string="data source=smvsqlserver.database.windows.net;initial catalog=SmvDb;persist security info=True;user id=smvadmin;password=***REMOVED***;multipleactiveresultsets=True;application name=EntityFramework"" providerName="System.Data.EntityClient" /></connectionStrings>
|
||||
</configuration>
|
|
@ -36,6 +36,7 @@ namespace SmvDb
|
|||
public virtual DbSet<TaskModule> TaskModules { get; set; }
|
||||
public virtual DbSet<TaskPlugin> TaskPlugins { get; set; }
|
||||
public virtual DbSet<Task> Tasks { get; set; }
|
||||
public virtual DbSet<RollUpTable> RollUpTables { get; set; }
|
||||
|
||||
public virtual ObjectResult<ActionDiffBetweenTwoSessions_Result> ActionDiffBetweenTwoSessions(string firstSession, string secondSession)
|
||||
{
|
||||
|
@ -50,6 +51,15 @@ namespace SmvDb
|
|||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<ActionDiffBetweenTwoSessions_Result>("ActionDiffBetweenTwoSessions", firstSessionParameter, secondSessionParameter);
|
||||
}
|
||||
|
||||
public virtual int InsertDataToRollUpTable(string taskId)
|
||||
{
|
||||
var taskIdParameter = taskId != null ?
|
||||
new ObjectParameter("taskId", taskId) :
|
||||
new ObjectParameter("taskId", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction("InsertDataToRollUpTable", taskIdParameter);
|
||||
}
|
||||
|
||||
public virtual int ModuleDiffBetweenTwoSessions(string firstSession, string secondSession)
|
||||
{
|
||||
var firstSessionParameter = firstSession != null ?
|
||||
|
@ -103,24 +113,6 @@ namespace SmvDb
|
|||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<PluginOverview_Result>("PluginOverview", pluginIdParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<SummaryTableForSession_Result> SummaryTableForSession(string sessionId)
|
||||
{
|
||||
var sessionIdParameter = sessionId != null ?
|
||||
new ObjectParameter("sessionId", sessionId) :
|
||||
new ObjectParameter("sessionId", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<SummaryTableForSession_Result>("SummaryTableForSession", sessionIdParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<taskDetailsParameter_Result> taskDetailsParameter(string sessionIdParameter)
|
||||
{
|
||||
var sessionIdParameterParameter = sessionIdParameter != null ?
|
||||
new ObjectParameter("sessionIdParameter", sessionIdParameter) :
|
||||
new ObjectParameter("sessionIdParameter", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<taskDetailsParameter_Result>("taskDetailsParameter", sessionIdParameterParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<SessionActionFailureDetails_Result> SessionActionFailureDetails(string sessionId)
|
||||
{
|
||||
var sessionIdParameter = sessionId != null ?
|
||||
|
@ -147,5 +139,23 @@ namespace SmvDb
|
|||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<SessionBugDetails_Result>("SessionBugDetails", sessionIdParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<SummaryTableForSession_Result> SummaryTableForSession(string sessionId)
|
||||
{
|
||||
var sessionIdParameter = sessionId != null ?
|
||||
new ObjectParameter("sessionId", sessionId) :
|
||||
new ObjectParameter("sessionId", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<SummaryTableForSession_Result>("SummaryTableForSession", sessionIdParameter);
|
||||
}
|
||||
|
||||
public virtual ObjectResult<taskDetailsParameter_Result> taskDetailsParameter(string sessionIdParameter)
|
||||
{
|
||||
var sessionIdParameterParameter = sessionIdParameter != null ?
|
||||
new ObjectParameter("sessionIdParameter", sessionIdParameter) :
|
||||
new ObjectParameter("sessionIdParameter", typeof(string));
|
||||
|
||||
return ((IObjectContextAdapter)this).ObjectContext.ExecuteFunction<taskDetailsParameter_Result>("taskDetailsParameter", sessionIdParameterParameter);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="SmvDbModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012.Azure" 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">
|
||||
<Schema Namespace="SmvDbModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012.Azure" 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="Modules">
|
||||
<Key>
|
||||
<PropertyRef Name="ModuleID" />
|
||||
|
@ -19,6 +19,28 @@
|
|||
<Property Name="PluginID" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="PluginName" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
</EntityType>
|
||||
<!--Errors Found During Generation:
|
||||
warning 6002: The table/view 'SmvDb.dbo.RollUpTable' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
|
||||
<EntityType Name="RollUpTable">
|
||||
<Key>
|
||||
<PropertyRef Name="SessionId" />
|
||||
<PropertyRef Name="TaskId" />
|
||||
<PropertyRef Name="ModulePath" />
|
||||
<PropertyRef Name="PluginName" />
|
||||
<PropertyRef Name="ActionSuccessCount" />
|
||||
<PropertyRef Name="ActionFailureCount" />
|
||||
<PropertyRef Name="Command" />
|
||||
</Key>
|
||||
<Property Name="SessionId" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="TaskId" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="ModulePath" Type="varchar(max)" Nullable="false" />
|
||||
<Property Name="PluginName" Type="varchar" MaxLength="50" Nullable="false" />
|
||||
<Property Name="Bugs" Type="varchar(max)" />
|
||||
<Property Name="ActionSuccessCount" Type="int" Nullable="false" />
|
||||
<Property Name="ActionFailureCount" Type="int" Nullable="false" />
|
||||
<Property Name="Command" Type="varchar(max)" Nullable="false" />
|
||||
<Property Name="Arguments" Type="varchar(max)" />
|
||||
</EntityType>
|
||||
<EntityType Name="Sessions">
|
||||
<Key>
|
||||
<PropertyRef Name="SessionID" />
|
||||
|
@ -84,6 +106,9 @@
|
|||
<Parameter Name="FirstSession" Type="varchar" Mode="In" />
|
||||
<Parameter Name="SecondSession" Type="varchar" Mode="In" />
|
||||
</Function>
|
||||
<Function Name="InsertDataToRollUpTable" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
||||
<Parameter Name="taskId" Type="varchar" Mode="In" />
|
||||
</Function>
|
||||
<Function Name="ModuleDiffBetweenTwoSessions" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
|
||||
<Parameter Name="FirstSession" Type="varchar" Mode="In" />
|
||||
<Parameter Name="SecondSession" Type="varchar" Mode="In" />
|
||||
|
@ -126,8 +151,22 @@
|
|||
<EntitySet Name="TaskModules" EntityType="Self.TaskModules" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="TaskPlugins" EntityType="Self.TaskPlugins" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Tasks" EntityType="Self.Tasks" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="RollUpTable" EntityType="Self.RollUpTable" store:Type="Tables" store:Schema="dbo">
|
||||
<DefiningQuery>SELECT
|
||||
[RollUpTable].[SessionId] AS [SessionId],
|
||||
[RollUpTable].[TaskId] AS [TaskId],
|
||||
[RollUpTable].[ModulePath] AS [ModulePath],
|
||||
[RollUpTable].[PluginName] AS [PluginName],
|
||||
[RollUpTable].[Bugs] AS [Bugs],
|
||||
[RollUpTable].[ActionSuccessCount] AS [ActionSuccessCount],
|
||||
[RollUpTable].[ActionFailureCount] AS [ActionFailureCount],
|
||||
[RollUpTable].[Command] AS [Command],
|
||||
[RollUpTable].[Arguments] AS [Arguments]
|
||||
FROM [dbo].[RollUpTable] AS [RollUpTable]</DefiningQuery>
|
||||
</EntitySet>
|
||||
</EntityContainer>
|
||||
</Schema></edmx:StorageModels>
|
||||
</Schema>
|
||||
</edmx:StorageModels>
|
||||
<!-- CSDL content -->
|
||||
<edmx:ConceptualModels>
|
||||
<Schema Namespace="SmvDbModel" 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">
|
||||
|
@ -206,6 +245,26 @@
|
|||
<Property Name="Arguments" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
||||
<Property Name="Bugs" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="RollUpTable">
|
||||
<Key>
|
||||
<PropertyRef Name="SessionId" />
|
||||
<PropertyRef Name="TaskId" />
|
||||
<PropertyRef Name="ModulePath" />
|
||||
<PropertyRef Name="PluginName" />
|
||||
<PropertyRef Name="ActionSuccessCount" />
|
||||
<PropertyRef Name="ActionFailureCount" />
|
||||
<PropertyRef Name="Command" />
|
||||
</Key>
|
||||
<Property Name="SessionId" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
||||
<Property Name="TaskId" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
||||
<Property Name="ModulePath" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
|
||||
<Property Name="PluginName" Type="String" MaxLength="50" FixedLength="false" Unicode="false" Nullable="false" />
|
||||
<Property Name="Bugs" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
||||
<Property Name="ActionSuccessCount" Type="Int32" Nullable="false" />
|
||||
<Property Name="ActionFailureCount" Type="Int32" Nullable="false" />
|
||||
<Property Name="Command" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" Nullable="false" />
|
||||
<Property Name="Arguments" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
|
||||
</EntityType>
|
||||
<EntityContainer Name="SmvDbEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="Modules" EntityType="Self.Module" />
|
||||
<EntitySet Name="Plugins" EntityType="Self.Plugin" />
|
||||
|
@ -216,47 +275,53 @@
|
|||
<EntitySet Name="TaskModules" EntityType="Self.TaskModule" />
|
||||
<EntitySet Name="TaskPlugins" EntityType="Self.TaskPlugin" />
|
||||
<EntitySet Name="Tasks" EntityType="Self.Task" />
|
||||
<EntitySet Name="RollUpTables" EntityType="Self.RollUpTable" />
|
||||
<FunctionImport Name="ActionDiffBetweenTwoSessions" ReturnType="Collection(SmvDbModel.ActionDiffBetweenTwoSessions_Result)">
|
||||
<Parameter Name="FirstSession" Mode="In" Type="String" />
|
||||
<Parameter Name="SecondSession" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="InsertDataToRollUpTable">
|
||||
<Parameter Name="taskId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="ModuleDiffBetweenTwoSessions">
|
||||
<Parameter Name="FirstSession" Mode="In" Type="String" />
|
||||
<Parameter Name="SecondSession" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="ModuleOverview" ReturnType="Collection(SmvDbModel.ModuleOverview_Result)">
|
||||
<Parameter Name="moduleId" Mode="In" Type="String" />
|
||||
<Parameter Name="moduleId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="ModuleOverviewByPath" ReturnType="Collection(SmvDbModel.ModuleOverviewByPath_Result)">
|
||||
<Parameter Name="modulePath" Mode="In" Type="String" />
|
||||
<Parameter Name="modulePath" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="PluginDiffBetweenTwoSessions" ReturnType="Collection(String)">
|
||||
<Parameter Name="FirstSession" Mode="In" Type="String" />
|
||||
<Parameter Name="SecondSession" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="PluginOverview" ReturnType="Collection(SmvDbModel.PluginOverview_Result)">
|
||||
<Parameter Name="pluginId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="SummaryTableForSession" ReturnType="Collection(SmvDbModel.SummaryTableForSession_Result)">
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="taskDetailsParameter" ReturnType="Collection(SmvDbModel.taskDetailsParameter_Result)">
|
||||
<Parameter Name="sessionIdParameter" Mode="In" Type="String" />
|
||||
<Parameter Name="pluginId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="SessionActionFailureDetails" ReturnType="Collection(SmvDbModel.SessionActionFailureDetails_Result)">
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="SessionActionFailureSummary" ReturnType="Collection(SmvDbModel.SessionActionFailureSummary_Result)">
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="SessionBugDetails" ReturnType="Collection(SmvDbModel.SessionBugDetails_Result)">
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="SummaryTableForSession" ReturnType="Collection(SmvDbModel.SummaryTableForSession_Result)">
|
||||
<Parameter Name="sessionId" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
<FunctionImport Name="taskDetailsParameter" ReturnType="Collection(SmvDbModel.taskDetailsParameter_Result)">
|
||||
<Parameter Name="sessionIdParameter" Mode="In" Type="String" />
|
||||
</FunctionImport>
|
||||
</EntityContainer>
|
||||
<ComplexType Name="ActionDiffBetweenTwoSessions_Result">
|
||||
<Property Type="String" Name="ActionName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="WorkingDirectory" Nullable="false" />
|
||||
<Property Type="String" Name="Success" Nullable="false" MaxLength="10" />
|
||||
<Property Type="String" Name="ModulePath" Nullable="false" />
|
||||
<Property Type="String" Name="PluginName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="Bugs" Nullable="true" />
|
||||
<Property Type="Int32" Name="ActionSuccessCount" Nullable="false" />
|
||||
<Property Type="Int32" Name="ActionFailureCount" Nullable="false" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="ModuleOverview_Result">
|
||||
<Property Type="String" Name="SessionID" Nullable="false" MaxLength="50" />
|
||||
|
@ -276,22 +341,6 @@
|
|||
<Property Type="Int32" Name="ActionSuccessCount" Nullable="true" />
|
||||
<Property Type="Int32" Name="ActionFailureCount" Nullable="true" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="SummaryTableForSession_Result">
|
||||
<Property Type="String" Name="ModulePath" Nullable="false" />
|
||||
<Property Type="String" Name="PluginName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="Int32" Name="ActionSuccessCount" Nullable="true" />
|
||||
<Property Type="Int32" Name="ActionFailureCount" Nullable="true" />
|
||||
<Property Type="String" Name="Command" Nullable="false" />
|
||||
<Property Type="String" Name="Arguments" Nullable="true" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="taskDetailsParameter_Result">
|
||||
<Property Type="String" Name="ModulePath" Nullable="false" />
|
||||
<Property Type="String" Name="PluginName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="ActionName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="WorkingDirectory" Nullable="false" />
|
||||
<Property Type="String" Name="ActionTime" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="Success" Nullable="false" MaxLength="10" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="SessionActionFailureDetails_Result">
|
||||
<Property Type="String" Name="WorkingDirectory" Nullable="false" />
|
||||
<Property Type="String" Name="ActionName" Nullable="false" MaxLength="50" />
|
||||
|
@ -309,6 +358,25 @@
|
|||
<Property Type="String" Name="Arguments" Nullable="true" />
|
||||
<Property Type="String" Name="Bugs" Nullable="true" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="SummaryTableForSession_Result">
|
||||
<Property Type="String" Name="SessionId" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="TaskId" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="ModulePath" Nullable="false" />
|
||||
<Property Type="String" Name="PluginName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="Bugs" Nullable="true" />
|
||||
<Property Type="Int32" Name="ActionSuccessCount" Nullable="false" />
|
||||
<Property Type="Int32" Name="ActionFailureCount" Nullable="false" />
|
||||
<Property Type="String" Name="Command" Nullable="false" />
|
||||
<Property Type="String" Name="Arguments" Nullable="true" />
|
||||
</ComplexType>
|
||||
<ComplexType Name="taskDetailsParameter_Result">
|
||||
<Property Type="String" Name="ModulePath" Nullable="false" />
|
||||
<Property Type="String" Name="PluginName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="ActionName" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="WorkingDirectory" Nullable="false" />
|
||||
<Property Type="String" Name="ActionTime" Nullable="false" MaxLength="50" />
|
||||
<Property Type="String" Name="Success" Nullable="false" MaxLength="10" />
|
||||
</ComplexType>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
|
@ -391,23 +459,41 @@
|
|||
<EntitySetMapping Name="Tasks">
|
||||
<EntityTypeMapping TypeName="SmvDbModel.Task">
|
||||
<MappingFragment StoreEntitySet="Tasks">
|
||||
<ScalarProperty Name="Bugs" ColumnName="Bugs" />
|
||||
<ScalarProperty Name="TaskID" ColumnName="TaskID" />
|
||||
<ScalarProperty Name="Log" ColumnName="Log" />
|
||||
<ScalarProperty Name="Command" ColumnName="Command" />
|
||||
<ScalarProperty Name="Arguments" ColumnName="Arguments" />
|
||||
<ScalarProperty Name="Bugs" ColumnName="Bugs" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="RollUpTables">
|
||||
<EntityTypeMapping TypeName="SmvDbModel.RollUpTable">
|
||||
<MappingFragment StoreEntitySet="RollUpTable">
|
||||
<ScalarProperty Name="SessionId" ColumnName="SessionId" />
|
||||
<ScalarProperty Name="TaskId" ColumnName="TaskId" />
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="Bugs" ColumnName="Bugs" />
|
||||
<ScalarProperty Name="ActionSuccessCount" ColumnName="ActionSuccessCount" />
|
||||
<ScalarProperty Name="ActionFailureCount" ColumnName="ActionFailureCount" />
|
||||
<ScalarProperty Name="Command" ColumnName="Command" />
|
||||
<ScalarProperty Name="Arguments" ColumnName="Arguments" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<FunctionImportMapping FunctionImportName="ActionDiffBetweenTwoSessions" FunctionName="SmvDbModel.Store.ActionDiffBetweenTwoSessions">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.ActionDiffBetweenTwoSessions_Result">
|
||||
<ScalarProperty Name="ActionName" ColumnName="ActionName" />
|
||||
<ScalarProperty Name="WorkingDirectory" ColumnName="WorkingDirectory" />
|
||||
<ScalarProperty Name="Success" ColumnName="Success" />
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="Bugs" ColumnName="Bugs" />
|
||||
<ScalarProperty Name="ActionSuccessCount" ColumnName="ActionSuccessCount" />
|
||||
<ScalarProperty Name="ActionFailureCount" ColumnName="ActionFailureCount" />
|
||||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="InsertDataToRollUpTable" FunctionName="SmvDbModel.Store.InsertDataToRollUpTable" />
|
||||
<FunctionImportMapping FunctionImportName="ModuleDiffBetweenTwoSessions" FunctionName="SmvDbModel.Store.ModuleDiffBetweenTwoSessions" />
|
||||
<FunctionImportMapping FunctionImportName="ModuleOverview" FunctionName="SmvDbModel.Store.ModuleOverview">
|
||||
<ResultMapping>
|
||||
|
@ -440,30 +526,6 @@
|
|||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="SummaryTableForSession" FunctionName="SmvDbModel.Store.SummaryTableForSession">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.SummaryTableForSession_Result">
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="ActionSuccessCount" ColumnName="ActionSuccessCount" />
|
||||
<ScalarProperty Name="ActionFailureCount" ColumnName="ActionFailureCount" />
|
||||
<ScalarProperty Name="Command" ColumnName="Command" />
|
||||
<ScalarProperty Name="Arguments" ColumnName="Arguments" />
|
||||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="taskDetailsParameter" FunctionName="SmvDbModel.Store.taskDetailsParameter">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.taskDetailsParameter_Result">
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="ActionName" ColumnName="ActionName" />
|
||||
<ScalarProperty Name="WorkingDirectory" ColumnName="WorkingDirectory" />
|
||||
<ScalarProperty Name="ActionTime" ColumnName="ActionTime" />
|
||||
<ScalarProperty Name="Success" ColumnName="Success" />
|
||||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="SessionActionFailureDetails" FunctionName="SmvDbModel.Store.SessionActionFailureDetails">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.SessionActionFailureDetails_Result">
|
||||
|
@ -493,6 +555,33 @@
|
|||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="SummaryTableForSession" FunctionName="SmvDbModel.Store.SummaryTableForSession">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.SummaryTableForSession_Result">
|
||||
<ScalarProperty Name="SessionId" ColumnName="SessionId" />
|
||||
<ScalarProperty Name="TaskId" ColumnName="TaskId" />
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="Bugs" ColumnName="Bugs" />
|
||||
<ScalarProperty Name="ActionSuccessCount" ColumnName="ActionSuccessCount" />
|
||||
<ScalarProperty Name="ActionFailureCount" ColumnName="ActionFailureCount" />
|
||||
<ScalarProperty Name="Command" ColumnName="Command" />
|
||||
<ScalarProperty Name="Arguments" ColumnName="Arguments" />
|
||||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
<FunctionImportMapping FunctionImportName="taskDetailsParameter" FunctionName="SmvDbModel.Store.taskDetailsParameter">
|
||||
<ResultMapping>
|
||||
<ComplexTypeMapping TypeName="SmvDbModel.taskDetailsParameter_Result">
|
||||
<ScalarProperty Name="ModulePath" ColumnName="ModulePath" />
|
||||
<ScalarProperty Name="PluginName" ColumnName="PluginName" />
|
||||
<ScalarProperty Name="ActionName" ColumnName="ActionName" />
|
||||
<ScalarProperty Name="WorkingDirectory" ColumnName="WorkingDirectory" />
|
||||
<ScalarProperty Name="ActionTime" ColumnName="ActionTime" />
|
||||
<ScalarProperty Name="Success" ColumnName="Success" />
|
||||
</ComplexTypeMapping>
|
||||
</ResultMapping>
|
||||
</FunctionImportMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<edmx:Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<edmx:Diagrams>
|
||||
<Diagram DiagramId="fa119c28df3c46b684319d3e2b6b251b" Name="Diagram1">
|
||||
<Diagram DiagramId="edbd51453ce24e53859e318918fafe7c" Name="Diagram1">
|
||||
<EntityTypeShape EntityType="SmvDbModel.Module" Width="1.5" PointX="0.75" PointY="0.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="SmvDbModel.Plugin" Width="1.5" PointX="2.75" PointY="0.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="SmvDbModel.Session" Width="1.5" PointX="0.75" PointY="3.75" IsExpanded="true" />
|
||||
|
@ -14,6 +14,7 @@
|
|||
<EntityTypeShape EntityType="SmvDbModel.TaskModule" Width="1.5" PointX="6.75" PointY="0.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="SmvDbModel.TaskPlugin" Width="1.5" PointX="0.75" PointY="6.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="SmvDbModel.Task" Width="1.5" PointX="2.75" PointY="6.75" IsExpanded="true" />
|
||||
<EntityTypeShape EntityType="SmvDbModel.RollUpTable" Width="1.5" PointX="6.75" PointY="3.75" IsExpanded="true" />
|
||||
</Diagram>
|
||||
</edmx:Diagrams>
|
||||
</edmx:Designer>
|
||||
|
|
|
@ -77,6 +77,9 @@
|
|||
<DependentUpon>SmvDataModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="RollUpTable.cs">
|
||||
<DependentUpon>SmvDataModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Session.cs">
|
||||
<DependentUpon>SmvDataModel.tt</DependentUpon>
|
||||
</Compile>
|
||||
|
|
|
@ -13,10 +13,13 @@ namespace SmvDb
|
|||
|
||||
public partial class SummaryTableForSession_Result
|
||||
{
|
||||
public string SessionId { get; set; }
|
||||
public string TaskId { get; set; }
|
||||
public string ModulePath { get; set; }
|
||||
public string PluginName { get; set; }
|
||||
public Nullable<int> ActionSuccessCount { get; set; }
|
||||
public Nullable<int> ActionFailureCount { get; set; }
|
||||
public string Bugs { get; set; }
|
||||
public int ActionSuccessCount { get; set; }
|
||||
public int ActionFailureCount { get; set; }
|
||||
public string Command { get; set; }
|
||||
public string Arguments { get; set; }
|
||||
}
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <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>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace SmvDb
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class RollUpTable
|
||||
{
|
||||
public string SessionId { get; set; }
|
||||
public string TaskId { get; set; }
|
||||
public string ModulePath { get; set; }
|
||||
public string PluginName { get; set; }
|
||||
public string Bugs { get; set; }
|
||||
public int ActionSuccessCount { get; set; }
|
||||
public int ActionFailureCount { get; set; }
|
||||
public string Command { get; set; }
|
||||
public string Arguments { get; set; }
|
||||
}
|
||||
}
|
Двоичный файл не отображается.
11
smv.sln
11
smv.sln
|
@ -23,6 +23,10 @@ EndProject
|
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "StaticModuleVerifier", "StaticModuleVerifier\StaticModuleVerifier.csproj", "{E016F57D-68E9-48F9-ABCE-B0C3D7714C84}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmvAutomation", "SmvAutomation\SmvAutomation.csproj", "{8C30CB1C-2006-41ED-AAD7-FB652B8060D2}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{4BD5EB2A-3F7B-4AD7-9C1D-5861105715AE} = {4BD5EB2A-3F7B-4AD7-9C1D-5861105715AE}
|
||||
{CAD1E044-FE00-47E4-BF63-EE943A653833} = {CAD1E044-FE00-47E4-BF63-EE943A653833}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SmvDb", "SmvDb\SmvDb.csproj", "{CAD1E044-FE00-47E4-BF63-EE943A653833}"
|
||||
EndProject
|
||||
|
@ -66,7 +70,6 @@ Global
|
|||
{E016F57D-68E9-48F9-ABCE-B0C3D7714C84}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E016F57D-68E9-48F9-ABCE-B0C3D7714C84}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E016F57D-68E9-48F9-ABCE-B0C3D7714C84}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
<<<<<<< HEAD
|
||||
{8C30CB1C-2006-41ED-AAD7-FB652B8060D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{8C30CB1C-2006-41ED-AAD7-FB652B8060D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{8C30CB1C-2006-41ED-AAD7-FB652B8060D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
|
@ -79,12 +82,6 @@ Global
|
|||
{4BD5EB2A-3F7B-4AD7-9C1D-5861105715AE}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4BD5EB2A-3F7B-4AD7-9C1D-5861105715AE}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4BD5EB2A-3F7B-4AD7-9C1D-5861105715AE}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
=======
|
||||
{2FC736BC-2FF6-47EA-91F4-C63281CEDC9F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2FC736BC-2FF6-47EA-91F4-C63281CEDC9F}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2FC736BC-2FF6-47EA-91F4-C63281CEDC9F}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2FC736BC-2FF6-47EA-91F4-C63281CEDC9F}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
>>>>>>> f85ca440231ed41d3be2121e1b0fa9d96a997a34
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
|
Загрузка…
Ссылка в новой задаче