Azure SQL Federation at NHibernate

How to use federation in an Azure SQL connection using NHibernate?

For example, I want a federation to share data using CustomerID, and I want to route all session calls to a specific federation based on a custom CustomerID.

+6
source share
2 answers

Created a blog post explaining in detail how to request federations using NHibernate: Access Azure SQL Federations using NHibernate

+3
source

therefore, if you know the client ID, you just need to connect to another federation using the command:

use federation CustomerFederation (CustomerID=2) with reset, filtering=on 

where CustomerFederation, customerId is the name of the federation and your federated key. basically, just do sql before any other operation you want to do in another federation.

sorry for my English

0
source

Source: https://habr.com/ru/post/909879/


All Articles