This commit is contained in:
2020-01-20 18:43:02 +00:00
parent 7d92f15439
commit af99720eda
3 changed files with 13 additions and 16 deletions

View File

@@ -13,15 +13,13 @@ namespace AyaNova.Biz
{
//Build the SELECT portion of a list query based on the template, mini or full and the object key in question
public static string Build(string objectKey, string template, bool mini)
public static string Build( List<AyaObjectFieldDefinition> objectFieldsList, string template, bool mini)
{
//parse the template
var jtemplate = JObject.Parse(template);
//get the fields list
var objectFieldsList = AyaObjectFieldDefinitions.AyaObjectFields(objectKey);
//convert to strings array (https://stackoverflow.com/a/33836599/8939)
string[] templateFieldList;
if (mini)