Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "bilalhaidar"

Thanks :)

Thanks :).

Also, I think it is being cached so that not to go through all the cycle again, according to documentation.

I was confused as I couldn't find an Ioc registration for IAbpSession. Now that I know the ClaimsAbpSession is the only implementation it makes since with conventional registration, IAbpSession got resolved, and first time IAbpSession.TenantId is called, it will resolve it, correct?

Why the 2 versions to support SPA and multi-page?

Thanks,

Also, I searched for the place where IAbpSession is hooked to ClaimsAbpSession and I couldn't find where you do this mapping.

Is this considered a conventional registration since their names are: IAbpSession and ClaimsAbpSession?

Also, would it be possible to comment on this thread with some guidance from you :-) #3111

Yes this is the code inside custom repository.
I define a new interface in the .Core app. Then the implementation is inside .Entityframework project

Thanks I'll check the logic used in this case.

Hi Ismail, I ended up with this functional code, in case someone else needs it:

public async Task<DataTable> GetPocPivotQueueAsync(int? tenantId, string filter)
        {
            return await Task.Run(() =>
            {
                return GetPocPivotQueue(tenantId, filter);
            });
        }

        public DataTable GetPocPivotQueue(int? tenantId, string filter)
        {
            // creates resulting Queue
            var result = new DataTable();

            SqlCommand cmd = null;
            try
            {
                // prepare command
                cmd = new SqlCommand("[dbo].[sp_GetPocInPivot]", (SqlConnection)this.Context.Database.Connection);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.AddWithValue("@TenantId", tenantId.HasValue ? tenantId.Value : (object)DBNull.Value);
                cmd.Parameters.AddWithValue("@Filter", string.IsNullOrEmpty(filter) ? (object)DBNull.Value : filter);

                // Use DataTables to extract the whole table in one hit
                using (SqlDataAdapter da = new SqlDataAdapter(cmd))
                {
                    // fill the datatable
                    da.Fill(result);
                }
            }
            finally
            {
                if (cmd != null)
                {
                    // close command
                    cmd.Dispose();
                }
            }

            return result;
        }

Oh that's great!

Can you point me to where is this implemented (Url)

Welcome :)

Showing 171 to 180 of 461 entries