Skip to content

Commit dc9b4d2

Browse files
committed
fix up engineering to .NET 9
1 parent e23e7d2 commit dc9b4d2

109 files changed

Lines changed: 6273 additions & 6097 deletions

File tree

Some content is hidden

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

.config/dotnet-tools.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@
33
"isRoot": true,
44
"tools": {
55
"paket": {
6-
"version": "9.0.2",
6+
"version": "10.3.1",
77
"commands": [
88
"paket"
99
],
1010
"rollForward": false
11+
},
12+
"fantomas": {
13+
"version": "7.0.5",
14+
"commands": [
15+
"fantomas"
16+
],
17+
"rollForward": false
1118
}
1219
}
1320
}

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[*.fs]
2+
indent_size = 4
3+
end_of_line = lf
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
7+
[*.fsi]
8+
indent_size = 4
9+
end_of_line = lf
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[*.fsproj]
14+
indent_size = 2
15+
16+
[*.json]
17+
indent_size = 2

.fantomasignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Fantomas cannot format files containing long-ident type aliases generated by
2+
# type providers (e.g. "type Foo = Provider.Ns.GeneratedType"). Exclude them.
3+
tests/SqlClient.Tests/DataTablesTests.fs

.fantomasrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"fsharpFiles": [
3+
"src/**/*.fs",
4+
"src/**/*.fsi",
5+
"tests/**/*.fs",
6+
"build/**/*.fs"
7+
]
8+
}

.paket/paket.bootstrapper.exe

-62.8 KB
Binary file not shown.

.paket/paket.targets

Lines changed: 0 additions & 72 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

ISSUE_TEMPLATE.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ Please provide a description of any known workarounds.
2828
* Operating system
2929
* Branch
3030
* Database versions and sample databases being used
31-
* .NET Runtime, CoreCLR or Mono Version
31+
* .NET version
3232
* Editing Tools (e.g. Visual Studio Version)
33-
* Lins to F# RFCs or entries on http://fslang.uservoice.com
3433

3534

3635

README.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
This library exposes SQL Server Database objects in a type safe manner to F# code, by the mean of [Type Providers](https://docs.microsoft.com/en-us/dotnet/fsharp/tutorials/type-providers/)
44

55
You can reference it in F# Interactive that ships with Visual Studio
6+
67
```fsharp
78
#r "nuget: FSharp.Data.SqlClient"
89
open FSharp.Data
910
open FSharp.Data.SqlClient
1011
let [<Literal>] connectionString = "Server=.;Database=AdventureWorks2012;Trusted_Connection=True;"
1112
type MyCommand = SqlCommandProvider<"""
1213
select
13-
data.a
14+
data.a
1415
from
15-
(select 1 a union all select 2 union all select 3) data
16+
(select 1 a union all select 2 union all select 3) data
1617
where
17-
data.a > @data
18+
data.a > @data
1819
""", connectionString>;;
1920
2021
(new MyCommand(connectionString)).Execute(data=1)
@@ -25,14 +26,16 @@ where
2526
`dotnet fsi` is not supported yet.
2627

2728
## Quick Links
29+
2830
* [Documentation](http://fsprojects.github.io/FSharp.Data.SqlClient/)
2931
* [Release Notes](RELEASE_NOTES.md)
3032
* [Contribution Guide Lines](CONTRIBUTING.md)
3133
* [Gitter Chat Room](https://gitter.im/fsprojects/FSharp.Data.SqlClient)
3234
* [FSharp.Data.SqlClient on nuget.org](https://www.nuget.org/packages/FSharp.Data.SqlClient/)
35+
3336
## Type Providers
3437

35-
### SqlCommandProvider
38+
### SqlCommandProvider
3639

3740
Provides statically typed access to the parameters and result set of T-SQL command in idiomatic F# way <sup>(*)</sup>.
3841

@@ -54,15 +57,17 @@ do
5457
5558
cmd.Execute(topN = 3L, regionName = "United States", salesMoreThan = 1000000M) |> printfn "%A"
5659
```
60+
5761
output
62+
5863
```fsharp
5964
seq
6065
[("Pamela", "Ansman-Wolfe", 1352577.1325M);
6166
("David", "Campbell", 1573012.9383M);
6267
("Tete", "Mensa-Annan", 1576562.1966M)]
6368
```
6469

65-
### SqlProgrammabilityProvider
70+
### SqlProgrammabilityProvider
6671

6772
Exposes Tables, Stored Procedures, User-Defined Types and User-Defined Functions in F# code.
6873

@@ -77,7 +82,9 @@ do
7782
printfn "ProductAssemblyID: %i, StandardCost: %M, TotalQuantity: %M" prodAsmId cost qty
7883
| _ -> ()
7984
```
85+
8086
output
87+
8188
```fsharp
8289
ProductAssemblyID: 749, StandardCost: 2171.2942, TotalQuantity: 1.00
8390
ProductAssemblyID: 750, StandardCost: 2171.2942, TotalQuantity: 1.00
@@ -103,7 +110,9 @@ do
103110
//overnight orders shipped since Jan 1, 2008
104111
cmd.Execute( System.DateTime( 2008, 1, 1), ShipMethod.``OVERNIGHT J-FAST``) |> printfn "%A"
105112
```
113+
106114
output
115+
107116
```fsharp
108117
Some (Some 1085)
109118
```
@@ -120,15 +129,9 @@ use cmd2 = new SqlCommandProvider<SampleCommandRelative.Text, ConnectionStrings.
120129

121130
More information can be found in the [documentation](http://fsprojects.github.io/FSharp.Data.SqlClient/).
122131

123-
## Build Status
124-
125-
| Windows | Linux | NuGet |
126-
|:-------:|:-----:|:-----:|
127-
|[![Build status (Windows Server 2012, AppVeyor)](https://ci.appveyor.com/api/projects/status/gxou8oe4lt5adxbq)](https://ci.appveyor.com/project/fsgit/fsharp-data-sqlclient)|[![Build Status](https://travis-ci.org/fsprojects/FSharp.Data.SqlClient.svg?branch=master)](https://travis-ci.org/fsprojects/FSharp.Data.SqlClient)|[![NuGet Status](http://img.shields.io/nuget/v/FSharp.Data.SqlClient.svg?style=flat)](https://www.nuget.org/packages/FSharp.Data.SqlClient/)|
128-
129132
### Maintainers
130133

131-
- [@smoothdeveloper](https://github.com/smoothdeveloper)
134+
* [@smoothdeveloper](https://github.com/smoothdeveloper)
132135

133136
The default maintainer account for projects under "fsprojects" is [@fsprojectsgit](https://github.com/fsprojectsgit) - F# Community Project Incubation Space (repo management)
134137

RELEASE_NOTES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#### 3.0.0-beta-1
2+
3+
* Update engineering for .NET 9 only
4+
* Contributor: Don Syme (https://github.com/dsyme)
5+
16
#### 2.1.3 April 30, 2024
27

38
* Issue #440 Toolchain and SDK adjustments, deprecated runtime support for net40

0 commit comments

Comments
 (0)