please show me a demo.
Thanks.
please show me a demo.
Thanks.
Create DAL object
Assign values to all properties except primary key property
Call Save()
Subsonic takes care of the identity keys itself you need not worry.
I don't know if this has made it to the current version, but Rob showed an example to use a lambda expression to insert a record:
db.Insert.Into<Northwind.Region>(x => x.RegionID, x => x.RegionDescription)
.Values(6, "Hawaii").Execute();
http://blog.wekeroad.com/subsonic/subsonic-3-0-preview-1-linq-has-landed/