I'm glad to announce that DataObjects.Net 4.6.0 is released. This post provides an overview of changes and improvements in 4.6 version. They would be explained with more details in future posts.
Quick domain configuration example:
<domain name="mySqliteDomain"
providerName="sqlite"
connectionString="Data Source=mydatabase.db" />
You'll also need to add reference to Xtensive.Orm.Sqlite.dll assembly in your project.
The following examples maps model to two schemas based on entity namespaces:
<domain name="myDomainWithTwoSchemas" defaultSchema="dbo">
<mappingRules>
<rule namespace="MyApp.Model.Foo" schema="foo" />
<rule namespace="MyApp.Model.Bar" schema="bar" />
</mappingRules>
</domain>
I'll cover multi-mapping configurations in future posts.
SQLite provider
SQLite has joined the list of supported databases.Quick domain configuration example:
<domain name="mySqliteDomain"
providerName="sqlite"
connectionString="Data Source=mydatabase.db" />
You'll also need to add reference to Xtensive.Orm.Sqlite.dll assembly in your project.
Mapping to multiple schemas and even databases
Since 4.6 it's possible to map persistent model to multiple schemas and databases.The following examples maps model to two schemas based on entity namespaces:
<domain name="myDomainWithTwoSchemas" defaultSchema="dbo">
<mappingRules>
<rule namespace="MyApp.Model.Foo" schema="foo" />
<rule namespace="MyApp.Model.Bar" schema="bar" />
</mappingRules>
</domain>
I'll cover multi-mapping configurations in future posts.
Multiple schema support, you are great!
ReplyDeleteExcellent stuff! Congratulations.
ReplyDelete