Nhibernate
摘要:1SessionFactory采取了线程安全的设计,可多个线程并发调用,一个数据库共享一个SessionFactory实例即可而Session是非线程安全的2Differences between Hibernate and NHibernatehttp://www.hibernate.org/360.html3 映射 3.1 实体映射 3.2 高级映射 自定义数据类型接口,User...
阅读全文
名词
摘要:O/R mapping 是指一种设计思想或实现机制O/R mapper 则是根据O/R原理设计的持久化框架,包括SQL语句生成,Cache,事务管理等建模中还有个Object Role Modeling..注意不同..
阅读全文
数据类型
摘要:ds.Relations.Add("NodeRelation", ds.Tables[0].Columns["SortID"], ds.Tables[0].Columns["ParentID"]);当DataSet创建Relations的时候严格要求两个列的数据类型相同..如果不同给出的报错是"父列和子列不具有类型匹配的列"..使用Visio设计的时候,注意类型的不同如果不同表中的字段有关联,确保...
阅读全文
Example
摘要:From:http://www.mertner.com/confluence/display/Gentle/3+-+Using+Gentle.NET1 保存 User user = new User( 42, "Ford Prefect" );Broker.Insert( user ); // save the user to the databaseKey key = new Key( type...
阅读全文