List returning null in Middle Tier
Posted: Sun Aug 10, 2025 10:09 am
Hello-
This code works fine with a local db and server, but is returning null when run in Middle Tier :
This code is fetching data that populates an OD grid.
Here is that code:
It's similar to what's used on Employees.cs and Routings.cs so i can't figure out why no list is being returned?
This code works fine with a local db and server, but is returning null when run in Middle Tier :
Code: Select all
listAnesthVSData = AnesthVSDatas.CreateObjects(anestheticRecordNum);Here is that code:
Code: Select all
public static List<AnesthVSData> CreateObjects(long anestheticRecordNum) {
if(RemotingClient.MiddleTierRole == MiddleTierRole.ClientMT) {
return Meth.GetObject<List<AnesthVSData>>(MethodBase.GetCurrentMethod(),anestheticRecordNum);
}
string dbName = FormAnesthesia.GetODDbName();
string command="SELECT * FROM " + dbName + "." + "anesthvsdata WHERE AnestheticRecordNum = " + POut.Long(anestheticRecordNum) + " ORDER BY VSTimeStamp DESC";
return Crud.AnesthVSDataCrud.SelectMany(command);
}