System.Data.SqlClient.SqlException: 从字符串转换日期和/或时间时,转换失败.
IDiaryProviderprovider=DiaryProvider.Create();Diarydiary=newDiary();diary.dTitle=this...
IDiaryProvider provider = DiaryProvider.Create();
Diary diary = new Diary();
diary.dTitle = this.dTitle.Text;
diary.dBody = this.dBody.Text;
diary.dDateTime = DateTime.Now.ToString();
provider.Insert(diary); 展开
Diary diary = new Diary();
diary.dTitle = this.dTitle.Text;
diary.dBody = this.dBody.Text;
diary.dDateTime = DateTime.Now.ToString();
provider.Insert(diary); 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询