This repository has been archived on 2022-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
DevOpsOpenHack/support/simulator/DeviceSim/DataObjects/ModelExtensions/mydrivingDBContext.cs

25 lines
669 B
C#
Raw Permalink Normal View History

2022-11-03 20:41:13 +00:00
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using DeviceSim.Helpers;
namespace DeviceSim.DataObjects.Models
{
public partial class mydrivingDBContext : DbContext
{
private string _connectionString;
public string connString
{
get { return _connectionString; }
set { _connectionString = value; }
}
public mydrivingDBContext(DBConnectionInfo dBConnectionInfo) : base()
{
ConnectionStringHelper csHelper = new ConnectionStringHelper(dBConnectionInfo);
connString = csHelper.ConnectionString;
}
}
}