| 12345678910111213141516171819202122232425262728 |
- using Microsoft.Extensions.Configuration;
- using Npgsql;
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Threading.Tasks;
- namespace WK_KLI_LAPS_COMMONTOOL_Service.App_Data
- {
- public class ConnectionBase
- {
- public static IDbConnection Connection
- {
- get
- {
- string constr = Startup.Configuration.GetValue<string>("DBInfo:ConnectionString");
- return new NpgsqlConnection(constr);
- }
- }
- public class ResultMaster
- {
- public int Result { get; set; }
- public string Message { get; set; }
- }
- }
- }
|