Skip to content

Commit f3316a5

Browse files
feat: EF samples & refactoring
1 parent 0196164 commit f3316a5

Some content is hidden

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

62 files changed

+1325
-697
lines changed

examples/README.md

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,13 @@
1-
# YDB .NET SDK Examples
1+
# YDB .NET Ecosystem Examples
22

3-
## Prerequisites
4-
.NET 6
3+
Sample projects for working with YDB in .NET.
54

6-
## Running examples
5+
## Projects
76

8-
1. Clone repository
9-
```bash
10-
git clone https://github.com/ydb-platform/ydb-dotnet-sdk.git
11-
```
12-
13-
2. Build solution
14-
```bash
15-
cd ydb-dotnet-sdk/examples/src
16-
dotnet build
17-
```
18-
19-
3. Run example
20-
```bash
21-
cd <ExampleName>
22-
dotnet run -e <Endpoint> -d <Database>
23-
```
24-
25-
## Provided examples
26-
27-
### BasicExample
28-
Demonstrates basic operations with YDB, including:
29-
* Driver initialization
30-
* Table client initialization
31-
* Table creation via SchemeQuery (DDL)
32-
* Data queries (OLTP) & transactions (read, modify)
33-
* Interactive transactions
34-
* ReadTable for streaming read of table contents
35-
* ScanQuery for streaming wide queries (OLAP)
7+
- **Ydb.Sdk.AdoNet.QuickStart** – Quickstart for using YDB with ADO.NET.
8+
- **Ydb.Sdk.AdoNet.Dapper.QuickStart** – Example of Dapper usage with YDB.
9+
- **Ydb.Sdk.AdoNet.Yandex.Cloud** – Connecting to YDB in Yandex Cloud via ADO.NET.
10+
- **EntityFrameworkCore.Ydb.QuickStart** – Quickstart for YDB + Entity Framework Core.
11+
- **EntityFrameworkCore.Ydb.Samples** – Extended Entity Framework Core samples.
12+
- **EntityFrameworkCore.Ydb.Yandex.Cloud** – Example of EF Core with YDB in Yandex Cloud.
13+
- **Ydb.Sdk.Topic.QuickStart** – Example for Topic API.

examples/src/BasicExample/BasicExample.cs

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

examples/src/BasicExample/BasicExample.csproj

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

examples/src/BasicExample/DataQuery.cs

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

examples/src/BasicExample/FillData.cs

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

examples/src/BasicExample/InteractiveTx.cs

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

0 commit comments

Comments
 (0)