|
Wersja 2, 0.6 KB
(wprowadzona przez dorota, 17 years temu)
|
|
|
| Rev | Line | |
|---|
| [2] | 1 | using System;
|
|---|
| 2 | using System.Collections.Generic;
|
|---|
| 3 | using System.Text;
|
|---|
| 4 |
|
|---|
| 5 | namespace Baza_Reklam
|
|---|
| 6 | {
|
|---|
| 7 | class ConnString
|
|---|
| 8 | {
|
|---|
| 9 | private string value;
|
|---|
| 10 |
|
|---|
| 11 | public string Value
|
|---|
| 12 | {
|
|---|
| 13 | get { return this.value; }
|
|---|
| 14 | set { this.value = value; }
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | private static ConnString connectionString;
|
|---|
| 18 |
|
|---|
| 19 | private ConnString() {
|
|---|
| 20 | }
|
|---|
| 21 |
|
|---|
| 22 | public static ConnString getConnString()
|
|---|
| 23 | {
|
|---|
| 24 | if (connectionString == null){
|
|---|
| 25 | connectionString = new ConnString();
|
|---|
| 26 | }
|
|---|
| 27 | return connectionString;
|
|---|
| 28 | }
|
|---|
| 29 | }
|
|---|
| 30 | }
|
|---|
Notatka: Zobacz
TracBrowser
aby uzyskać więcej informacji.