Guest User

Untitled

a guest
Jan 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment