Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
58 changes: 29 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
*.suo
*.user
*.csproj.user
*.sln.cache
*.cache
*.resharper
*.ReSharper
*.resharperoptions
_ReSharper.*
*.vs10x
*.DotSettings
*.exe
*.dll
*.obj
*.pdb
*.HxS
*.chm
*.xml
*.mshc
*.orig
*.log
bin
Bin
obj
_Build
_Work
.vs
.idea
User.Directory.Build.props
*.suo
*.user
*.csproj.user
*.sln.cache
*.cache
*.resharper
*.ReSharper
*.resharperoptions
_ReSharper.*
*.vs10x
*.DotSettings
*.exe
*.dll
*.obj
*.pdb
*.HxS
*.chm
*.xml
*.mshc
*.orig
*.log
bin
Bin
obj
_Build
_Work
.vs
.idea
User.Directory.Build.props
958 changes: 479 additions & 479 deletions ChangeLog/0.0.0.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ChangeLog/0.1.0_Beta_1.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[main] Added new overloads for loading DomainConfiguration and LoggingConfiguration
[main] Added LogManager.Initialize(System.Configuration.Configuration)
[main] Added new overloads for loading DomainConfiguration and LoggingConfiguration
[main] Added LogManager.Initialize(System.Configuration.Configuration)
[sqlserver] No support for SqlGeometry and SqlGeography for now
6 changes: 3 additions & 3 deletions ChangeLog/0.1.0_Beta_2.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[main] Removed DomainConfiguration.NativeLibraryCacheFolder because SQLite no longer needs it.
[mysql] Cerain error codes were handled in order to arrange them with certain type instead of Unknown
[postgresql] DateTimeOffset is not supported as far as client library has no support for Zone part of TimeStampTZ
[main] Removed DomainConfiguration.NativeLibraryCacheFolder because SQLite no longer needs it.
[mysql] Cerain error codes were handled in order to arrange them with certain type instead of Unknown
[postgresql] DateTimeOffset is not supported as far as client library has no support for Zone part of TimeStampTZ
[postgresql] Maximum scale of Decimals was reduced down to 27
22 changes: 11 additions & 11 deletions ChangeLog/0.1.0_Beta_3.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[main] Added versioning policy allowing to set up certain rules for entity version increasing
[main] Fixed problems with setting Catalog.Name, Catalog.DbName, CatalogNode.Name and CatalogNode.DbName properties
[main] Fixed certain cases when grouping by an Entity field caused wrong results
[main] Persisting of changes to database while EntitySet enumeration doesn't break enumeration
[main] Fixed initialization of fields of non-persistent types within queries
[main] Entity.Lock() locks correct raws in database
[main] DomainUpgradeMode.Validate mode became stricter to avoid data corruption
[firebird] Made column types extraction be culture-independant
[sqlserver] Fixed extraction of default value of table columns
[sqlserver] Improved default schema detection in driver factory
[sqlserver] Updated Azure provider to Sql Server v12 provider
[main] Added versioning policy allowing to set up certain rules for entity version increasing
[main] Fixed problems with setting Catalog.Name, Catalog.DbName, CatalogNode.Name and CatalogNode.DbName properties
[main] Fixed certain cases when grouping by an Entity field caused wrong results
[main] Persisting of changes to database while EntitySet enumeration doesn't break enumeration
[main] Fixed initialization of fields of non-persistent types within queries
[main] Entity.Lock() locks correct raws in database
[main] DomainUpgradeMode.Validate mode became stricter to avoid data corruption
[firebird] Made column types extraction be culture-independant
[sqlserver] Fixed extraction of default value of table columns
[sqlserver] Improved default schema detection in driver factory
[sqlserver] Updated Azure provider to Sql Server v12 provider
[weaver] Project building fails when weaving ends up with an error
12 changes: 6 additions & 6 deletions ChangeLog/0.1.0_Beta_4.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[main] Introduced asynchronous session opening
[main] Introduced bunch of QueryEndpoint.ExecuteAsync() methods
[main] Add .AsAsyncTask() extensions for running queries asynchronously
[postgresql] Fixed extraction of full-text indexes for certain scenarios
[postgresql] Set upper limit for precision of decimals to 49 to handle problems in Npgsql
[postgresql] Fields of unsigned types no longer cause exception on saving them to database
[main] Introduced asynchronous session opening
[main] Introduced bunch of QueryEndpoint.ExecuteAsync() methods
[main] Add .AsAsyncTask() extensions for running queries asynchronously
[postgresql] Fixed extraction of full-text indexes for certain scenarios
[postgresql] Set upper limit for precision of decimals to 49 to handle problems in Npgsql
[postgresql] Fields of unsigned types no longer cause exception on saving them to database
[postgresql] Enum fields no longer cause exception on saving them to database
82 changes: 41 additions & 41 deletions ChangeLog/mkchangelog.ps1
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
$useLegacy = ($PSVersionTable.PSVersion -as [version]) -le ("2.0" -as [version])
if ($useLegacy){
$inputDir = Split-Path -Parent $MyInvocation.MyCommand.Path
}
else {
$inputDir = $PSScriptRoot
}
$theRootestRoot = Split-Path -Parent $inputDir;
$outputDir = Join-Path -Path $theRootestRoot -ChildPath \_Build\ProductInfo
$changeLogFile = Join-Path -Path $outputDir -ChildPath "ChangeLog.txt"
$releaseNotesFile = Join-Path -Path $outputDir -ChildPath "ReleaseNotes.txt"
if (-not (Test-Path $outputDir)) { New-Item $outputDir -Type directory -Force }
if (Test-Path $changeLogFile) { Remove-Item $changeLogFile -Force }
if (Test-Path $releaseNotesFile) { Remove-Item $releaseNotesFile -Force }
#perform right files order
$items = Get-ChildItem -Path $inputDir -Filter *.txt |
Select-Object -Property @{Name = "FileName"; Expression = {$_.BaseName}},
@{Name = "File"; Expression = {$_}},
@{Name = "ReleaseVersion"; Expression= {($_.BaseName -split "_", 2)[0] -as [Version]}},
@{Name ="ReleaseName"; Expression= {($_.BaseName -split "_", 2)[1] }},
@{Name ="FixedReleaseName"; Expression = {($_.BaseName -split "_", 2)[1] -replace "Z_Final", "Final"}} |
Sort-Object -Property @{Expression="ReleaseVersion";Descending=$true}, @{Expression="ReleaseName";Descending=$true}
#compose ChangeLog and ReleaseInfo files
Foreach ($complexObject in $items) {
$isInitial = $complexObject.FileName -eq "0.0.0"
if($isInitial){
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
Add-Content $changeLogFile ""
}
else{
#on first itteration create ReleaseNotes
if (-not(Test-Path $releaseNotesFile)) { Add-Content $releaseNotesFile (Get-Content $complexObject.File.FullName) }
Add-Content $changeLogFile ("Changes in {0} {1}" -f $complexObject.ReleaseVersion, $complexObject.FixedReleaseName)
Add-Content $changeLogFile ""
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
Add-Content $changeLogFile ""
}
}
$useLegacy = ($PSVersionTable.PSVersion -as [version]) -le ("2.0" -as [version])
if ($useLegacy){
$inputDir = Split-Path -Parent $MyInvocation.MyCommand.Path
}
else {
$inputDir = $PSScriptRoot
}
$theRootestRoot = Split-Path -Parent $inputDir;
$outputDir = Join-Path -Path $theRootestRoot -ChildPath \_Build\ProductInfo
$changeLogFile = Join-Path -Path $outputDir -ChildPath "ChangeLog.txt"
$releaseNotesFile = Join-Path -Path $outputDir -ChildPath "ReleaseNotes.txt"

if (-not (Test-Path $outputDir)) { New-Item $outputDir -Type directory -Force }
if (Test-Path $changeLogFile) { Remove-Item $changeLogFile -Force }
if (Test-Path $releaseNotesFile) { Remove-Item $releaseNotesFile -Force }

#perform right files order
$items = Get-ChildItem -Path $inputDir -Filter *.txt |
Select-Object -Property @{Name = "FileName"; Expression = {$_.BaseName}},
@{Name = "File"; Expression = {$_}},
@{Name = "ReleaseVersion"; Expression= {($_.BaseName -split "_", 2)[0] -as [Version]}},
@{Name ="ReleaseName"; Expression= {($_.BaseName -split "_", 2)[1] }},
@{Name ="FixedReleaseName"; Expression = {($_.BaseName -split "_", 2)[1] -replace "Z_Final", "Final"}} |
Sort-Object -Property @{Expression="ReleaseVersion";Descending=$true}, @{Expression="ReleaseName";Descending=$true}

#compose ChangeLog and ReleaseInfo files
Foreach ($complexObject in $items) {
$isInitial = $complexObject.FileName -eq "0.0.0"
if($isInitial){
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
Add-Content $changeLogFile ""
}
else{
#on first itteration create ReleaseNotes
if (-not(Test-Path $releaseNotesFile)) { Add-Content $releaseNotesFile (Get-Content $complexObject.File.FullName) }
Add-Content $changeLogFile ("Changes in {0} {1}" -f $complexObject.ReleaseVersion, $complexObject.FixedReleaseName)
Add-Content $changeLogFile ""
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
Add-Content $changeLogFile ""
}
}
164 changes: 82 additions & 82 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,82 +1,82 @@
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildThisFileDirectory)Version.props" />
<!-- Compute intermediate values. To avoid conflicts name all custom variables with Do prefix. -->
<PropertyGroup>
<DoBuildNumber>$(BUILD_NUMBER)</DoBuildNumber>
<DoBuildNumber Condition="'$(DoBuildNumber)'==''">0</DoBuildNumber>
<DoBuildYear>$([System.DateTime]::Today.Year)</DoBuildYear>
<DoProductName>DataObjects.Net</DoProductName>
<DoProductAuthors>Xtensive LLC and contributors</DoProductAuthors>
<DoProductCopyright>2003-$(DoBuildYear) $(DoProductAuthors)</DoProductCopyright>
<DoVersionSuffix Condition="'$(DoVersionSuffix)'=='dev'">dev-$(DoBuildNumber)</DoVersionSuffix>
<DoMajor>$([System.Version]::new($(DoVersion)).Major)</DoMajor>
<DoMinor>$([System.Version]::new($(DoVersion)).Minor)</DoMinor>
<DoPatch>$([System.Version]::new($(DoVersion)).Build)</DoPatch>
<DoVersionName>$(DoMajor).$(DoMinor).$(DoPatch)</DoVersionName>
<DoVersionName Condition="'$(DoVersionSuffix)'!=''">$(DoVersionName)-$(DoVersionSuffix)</DoVersionName>
<DoPackageIcon>$(MSBuildThisFileDirectory)do-nuget.png</DoPackageIcon>
<DoRevFile>$(MSBuildThisFileDirectory)_Build\rev.txt</DoRevFile>
</PropertyGroup>
<PropertyGroup>
<LangVersion>8.0</LangVersion>
<SolutionDir Condition="$(SolutionDir) == ''">$(MSBuildThisFileDirectory.TrimEnd('\').TrimEnd('/'))\</SolutionDir>
<Configuration Condition="$(Configuration) == ''">Debug</Configuration>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<NoLogo>true</NoLogo>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<ArtifactsDir Condition="'$(ArtifactsDir)'==''">$(SolutionDir)_Build\</ArtifactsDir>
<BaseIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(ArtifactsDir)obj\$(Configuration)\$(MSBuildProjectName)'))\</BaseIntermediateOutputPath>
<BaseOutputPath >$([System.IO.Path]::GetFullPath('$(ArtifactsDir)bin\$(Configuration)'))\</BaseOutputPath>
<BaseOutputPath Condition="$(MSBuildProjectName.Contains('Tests'))">$([System.IO.Path]::GetFullPath('$(ArtifactsDir)tests'))\</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>
<ProjectAssetsFile>$(MSBuildProjectExtensionsPath)project.assets.json</ProjectAssetsFile>
<ProjectAssetsCacheFile>$(MSBuildProjectExtensionsPath)$(MSBuildProjectName).assets.cache</ProjectAssetsCacheFile>
</PropertyGroup>
<PropertyGroup>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'Xtensive.Orm.Weaver'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'Xtensive.Orm.Manual'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'TestCommon'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(GeneratePackageOnBuild)=='' AND '$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>
<IncludeSymbols Condition="$(GeneratePackageOnBuild) == 'true'">true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
<PackageReference Condition="$(GeneratePackageOnBuild) == 'true'"
Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>
<!-- Populate standard properties. -->
<PropertyGroup>
<Product>$(DoProductName)</Product>
<Company>$(DoProductAuthors)</Company>
<Authors>$(DoProductAuthors)</Authors>
<Version>$(DoVersionName)</Version>
<AssemblyVersion>$(DoMajor).$(DoMinor).0.0</AssemblyVersion>
<FileVersion>$(DoMajor).$(DoMinor).$(DoPatch).$(DoBuildNumber)</FileVersion>
<Copyright>$(DoProductCopyright)</Copyright>
<PackageProjectUrl>https://dataobjects.net/</PackageProjectUrl>
<PackageIcon>do-nuget.png</PackageIcon>
<PackageLicense>MIT</PackageLicense>
<PackageTags>DataObjects.Net ORM BLL Persistence</PackageTags>
<PackageOutputPath>$(MSBuildThisFileDirectory)_Build\$(Configuration)\packages</PackageOutputPath>
<RepositoryUrl>https://github.com/DataObjects-NET/dataobjects-net</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>
<ItemGroup>
<None Include="$(DoPackageIcon)" Pack="true" PackagePath="." Visible="false" />
</ItemGroup>
<Import Condition="Exists('User.Directory.Build.props')" Project="User.Directory.Build.props" />
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

<Import Project="$(MSBuildThisFileDirectory)Version.props" />

<!-- Compute intermediate values. To avoid conflicts name all custom variables with Do prefix. -->
<PropertyGroup>
<DoBuildNumber>$(BUILD_NUMBER)</DoBuildNumber>
<DoBuildNumber Condition="'$(DoBuildNumber)'==''">0</DoBuildNumber>
<DoBuildYear>$([System.DateTime]::Today.Year)</DoBuildYear>
<DoProductName>DataObjects.Net</DoProductName>
<DoProductAuthors>Xtensive LLC and contributors</DoProductAuthors>
<DoProductCopyright>2003-$(DoBuildYear) $(DoProductAuthors)</DoProductCopyright>
<DoVersionSuffix Condition="'$(DoVersionSuffix)'=='dev'">dev-$(DoBuildNumber)</DoVersionSuffix>
<DoMajor>$([System.Version]::new($(DoVersion)).Major)</DoMajor>
<DoMinor>$([System.Version]::new($(DoVersion)).Minor)</DoMinor>
<DoPatch>$([System.Version]::new($(DoVersion)).Build)</DoPatch>
<DoVersionName>$(DoMajor).$(DoMinor).$(DoPatch)</DoVersionName>
<DoVersionName Condition="'$(DoVersionSuffix)'!=''">$(DoVersionName)-$(DoVersionSuffix)</DoVersionName>
<DoPackageIcon>$(MSBuildThisFileDirectory)do-nuget.png</DoPackageIcon>
<DoRevFile>$(MSBuildThisFileDirectory)_Build\rev.txt</DoRevFile>
</PropertyGroup>

<PropertyGroup>
<LangVersion>8.0</LangVersion>
<SolutionDir Condition="$(SolutionDir) == ''">$(MSBuildThisFileDirectory.TrimEnd('\').TrimEnd('/'))\</SolutionDir>
<Configuration Condition="$(Configuration) == ''">Debug</Configuration>
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
<NoLogo>true</NoLogo>
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
<ArtifactsDir Condition="'$(ArtifactsDir)'==''">$(SolutionDir)_Build\</ArtifactsDir>
<BaseIntermediateOutputPath>$([System.IO.Path]::GetFullPath('$(ArtifactsDir)obj\$(Configuration)\$(MSBuildProjectName)'))\</BaseIntermediateOutputPath>
<BaseOutputPath >$([System.IO.Path]::GetFullPath('$(ArtifactsDir)bin\$(Configuration)'))\</BaseOutputPath>
<BaseOutputPath Condition="$(MSBuildProjectName.Contains('Tests'))">$([System.IO.Path]::GetFullPath('$(ArtifactsDir)tests'))\</BaseOutputPath>
<OutputPath>$(BaseOutputPath)</OutputPath>
<MSBuildProjectExtensionsPath>$(BaseIntermediateOutputPath)</MSBuildProjectExtensionsPath>
<ProjectAssetsFile>$(MSBuildProjectExtensionsPath)project.assets.json</ProjectAssetsFile>
<ProjectAssetsCacheFile>$(MSBuildProjectExtensionsPath)$(MSBuildProjectName).assets.cache</ProjectAssetsCacheFile>
</PropertyGroup>

<PropertyGroup>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'Xtensive.Orm.Weaver'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'Xtensive.Orm.Manual'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName) == 'TestCommon'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(MSBuildProjectName.Contains('Tests')) == 'true'">false</GeneratePackageOnBuild>
<GeneratePackageOnBuild Condition="$(GeneratePackageOnBuild)=='' AND '$(Configuration)' == 'Release'">true</GeneratePackageOnBuild>

<IncludeSymbols Condition="$(GeneratePackageOnBuild) == 'true'">true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
<ItemGroup>
<SourceRoot Include="$(MSBuildThisFileDirectory)/"/>
<PackageReference Condition="$(GeneratePackageOnBuild) == 'true'"
Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
</ItemGroup>

<!-- Populate standard properties. -->
<PropertyGroup>
<Product>$(DoProductName)</Product>
<Company>$(DoProductAuthors)</Company>
<Authors>$(DoProductAuthors)</Authors>
<Version>$(DoVersionName)</Version>
<AssemblyVersion>$(DoMajor).$(DoMinor).0.0</AssemblyVersion>
<FileVersion>$(DoMajor).$(DoMinor).$(DoPatch).$(DoBuildNumber)</FileVersion>
<Copyright>$(DoProductCopyright)</Copyright>
<PackageProjectUrl>https://dataobjects.net/</PackageProjectUrl>
<PackageIcon>do-nuget.png</PackageIcon>
<PackageLicense>MIT</PackageLicense>
<PackageTags>DataObjects.Net ORM BLL Persistence</PackageTags>
<PackageOutputPath>$(MSBuildThisFileDirectory)_Build\$(Configuration)\packages</PackageOutputPath>
<RepositoryUrl>https://github.com/DataObjects-NET/dataobjects-net</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
<None Include="$(DoPackageIcon)" Pack="true" PackagePath="." Visible="false" />
</ItemGroup>

<Import Condition="Exists('User.Directory.Build.props')" Project="User.Directory.Build.props" />
</Project>
12 changes: 6 additions & 6 deletions Extensions/TestCommon/App.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="Xtensive.Orm" type="Xtensive.Orm.Configuration.Elements.ConfigurationSection, Xtensive.Orm" />
</configSections>
<Xtensive.Orm configSource="Orm.config"/>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="Xtensive.Orm" type="Xtensive.Orm.Configuration.Elements.ConfigurationSection, Xtensive.Orm" />
</configSections>
<Xtensive.Orm configSource="Orm.config"/>
</configuration>
Loading