******************** time ********************
2024-10-05 16:39:59


******************** query ********************
SELECT COALESCE((SELECT CASE COUNT(*) % 20  WHEN 0 THEN COUNT(*) / 20  ELSE COUNT(*) / 20 +1 END FROM __Android__TargetArticle__ ta JOIN __Merchandise__ m ON ta.TargetId = 1 And ta.MerchandiseId = m.Id And m.FPId = 4 WHERE ta.FPId = 4  AND (m.MerchandiseName LIKE '%%') ), 0) AS [total_page]


******************** message ********************
Invalid column name 'MerchandiseName'.
Invalid column name 'MerchandiseName'.


******************** StackTrace ********************
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
   at System.Data.SqlClient.SqlDataReader.get_MetaData()
   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)
   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1075
   at Dapper.SqlMapper.QueryRowImpl[T](IDbConnection cnn, Row row, CommandDefinition& command, Type effectiveType) in /_/Dapper/SqlMapper.cs:line 1231
   at Dapper.SqlMapper.QueryFirstOrDefault[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 774
   at BaseServices.SysDataAccessLayer.ExecuteQueryFirstOrDefault[T](IDbConnection& dbConnection, String query, Int32& errIndex, Object param, IDbTransaction dbTransaction) in C:\Users\tadbir\source\repos\androidwebservice.git\BaseServices\Services\Implementation\SysDataAccessLayer.cs:line 2190
   at BaseServices.Services.Implementation.TargetRepository.ArticleListLoad(APIHeader header, Int32 targetId, TargetArticleListFilter targetArticleListFilter) in C:\Users\tadbir\source\repos\androidwebservice.git\BaseServices\Services\Implementation\TargetRepository.cs:line 289


