annotate Tools/DocGen/Content/Doc/Data/OpenConfig1.htm @ 8:a34cfdde80d6

removed strong signing added FrameworkPathOverride for linux builds
author cin
date Wed, 29 Nov 2017 12:43:52 +0300
parents f990fcb411a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
1 <% title # Configure using app.config %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
2 <% group # Configuration %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
3 <% order # 10 %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
4 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
5 Since Microsoft has released FW 2.0 and the <b>&lt;connectionStrings&gt;</b> section of
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
6 configuration file is available, it should be used. This configuration method is preferable.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
7 The following method demonstrates this ability.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
8 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
9 OpenConfig1FW2.cs
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
10 <% ..\..\..\HowTo\Data\OpenConfig1FW2.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
11 App.config
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
12 <% Doc\Data\App1.config %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
13
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
14 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
15 In addition <b>BLToolkit</b> supports an alternative way which uses the <b>&lt;appSettings&gt;</b> section.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
16 At the bottom of this page you can find a demo <a href='#cfg'>App.config</a> file with a few examples.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
17 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
18 <p class='j'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
19 <b>BLToolkit</b> recognizes configuration strings in the <b>&lt;appSettings&gt;</b> section
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
20 by looking for a <b>ConnectionString</b> key prefix. Actual key value can be the following:
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
21
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
22 <table class='data'>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
23 <tr><th>key value</th><th>Provider</th><th>Configuration</th></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
24 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString"</span></td><td align='right'>default provider</td><td align='right'>default configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
25 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString.Foo.Bar"</span></td><td align='right'>'Foo' provider</td><td align='right'>'Bar' configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
26 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString.Foo."</span></td><td align='right'>'Foo' provider</td><td align='right'>default configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
27 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString.Foo"</span></td><td align='right'>default provider</td><td align='right'>'Foo' configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
28 <tr><td align='right'>or</td><td align='right'>'Foo' provider</td><td align='right'>default configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
29 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString..Foo"</span></td><td align='right'>default provider</td><td align='right'>'Foo' configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
30 <tr><td><span class='kw'>key</span>=<span class='str'>"ConnectionString..Foo.Bar"</span></td><td align='right'>default provider</td><td align='right'>'Foo.Bar' configuration</td></tr>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
31 </table>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
32
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
33 Default provider is <b>SqlDataProvider</b>.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
34 See also <a href='DataProvider/index.htm'>Data Providers</a>.
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
35 </p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
36
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
37 OpenConfig1.cs
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
38 <% ..\..\..\HowTo\Data\OpenConfig1.cs %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
39 <a name='cfg'/>App.config
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
40 <% ..\..\..\UnitTests\All\App.config %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
41
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
42 <p class='j'>The default configuration can be set by a configuration file:</p>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
43 App.config
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
44 <% Doc\Data\App2.config %>
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
45
f990fcb411a9 Копия текущей версии из github
cin
parents:
diff changeset
46 <a href="CreateSql.htm">Create.sql script</a>