Skip to content

Commit 377a2e7

Browse files
committed
Update nuget packages content
- Rename build target in buildTransitive - update readme content when needed
1 parent 061f01a commit 377a2e7

File tree

8 files changed

+40
-7
lines changed

8 files changed

+40
-7
lines changed

Orm/Xtensive.Orm.Firebird/NuGetContent/ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ For now it supports Firebird 2.5.
99

1010
Create a domain configuration configuration with connection url similar to this
1111

12+
```csharp
1213
var domainConfiguration = new DomainConfiguration(@"firebird://someuser:somepassword@localhost:3050/tests");
14+
```
1315

1416
or, alternatively, use connection string like
1517

18+
```csharp
1619
var domainConfiguration = new DomainConfiguration("firebird",
1720
"User=someuser;Password=somepassword;Database=tests;DataSource=localhost;Port=3050;Dialect=3;Charset=UTF8;Role=;Connection lifetime=15;Pooling=true;MinPoolSize=0;MaxPoolSize=50;Packet Size=8192;ServerType=0");
21+
```
1822

1923
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm.MySql/NuGetContent/ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ For now it supports MySQL 5.5, 5.6
88

99
Create a domain configuration configuration with connection url similar to this
1010

11+
```csharp
1112
var domainConfiguration = new DomainConfiguration(@"mysql://someuser:somepassword@localhost:3306/tests");
13+
```
1214

1315
or, alternatively, use connection string like
1416

17+
```csharp
1518
var domainConfiguration = new DomainConfiguration("mysql",
1619
"Server=localhost;Port=3306;Database=tests;Uid=someuser;Pwd=Sometest;");
20+
```
1721

1822
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm.Oracle/NuGetContent/ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ For now it supports Oracle 10g, 11g
88

99
Create a domain configuration configuration with connection url similar to this
1010

11+
```csharp
1112
var domainConfiguration = new DomainConfiguration(@"oracle://someuser:somepassword@localhost:1521/xe");
13+
```
1214

1315
or, alternatively, use connection string like
1416

17+
```csharp
1518
var domainConfiguration = new DomainConfiguration("mysql",
1619
"DATA SOURCE="(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xe)))";USER ID=someuser;PASSWORD=somepassword");
20+
```
1721

1822
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm.PostgreSql/NuGetContent/ReadMe.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22

33
The provider is responsible for interactions with PostgreSQL database - information about features and types the storage supports, low level communications, translation of SqlDom queries to native SQL text queries.
44

5-
For now it supports PostgreSQL 8.3, 8.4, 9.x, 10, 11
5+
For now it supports PostgreSQL 8.3, 8.4, 9.x, 10, 11, 12, 13, 14, 15
66

77
### Usage
88

99
Create a domain configuration configuration with connection url similar to this
1010

11+
```csharp
1112
var domainConfiguration = new DomainConfiguration(@"postgresql://someuser:somepassword@localhost:5432/tests");
13+
```
1214

1315
or, alternatively, use connection string like
1416

17+
```csharp
1518
var domainConfiguration = new DomainConfiguration("postgresql",
1619
"HOST=DODB;PORT=5432;DATABASE=tests;USER ID=someuser;PASSWORD=somepassword");
20+
```
1721

1822
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm.SqlServer/NuGetContent/ReadMe.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22

33
The provider is responsible for interactions with MS SQL Server database - information about features and types the storage supports, low level communications, translation of SqlDom queries to native SQL text queries.
44

5-
For now it supports MS SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019
5+
For now it supports MS SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, 2022
66

77
### Usage
88

99
Create a domain configuration configuration with connection url similar to this
1010

11+
```csharp
1112
var domainConfiguration = new DomainConfiguration(@"sqlserver://someuser:somepassword@localhost/Tests?MultipleActiveResultSets=True");
13+
```
1214

1315
or, alternatively, use connection string like
1416

17+
```csharp
1518
var domainConfiguration = new DomainConfiguration("sqlserver",
1619
"Data Source=localhost;Initial Catalog=Tests;User Id=someuser;Password=somepassword;MultipleActiveResultSets=True");
20+
```
1721

1822
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm.Sqlite/NuGetContent/ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@ For now it supports Sqlite 3
88

99
Create a domain configuration configuration with connection url similar to this
1010

11+
```csharp
1112
var domainConfiguration = new DomainConfiguration(@"sqlite3:///tests.db3");
13+
```
1214

1315
or, alternatively, use connection string like
1416

17+
```csharp
1518
var domainConfiguration = new DomainConfiguration("sqlite3",
1619
"Data Source=tests.db3");
20+
```
1721

1822
After that, if connection settings are valid, build Domain and use it as usual.

Orm/Xtensive.Orm/NuGetContent/ReadMe.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,32 @@
33
DataObjects.Net is a persistence and object-relational mapping framework for the Microsoft .NET. It allows developers to define persistent objects as well as business logic directly in C#, Visual Basic or F#. The persistent objects can be retrieved by LINQ queries. Persistent data can be stored in SQL Servers. In contrast to many other ORM frameworks the database model is generated and maintained automatically.
44

55
Supported databases:
6-
- MS SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019
6+
- MS SQL Server 2008 R2, 2012, 2014, 2016, 2017, 2019, 2022
77
- MS Azure SQL Database
88
- Oracle 10g, 11g
9-
- PostgreSQL 8.3, 8.4, 9.0, 9.1, 9.2, 10, 11
9+
- PostgreSQL 8.3, 8.4, 9.x, 10, 11, 12, 13, 14, 15
1010
- MySQL 5.5, 5.6
1111
- Firebird 2.5
1212
- Sqlite 3
1313

1414
Providers for the databases are available as separate packages and may be installed following way
1515

16+
```csharp
1617
dotnet add package Xtensive.Orm.SqlServer
1718
dotnet add package Xtensive.Orm.Oracle
1819
dotnet add package Xtensive.Orm.PostgreSQL
1920
dotnet add package Xtensive.Orm.MySql
2021
dotnet add package Xtensive.Orm.Firebird
2122
dotnet add package Xtensive.Orm.Sqlite
23+
```
2224

2325
### Usage
2426

2527
The following code demonstrates basic usage of DataObjects.Net. For full tutorial configuring Domain, defining the model and querying data see our [documentation](http://help.dataobjects.net).
2628

2729
Create a domain configuration configuration to connect to certain database
2830

31+
```csharp
2932
// create configuration with connection to Tests database on local instance of MS SQL Server
3033
var domainConfiguration = new DomainConfiguration(@"sqlserver://localhost/Tests");
3134

@@ -35,14 +38,17 @@ Create a domain configuration configuration to connect to certain database
3538

3639
// create database structure from scratch
3740
domainConfiguration.UpgradeMode = DomainUpgradeMode.Recreate;
38-
41+
```
3942

4043
Build domain by the configuration created before. Usually, domain is built when the application starts and disposed just before the application shuts down.
41-
44+
45+
```csharp
4246
var domain = Domain.Build(domainConfiguration);
47+
```
4348

4449
Query data from database, modify results and/or create new entites
4550

51+
```csharp
4652
// open a session to database
4753
using (var session = domain.OpenSession()) {
4854
// and transaction
@@ -67,7 +73,10 @@ Query data from database, modify results and/or create new entites
6773
transactionScope.Complete();
6874
}
6975
}
76+
```
7077

7178
Dispose domain on application shut down
7279

73-
domain.Dispose()
80+
```csharp
81+
domain.Dispose();
82+
```

0 commit comments

Comments
 (0)