|
Revision 16280, 393 bytes
(checked in by everaldo, 4 months ago)
|
config class sample added
|
| Line | |
|---|
| 1 |
using System; |
|---|
| 2 |
using Midgard; |
|---|
| 3 |
|
|---|
| 4 |
namespace MidgardSample |
|---|
| 5 |
{ |
|---|
| 6 |
public class ConfigSample |
|---|
| 7 |
{ |
|---|
| 8 |
public static void Main (string[] args) |
|---|
| 9 |
{ |
|---|
| 10 |
Midgard.Context.Init (); |
|---|
| 11 |
|
|---|
| 12 |
Midgard.Config cfg = new Midgard.Config (); |
|---|
| 13 |
cfg.DatabaseType = "SQLite"; |
|---|
| 14 |
cfg.DatabaseName = "midgard"; |
|---|
| 15 |
cfg.SaveFile ("monotest", true); |
|---|
| 16 |
|
|---|
| 17 |
Connection conn = new Midgard.Connection (); |
|---|
| 18 |
conn.OpenConfig (cfg); |
|---|
| 19 |
} |
|---|
| 20 |
} |
|---|
| 21 |
} |
|---|