| Line | |
|---|
| 1 | using System.Configuration;
|
|---|
| 2 |
|
|---|
| 3 | namespace ExportFaktur
|
|---|
| 4 | {
|
|---|
| 5 | public class ConnString
|
|---|
| 6 | {
|
|---|
| 7 | public static string BazaReklamConnection
|
|---|
| 8 | {
|
|---|
| 9 | get
|
|---|
| 10 | {
|
|---|
| 11 | return ConfigurationManager.AppSettings["BazaReklam.Connection"];
|
|---|
| 12 | }
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | public static string CDNConnection
|
|---|
| 16 | {
|
|---|
| 17 | get
|
|---|
| 18 | {
|
|---|
| 19 | return ConfigurationManager.AppSettings["CDN.Connection"];
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | private static ConnString connectionString;
|
|---|
| 24 |
|
|---|
| 25 | private ConnString()
|
|---|
| 26 | {
|
|---|
| 27 | }
|
|---|
| 28 |
|
|---|
| 29 | public static ConnString getConnString()
|
|---|
| 30 | {
|
|---|
| 31 | if (connectionString == null)
|
|---|
| 32 | {
|
|---|
| 33 | connectionString = new ConnString();
|
|---|
| 34 | }
|
|---|
| 35 | return connectionString;
|
|---|
| 36 | }
|
|---|
| 37 | }
|
|---|
| 38 | } |
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.