2011年2月24日
摘要: 本文主要设计了一个简单通用的设计方案。如下建表:1.用户表 序号 中文名称 英文名称 备注 1 工号 U_Id 主键 2 密码 U_Pwd 3 姓名 U_Name 5 电话 U_Tel 6 邮箱 U_Mail 2.角色表 序号 中文名称 英文名称 备注 1 主键编号 RoleID 主键 2 角色编码 RoleCode 3 角色名称 RoleName 4 备注 Remark 3.资源表 序号 中文名称 英文名称 备注 1 主键编号 ResourceID 主键 2 父资源编号 ParentID 页面名称 3 资源编号 ResourceCode 页面控件 资源名称 ResourceName 4 备注 阅读全文
posted @ 2011-02-24 15:16 jackdesk 阅读(4764) 评论(0) 推荐(1) 编辑
摘要: NHibernate's methods of querying are powerful, but there's a learning curve. Longer term, Linq is the way to go, although it may not be as capable as Linq2Sql or Entity Framework (Hql and Criteria are arguably superior for advanced scenarios anyway).Get by primary key is built-in (session.Ge 阅读全文
posted @ 2011-02-24 10:44 jackdesk 阅读(11464) 评论(3) 推荐(7) 编辑