Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates for v6 release #51

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/articles/CLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ uid: cli
## Installation

> [!NOTE]
> Requres .NET Core 3.1 or higher.
> Requres .NET 6 or higher.

Install as global tool:

Expand Down
13 changes: 7 additions & 6 deletions source/articles/get-started/asp-dotnet-core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ author: khahn

# Configuring LINQ To DB for ASP.NET Core

Available since: 3.0.0-rc.0

In this walkthrough, you will configure an ASP.NET Core application to access a local SQLite Database using LINQ To DB

## Prerequisites
Expand All @@ -29,7 +27,7 @@ dotnet new webapp -o gettingStartedLinqToDBAspNet
We can now use the CLI to install LINQ To DB and database provider (SQLite in this walkthrough)

```txt
dotnet add package linq2db.AspNet
dotnet add package linq2db.Extensions
dotnet add package System.Data.SQLite.Core
```

Expand All @@ -38,7 +36,8 @@ dotnet add package System.Data.SQLite.Core
We're going to create a custom data connection to use to access LINQ To DB, create a class like this:

```C#
using LinqToDB.Configuration;
using LinqToDB.Extensions.DependencyInjection;
using LinqToDB.Extensions.Logging;
using LinqToDB.Data;

public class AppDataConnection: DataConnection
Expand Down Expand Up @@ -91,7 +90,8 @@ public class Startup
public void ConfigureServices(IServiceCollection services)
{
//...
//using LinqToDB.AspNet
//using LinqToDB.Extensions.DependencyInjection
//using LinqToDB.Extensions.Logging
services.AddLinqToDBContext<AppDataConnection>((provider, options)
=> options
//will configure the AppDataConnection to use
Expand Down Expand Up @@ -232,7 +232,8 @@ public class Startup
public void ConfigureServices(IServiceCollection services)
{
//...
//using LinqToDB.AspNet
//using LinqToDB.DependencyInjection.DependencyInjection
//using LinqToDB.DependencyInjection.Logging
services.AddLinqToDBContext<AppDataConnection>((provider, options)
=> options
//will configure the AppDataConnection to use
Expand Down
2 changes: 1 addition & 1 deletion source/articles/get-started/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: sdanyliv

# Installing LINQ To DB from Nuget

You can develop many different types of applications that target .NET (Core), .NET Framework, or other platforms supported by LINQ To DB.
You can develop many different types of applications that target .NET, .NET Framework, or other platforms supported by LINQ To DB.

* install main `linq2db` package: `nuget install linq2db`
* install ADO.NET provider(s) from nuget (if they available on nuget) or locally for providers with custom installer
2 changes: 1 addition & 1 deletion source/articles/get-started/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
href: install/index.md
- name: Use with Existing Database
href: full-dotnet/existing-db.md
- name: ASP.NET Core
- name: ASP.NET Application Example
href: asp-dotnet-core/index.md
8 changes: 4 additions & 4 deletions source/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
"src": [
{
"files": [
"linq2db/Source/LinqToDB.AspNet/LinqToDB.AspNet.csproj"
"linq2db/Source/LinqToDB.Extensions/LinqToDB.Extensions.csproj"
],
"src": "../submodules"
}
],
"dest": "api/linq2db.aspnet",
"globalNamespaceId": "linq2db.aspnet",
"dest": "api/linq2db.extensions",
"globalNamespaceId": "linq2db.extensions",
"filter": "filterConfig.yml"
},
{
Expand Down Expand Up @@ -102,7 +102,7 @@
"files": [
"api/linq2db/*.yml",
"api/linq2db.tools/*.yml",
"api/linq2db.aspnet/*.yml",
"api/linq2db.extensions/*.yml",
"api/linq2db.efcore/*.yml",
"api/linq2db.identity/*.yml",
"api/linq2db.remote.grpc/*.yml",
Expand Down
9 changes: 0 additions & 9 deletions source/filterConfig.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1 @@
apiRules:
- exclude:
uidRegex: ^System\.Object\..*
type: Member
- exclude:
uidRegex: ^LinqToDB\.AnalyticFunctions\.I.*
type: Interface
- exclude:
uidRegex: ^System\.Attribute\..*
type: Member
4 changes: 2 additions & 2 deletions source/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
items:
- name: Linq To DB
href: api/linq2db/
- name: Linq To DB for ASP.NET Core
href: api/linq2db.aspnet/
- name: Linq To DB Extensions
href: api/linq2db.extensions/
- name: Linq To DB over GRPC
href: api/linq2db.remote.grpc/
- name: Linq To DB over WCF
Expand Down
Loading