This question is locked. New answers and comments are not allowed.
Hi,
I am new enough to this and have been looking through your data storage documentation particularly in relation to the insert statements.
I see you recommend using the below syntax for an insert i.e. creating a class and then doing the below -
context.Insert<CarOwners>(new CarOwners() { OwnerID = 1, Name="Paul Grohe", Age=33, Alive = true, DateBorn=new DateTime(1980,7,23) });
Is there anything wrong with using the below to do an insert instead of the above? I just want to be sure that there is not something I am missing?
Thanks
Dim context = New Telerik.Storage.Extensions.Context("HH_DB", Telerik.Storage.Extensions.DatabaseLocation.Local)
context.GetScalar(Of Integer)("Insert into payments (Kid, AccountName, AddressLine1) values ('65', '" & revNo & "', '36')")
context.SaveChanges()
context.CloseDatabase()