@ryancyq - Thank you for all the information, I really appreciate the help!
@ryancyq - thank you for the information and patience. This is my first real experience with EF and code-first and its got a learning curve. I was looking at the Microsoft document today and I was wondering why the RAD tool doesnt add ICollections to the foreign keys but I made the assumption it only knows a relationship exists through the foreign key not to create a collection.
Should I be adding ICollections to my master/parent tables?
Would it be possible for us to get information about what technology you are looking at for integration with reporting and ANZ? I have a need now and would like to build items that could be brought over with minimal effort if possible.
@alexanderpilhar - glad it worked out for you. I do the same and the problem persists. The action menu is even under the datatable footer. For some reason I just can't get the UL to the top. Would you share your complete action HTML so I can see if I have something different?
So maybe I'm thinking about this incorrectly. How would I preform a one to many relationship with ANZ with only a single primary key?
@alexanderpilhar - I have the same problem. I have traced it back to the z-index. The Modal has a Z-Index of 1050 and since this inherits from the container parent it only has 1000. I have done everything to get this changed but I still have the issue. I am able to get it show somewhat by removing the container="body" in the parent div. Here is my current code based on information here:
<td style="width: 130px;" [hidden]="!isGrantedAny('Pages.PurchaseOrderDetails.Edit', 'Pages.PurchaseOrderDetails.Delete')"> <div class="btn-group dropdown" dropdown> <!-- REMOVED container="body" --> <a class="dropdown-toggle btn btn-sm btn-primary" dropdownToggle> <i class="fa fa-cog"></i><span class="caret"></span> {{l("Actions")}} </a> <ul id="test" class="dropdown-menu show" *dropdownMenu> <li> <a href="javascript:;" (click)="viewPurchaseOrderDetailModal.show(record)">{{l('View')}}</a> </li> <li> <a href="javascript:;" *ngIf="permission.isGranted('Pages.PurchaseOrderDetails.Edit')" (click)="createOrEditPurchaseOrderDetailModal.show(record.purchaseOrderDetail.purchaseOrderId)">{{l('Edit')}}</a> </li> <li> <a href="javascript:;" *ngIf="permission.isGranted('Pages.PurchaseOrderDetails.Delete')" (click)="deletePurchaseOrderDetail(record.purchaseOrderDetail)">{{l('Delete')}}</a> </li> </ul> </div> </td>
This is a vauge response. What will be lost? How would you recommend maintaining the appropriate parent child relationship as the CreateOrEdit methods all need updating because Id in the child is not the parent. If I was doing database first wouldn't I have the same issue? I thought the framework supported these situations.
I don't see how extending the user entity provides me the ability to have new display fields in the header or footer. Since I have been unable to find documentation on this please explain more as I am very intrigued in how the user entity controls the header and footer areas.
Thats not the answer! Everything was fine with refresh.bat however npm start results in hundreds of errors in service-proxies.ts ... more research.
So after some more digging into the Swagger documentation I found you can generate custom schema id's. I changed the Startup.cs code to add options.CustomSchemaIds(x => x.FullName) which results in the following for Swagger:
` //Swagger - Enable this line and the related lines in Configure method to enable swagger UI services.AddSwaggerGen(options => { options.SwaggerDoc("v1", new Info { Title = "SKUHive API", Version = "v1" }); options.DocInclusionPredicate((docName, description) => true);
//Note: This is just for showing Authorize button on the UI.
//Authorize button's behaviour is handled in wwwroot/swagger/ui/index.html
options.AddSecurityDefinition("Bearer", new BasicAuthScheme());
options.CustomSchemaIds(x => x.FullName);
});
`
The interface generated without issue. I will test to see if this causes any issues.
I am all ears if a better way is recommended with ANZ.
Thx