You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Orm/Xtensive.Orm.PostgreSql/NuGetContent/ReadMe.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,21 @@
2
2
3
3
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.
4
4
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
6
6
7
7
### Usage
8
8
9
9
Create a domain configuration configuration with connection url similar to this
Copy file name to clipboardExpand all lines: Orm/Xtensive.Orm.SqlServer/NuGetContent/ReadMe.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,21 @@
2
2
3
3
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.
4
4
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
6
6
7
7
### Usage
8
8
9
9
Create a domain configuration configuration with connection url similar to this
Copy file name to clipboardExpand all lines: Orm/Xtensive.Orm/NuGetContent/ReadMe.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,29 +3,32 @@
3
3
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.
4
4
5
5
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
Providers for the databases are available as separate packages and may be installed following way
15
15
16
+
```csharp
16
17
dotnetaddpackageXtensive.Orm.SqlServer
17
18
dotnetaddpackageXtensive.Orm.Oracle
18
19
dotnetaddpackageXtensive.Orm.PostgreSQL
19
20
dotnetaddpackageXtensive.Orm.MySql
20
21
dotnetaddpackageXtensive.Orm.Firebird
21
22
dotnetaddpackageXtensive.Orm.Sqlite
23
+
```
22
24
23
25
### Usage
24
26
25
27
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).
26
28
27
29
Create a domain configuration configuration to connect to certain database
28
30
31
+
```csharp
29
32
// create configuration with connection to Tests database on local instance of MS SQL Server
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
42
46
vardomain=Domain.Build(domainConfiguration);
47
+
```
43
48
44
49
Query data from database, modify results and/or create new entites
45
50
51
+
```csharp
46
52
// open a session to database
47
53
using (varsession=domain.OpenSession()) {
48
54
// and transaction
@@ -67,7 +73,10 @@ Query data from database, modify results and/or create new entites
0 commit comments