This commit is contained in:
@@ -13,21 +13,8 @@ using AyaNova.Models;
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
/*
|
||||
|
||||
using (var command = ct.Database.GetDbConnection().CreateCommand())
|
||||
{
|
||||
command.CommandText = $"SELECT m.name FROM awidget AS m WHERE m.id = {id} LIMIT 1";
|
||||
ct.Database.OpenConnection();
|
||||
using (var dr = command.ExecuteReader())
|
||||
{
|
||||
|
||||
// do something with result
|
||||
return dr.Read() ? dr.GetString(0) : "UNKNOWN";
|
||||
}
|
||||
}
|
||||
*/
|
||||
//Turn a type and ID into a displayable name
|
||||
//this version uses a direct DataReader for performance in tight loops (search)
|
||||
internal static class BizObjectNameFetcherDirect
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user