Base solution for your next web application
Open Closed

cloning an identity list #4842


User avatar
0
BobIngham created

aspnet-core angular, 5.1.0 In my host have a root organization unit for templates. During tenant registration these templates are displayed as a drop down list. The tenant selects a template option and the required entities for the template should be loaded for the tenant. I load the relevant entities from the host. So far so good. I then try save these entities for the registration tenant but the system throws an error. The repository seems to have no .AsNoTracking() option My question is: How do I clone an identity list with the Zero repository?


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    The repository seems to have no .AsNoTracking() option

    .AsNoTracking() is performed on an IQueryable:

    var query = _repository.GetAll().AsNoTracking();
    

    Related: #4530@160644cc-5eb2-4aa1-8f92-e9fc7127f218