1
Answer

How to insert data in sql database using MVVM pattern?

Rohit Nair

Rohit Nair

7y
155
1
Hello ,
 
I am new bie on MVVM pattern could anyone please help me out of how to insert data in sql using MVVM.I have no idea about RelayCommand,RaisedProperty.I just want a simple explanation of how the view along with model communicate with  viewmodel  
Answers (1)
0
eksypnos123

eksypnos123

NA 65 0 20y
Much easier to create an insert command object and then run it using executeNonQuery() You just set the value for the Name, ID will be handled by the database. and by the way, this is C# forum, so what's this Dim overthere?