******************** time ********************
2024-11-02 15:52:51


******************** query ********************
SELECT tb.*, t.Name AS TargetName FROM __Android__BrokerTarget__ bt JOIN __Android__Target__ t ON bt.TargetId = t.Id AND bt.FPId = t.FPId WHERE bt.FPId = 4 AND bt.BrokerId = 7  AND (t.Name LIKE '%%')  ORDER BY ta.Id   DESC  OFFSET (1 - 1) * 20  ROWS FETCH NEXT 20 ROWS ONLY


******************** message ********************
The column prefix 'tb' does not match with a table name or alias name used in the query.
The multi-part identifier "ta.Id" could not be bound.


******************** 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.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1094
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 734
   at BaseServices.SysDataAccessLayer.ExecuteQuery[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 2216
   at BaseServices.Services.Implementation.TargetRepository.LoadBrokerTargetList(APIHeader header, Int32 brokerId, BrokerTargetListFilter brokerTargetListFilter) in C:\Users\tadbir\source\repos\androidwebservice.git\BaseServices\Services\Implementation\TargetRepository.cs:line 746


