- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 Queue<T> 需要注意的多线程冲突问题
最近在做一个AsyncEvent,内部使用了Queue,因为效率问题,所以不敢用lock,以为Queue也就push一个T,不用同步。结果今天就崩了,Queue.Enqueue 出错,提示很奇怪: Source array was not long enough. Check srcIndex and length , and the array's lower bounds.bing了一
2012-05-23 10:47:12 4748
原创 MySQL CodeFirst "The provider did not return a ProviderManifestToken string."
使用MySQL 进行 CodeFirst 在 Context.Add的时候 , 抛出异常 The provider did not return a ProviderManifestToken string.观察异常的 innerException : {"Variable 'character_set_client' can't be set to the value of 'ucs
2012-05-11 13:38:24 5451 1
原创 EntityFramework 4.1 如何加入项目
C:\Program Files (x86)\Microsoft ADO.NET Entity Framework 4.1\Binaries
2012-05-10 15:33:42 1692
原创 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 syntax; check the manual that corresponds to
2012-05-10 15:10:18 2178
原创 Code First一些问题
1. Unmapped 之类的属性来自 : using System.ComponentModel.DataAnnotations;2. MySQL 的话一般( connector 6.5.4) , 如果是 string 的话 就给map成: mediumtext , 这时候随便你怎么写: maxlength , stringlength 都没有用,不会变成 varchar(
2012-05-09 21:15:42 886
原创 EntityFrameWork
4.1 下载http://www.microsoft.com/en-us/download/details.aspx?id=8363教程http://tech.it168.com/a2011/0719/1220/000001220362_all.shtml
2012-05-09 02:29:29 677
原创 Visual Studio 有用的插件
1.Nugethttp://visualstudiogallery.msdn.microsoft.com/27077b70-9dad-4c64-adcf-c7cf6bc9970c
2012-05-09 02:19:40 595
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人