blob: fff0eebeada8a03355d76889499d357483fdaeb2 (
plain)
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
|
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Web;
using Tango.BL;
using Tango.Core;
namespace Tango.MachineService.Helpers
{
public static class ObservablesContextHelper
{
public static ObservablesContext CreateContext()
{
return new ObservablesContext(new DataSource()
{
Address = Config.DB_ADDRESS,
Catalog = Config.DB_CATALOG,
IntegratedSecurity = false,
Type = DataSourceType.SQLServer,
UserName = Config.DB_USER_NAME,
Password = Config.DB_PASSWORD
});
}
}
}
|