You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					25 lines
				
				828 B
			
		
		
			
		
	
	
					25 lines
				
				828 B
			| 
								 
											2 years ago
										 
									 | 
							
								using System;
							 | 
						||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						||
| 
								 | 
							
								using System.Linq;
							 | 
						||
| 
								 | 
							
								using System.Text;
							 | 
						||
| 
								 | 
							
								using System.Threading.Tasks;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								namespace Biskilog_Accounting.Shared.Interfaces
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public interface IConnectionService
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        /// <summary>
							 | 
						||
| 
								 | 
							
								        /// Prepares and returns the connection string for a client using the specified database id
							 | 
						||
| 
								 | 
							
								        /// </summary>
							 | 
						||
| 
								 | 
							
								        /// <param name="a_databaseId">Specified database id to use</param>
							 | 
						||
| 
								 | 
							
								        /// <returns></returns>
							 | 
						||
| 
								 | 
							
								        string GetClientConnectionString(int a_databaseId);
							 | 
						||
| 
								 | 
							
								        /// <summary>
							 | 
						||
| 
								 | 
							
								        /// Prepare the DB context from the specified connection string
							 | 
						||
| 
								 | 
							
								        /// </summary>
							 | 
						||
| 
								 | 
							
								        /// <param name="a_connectionString"></param>
							 | 
						||
| 
								 | 
							
								        /// <returns>A configured BiskAcdbContext</returns>
							 | 
						||
| 
								 | 
							
								        object PrepareDBContext(string a_connectionString);
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								}
							 |