摘要: 阅读全文
Head First设计模式悟道
2015-07-26 20:19 by zhishuru, 136 阅读, 0 推荐, 收藏, 编辑
摘要:暂时包括 策略模式,观察者,装饰模式,工厂模式,抽象工厂模式,后续会继续补充中,纯属个人总结用,不喜勿喷,源代码见:传送门public class NYPizzaIngredientFactory:PizzaIngredientFactory { public Dough cre... 阅读全文
entityframwork
2013-08-08 10:21 by zhishuru, 432 阅读, 0 推荐, 收藏, 编辑
摘要:entityframwork映射部分: public class NorthwindContext : DbContext { public DbSet Categories { get; set; } public DbSet Customers { get; set; } public DbSet Employees { get; set; } public DbSet Products { get; set; } public DbSet Orders { get; set; } pu... 阅读全文
NHibernate插入数据的列子
2012-05-18 17:39 by zhishuru, 350 阅读, 0 推荐, 收藏, 编辑
摘要:话不多说,直接贴源码:1.Model:public virtual int LogonID { get; set; } public virtual string Name1 { get; set; } public virtual string Password1 { get; set; } public virtual string EmailAddress { get; set; } public virtual DateTime LastLogon { get; set; }2.User.hbm.xml:<?xml version="1.0" encoding 阅读全文