Base solution for your next web application
Open Closed

EntityFrameWork Extentions Trial #10457


User avatar
0
QuickApp created

While trying to use BulkInsert methods I get the following error.

ERROR_005: The monthly trial period is expired. You can extend your trial by downloading the latest version at the beginning of every month. More information can be found here: https://entityframework-extensions.net/trial

It looks like you have been providing us a trial library in solution. What is the solution to this situation? Or am I doing something wrong to use BulkInsert

Here is my code; private void EntityBulkCopyQAppViewFieldLayout(IEnumerable<QAppViewFieldLayout> sourceAppViewFieldLayouts) { Z.EntityFramework.Extensions.EntityFrameworkManager.ContextFactory = DbContext => DbContext;

        var targetDtos = sourceAppViewFieldLayouts.Select(e => ObjectMapper.Map&lt;CreateOrEditQAppViewFieldLayoutDto&gt;(e)).ToList();

        targetDtos.ForEach(e => e.QAppViewId = (int)_IdCatalog[typeof(QAppView)][e.QAppViewId]);
        
        targetDtos.Where(e => e.QAppFieldId > 0)
             .ToList()
             .ForEach(e => e.QAppFieldId = (int)_IdCatalog[typeof(QAppField)][e.QAppFieldId]);
        targetDtos.ForEach(e => e.Id = null);

        var targetEntities = targetDtos.Select(e => ObjectMapper.Map&lt;QAppViewFieldLayout&gt;(e)).ToList();

        DbContext.BulkInsert(targetEntities);
    }

4 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    https://entityframework-extensions.net/ library is a paid library and it is not included in AspNet Zero.

    https://entityframework-plus.net/ on the other hand is provided by the same company and it is free. We are using this one in AspNet Boilerplate.

    So, did you add a reference to https://entityframework-extensions.net/ to your project or was it there when you download it ?

    Thanks,

  • User Avatar
    0
    AuroraBMS created

    HI @ismcagdas,

    I'm experiecning the same issue currently.

    I've tried using the bulk insert as well now. It was however on a freshly created project with a bunch of standard entities created without any custom code yet.

    I've had this a few times when trying to use it on a from scratch project when you migrate versions and have been getting it for a while now. Attempted to use it with 11.0.1 now again as I am getting stuck on standard repository functions not working with hangfire. Below is the error:

    ERROR_005: The monthly trial period is expired (2022-01-01). You can extend your trial by downloading the latest version as the beginning of every month. More information can be found here: https://entityframework-extensions.net/trial

    System.Exception: ERROR_005: The monthly trial period is expired (2022-01-01). You can extend your trial by downloading the latest version as the beginning of every month. More information can be found here: https://entityframework-extensions.net/trial at .(ProviderType , Boolean , Boolean , Boolean , Boolean ) at Z.BulkOperations.BulkOperation.Execute() at Z.BulkOperations.BulkOperation.BulkInsert() at .BulkInsert[T](DbContext this, IEntityType entityType, IEnumerable1 list, Action1 options, SavingSelector savingSelector, Boolean forceSpecificTypeMapping) at .BulkInsert[T](DbContext this, IEnumerable1 entities, Action1 options, Boolean isBulkSaveChanges) at .(DbContext this, List1 , Action1 ) at .(DbContext this, StateManager , IReadOnlyList1 , Action1 ) at .(DbContext this, StateManager , IReadOnlyList1 , Action1 ) at .(DbContext this, Action1 , DbContext ) at DbContextExtensions.BulkSaveChanges(DbContext this, Action1 options) at DbContextExtensions.BulkSaveChanges(DbContext this) at BRM.Web.Startup.Hangfire.DataSyncs.Inbound.BusinessPartnerMasterDataInboundSync.Execute(Int32 number) in C:\Users\user\Source\Repos\BRMV11.0.1\aspnet-core\src\BRM.Web.Host\Startup\Hangfire\DataSyncs\Inbound\BusinessPartnerMasterDataInboundSync.cs:line 149 at Castle.Proxies.BusinessPartnerMasterDataInboundSyncProxy.Execute_callback(Int32 number) at Castle.Proxies.Invocations.BusinessPartnerMasterDataInboundSync_Execute.InvokeMethodOnTarget() at Castle.DynamicProxy.AbstractInvocation.Proceed() at Abp.Domain.Uow.UnitOfWorkInterceptor.InterceptSynchronous(IInvocation invocation) at Castle.DynamicProxy.AsyncDeterminationInterceptor.Intercept(IInvocation invocation) at Castle.DynamicProxy.AbstractInvocation.Proceed() at Castle.Proxies.BusinessPartnerMasterDataInboundSyncProxy.Execute(Int32 number)

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @AuroraBMS

    If I understand you correctly, you are using the paid version. You should use https://entityframework-plus.net/ . This is not related to AspNet Zero.

  • User Avatar
    0
    [email protected] created

    We are also facing similar issue. We have downloaded the aspnetzero project and after developing for a month we are seeing this error. We did not add this nuget explicitly. **

    <br> and this is the current state of package reference

    ** <span class="colour" style="color: rgb(0, 0, 0);">Are you suggesting it's a bug in aspnetzero (for this reference), and we should replace it with </span>

    Z.EntityFramework.Plus.EF6 (https://entityframework-plus.net/ )