This question is locked. New answers and comments are not allowed.
Ok,
I am totally new to not only your ORM but MVVM...I believe I understand the basic concepts but every time I look things up I find someone doing something a different way!
What I have done so far...
I have a database with several tables. I have created a blank solution and added a Telerik Open Access ORM Class Library, MastersModel. I run the wizard and add a database first model and have it use the new Generate INotifyChanged and IDataError Options so I can use MVVM. Thats great! I am able to make minor changes to the model and everything builds and is happy!
I Then created a second project called MastersUI and its a WPF app. I copied the app.config for the connection string and added OpenAccess references. Now what! I'm lost. I created some folders to separate things up a little (Views\ViewModles). I created a class called TitlesViewModel but now I am lost...how do I query the data. I could use dbcontext in the viewmodel to get records using Linq but that breaks the INotifyChanged because I have to loop thorough the records to get them in to my observable collection. I can include snippets if needed.
I guess a newb just needs a little direction. I have used dbContext before to get data from your models with Linq and that was so easy
I thought why not include this in my MVVM learning!!! HA!
Thanks in advanced for any help!!!!
I am totally new to not only your ORM but MVVM...I believe I understand the basic concepts but every time I look things up I find someone doing something a different way!
What I have done so far...
I have a database with several tables. I have created a blank solution and added a Telerik Open Access ORM Class Library, MastersModel. I run the wizard and add a database first model and have it use the new Generate INotifyChanged and IDataError Options so I can use MVVM. Thats great! I am able to make minor changes to the model and everything builds and is happy!
I Then created a second project called MastersUI and its a WPF app. I copied the app.config for the connection string and added OpenAccess references. Now what! I'm lost. I created some folders to separate things up a little (Views\ViewModles). I created a class called TitlesViewModel but now I am lost...how do I query the data. I could use dbcontext in the viewmodel to get records using Linq but that breaks the INotifyChanged because I have to loop thorough the records to get them in to my observable collection. I can include snippets if needed.
I guess a newb just needs a little direction. I have used dbContext before to get data from your models with Linq and that was so easy
I thought why not include this in my MVVM learning!!! HA!
Thanks in advanced for any help!!!!