From fb6cf1440207b28330235d2879ef9117365c3bbc Mon Sep 17 00:00:00 2001 From: Railz Date: Mon, 1 Apr 2019 18:52:38 +0200 Subject: [PATCH] Fixed ResolveByPrimaryKey not having runDataLossChecks implemented --- Database-Attribute_System/ClassAction.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Database-Attribute_System/ClassAction.cs b/Database-Attribute_System/ClassAction.cs index 3c9a032..2797c41 100644 --- a/Database-Attribute_System/ClassAction.cs +++ b/Database-Attribute_System/ClassAction.cs @@ -85,12 +85,12 @@ 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 disables errors when class-field has no data-attribute - public static void ResolveByPrimaryKey(T classObject, Func> queryExecutor, bool ignoreDataAttributeNotInClass = false) + /// 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) { string query = QueryBuilder.SelectByPrimaryKey(classObject); Dictionary data = queryExecutor(query); - FillObject(classObject, data, ignoreDataAttributeNotInClass); + FillObject(classObject, data, runDataLossChecks); } } }