Skip to content

Commit 4cb0374

Browse files
authored
Normalize line endings (#642)
+semver:patch
1 parent 9437211 commit 4cb0374

File tree

1,166 files changed

+91221
-91208
lines changed

Some content is hidden

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

1,166 files changed

+91221
-91208
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@ root = true
22
; This file is for unifying the coding style for different editors and IDEs.
33
; More information at http://EditorConfig.org
44

5-
6-
[*]
7-
end_of_line = crlf
8-
95
[*.ps1]
106
indent_style = space
117
indent_size = 2

.gitattributes

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,28 @@
1-
[core]
2-
autocrlf=false
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.cs text diff=csharp
7+
*.xaml text
8+
*.txt text
9+
*.tt text
10+
*.ps1 text
11+
*.cmd text
12+
*.msbuild text
13+
*.md text
14+
15+
*.sln text eol=crlf
16+
*.csproj text eol=crlf
17+
*.vbproj text eol=crlf
18+
*.fsproj text eol=crlf
19+
*.dbproj text eol=crlf
20+
21+
# Resharper DotSettings files are in Unix format
22+
*.DotSettings text eol=lf
23+
24+
# Binary files
25+
*.png binary
26+
*.jpg binary
27+
*.dll binary
28+
*.exe binary

CODEOFCONDUCT.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
# Contributor Code of Conduct
2-
3-
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4-
5-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6-
7-
Examples of unacceptable behavior by participants include:
8-
9-
- The use of sexualized language or imagery
10-
- Personal attacks
11-
- Trolling or insulting/derogatory comments
12-
- Public or private harassment
13-
- Publishing other's private information, such as physical or electronic addresses, without explicit permission
14-
- Other unethical or unprofessional conduct
15-
16-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
17-
18-
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
19-
20-
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
21-
22-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
23-
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
- The use of sexualized language or imagery
10+
- Personal attacks
11+
- Trolling or insulting/derogatory comments
12+
- Public or private harassment
13+
- Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
- Other unethical or unprofessional conduct
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
17+
18+
By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
19+
20+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community.
21+
22+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting a project maintainer. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
23+
2424
This Code of Conduct is adapted from the Contributor Covenant, version 1.3.0, available from http://contributor-covenant.org/version/1/3/0/

CONTRIBUTING.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
1-
# Contribution Guidelines
2-
3-
The wiki has a page on contributing to FNH:
4-
5-
https://github.com/nhibernate/fluent-nhibernate/wiki/Contributing
6-
7-
## Important
8-
If you've just pulled the FNH code into a local git repository for the first time, its really important that you set the core.autocrlf setting to false to avoid running into whitespace/line ending issues. Do this using the following command:
9-
10-
```
11-
git config core.autocrlf false
12-
```
13-
14-
1+
# Contribution Guidelines
2+
3+
The wiki has a page on contributing to FNH:
4+
5+
https://github.com/nhibernate/fluent-nhibernate/wiki/Contributing

README.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
![FluentNHibernate logo](https://raw.githubusercontent.com/nhibernate/fluent-nhibernate/main/docs/logo.png)
2-
3-
[![Build status](https://ci.appveyor.com/api/projects/status/684r2ot07i2lrcij/branch/main?svg=true)](https://ci.appveyor.com/project/nhibernate/fluent-nhibernate/branch/main)
4-
[![NuGet](https://img.shields.io/nuget/v/FluentNHibernate.svg)](https://www.nuget.org/packages/FluentNHibernate)
5-
6-
## What is FluentNHibernate?
7-
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. *Get your fluent on.*
8-
9-
## Where can I get it?
10-
11-
Install using the [FluentNHibernate NuGet package](https://www.nuget.org/packages/FluentNHibernate):
12-
13-
```
14-
dotnet add package FluentNHibernate
15-
```
16-
17-
## How do I use it?
18-
19-
* Read the [introduction](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Getting-started).
20-
* Get latest version from NuGet
21-
- [.NETCore2.0, NETStandard2.0 or NET 4.6.1 with NHibernate 5.x](https://www.nuget.org/packages/FluentNHibernate)
22-
- [.NET 4.0 with NHibernate 4.x](https://www.nuget.org/packages/FluentNHibernate/2.0.3)
23-
- [.NET 3.5 with NHibernate 3 if you like it vintage](https://www.nuget.org/packages/FluentNHibernate.Net35)
24-
25-
* Create your [first project](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Getting-started#wiki-yourfirstproject).
26-
27-
## Further reading
28-
29-
Once you've followed the above, you can compare our [auto mapping](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Auto-mapping) to our [fluent interface](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Fluent-mapping) to see which suits your application, read through our [API documentation](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Fluent-configuration), or just see what's available for reading in our [wiki](https://github.com/FluentNHibernate/fluent-nhibernate/wiki).
30-
31-
Contributors
32-
---------------------------------------------
33-
34-
Fluent NHibernate wouldn't be possible without the time and effort of its contributors. The team comprises of [James Gregory](http://jagregory.com), [Paul Batum](http://www.paulbatum.com), Andrew Stewart, [Hudson Akridge](https://github.com/HudsonAkridge), [Gleb Chermennov](https://github.com/chester89) and [Jorge Rodríguez Galán](https://github.com/jrgcubano).
35-
36-
**Our valued committers are:** Aaron Jensen, Alexander Gross, Andrew Stewart, Barry Dahlberg, Bobby Johnson, Brian Donahue, Cameron Harris, Chad Myers, Chris Chilvers, Craig Neuwirt, Dan Malcolm, Daniel Mirapalheta, David Archer, David Longnecker, David R. Longnecker, Derick Bailey, Erik Ojebo, Firo, Hudson Akridge, Ivan Zlatev, James Freiwirth, James Gregory, James Kovacs, Jeremy Skinner, Lee Henson, Louis DeJardin, Patric Forsgard, Paul Batum, Roelof Blom, Stuart Childs, Tom Janssens, Tuna Toksoz, U-BSOD\pruiz, di97mni, dschilling, felixg, jeremydmiller, kevm, leebrandt, maxild, robsosno, [Jorge Rodríguez Galán](https://github.com/jrgcubano) and many more.</p>
37-
38-
Thanks goes to [Jeremy Miller](http://codebetter.com/blogs/jeremy.miller) for the original idea and implementation.
39-
40-
Fluent NHibernate is &copy; 2008-2018 [James Gregory](http://jagregory.com) and contributors under the [BSD license](https://github.com/nhibernate/fluent-nhibernate/blob/main/LICENSE)
41-
1+
![FluentNHibernate logo](https://raw.githubusercontent.com/nhibernate/fluent-nhibernate/main/docs/logo.png)
2+
3+
[![Build status](https://ci.appveyor.com/api/projects/status/684r2ot07i2lrcij/branch/main?svg=true)](https://ci.appveyor.com/project/nhibernate/fluent-nhibernate/branch/main)
4+
[![NuGet](https://img.shields.io/nuget/v/FluentNHibernate.svg)](https://www.nuget.org/packages/FluentNHibernate)
5+
6+
## What is FluentNHibernate?
7+
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. *Get your fluent on.*
8+
9+
## Where can I get it?
10+
11+
Install using the [FluentNHibernate NuGet package](https://www.nuget.org/packages/FluentNHibernate):
12+
13+
```
14+
dotnet add package FluentNHibernate
15+
```
16+
17+
## How do I use it?
18+
19+
* Read the [introduction](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Getting-started).
20+
* Get latest version from NuGet
21+
- [.NETCore2.0, NETStandard2.0 or NET 4.6.1 with NHibernate 5.x](https://www.nuget.org/packages/FluentNHibernate)
22+
- [.NET 4.0 with NHibernate 4.x](https://www.nuget.org/packages/FluentNHibernate/2.0.3)
23+
- [.NET 3.5 with NHibernate 3 if you like it vintage](https://www.nuget.org/packages/FluentNHibernate.Net35)
24+
25+
* Create your [first project](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Getting-started#wiki-yourfirstproject).
26+
27+
## Further reading
28+
29+
Once you've followed the above, you can compare our [auto mapping](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Auto-mapping) to our [fluent interface](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Fluent-mapping) to see which suits your application, read through our [API documentation](https://github.com/FluentNHibernate/fluent-nhibernate/wiki/Fluent-configuration), or just see what's available for reading in our [wiki](https://github.com/FluentNHibernate/fluent-nhibernate/wiki).
30+
31+
Contributors
32+
---------------------------------------------
33+
34+
Fluent NHibernate wouldn't be possible without the time and effort of its contributors. The team comprises of [James Gregory](http://jagregory.com), [Paul Batum](http://www.paulbatum.com), Andrew Stewart, [Hudson Akridge](https://github.com/HudsonAkridge), [Gleb Chermennov](https://github.com/chester89) and [Jorge Rodríguez Galán](https://github.com/jrgcubano).
35+
36+
**Our valued committers are:** Aaron Jensen, Alexander Gross, Andrew Stewart, Barry Dahlberg, Bobby Johnson, Brian Donahue, Cameron Harris, Chad Myers, Chris Chilvers, Craig Neuwirt, Dan Malcolm, Daniel Mirapalheta, David Archer, David Longnecker, David R. Longnecker, Derick Bailey, Erik Ojebo, Firo, Hudson Akridge, Ivan Zlatev, James Freiwirth, James Gregory, James Kovacs, Jeremy Skinner, Lee Henson, Louis DeJardin, Patric Forsgard, Paul Batum, Roelof Blom, Stuart Childs, Tom Janssens, Tuna Toksoz, U-BSOD\pruiz, di97mni, dschilling, felixg, jeremydmiller, kevm, leebrandt, maxild, robsosno, [Jorge Rodríguez Galán](https://github.com/jrgcubano) and many more.</p>
37+
38+
Thanks goes to [Jeremy Miller](http://codebetter.com/blogs/jeremy.miller) for the original idea and implementation.
39+
40+
Fluent NHibernate is &copy; 2008-2018 [James Gregory](http://jagregory.com) and contributors under the [BSD license](https://github.com/nhibernate/fluent-nhibernate/blob/main/LICENSE)
41+
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
using FluentNHibernate.Conventions;
2-
using FluentNHibernate.Conventions.Instances;
3-
4-
namespace Examples.FirstAutomappedProject;
5-
6-
/// <summary>
7-
/// This is a convention that will be applied to all entities in your application. What this particular
8-
/// convention does is to specify that many-to-one, one-to-many, and many-to-many relationships will all
9-
/// have their Cascade option set to All.
10-
/// </summary>
11-
class CascadeConvention : IReferenceConvention, IHasManyConvention, IHasManyToManyConvention
12-
{
13-
public void Apply(IManyToOneInstance instance)
14-
{
15-
instance.Cascade.All();
16-
}
17-
18-
public void Apply(IOneToManyCollectionInstance instance)
19-
{
20-
instance.Cascade.All();
21-
}
22-
23-
public void Apply(IManyToManyCollectionInstance instance)
24-
{
25-
instance.Cascade.All();
26-
}
1+
using FluentNHibernate.Conventions;
2+
using FluentNHibernate.Conventions.Instances;
3+
4+
namespace Examples.FirstAutomappedProject;
5+
6+
/// <summary>
7+
/// This is a convention that will be applied to all entities in your application. What this particular
8+
/// convention does is to specify that many-to-one, one-to-many, and many-to-many relationships will all
9+
/// have their Cascade option set to All.
10+
/// </summary>
11+
class CascadeConvention : IReferenceConvention, IHasManyConvention, IHasManyToManyConvention
12+
{
13+
public void Apply(IManyToOneInstance instance)
14+
{
15+
instance.Cascade.All();
16+
}
17+
18+
public void Apply(IOneToManyCollectionInstance instance)
19+
{
20+
instance.Cascade.All();
21+
}
22+
23+
public void Apply(IManyToManyCollectionInstance instance)
24+
{
25+
instance.Cascade.All();
26+
}
2727
}
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
namespace Examples.FirstAutomappedProject.Entities;
2-
3-
public class Employee
4-
{
5-
public virtual int Id { get; protected set; }
6-
public virtual string FirstName { get; set; }
7-
public virtual string LastName { get; set; }
8-
public virtual Store Store { get; set; }
1+
namespace Examples.FirstAutomappedProject.Entities;
2+
3+
public class Employee
4+
{
5+
public virtual int Id { get; protected set; }
6+
public virtual string FirstName { get; set; }
7+
public virtual string LastName { get; set; }
8+
public virtual Store Store { get; set; }
99
}
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
namespace Examples.FirstAutomappedProject.Entities;
2-
3-
public class Location
4-
{
5-
public virtual int Aisle { get; set; }
6-
public virtual int Shelf { get; set; }
1+
namespace Examples.FirstAutomappedProject.Entities;
2+
3+
public class Location
4+
{
5+
public virtual int Aisle { get; set; }
6+
public virtual int Shelf { get; set; }
77
}
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
using System.Collections.Generic;
2-
3-
namespace Examples.FirstAutomappedProject.Entities;
4-
5-
public class Product
6-
{
7-
public virtual int Id { get; protected set; }
8-
public virtual string Name { get; set; }
9-
public virtual double Price { get; set; }
10-
public virtual Location Location { get; set; }
11-
public virtual IList<Store> StoresStockedIn { get; set; }
12-
13-
public Product()
14-
{
15-
StoresStockedIn = new List<Store>();
16-
}
1+
using System.Collections.Generic;
2+
3+
namespace Examples.FirstAutomappedProject.Entities;
4+
5+
public class Product
6+
{
7+
public virtual int Id { get; protected set; }
8+
public virtual string Name { get; set; }
9+
public virtual double Price { get; set; }
10+
public virtual Location Location { get; set; }
11+
public virtual IList<Store> StoresStockedIn { get; set; }
12+
13+
public Product()
14+
{
15+
StoresStockedIn = new List<Store>();
16+
}
1717
}
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
using System.Collections.Generic;
2-
3-
namespace Examples.FirstAutomappedProject.Entities;
4-
5-
public class Store
6-
{
7-
public virtual int Id { get; protected set; }
8-
public virtual string Name { get; set; }
9-
public virtual IList<Product> Products { get; set; }
10-
public virtual IList<Employee> Staff { get; set; }
11-
12-
public Store()
13-
{
14-
Products = new List<Product>();
15-
Staff = new List<Employee>();
16-
}
17-
18-
public virtual void AddProduct(Product product)
19-
{
20-
product.StoresStockedIn.Add(this);
21-
Products.Add(product);
22-
}
23-
24-
public virtual void AddEmployee(Employee employee)
25-
{
26-
employee.Store = this;
27-
Staff.Add(employee);
28-
}
1+
using System.Collections.Generic;
2+
3+
namespace Examples.FirstAutomappedProject.Entities;
4+
5+
public class Store
6+
{
7+
public virtual int Id { get; protected set; }
8+
public virtual string Name { get; set; }
9+
public virtual IList<Product> Products { get; set; }
10+
public virtual IList<Employee> Staff { get; set; }
11+
12+
public Store()
13+
{
14+
Products = new List<Product>();
15+
Staff = new List<Employee>();
16+
}
17+
18+
public virtual void AddProduct(Product product)
19+
{
20+
product.StoresStockedIn.Add(this);
21+
Products.Add(product);
22+
}
23+
24+
public virtual void AddEmployee(Employee employee)
25+
{
26+
employee.Store = this;
27+
Staff.Add(employee);
28+
}
2929
}

0 commit comments

Comments
 (0)