-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
supercedes #139
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System.Reflection; | ||
using System.Runtime.InteropServices; | ||
|
||
// The following GUID is for the ID of the typelib if this project is exposed to COM | ||
[assembly: Guid("00C68829-B216-4CFC-B0C0-4DB304D8F753")] | ||
[assembly: AssemblyKeyFile("..\\..\\RoundhousE.snk")] |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
namespace roundhouse.databases.sqlserverce.orm | ||
{ | ||
using System; | ||
using FluentNHibernate.Mapping; | ||
using infrastructure; | ||
using model; | ||
|
||
[CLSCompliant(false)] | ||
public class ScriptsRunMapping : ClassMap<ScriptsRun> | ||
{ | ||
public ScriptsRunMapping() | ||
{ | ||
HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name); | ||
Table(ApplicationParameters.CurrentMappings.scripts_run_table_name); | ||
Not.LazyLoad(); | ||
HibernateMapping.DefaultAccess.Property(); | ||
HibernateMapping.DefaultCascade.SaveUpdate(); | ||
|
||
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0); | ||
Map(x => x.version_id); | ||
Map(x => x.script_name); | ||
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("ntext"); | ||
Map(x => x.text_hash).Length(512); | ||
Map(x => x.one_time_script); | ||
|
||
//audit | ||
Map(x => x.entry_date); | ||
Map(x => x.modified_date); | ||
Map(x => x.entered_by).Length(50); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace roundhouse.databases.sqlserverce.orm | ||
{ | ||
using System; | ||
using FluentNHibernate.Mapping; | ||
using infrastructure; | ||
using model; | ||
|
||
[CLSCompliant(false)] | ||
public class ScriptsRunErrorMapping : ClassMap<ScriptsRunError> | ||
{ | ||
public ScriptsRunErrorMapping() | ||
{ | ||
HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name); | ||
Table(ApplicationParameters.CurrentMappings.scripts_run_errors_table_name); | ||
Not.LazyLoad(); | ||
HibernateMapping.DefaultAccess.Property(); | ||
HibernateMapping.DefaultCascade.SaveUpdate(); | ||
|
||
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0); | ||
Map(x => x.repository_path); | ||
Map(x => x.version).Length(50); | ||
Map(x => x.script_name); | ||
Map(x => x.text_of_script).CustomType("StringClob").CustomSqlType("ntext"); | ||
Map(x => x.erroneous_part_of_script).CustomType("StringClob").CustomSqlType("ntext"); | ||
Map(x => x.error_message).CustomType("StringClob").CustomSqlType("ntext"); | ||
|
||
//audit | ||
Map(x => x.entry_date); | ||
Map(x => x.modified_date); | ||
Map(x => x.entered_by).Length(50); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
namespace roundhouse.databases.sqlserverce.orm | ||
{ | ||
using System; | ||
using FluentNHibernate.Mapping; | ||
using infrastructure; | ||
|
||
[CLSCompliant(false)] | ||
public class VersionMapping : ClassMap<roundhouse.model.Version> | ||
{ | ||
public VersionMapping() | ||
{ | ||
HibernateMapping.Schema(ApplicationParameters.CurrentMappings.roundhouse_schema_name); | ||
Table(ApplicationParameters.CurrentMappings.version_table_name); | ||
Not.LazyLoad(); | ||
HibernateMapping.DefaultAccess.Property(); | ||
HibernateMapping.DefaultCascade.SaveUpdate(); | ||
|
||
Id(x => x.id).Column("id").GeneratedBy.Identity().UnsavedValue(0); | ||
Map(x => x.repository_path); | ||
Map(x => x.version).Length(50); | ||
|
||
//audit | ||
Map(x => x.entry_date); | ||
Map(x => x.modified_date); | ||
Map(x => x.entered_by).Length(50); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="FluentNHibernate" version="1.3.0.733" targetFramework="net45" /> | ||
<package id="Iesi.Collections" version="3.2.0.4000" targetFramework="net45" /> | ||
<package id="NHibernate" version="3.3.1.4000" targetFramework="net45" /> | ||
</packages> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{3447F080-CF50-4B02-9521-671E7AEE8D34}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>roundhouse.databases.sqlserverce</RootNamespace> | ||
<AssemblyName>roundhouse.databases.sqlserverce</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</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>DEBUG;TRACE</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="FluentNHibernate, Version=1.3.0.733, Culture=neutral, PublicKeyToken=8aa435e3cb308880, processorArchitecture=MSIL"> | ||
<HintPath>..\..\packages\FluentNHibernate.1.3.0.733\lib\FluentNHibernate.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="Iesi.Collections, Version=1.0.1.0, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL"> | ||
<HintPath>..\..\packages\Iesi.Collections.3.2.0.4000\lib\Net35\Iesi.Collections.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="NHibernate, Version=3.3.1.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4, processorArchitecture=MSIL"> | ||
<HintPath>..\..\packages\NHibernate.3.3.1.4000\lib\Net35\NHibernate.dll</HintPath> | ||
<Private>True</Private> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91, processorArchitecture=MSIL"> | ||
<SpecificVersion>False</SpecificVersion> | ||
<HintPath>..\..\..\..\Program Files (x86)\Microsoft SQL Server Compact Edition\v4.0\Desktop\System.Data.SqlServerCe.dll</HintPath> | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
erikbra
Member
|
||
</Reference> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Net.Http" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="orm\SciptsRunMapping.cs" /> | ||
<Compile Include="orm\ScriptsRunErrorMapping.cs" /> | ||
<Compile Include="orm\VersionMapping.cs" /> | ||
<Compile Include="Properties\AssemblyInfo.cs" /> | ||
<Compile Include="SqlServerCEDatabase.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\roundhouse\roundhouse.csproj"> | ||
<Project>{a95de649-d5ba-4402-9d9c-3d8d67e2ff44}</Project> | ||
<Name>roundhouse</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
</Project> |
Do we really want take this dependency ? I don't want to install something i really don't need just to be able to build RH. Maybe use this https://www.nuget.org/packages/System.Data.SqlServerCe_unofficial/ ?