-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.config
61 lines (51 loc) · 2.6 KB
/
App.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="EntityGateConfigs" type="MetallicBlueDev.EntityGate.Configuration.EntityGateSectionHandler, MetallicBlueDev.EntityGate" />
</configSections>
<connectionStrings>
<add name="SampleDbInstance" connectionString="DATABASE=MyDbName;SERVER=my-db-host;Integrated Security=False;USER ID=MyUserName;PASSWORD=MyPassword;" providerName="System.Data.SqlClient" />
<add name="OtherDbInstance" connectionString="DATABASE=OtherDbName;SERVER=other-db-host;Integrated Security=False;USER ID=OtherUserName;PASSWORD=OtherPassword;" providerName="System.Data.SqlClient" />
<add name="DbInstance1" connectionString="DATABASE=OtherDbName;SERVER=other-db-host;Integrated Security=False;USER ID=OtherUserName;PASSWORD=OtherPassword;" providerName="System.Data.SqlClient" />
<add name="DbInstance2" connectionString="DATABASE=OtherDbName;SERVER=other-db-host;Integrated Security=False;USER ID=OtherUserName;PASSWORD=OtherPassword;" providerName="System.Data.SqlClient" />
</connectionStrings>
<EntityGateConfigs>
<EntityGateConfig>
<!--
Name of the connection string to use.
It must exist in the connectionStrings section.
-->
<ConnectionName>SampleDbInstance</ConnectionName>
<!-- Optional: Maximum number of attempts after a failure. -->
<MaximumNumberOfAttempts>5</MaximumNumberOfAttempts>
<!-- Optional: Waiting time after a failure. -->
<AttemptDelay>1000</AttemptDelay>
<!-- Optional: Timeout. -->
<Timeout>30</Timeout>
<!-- Optional: EF LazyLoading. -->
<LazyLoading>False</LazyLoading>
<!-- Optional: Determines if the backup of the original values is performed automatically. -->
<AutomaticCheckOfOriginalValues>False</AutomaticCheckOfOriginalValues>
</EntityGateConfig>
<!-- Additional example. -->
<EntityGateConfig>
<!-- Minimum configuration -->
<ConnectionName>DbInstance2</ConnectionName>
</EntityGateConfig>
<EntityGateConfig>
<ConnectionName>OtherDbInstance</ConnectionName>
<MaximumNumberOfAttempts>3</MaximumNumberOfAttempts>
<AttemptDelay>900</AttemptDelay>
<Timeout>40</Timeout>
</EntityGateConfig>
<EntityGateConfig>
<ConnectionName>DbInstance1</ConnectionName>
<LazyLoading>False</LazyLoading>
</EntityGateConfig>
<EntityGateConfig>
<ConnectionName>DbInstance2</ConnectionName>
<Timeout>1000</Timeout>
<AutomaticCheckOfOriginalValues>False</AutomaticCheckOfOriginalValues>
</EntityGateConfig>
</EntityGateConfigs>
</configuration>