Jason
06/20/2024, 1:53 PMcsharp
private IDatabase GetDatabase() =>
new Database(ConnectionString, DatabaseType.SqlServer2012, SqlClientFactory.Instance);
public async Task<IEnumerable<vessel>> GetAll()
{
using var database = GetDatabase();
return await database.FetchAsync<vessel>("SELECT * FROM " + TableName + " ORDER BY Vessel");
}
//... other repository methods
Lewis Heaton
06/20/2024, 2:04 PMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by