Sygmond
Is using a blazor component from a service a good idea?
Short version:
Is better to use components via a service compared with the standard practice of placing the component where is needed and using it directly?
The service would have to be injected in the component and in the page where the component needs to be used. The service would hold the business logic, the component will act as UI only and any functions needed in the component would be executed from the service.
2 replies
❔ What’s the point of Database.BeginTransaction?
Great example, thank you! What happens if the user closes or refreshes the browser in between? Before Commit is hit. My class in Disposable (Accesor.cs) but the dispose method is not hit or is hit very later, after 5 mins. All this time the changes are not yet rolledback? Should I always use a “using block”?
9 replies