I am using EF 5 in VS 2012. I am trying to save a new record to a table but is not getting saved in the table and also no error is thrown. Please help . I am attaching my code.
using (TestEntities context = new TestEntities(new TestEntityConnectionManager("Testconn").ConnectionString))
{
var newCan = new Can
{
CanGUID = new Guid(canGuid),
CanName = canName,
CanDescription = canDescription,
DesignCandidateID = designCandidateId,
MigrationDataXml = migrationDataXml,
PersonID = 1,
LastModifiedPersonID = 1,
CreationDate = DateTime.Now,
LastModifiedDate = DateTime.Now,
};
context.Cans.AddObject(newCan);
var paramOut = context.SaveChanges();
retval = paramOut.ToString();