我在Controller中尝试了什么
private void AddNewImpIdeas()
{
using (WCMTablesDataContext myDb = new WCMTablesDataContext())
{
ImprovementIdeasTracking ImprvInfo = new ImprovementIdeasTracking();
ImprvInfo.Submitted = //the c code is not populating for submitted
myDb.ImprovementIdeasTrackings.InsertOnSubmit(ImprvInfo);
myDb.SubmitChanges();
var ideas = from i in myDb.ImprovementIdeasTrackings select i;
我已将我的控制器文件粘贴到https://jsfiddle.net/c4ft8pjt/
答案 0 :(得分:1)
using (WCMTablesDataContext myDb = new WCMTablesDataContext())
{
ImprovementIdeasTracking ImprvInfo = new ImprovementIdeasTracking();
ImprvInfo.Submitted = //the c code is not populating for submitted
myDb.ImprovementIdeasTrackings.Add(ImprvInfo);
myDb.SaveChanges();
var ideas = from i in myDb.ImprovementIdeasTrackings select i;