Skip to content

Commit bc348e2

Browse files
committed
Adds renormalized files after file ending change
1 parent e80be4b commit bc348e2

File tree

3,327 files changed

+601436
-601436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,327 files changed

+601436
-601436
lines changed

.gitignore

+29-29
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
*.suo
2-
*.user
3-
*.csproj.user
4-
*.sln.cache
5-
*.cache
6-
*.resharper
7-
*.ReSharper
8-
*.resharperoptions
9-
_ReSharper.*
10-
*.vs10x
11-
*.DotSettings
12-
*.exe
13-
*.dll
14-
*.obj
15-
*.pdb
16-
*.HxS
17-
*.chm
18-
*.xml
19-
*.mshc
20-
*.orig
21-
*.log
22-
bin
23-
Bin
24-
obj
25-
_Build
26-
_Work
27-
.vs
28-
.idea
29-
User.Directory.Build.props
1+
*.suo
2+
*.user
3+
*.csproj.user
4+
*.sln.cache
5+
*.cache
6+
*.resharper
7+
*.ReSharper
8+
*.resharperoptions
9+
_ReSharper.*
10+
*.vs10x
11+
*.DotSettings
12+
*.exe
13+
*.dll
14+
*.obj
15+
*.pdb
16+
*.HxS
17+
*.chm
18+
*.xml
19+
*.mshc
20+
*.orig
21+
*.log
22+
bin
23+
Bin
24+
obj
25+
_Build
26+
_Work
27+
.vs
28+
.idea
29+
User.Directory.Build.props

ChangeLog/0.0.0.txt

+479-479
Large diffs are not rendered by default.

ChangeLog/0.1.0_Beta_1.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[main] Added new overloads for loading DomainConfiguration and LoggingConfiguration
2-
[main] Added LogManager.Initialize(System.Configuration.Configuration)
1+
[main] Added new overloads for loading DomainConfiguration and LoggingConfiguration
2+
[main] Added LogManager.Initialize(System.Configuration.Configuration)
33
[sqlserver] No support for SqlGeometry and SqlGeography for now

ChangeLog/0.1.0_Beta_2.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[main] Removed DomainConfiguration.NativeLibraryCacheFolder because SQLite no longer needs it.
2-
[mysql] Cerain error codes were handled in order to arrange them with certain type instead of Unknown
3-
[postgresql] DateTimeOffset is not supported as far as client library has no support for Zone part of TimeStampTZ
1+
[main] Removed DomainConfiguration.NativeLibraryCacheFolder because SQLite no longer needs it.
2+
[mysql] Cerain error codes were handled in order to arrange them with certain type instead of Unknown
3+
[postgresql] DateTimeOffset is not supported as far as client library has no support for Zone part of TimeStampTZ
44
[postgresql] Maximum scale of Decimals was reduced down to 27

ChangeLog/0.1.0_Beta_3.txt

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
[main] Added versioning policy allowing to set up certain rules for entity version increasing
2-
[main] Fixed problems with setting Catalog.Name, Catalog.DbName, CatalogNode.Name and CatalogNode.DbName properties
3-
[main] Fixed certain cases when grouping by an Entity field caused wrong results
4-
[main] Persisting of changes to database while EntitySet enumeration doesn't break enumeration
5-
[main] Fixed initialization of fields of non-persistent types within queries
6-
[main] Entity.Lock() locks correct raws in database
7-
[main] DomainUpgradeMode.Validate mode became stricter to avoid data corruption
8-
[firebird] Made column types extraction be culture-independant
9-
[sqlserver] Fixed extraction of default value of table columns
10-
[sqlserver] Improved default schema detection in driver factory
11-
[sqlserver] Updated Azure provider to Sql Server v12 provider
1+
[main] Added versioning policy allowing to set up certain rules for entity version increasing
2+
[main] Fixed problems with setting Catalog.Name, Catalog.DbName, CatalogNode.Name and CatalogNode.DbName properties
3+
[main] Fixed certain cases when grouping by an Entity field caused wrong results
4+
[main] Persisting of changes to database while EntitySet enumeration doesn't break enumeration
5+
[main] Fixed initialization of fields of non-persistent types within queries
6+
[main] Entity.Lock() locks correct raws in database
7+
[main] DomainUpgradeMode.Validate mode became stricter to avoid data corruption
8+
[firebird] Made column types extraction be culture-independant
9+
[sqlserver] Fixed extraction of default value of table columns
10+
[sqlserver] Improved default schema detection in driver factory
11+
[sqlserver] Updated Azure provider to Sql Server v12 provider
1212
[weaver] Project building fails when weaving ends up with an error

ChangeLog/0.1.0_Beta_4.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[main] Introduced asynchronous session opening
2-
[main] Introduced bunch of QueryEndpoint.ExecuteAsync() methods
3-
[main] Add .AsAsyncTask() extensions for running queries asynchronously
4-
[postgresql] Fixed extraction of full-text indexes for certain scenarios
5-
[postgresql] Set upper limit for precision of decimals to 49 to handle problems in Npgsql
6-
[postgresql] Fields of unsigned types no longer cause exception on saving them to database
1+
[main] Introduced asynchronous session opening
2+
[main] Introduced bunch of QueryEndpoint.ExecuteAsync() methods
3+
[main] Add .AsAsyncTask() extensions for running queries asynchronously
4+
[postgresql] Fixed extraction of full-text indexes for certain scenarios
5+
[postgresql] Set upper limit for precision of decimals to 49 to handle problems in Npgsql
6+
[postgresql] Fields of unsigned types no longer cause exception on saving them to database
77
[postgresql] Enum fields no longer cause exception on saving them to database

ChangeLog/mkchangelog.ps1

+41-41
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
$useLegacy = ($PSVersionTable.PSVersion -as [version]) -le ("2.0" -as [version])
2-
if ($useLegacy){
3-
$inputDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4-
}
5-
else {
6-
$inputDir = $PSScriptRoot
7-
}
8-
$theRootestRoot = Split-Path -Parent $inputDir;
9-
$outputDir = Join-Path -Path $theRootestRoot -ChildPath \_Build\ProductInfo
10-
$changeLogFile = Join-Path -Path $outputDir -ChildPath "ChangeLog.txt"
11-
$releaseNotesFile = Join-Path -Path $outputDir -ChildPath "ReleaseNotes.txt"
12-
13-
if (-not (Test-Path $outputDir)) { New-Item $outputDir -Type directory -Force }
14-
if (Test-Path $changeLogFile) { Remove-Item $changeLogFile -Force }
15-
if (Test-Path $releaseNotesFile) { Remove-Item $releaseNotesFile -Force }
16-
17-
#perform right files order
18-
$items = Get-ChildItem -Path $inputDir -Filter *.txt |
19-
Select-Object -Property @{Name = "FileName"; Expression = {$_.BaseName}},
20-
@{Name = "File"; Expression = {$_}},
21-
@{Name = "ReleaseVersion"; Expression= {($_.BaseName -split "_", 2)[0] -as [Version]}},
22-
@{Name ="ReleaseName"; Expression= {($_.BaseName -split "_", 2)[1] }},
23-
@{Name ="FixedReleaseName"; Expression = {($_.BaseName -split "_", 2)[1] -replace "Z_Final", "Final"}} |
24-
Sort-Object -Property @{Expression="ReleaseVersion";Descending=$true}, @{Expression="ReleaseName";Descending=$true}
25-
26-
#compose ChangeLog and ReleaseInfo files
27-
Foreach ($complexObject in $items) {
28-
$isInitial = $complexObject.FileName -eq "0.0.0"
29-
if($isInitial){
30-
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
31-
Add-Content $changeLogFile ""
32-
}
33-
else{
34-
#on first itteration create ReleaseNotes
35-
if (-not(Test-Path $releaseNotesFile)) { Add-Content $releaseNotesFile (Get-Content $complexObject.File.FullName) }
36-
Add-Content $changeLogFile ("Changes in {0} {1}" -f $complexObject.ReleaseVersion, $complexObject.FixedReleaseName)
37-
Add-Content $changeLogFile ""
38-
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
39-
Add-Content $changeLogFile ""
40-
}
41-
}
1+
$useLegacy = ($PSVersionTable.PSVersion -as [version]) -le ("2.0" -as [version])
2+
if ($useLegacy){
3+
$inputDir = Split-Path -Parent $MyInvocation.MyCommand.Path
4+
}
5+
else {
6+
$inputDir = $PSScriptRoot
7+
}
8+
$theRootestRoot = Split-Path -Parent $inputDir;
9+
$outputDir = Join-Path -Path $theRootestRoot -ChildPath \_Build\ProductInfo
10+
$changeLogFile = Join-Path -Path $outputDir -ChildPath "ChangeLog.txt"
11+
$releaseNotesFile = Join-Path -Path $outputDir -ChildPath "ReleaseNotes.txt"
12+
13+
if (-not (Test-Path $outputDir)) { New-Item $outputDir -Type directory -Force }
14+
if (Test-Path $changeLogFile) { Remove-Item $changeLogFile -Force }
15+
if (Test-Path $releaseNotesFile) { Remove-Item $releaseNotesFile -Force }
16+
17+
#perform right files order
18+
$items = Get-ChildItem -Path $inputDir -Filter *.txt |
19+
Select-Object -Property @{Name = "FileName"; Expression = {$_.BaseName}},
20+
@{Name = "File"; Expression = {$_}},
21+
@{Name = "ReleaseVersion"; Expression= {($_.BaseName -split "_", 2)[0] -as [Version]}},
22+
@{Name ="ReleaseName"; Expression= {($_.BaseName -split "_", 2)[1] }},
23+
@{Name ="FixedReleaseName"; Expression = {($_.BaseName -split "_", 2)[1] -replace "Z_Final", "Final"}} |
24+
Sort-Object -Property @{Expression="ReleaseVersion";Descending=$true}, @{Expression="ReleaseName";Descending=$true}
25+
26+
#compose ChangeLog and ReleaseInfo files
27+
Foreach ($complexObject in $items) {
28+
$isInitial = $complexObject.FileName -eq "0.0.0"
29+
if($isInitial){
30+
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
31+
Add-Content $changeLogFile ""
32+
}
33+
else{
34+
#on first itteration create ReleaseNotes
35+
if (-not(Test-Path $releaseNotesFile)) { Add-Content $releaseNotesFile (Get-Content $complexObject.File.FullName) }
36+
Add-Content $changeLogFile ("Changes in {0} {1}" -f $complexObject.ReleaseVersion, $complexObject.FixedReleaseName)
37+
Add-Content $changeLogFile ""
38+
Add-Content $changeLogFile ( Get-Content $complexObject.File.FullName)
39+
Add-Content $changeLogFile ""
40+
}
41+
}

Extensions/TestCommon/App.config

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
2-
<configuration>
3-
<configSections>
4-
<section name="Xtensive.Orm" type="Xtensive.Orm.Configuration.Elements.ConfigurationSection, Xtensive.Orm" />
5-
</configSections>
6-
<Xtensive.Orm configSource="Orm.config"/>
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<configSections>
4+
<section name="Xtensive.Orm" type="Xtensive.Orm.Configuration.Elements.ConfigurationSection, Xtensive.Orm" />
5+
</configSections>
6+
<Xtensive.Orm configSource="Orm.config"/>
77
</configuration>
+16-16
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using System;
2-
using System.Reflection;
3-
using System.Collections.Generic;
4-
using System.Text;
5-
using System.Configuration;
6-
7-
namespace TestCommon
8-
{
9-
public static class AssemblyExtensions
10-
{
11-
public static Configuration GetAssemblyConfiguration(this Assembly assembly)
12-
{
13-
return ConfigurationManager.OpenExeConfiguration(assembly.Location);
14-
}
15-
}
16-
}
1+
using System;
2+
using System.Reflection;
3+
using System.Collections.Generic;
4+
using System.Text;
5+
using System.Configuration;
6+
7+
namespace TestCommon
8+
{
9+
public static class AssemblyExtensions
10+
{
11+
public static Configuration GetAssemblyConfiguration(this Assembly assembly)
12+
{
13+
return ConfigurationManager.OpenExeConfiguration(assembly.Location);
14+
}
15+
}
16+
}
+58-58
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
1-
using System.Collections.Generic;
2-
using NUnit.Framework;
3-
using TestCommon.Model;
4-
using Xtensive.Core;
5-
using Xtensive.Orm;
6-
using Xtensive.Orm.Configuration;
7-
8-
namespace TestCommon
9-
{
10-
[TestFixture]
11-
public abstract class CommonModelTest
12-
{
13-
private List<Session> notDisposed;
14-
15-
protected Domain Domain { get; private set; }
16-
17-
[SetUp]
18-
public virtual void SetUp()
19-
{
20-
var config = BuildConfiguration();
21-
Domain = BuildDomain(config);
22-
notDisposed = new List<Session>();
23-
Domain.SessionOpen += (sender, args) => {
24-
notDisposed.Add(args.Session);
25-
args.Session.Events.Disposing += (o, eventArgs) => {
26-
lock (notDisposed) {
27-
notDisposed.Remove(args.Session);
28-
}
29-
};
30-
};
31-
PopulateData();
32-
}
33-
34-
[TearDown]
35-
public virtual void TearDown()
36-
{
37-
if (notDisposed!=null)
38-
Assert.That(notDisposed, Is.Empty);
39-
Assert.That(SessionScope.CurrentSession, Is.Null);
40-
Domain.DisposeSafely();
41-
}
42-
43-
protected virtual DomainConfiguration BuildConfiguration()
44-
{
45-
var configuration = DomainConfigurationFactory.Create();
46-
configuration.Types.Register(typeof (Bar).Assembly);
47-
return configuration;
48-
}
49-
50-
protected virtual Domain BuildDomain(DomainConfiguration configuration)
51-
{
52-
return Domain.Build(configuration);
53-
}
54-
55-
protected virtual void PopulateData()
56-
{
57-
}
58-
}
1+
using System.Collections.Generic;
2+
using NUnit.Framework;
3+
using TestCommon.Model;
4+
using Xtensive.Core;
5+
using Xtensive.Orm;
6+
using Xtensive.Orm.Configuration;
7+
8+
namespace TestCommon
9+
{
10+
[TestFixture]
11+
public abstract class CommonModelTest
12+
{
13+
private List<Session> notDisposed;
14+
15+
protected Domain Domain { get; private set; }
16+
17+
[SetUp]
18+
public virtual void SetUp()
19+
{
20+
var config = BuildConfiguration();
21+
Domain = BuildDomain(config);
22+
notDisposed = new List<Session>();
23+
Domain.SessionOpen += (sender, args) => {
24+
notDisposed.Add(args.Session);
25+
args.Session.Events.Disposing += (o, eventArgs) => {
26+
lock (notDisposed) {
27+
notDisposed.Remove(args.Session);
28+
}
29+
};
30+
};
31+
PopulateData();
32+
}
33+
34+
[TearDown]
35+
public virtual void TearDown()
36+
{
37+
if (notDisposed!=null)
38+
Assert.That(notDisposed, Is.Empty);
39+
Assert.That(SessionScope.CurrentSession, Is.Null);
40+
Domain.DisposeSafely();
41+
}
42+
43+
protected virtual DomainConfiguration BuildConfiguration()
44+
{
45+
var configuration = DomainConfigurationFactory.Create();
46+
configuration.Types.Register(typeof (Bar).Assembly);
47+
return configuration;
48+
}
49+
50+
protected virtual Domain BuildDomain(DomainConfiguration configuration)
51+
{
52+
return Domain.Build(configuration);
53+
}
54+
55+
protected virtual void PopulateData()
56+
{
57+
}
58+
}
5959
}

0 commit comments

Comments
 (0)