Dream_TT 2013-05-19 05:02:58
asfs

[script]alert('测试用一下, 我也需要做一个这样的编辑器,看一下CSDN是怎么替换的 ')[/script]
...全文
101 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Dream_TT 2013-05-27
  • 打赏
  • 举报
回复
引用 1 楼 caozhy 的回复:
google asp.net ubb代码
老大 我想问您以下 我是EF模版的 public partial class Order { public int o_id { get; set; } public int o_clientId { get; set; } public int o_source { get; set; } public string o_contactPerson { get; set; } public string o_phone { get; set; } public string o_telePhone { get; set; } public string o_email { get; set; } public string o_qq { get; set; } public string o_demand { get; set; } public string o_demandImg { get; set; } public Nullable<int> o_score { get; set; } public Nullable<System.DateTime> o_handleTime { get; set; } public string o_requirement { get; set; } public Nullable<System.DateTime> o_createTime { get; set; } public Nullable<int> o_createMan { get; set; } public Nullable<int> o_urgent { get; set; } public Nullable<bool> o_isAllocation { get; set; } public Nullable<int> o_handleStatu { get; set; } public string o_mentors { get; set; } public Nullable<decimal> o_workHours { get; set; } public string o_handlingMethod { get; set; } public string o_Remarks { get; set; } public Nullable<bool> o_isDel { get; set; } public Nullable<System.DateTime> o_endTime { get; set; } } } 我想新增: Models.DFManageSystemEntities db = new Models.DFManageSystemEntities(); try { Models.Order order = new Models.Order() { o_clientId = Convert.ToInt32(form["o_clientId"]), o_source = Convert.ToInt32(form["o_source"]), o_contactPerson = form["o_contactPerson"], o_phone = form["o_phone"], o_telePhone = form["o_telePhone"], o_email = form["o_email"], o_qq = form["o_qq"], o_handleTime = Convert.ToDateTime(form["o_handleTime"]), o_urgent = Convert.ToInt32(form["o_urgent"]), o_requirement = form["o_requirement"], o_createTime = DateTime.Now, o_isAllocation = false }; db.Orders.Add(order); int v = db.SaveChanges(); } 因为有些列我没给给值 就报错了 新增不了 有什么能解决这个问题吗?
threenewbee 2013-05-19
  • 打赏
  • 举报
回复
google asp.net ubb代码

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧