Hi All
I have just installed studio 2008 and created a new winforms app.
I have added a sql express db to the project with 1 table called LogEntries
containing 2 columns: LogEntryID (int, auto inc) and LogEntryData (nvarchar
MAX)
I am running some simple LINQ code:
using (LogEntryDataContext db = new LogEntryDataContext())
{
LogEntry log = new LogEntry();
log.LogEntryData = data; //variable passed in
db.LogEntries.InsertOnSubmit(log);
db.SubmitChanges();
}
All runs perfect with no errors but the table never seems to contain any new
rows??
I am stumped as I get no errors? Is there something I am overlooking?
Thanks
Chev