Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using static System.Console;
- namespace NamedService.Database
- {
- public interface IDatabase
- {
- void Execute();
- }
- public class PostgresDatabase : IDatabase
- {
- public void Execute()
- {
- WriteLine("Execute on Postgres....");
- }
- }
- public class SqlServerDatabase : IDatabase
- {
- public void Execute()
- {
- WriteLine("Execute on SQL Server....");
- }
- }
- public enum Databases
- {
- SqlServer,
- Postgres
- }
- }
Add Comment
Please, Sign In to add comment