摘要: 数据库跟踪的结果:EF5.0使用__MigrationHistory.CreatedOn字段,是怎么来的?bug?EF5.0 建立__MigrationHistory表的语句如下,没有CreatedOn字段 CREATE TABLE [dbo].[__MigrationHistory] ( [MigrationId] [nvarchar](255) NOT NULL, [Model] [varbinary](max) NOT NULL, [ProductVersion] [nvarchar](32) NOT NULL, CONSTRAINT [PK_dbo.__MigrationHis... 阅读全文
posted @ 2013-03-21 16:18 墨尔 阅读(864) 评论(1) 推荐(0) 编辑
摘要: INSERT INTO [__MigrationHistory] ([MigrationId], [CreatedOn], [Model], [ProductVersion]) VALUES(...)INSERT INTO [__MigrationHistory] ([MigrationId], [Model], [ProductVersion]) values(....) 阅读全文
posted @ 2013-03-21 11:29 墨尔 阅读(678) 评论(0) 推荐(0) 编辑
摘要: 如上图,vs2012+Entity Framework 如果对应的实体类(entity)字段没有添加属性[key],[Required] 会提示 :has not keys defined下面这样是ok的。 public class MovieEntry { [Key] public int Id{get;set;} [Required] public string Topic { get; set; } public string direct { get; set; } public DateTime Release { get; set; } } 阅读全文
posted @ 2013-03-11 15:32 墨尔 阅读(821) 评论(0) 推荐(0) 编辑
摘要: 要点: Microsoft Visual Studio 2005 Web Deployment Projects下载安装 安装类Installer大概描述 安装过程中,通过WebServices验证序列号(License) 安装数据库(不使用osql.exe) 设置DCom组件的权限 设置网站文件夹的权限 安装日志 阅读全文
posted @ 2007-07-03 15:10 墨尔 阅读(295) 评论(0) 推荐(0) 编辑
摘要: String.prototype.trim = function(){ return this.replace(/(^[\s]*)|([\s]*$)/g, ""); String.prototype.ltrim = function(){ return this.replace(/(^[\\s]*)/g, ""); }String.prototype.rtime = function(){ re... 阅读全文
posted @ 2007-07-03 14:29 墨尔 阅读(320) 评论(0) 推荐(0) 编辑