diff --git a/Database-Attribute_System/ClassAction.cs b/Database-Attribute_System/ClassAction.cs
index 62c756a..0a9c6d4 100644
--- a/Database-Attribute_System/ClassAction.cs
+++ b/Database-Attribute_System/ClassAction.cs
@@ -48,9 +48,20 @@ namespace eu.railduction.netcore.dll.Database_Attribute_System
}
+ ///
+ /// Resolves an object with the database
+ /// Needs to have primaryKey/s set!
+ /// - Generates an query
+ /// - Sends an query via Func
+ /// - Fills the object with data
+ ///
+ ///
+ /// 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)
{
- string query = QueryBuilder.SelectByPrimaryKeys(classObject);
+ string query = QueryBuilder.SelectByPrimaryKey(classObject);
Dictionary data = queryExecutor(query);
FillObject(classObject, data, ignoreDataAttributeNotInClass);
}