Zoli
Zoli
CC#
Created by Zoli on 12/24/2024 in #help
Why event is not triggered correctly?
@SevenMgCreatine You are right it is not hit the breakpoint at all. I did not instantiated at all.
9 replies
CC#
Created by Zoli on 12/24/2024 in #help
Why event is not triggered correctly?
So somthing like WeakReferenceMessenger would be better fit for this?
9 replies
CC#
Created by Zoli on 12/16/2024 in #help
How to Filter Firebase Real-Time Data for the Logged-In User in a Maui Application?
Super, thanks. I will take a look, one question is it safe/secure to store firebase-service-account json on the Maui side?
13 replies
CC#
Created by Zoli on 12/16/2024 in #help
How to Filter Firebase Real-Time Data for the Logged-In User in a Maui Application?
That would be amazing 😄
13 replies
CC#
Created by Zoli on 12/11/2024 in #help
What is the proper way of keeping the state of vm when closing and returning back to the Maui app?
Are you suggesting that I implement a timer to save changes to the cache every 5 seconds without performing change detection? I’ve already created a test implementation that subscribes to changes for each property, including nested objects and collections. When a property in any nested object changes, an event is fired and propagated up to the root. However, I’ve noticed that when performing operations like adding/removing items in a collection or updating a property multiple times, multiple events are triggered in rapid succession. To address this and avoid excessive save operations, I introduced a timer with a delay of 3 seconds. If no new triggers occur within that period, the save operation is executed. While this approach technically works, I find it suboptimal and am curious if there are more efficient or elegant solutions to handle this scenario.
5 replies
CC#
Created by Zoli on 11/29/2024 in #help
Issue with Nested One-to-Many Relationships in SQLite-Net Extensions: LevelTwoModels Property Return
Swiching from Sqlite and it's extension to Ef solved this issue.
12 replies
CC#
Created by Zoli on 11/29/2024 in #help
Issue with Nested One-to-Many Relationships in SQLite-Net Extensions: LevelTwoModels Property Return
So based on your suggest this should be solvable with the following packages only:
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" /> <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" >
and just for the model: public class RootModel { public Guid Id { get; set; } public string? Name { get; set; } public ICollection<LevelOneModel> LevelOneModels { get; } = new List<LevelOneModel>(); } public class LevelOneModel { public Guid Id { get; set; } public string? Name { get; set; } public Guid RootModelId { get; set; } public RootModel RootModel { get; set; } }
12 replies
CC#
Created by Zoli on 11/29/2024 in #help
Issue with Nested One-to-Many Relationships in SQLite-Net Extensions: LevelTwoModels Property Return
I wanted to use SQLite and seemed legit to use the extension was built for. I was not expecting probably did not dig enough to realize it is possible to use ef on the device itself with migrations etc.
12 replies
CC#
Created by Zoli on 11/29/2024 in #help
Issue with Nested One-to-Many Relationships in SQLite-Net Extensions: LevelTwoModels Property Return
Well, this is a maui application and I did not find any other way to make this nested list one to many relation between the object. I wouldnt mind to get rid of it.
12 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Thank you so much for helping, clearing it up. I thought i have a working system but you reflected on what to improve.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
The reason I thought document would be better approcach because one workout can have many exercises and one exercise can have many sets so if i store the exercises and sets in another table the sets table will exponentialy grow large. So i thought if i encapsulate all related data to the workout would solve this issue. Also that particlar exercise/set cannot be part of any othet workout.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
So you see as a relation db SQL would be better fit for this and not document?
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Hmm just created a simplified data structure.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
No description
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
So I have done the followings, lucky I did not need so much modification. I've added identity management to the system on the api, creating users in an SQL table along with access and refresh tokens that include expiration dates. Now, all API endpoints—except for Login and Register—require a valid token to access. When an endpoint is called, the system checks the token's validity and expiration. If the token is expired, it regenerates a new one and stores it in SecureStorage. The stored token is then passed in the header for subsequent requests. This setup functions seamlessly, ensuring token validity whenever the app starts and has an internet connection. If this seems like a solid approach, my main remaining question is about linking MongoDB documents to specific users. Passing the userId directly from the MAUI client to the API endpoint doesn't seem optimal. Instead, when accessing an endpoint like GetAllMyStudents (my documents are way more complex), should the API validate the access token and use it to determine the user's ID, then filter documents in MongoDB based on that user ID?
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
Thanks for the links but my app is Maui native not Maui hybrid blazor.
116 replies
CC#
Created by Zoli on 10/30/2024 in #help
I’m looking for feedback on the security setup, which uses .NET MAUI, ASP.NET Core, and MongoDB.
haha no need 😄
116 replies