SHARE
TWEET

Untitled

a guest Jan 21st, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using static System.Console;
  2.  
  3. namespace NamedService.Database
  4. {
  5.   public interface IDatabase
  6.   {
  7.     void Execute();
  8.   }
  9.    
  10.   public class PostgresDatabase : IDatabase
  11.   {
  12.     public void Execute()
  13.     {
  14.       WriteLine("Execute on Postgres....");
  15.     }
  16.   }
  17.  
  18.   public class SqlServerDatabase : IDatabase
  19.   {
  20.     public void Execute()
  21.     {
  22.       WriteLine("Execute on SQL Server....");
  23.     }
  24.   }
  25.  
  26.   public enum Databases
  27.   {
  28.     SqlServer,
  29.     Postgres
  30.   }
  31. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top