Base solution for your next web application

Activities of "yekalkan"

Hi,

We have a CodeProject article about that.

<a class="postlink" href="https://www.codeproject.com/Articles/1199648/Using-Stored-Procedure-User-Defined-Function-and-V">https://www.codeproject.com/Articles/11 ... tion-and-V</a>

Hi,

<a class="postlink" href="https://stackoverflow.com/questions/17883481/delete-a-file-named-nul-on-windows">https://stackoverflow.com/questions/178 ... on-windows</a>

i'm not sure if this works but it's a known issue.

hi,

No, your changes certainly doesn't break anything.

Your license code seems outdated. Go to <a class="postlink" href="https://aspnetzero.com/download">https://aspnetzero.com/download</a> and download a new project with same company and project name. Copy the license code to your project. it should be working.

Normally you don't have to do this, but your case is exceptional.

Hello,

You have to get the transaction manually. That should fix your problem:

private readonly IActiveTransactionProvider _transactionProvider;

       public YourRepository(. . . . .  IActiveTransactionProvider transactionProvider)
            : base(dbContextProvider)
        {
           .
           .
            _transactionProvider = transactionProvider;
        }
        .
        .
       cmd.CommandText = "EXTERNAL_API@ImportExternalAction";
       cmd.CommandType = CommandType.StoredProcedure;


           cmd.Transaction = (DbTransaction)_transactionProvider.GetActiveTransaction(new ActiveTransactionProviderArgs
            {
                {"ContextType", typeof(YourAppDbContext) },
                {"MultiTenancySide", MultiTenancySide }
            });


        cmd.Parameters.Add(new SqlParameter("i_ContactId", contactId));
        cmd.Parameters.Add(new SqlParameter("i_PackageCode", packageCode));
        .
        .
Showing 311 to 314 of 314 entries