Skip to content

Commit

Permalink
Initial add v1.0.53
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwagner committed Apr 17, 2012
0 parents commit 4094612
Show file tree
Hide file tree
Showing 53 changed files with 4,442 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .hgignore
@@ -0,0 +1,10 @@
glob:bin
glob:obj
glob:*.user
glob:*.suo
syntax: glob
*.docstates
*.nupkg
*.orig
*.rej
StyleCop.Cache
53 changes: 53 additions & 0 deletions .hgtags
@@ -0,0 +1,53 @@
5e4ddcbfbd2b78a560b84f5b30050f2a9121dd88 Version 1.0.1
4031ecdd1c02d5bc9e5ae359992dd69a4fb04769 Version 1.0.2
ecfad38b4cb6b4f720546fdafc2b4d858af43195 Version 1.0.3
b111e60e44f736a5f7cfab0c2c6001cdee96da90 Version 1.0.4
249b78592d69d3d4bf070857807ff8c1b3e2cf62 Version 1.0.5
b4d4eb5d3fe91f85df9c8d8b008bff40afd0aeec Version 1.0.6
c83e1e89bdf810e269436a0290e38b6a0594f279 Version 1.0.7
7a9cd869b1b2ddd672bc33a9b5a76ae2e3c8bfd8 Version 1.0.8
e41312b456e7ec8b5bc6fd8c6d77a35e8783766f Version 1.0.9
d13f0a41b69846edca2b1f37b729049df9f2264b Version 1.0.10
b5ed27bcd0705acdf57af68a7073279b4dc5b3c1 Version 1.0.11
0526eb76242696298e9ee4140ff9eea930856772 Version 1.0.12
c8e7af9dd7e29e12adcd0f0a32d744dc2a6e5f38 Version 1.0.13
a55d3a5abbead8b6a222daad1921252da8222bec Version 1.0.14
821c59d83416b824038f8f0312e28f91afeeb74a Version 1.0.15
cfc4ae0885260dfe00be704de22bb2b1c7f1fb3f Version 1.0.16
dfea6a3b42be9fb52d7de7d0bda731d2f4137a73 Version 1.0.17
44b192ae01c12cc9c309504c72a0cab8f1227faf Version 1.0.18
ae730615c5a53cbb98908f598c25ee4073458d10 Version 1.0.19
973f89697b7653236ba78dbbde8be0ce76445902 Version 1.0.20
5698a3a9f7609806b1925a18da81824aa3986b04 Version 1.0.21
a65e3d0066462ae0fc858a53195c5a65b14edc27 Version 1.0.22
8d98491b2f793730669d8971771daa3c43c5e582 Version 1.0.23
8b684124731be34a8499e575fe23d522985ebce4 Version 1.0.24
545bdf79747805133639757cba896b0e33142833 Version 1.0.25
79e0d34d8d0e70843edb8396e9e130fb6db6a9c9 Version 1.0.26
dee91b2c2c5866a12d3c926984430903acaf9080 Version 1.0.27
303a7b6ad3eebfd5b486b6cbbf7b3e6dfd94ec85 Version 1.0.28
c5d5721657b812666dd875aaa9d2ae56f90a43ff Version 1.0.29
3dbf693e4d056fbe7ba8d6c129ed4d357ba65878 Version 1.0.30
894fca4c726217d2ed7f977b1acd9b78a8f55fa7 Version 1.0.31
192d936e8baf8d0a9d5003bc728236e59a4f9342 Version 1.0.32
a843eee6ff188897dc986e53326ea043488f472d Version 1.0.33
d6d50fd5174010533232bcdbeece355cd50626d7 Version 1.0.35
1913031ca15d7138611af06a506abe12bee09214 Version 1.0.36
70182d27f26da78e07180864a6bffc864c8dd5ef Version 1.0.37
eec9b7a2237049340aeff9cc7bc289a18e2c3e06 Version 1.0.38
7675ce28cb3bc9f1e2582d1b3662de49c0fc2d48 Version 1.0.39
213b9ec5fd91c2383140c4b64ab9153136c839ad Version 1.0.40
3851adb2c0f52ccf40e40e974d797fe5a69b8bb5 Version 1.0.41
bae702c80195555e8284a150d0c7d66606331799 Version 1.0.42
8b41b58cda9172fc4219ec0ef6d8261e1c1208a6 Version 1.0.43
70a69b1fce4b8b91aa490018fbb180b61ff0e52b Version 1.0.44
ab6f5fc8a811b0dbae74936264cea19e59b7847f Version 1.0.45
2d0297caf946905400cc1e124b86a35d7eb49efa Version 1.0.46
26620351f1e89ace8378da67da946495c0249f34 Version 1.0.47
8c1e7b850f46da3cb81d784d67ba0b6c5de2bbbc Version 1.0.48
d5ef0f4380c409776397699f8b0b351b91611bad Version 1.0.49
dd129be56543fd83a795a461d9ee1ef78a350423 Version 1.0.50
bc5490b578b131a1aa066cd1afa766031f45d044 Version 1.0.51
812358c282b49b125feab7b0ce28c789d93067d4 Version 1.0.52
cb26259f8e436dbc73962dd53ec232d57eae1383 Version 1.0.53
8fde7d2b4756511c8d394657362bd0c0349ef2e8 Version 1.0.54
4 changes: 4 additions & 0 deletions .nuget/packages.config
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="BuildTools.AutoBuild" version="1.0.17.47" />
</packages>
5 changes: 5 additions & 0 deletions Building.txt
@@ -0,0 +1,5 @@
Notes for Building Insight.Database.Schema
==========================================

* Release builds require FXCop 10.0 be installed on your system.
* Packaging the assembly requires that NuGet.exe be in your path.
Binary file added Documents/Insight Schema Generator.doc
Binary file not shown.
Binary file added Documents/Insight Schema Installer.doc
Binary file not shown.
57 changes: 57 additions & 0 deletions Insight.Database.Schema/ConvertTableEventArgs.cs
@@ -0,0 +1,57 @@
#region Using directives

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Text;

#endregion

namespace Insight.Database.Schema
{
/// <summary>
/// Arguments for the OnConvertTable event
/// </summary>
public class ConvertTableEventArgs : SchemaEventArgs
{
/// <summary>
/// The name of the table containing the pre-converted data
/// </summary>
/// <value>The name of the table containing the pre-converted data</value>
public string BeforeTableName { get { return _beforeTableName; } }
private string _beforeTableName;

/// <summary>
/// The name of the table to convert the data into
/// </summary>
/// <value>The name of the table containing the pre-converted data</value>
public string AfterTableName { get { return _afterTableName; } }
private string _afterTableName;

/// <summary>
/// The SchemaInstaller connection to the database
/// </summary>
/// <value>The name of the table containing the pre-converted data</value>
public SqlConnection Connection { get { return _connection; } }
private SqlConnection _connection;

/// <summary>
/// Tells the SchemaInstaller if the table data has been converted
/// </summary>
/// <value>The name of the table containing the pre-converted data</value>
public bool Converted
{
get { return _converted; }
set { _converted = value; }
}
private bool _converted;

internal ConvertTableEventArgs (SchemaEventType eventType, SchemaObject table, SqlConnection connection, string beforeTable, string afterTable) :
base (eventType, table)
{
_connection = connection;
_beforeTableName = beforeTable;
_afterTableName = afterTable;
}
}
}
122 changes: 122 additions & 0 deletions Insight.Database.Schema/FxCop.FxCop
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="utf-8"?>
<FxCopProject Version="10.0" Name="My FxCop Project">
<ProjectOptions>
<SharedProject>True</SharedProject>
<Stylesheet Apply="False">$(FxCopDir)\Xml\FxCopReport.xsl</Stylesheet>
<SaveMessages>
<Project Status="Active, Excluded, Good, Noise" NewOnly="False" />
<Report Status="Active, Good, Noise" NewOnly="False" />
</SaveMessages>
<ProjectFile Compress="True" DefaultTargetCheck="True" DefaultRuleCheck="True" SaveByRuleGroup="" Deterministic="True" />
<EnableMultithreadedLoad>True</EnableMultithreadedLoad>
<EnableMultithreadedAnalysis>True</EnableMultithreadedAnalysis>
<SourceLookup>True</SourceLookup>
<AnalysisExceptionsThreshold>10</AnalysisExceptionsThreshold>
<RuleExceptionsThreshold>1</RuleExceptionsThreshold>
<Spelling Locale="en-US" />
<OverrideRuleVisibilities>False</OverrideRuleVisibilities>
<CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True" />
<SearchGlobalAssemblyCache>False</SearchGlobalAssemblyCache>
<DeadlockDetectionTimeout>120</DeadlockDetectionTimeout>
<IgnoreGeneratedCode>False</IgnoreGeneratedCode>
</ProjectOptions>
<Targets>
<Target Name="$(ProjectDir)/bin/Release/Insight.Database.Schema.dll" Analyze="True" AnalyzeAllChildren="True" />
</Targets>
<Rules>
<RuleFiles>
<RuleFile Name="$(FxCopDir)\Rules\DesignRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\GlobalizationRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\InteroperabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\MobilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\NamingRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PortabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\SecurityTransparencyRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" />
</RuleFiles>
<Groups />
<Settings />
</Rules>
<FxCopReport Version="10.0">
<Targets>
<Target Name="$(ProjectDir)/bin/Release/Insight.Database.Schema.dll">
<Modules>
<Module Name="insight.database.schema.dll">
<Messages>
<Message TypeName="AssembliesShouldHaveValidStrongNames" Category="Microsoft.Design" CheckId="CA2210" Status="Excluded" Created="2011-08-23 00:17:47Z">
<Issue Name="NoStrongName">
<Item>'Insight.Database.Schema.dll'</Item>
</Issue>
<Notes>
<User Name="jonw">
<Note Id="0" />
</User>
</Notes>
</Message>
</Messages>
<Namespaces>
<Namespace Name="Insight.Database.Schema">
<Types>
<Type Name="SchemaObjectType">
<Members>
<Member Name="#Login">
<Messages>
<Message Id="Login" TypeName="UsePreferredTerms" Category="Microsoft.Naming" CheckId="CA1726" Status="Excluded" Created="2011-08-23 00:17:47Z">
<Issue Name="Member">
<Item>Login</Item>
<Item>'SchemaObjectType.Login'</Item>
<Item>LogOn</Item>
</Issue>
<Notes>
<User Name="jonw">
<Note Id="0" />
</User>
</Notes>
</Message>
</Messages>
</Member>
<Member Name="#UserPreScript">
<Messages>
<Message Id="PreScript" TypeName="CompoundWordsShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1702" Status="Excluded" Created="2011-08-23 00:17:47Z">
<Issue Name="MemberShouldBeDiscreteTerm">
<Item>PreScript</Item>
<Item>'SchemaObjectType.UserPreScript'</Item>
<Item>Prescript</Item>
</Issue>
<Notes>
<User Name="jonw">
<Note Id="0" />
</User>
</Notes>
</Message>
</Messages>
</Member>
</Members>
</Type>
</Types>
</Namespace>
</Namespaces>
</Module>
</Modules>
</Target>
</Targets>
<Notes>
<User Name="jonw">
<Note Id="0" Modified="2011-08-23 00:21:14Z">Code review completed</Note>
</User>
</Notes>
<Rules>
<Rule TypeName="AssembliesShouldHaveValidStrongNames" Category="Microsoft.Design" CheckId="CA2210">
<Resolution Name="NoStrongName">Sign {0} with a strong name key.</Resolution>
</Rule>
<Rule TypeName="CompoundWordsShouldBeCasedCorrectly" Category="Microsoft.Naming" CheckId="CA1702">
<Resolution Name="MemberShouldBeDiscreteTerm">The compound word '{0}' in member name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}' or strip the first token entirely if it represents any sort of Hungarian notation.</Resolution>
</Rule>
<Rule TypeName="UsePreferredTerms" Category="Microsoft.Naming" CheckId="CA1726">
<Resolution Name="Member">Replace the term '{0}' in member name {1} with the preferred alternate '{2}'.</Resolution>
</Rule>
</Rules>
</FxCopReport>
</FxCopProject>
86 changes: 86 additions & 0 deletions Insight.Database.Schema/Insight.Database.Schema.csproj
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{FBD1C65F-9054-42C7-BA0E-48A922C4C747}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Insight.Database.Schema</RootNamespace>
<AssemblyName>Insight.Database.Schema</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.SqlServer.ConnectionInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" />
<Reference Include="Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" />
<Reference Include="Microsoft.SqlServer.Smo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Transactions" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ConvertTableEventArgs.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs" />
<Compile Include="Properties\Settings.Designer.cs" />
<Compile Include="SchemaEventArgs.cs" />
<Compile Include="SchemaEventConsoleLogger.cs" />
<Compile Include="SchemaEventLogger.cs" />
<Compile Include="SchemaEventType.cs" />
<Compile Include="SchemaInstaller.cs" />
<Compile Include="SchemaObject.cs" />
<Compile Include="SchemaObjectCollection.cs" />
<Compile Include="SchemaObjectType.cs" />
<Compile Include="SchemaParsingException.cs" />
<Compile Include="SchemaRegistry.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="FxCop.FxCop" />
<None Include="Insight.Database.Schema.nuspec" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\BuildTools.FxCop.1.0.17.47\tools\FxCop.targets" />
<!-- 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">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
14 changes: 14 additions & 0 deletions Insight.Database.Schema/Insight.Database.Schema.nuspec
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<package>
<metadata>
<id>Insight.Database.Schema</id>
<version>1.0.0.0</version>
<title>Insight.Database.Schema</title>
<authors>Jon Wagner</authors>
<description>SQL database schema setup engine</description>
<language>en-US</language>
</metadata>
<files>
<file src="\bin\Release\Insight.Database.Schema.dll" target="lib" />
</files>
</package>
27 changes: 27 additions & 0 deletions Insight.Database.Schema/Properties/AssemblyInfo.cs
@@ -0,0 +1,27 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.235
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Diagnostics.CodeAnalysis;
using System.Resources;

[assembly: AssemblyTitle("Insight.Database Schema")]
[assembly: AssemblyCompany("Insight")]
[assembly: AssemblyProduct("Insight")]
[assembly: AssemblyCopyright("Copyright © Jon Wagner, used by permission")]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

[assembly: NeutralResourcesLanguageAttribute("en-US")]

0 comments on commit 4094612

Please sign in to comment.