/// <summary> /// Generates the parameters. /// </summary> /// <param name="queryObject">The query object.</param> /// <returns>The parameters</returns> private IParameter?[] GenerateParameters(TMappedClass queryObject) { var Parameters = IDProperties?.ForEach(y => y.GetColumnInfo()[0].GetAsParameter(queryObject)).ToList(); Parameters?.AddRange(ReferenceProperties?.ForEach(y => y.GetColumnInfo()[0].GetAsParameter(queryObject))); return(Parameters?.ToArray() ?? Array.Empty <IParameter>()); }
/// <summary> /// Generates the parameters. /// </summary> /// <param name="queryObject">The query object.</param> /// <returns>The parameters.</returns> private IParameter?[] GenerateParameters(TMappedClass queryObject) { var ORMObject = queryObject as IORMObject; var Parameters = IDProperties.ForEach(y => y.GetColumnInfo()[0].GetAsParameter(queryObject)).ToList(); Parameters.AddRange(ReferenceProperties.ForEach(y => y.GetColumnInfo()[0].GetAsParameter(queryObject))); return(Parameters.ToArray()); }