05 2012 档案

EF4.1 用 .net 4.0 编译
摘要:EF4.1 用 .net 4.0 编译 如果用.net 4.5 编译 MaxLength 会找不到的 阅读全文

posted @ 2012-05-25 01:50 norsd 阅读(103) 评论(0) 推荐(0)

Queue<T> 需要注意的多线程冲突问题
摘要:最近在做一个AsyncEvent,内部使用了Queue,因为效率问题,所以不敢用lock,以为Queue也就push一个T,不用同步。 结果今天就崩了,Queue.Enqueue 出错,提示很奇怪: Source array was not long enough. Check srcIndex... 阅读全文

posted @ 2012-05-23 10:47 norsd 阅读(133) 评论(0) 推荐(0)

MySQL CodeFirst "The provider did not return a ProviderManifestToken string."
摘要:使用MySQL 进行 CodeFirst 在 Context.Add的时候 , 抛出异常 The provider did not return a ProviderManifestToken string. 观察异常的 innerException : {"Variable 'charac... 阅读全文

posted @ 2012-05-11 13:38 norsd 阅读(236) 评论(0) 推荐(0)

EntityFramework 4.1 如何加入项目
摘要:C:\Program Files (x86)\Microsoft ADO.NET Entity Framework 4.1\Binaries 阅读全文

posted @ 2012-05-10 15:33 norsd 阅读(107) 评论(0) 推荐(0)

EntityFramework 4.3.1 CodeFirst with MySQL (.net connector version<6.5.4)
摘要:CodeFirst 虽然很好,但是为了驯服她,好费劲啊。 MySQL .net connector 版本号 6.5.4 在 EF 4.3.1 中无法顺利执行 Code First 操作。 她会抛出异常,信息如下: You have an error in your SQL... 阅读全文

posted @ 2012-05-10 15:10 norsd 阅读(106) 评论(0) 推荐(0)

Code First一些问题
摘要:1. Unmapped 之类的属性来自 : using System.ComponentModel.DataAnnotations; 2. MySQL 的话一般( connector 6.5.4) , 如果是 string 的话 就给map成: mediumtext , 这时候随便你怎... 阅读全文

posted @ 2012-05-09 21:15 norsd 阅读(124) 评论(0) 推荐(0)

EntityFrameWork
摘要:4.1 下载 http://www.microsoft.com/en-us/download/details.aspx?id=8363 教程http://tech.it168.com/a2011/0719/1220/000001220362_all.shtml 阅读全文

posted @ 2012-05-09 02:29 norsd 阅读(120) 评论(0) 推荐(0)

Visual Studio 有用的插件
摘要:1.Nuget http://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c 阅读全文

posted @ 2012-05-09 02:19 norsd 阅读(127) 评论(0) 推荐(0)

导航