2018年4月18日

C#格式化字符串中转义大括号“{}”

摘要: 今天,用C#写程序操作Excel,读取单元格内容根据所需格式生成字符串,使用String.Format(string format,object arg0)方法。以前只知“{0}”为索引占位符(即格式项),与参数列表中的第一个对象相对应,格式设置过程将每个格式项替换为对应对象的值的文本表示形式。但这 阅读全文

posted @ 2018-04-18 17:20 大西瓜3721 阅读(1580) 评论(0) 推荐(0)

记录EntityValidationErrors的详细信息

摘要: 0.一个问题 使用过EF的人相信都会遇到Validation failed for one or more entities. See ‘EntityValidationErrors’这种异常,这是由于EF在写入数据库前对实体验证不通过引起的异常(如果没有设置Configuration.Valida 阅读全文

posted @ 2018-04-18 10:52 大西瓜3721 阅读(276) 评论(0) 推荐(0)

c# 4.0 - how to i SMTP with c# 4/.NET 4 to port 465/SSL (...

摘要: first, i've discovered through trial and error that c# 4/.NET 4 has some serious limitations which are to me unexplainable. Microsoft is not supportin 阅读全文

posted @ 2018-04-18 00:14 大西瓜3721 阅读(374) 评论(0) 推荐(0)

导航