/ss.cs Secret
Created
April 19, 2024 08:09
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Veri erişim kodumuz | |
class DataAccess | |
{ | |
private IDatabaseConnection databaseConnection; | |
public DataAccess(IDatabaseConnection databaseConnection) | |
{ | |
this.databaseConnection = databaseConnection; | |
} | |
public DataTable GetCustomerList() | |
{ | |
databaseConnection.Connect("connection string"); | |
var dataTable = databaseConnection.ExecuteQuery("SELECT * FROM Customers"); | |
databaseConnection.Close(); | |
return dataTable; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment