Hi @Cenk ,
Your question is too broad, so I can just give some suggestions, you can refer to them and have a try, if you meet any issue when developing the application, please feel free to post in this forum.
For importing orders/order details via excel, how should I design classes/models?
It depends on your needs and excel data, since the entities contain relationship, you could refer to the following tutorial to configure relationship between the entities:
EF Core Relationships
Configuring One To Many Relationships in Entity Framework Core
Then, when insert/load the related entities, you can use the navigation property. Refer to the following article to load the related entities:
EF Core Loading Related Data
Eager Loading of Related Data
After creating the model, you can refer to the following link to implement the CRUD operations:
Blazor Server App CRUD With Entity Framework Core In .Net 5
After excel import (orders/order details data can be 15 columns) how can I fit all of the columns (or any other ideas) on the page?
To load all related entity's property, you can use the navigation property. Or you can create a View Model, which contains all the required properties for a view.
And last but not least, there should be roles for the users in order to do some operations like editing or adding. Is there a way to authorize users based on data?
Refer to the Secure ASP.NET Core Blazor Server apps and use the Scaffold Identity into a Blazor Server project, after that you can use the Asp.net Core Identity to achieve the Role-Based Authorization.
You can also search "How to implement role based authorization in Blazor Server" using Google or Bing, there are multiple tutorials or sample online.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Dillion