31 lines
		
	
	
		
			813 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			813 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using KingInfoWebApi.Core.DBManager;
 | |
| using KingInfoWebApi.Core.Extensions.AutofacManager;
 | |
| using KingInfoWebApi.Entity.SystemModels;
 | |
| using Microsoft.EntityFrameworkCore;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| using SqlSugar;
 | |
| using KingInfoWebApi.Core.DbSqlSugar;
 | |
| 
 | |
| namespace KingInfoWebApi.Core.EFDbContext
 | |
| {
 | |
|     public class ServiceDbContext : BaseDbContext, IDependency
 | |
|     {
 | |
|         private string dbServiceId { get; set; }
 | |
| 
 | |
|         public ServiceDbContext() : base() 
 | |
|         {
 | |
|             this.dbServiceId = dbServiceId;
 | |
|             base.SqlSugarClient = DbManger.ServiceDb;
 | |
|         }
 | |
| 
 | |
|      
 | |
|         public ServiceDbContext(string dbServiceId) : base()
 | |
|         {
 | |
|             this.dbServiceId = dbServiceId;
 | |
|             base.SqlSugarClient = DbManger.ServiceDb;
 | |
|         }
 | |
|     }
 | |
| }
 | 
