diff --git a/Database-Attribute_System/ClassAction.cs b/Database-Attribute_System/ClassAction.cs index b1c030e..e1f7b82 100644 --- a/Database-Attribute_System/ClassAction.cs +++ b/Database-Attribute_System/ClassAction.cs @@ -82,11 +82,11 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System /// Given object (marked with Db-attributes) /// Function to handle query-calls - Has to return Dictionary[attributeName, attributeValue] /// This checks if any class-field and data-attribute does not exists in either (Slower) - public static void ResolveByPrimaryKey(T classObject, Func> queryExecutor, bool runDataLossChecks = true) + public static void ResolveByPrimaryKey(T classObject, Func>> queryExecutor, bool runDataLossChecks = true) { string query = QueryBuilder.SelectByPrimaryKey(classObject); - Dictionary data = queryExecutor(query); - FillObject(classObject, data, runDataLossChecks); + List> dataSet = queryExecutor(query); + FillObject(classObject, dataSet[0], runDataLossChecks); } } }