Hi I am working with FreshMvvm and I can put multiple table in one data service and registered on single IOC but I need to do it in way that I can have separation IOC's for tables?
Is there any example method available?
Can you please let me know any example of freshMVvm with Sqlite.net.pcl.
I try to create table using the method of FreshIOC.Container.Register<IDatabaseService, DatabaseService>();
public class DatabaseService : IDatabaseService
static object locker = new object();
_database = DependencyService.Get<IDatabase>().DBConnect();
I can see that all the table has been created but the Sql Exception has thrown and it has been attached
This is not really to do with FreshMvvm.
It's a issue with your application, not sure you've given enough details for anyone to help you solve it.
Hi @MichaelRidland , thank you for coming back and yes you are correct and I made a mistake on my application and now it is working as expected and I just wanted to know whether the FreshMvvm supports Multiple ICS's?
Because I have models and generic type of Repository and I have created the repository for each table and bind them with ModelView/PageModel and views/Pages. so I have to put the generic type to put IOC.Register as shown below:-
public class App : Application
// The root page of your application
MainPage = new NavigationPage(new LaunchPage(this));
I have attached some of my code sniper and please let me know whether it is possible to do!
This code is incorrect, why would you register ObjectARepository for the interface IObjectBRepository? It's likely you'll need a ObjectBRepository.
Thank Michael and yes, that is correct that was my typo mistake.
But now everything is working great with one IOC's and my next step is to split it out as my previous design for decouple the codes. If I am stack I will shout on here
I am using FreshMvvm and FreshEssential to binding the data's but I couldn't marry both together is there any example help available with both mix. Because when I use FreshEssential example with FreshMvvm it is throwing a error as "FreshTinyIoC.TinyIoCResolutionException: Unable to resolve type: IoT.CustomerPage"
Can you please let me know any single example with both using
Would you please help me with Modelview with FreshMvvm and FreshEssential.
Please look at your output window for more information on what the issues is.
Hi @MichaelRidland , thank you for the replay and I have been trying for two days but could not be able to find rest of the trace as it is because of Xaml trace doesn't give much information. However, if you could tell me how to marry FreshMvvm and FreshEssential together it would be great help.
So what the output from the Window?
Hi @MichaelRidland ,
Sorry for the late response due to dredged to a new project. Yes, it was my mistake that I did not include the reference in the Android project and after that is working and I have saved lots of code now great tool.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies