ORM|代码生成

NHibernate和CodeSmith
摘要: 可以用此工具来测试ESQL,但目前 eSqlBlast 最新版本不支持VS2010生成的EDM,也就是EF4,如果要使用,可以使用VS2008 SP1生成并使用,如果没有环境,可以下载附件中的文件,并安装数据库即可!阅读全文
posted @ 2011-01-22 12:45 Astar 阅读(471) | 评论 (0) 编辑
摘要: Entity Framework 4.0为实体提供了简单传统CLR对象(Plain Old CLR Object / POCO)支持。实体对象可以独立于EF存在,由此EF更好地支持了测试驱动开发(test-driven development)和 领域驱动设计(domain-driven design)。同时,EF仍旧可以帮助跟踪POCO实体的变化,允许延迟加载,也会自动修正对导航属性(navigation properties)和外键的改动。阅读全文
posted @ 2011-01-14 17:38 Astar 阅读(1525) | 评论 (5) 编辑
摘要: 统计函数、字符串函数、数字函数、GUID、类型转换等。阅读全文
posted @ 2011-01-07 08:39 Astar 阅读(809) | 评论 (0) 编辑
摘要: 新版本中的 ADO.NET 以新实体框架为特色。它使开发人员可以通过对象模型(而不是逻辑/关系数据模型)专注于数据。实体框架有助于将逻辑数据架构抽象为概念模型,并且允许以多种方式通过对象服务和名为“EntityClient”的新数据提供程序与概念模型交互。阅读全文
posted @ 2011-01-03 16:26 Astar 阅读(1791) | 评论 (2) 编辑
摘要: 自己很早以前写过一系列CodeSmith的使用方法。今天把它打包为一个PDF文档供大家当做备忘录。本文档包含了CodeSmith的基本使用和三层架构各层代码模板的编写教程。还有整理的CodeSmith API大全和常用技巧。

阅读全文
posted @ 2010-04-16 09:27 Astar 阅读(856) | 评论 (0) 编辑
摘要: CodeSmith错误总结和收集.随着使用不断更新中......阅读全文
posted @ 2008-10-13 10:28 Astar 阅读(310) | 评论 (1) 编辑
摘要: 其它功能,快捷键,常用技巧阅读全文
posted @ 2008-10-13 10:25 Astar 阅读(718) | 评论 (0) 编辑
摘要: 利用SchemaExplorer中的类:TableSchema,ColumnSchema来制造一个实体类.阅读全文
posted @ 2008-10-13 10:23 Astar 阅读(341) | 评论 (0) 编辑
摘要: CodeSmith与数据库的联系,在CodeSmith中自带一个程序集SchemaExplorer.dll,这个程序集中的类主要用于获取数据库中各种对象的结构。 <%@ Property Name="SourceTable" Type="SchemaExplorer.TableSchema" Default="" Optional="False" Category="Context" Description="源表名" %> <%@ Property Name="SourceDB" Type="SchemaExplorer.DatabaseSchema" Default="" Optional="False" Category="Context" Description="" OnChanged="" Editor="" EditorBase="" Serializer="" %> 阅读全文
posted @ 2008-10-13 10:21 Astar 阅读(583) | 评论 (0) 编辑
摘要: CodeSmith对象 代码模板对象(CodeTemplate Object) 在模板中,“this”(或者“Me”在VB.NET中)在当前模板中代码代码模板对象。 阅读全文
posted @ 2008-10-13 10:19 Astar 阅读(269) | 评论 (0) 编辑
摘要: 下载: 官方网站:http://www.codesmithtools.com/ 5.0破解文件下载:http://kewlshare.com/dl/0538fcf454d3/CodeSmith.5.0.Professional.Incl.Patch.DTCG.rar.html 资料: http://blog.sina.com.cn/s/articlelist_1229294631_3_1.html http://www.cnblogs.com/Terrylee/category/44974.html 阅读全文
posted @ 2008-10-13 10:17 Astar 阅读(564) | 评论 (0) 编辑