示例#1
0
        /// <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>());
        }
示例#2
0
        /// <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());
        }