摘要:
假如有AB两表,A为主,B为子:已知A表ID,查B表数据ICriteria criteriaTotal = session.CreateCriteria().CreateCriteria("A"); criteriaTotal.Add(Restrictions.... 阅读全文
摘要:
需要再映射属性字段增加Not.Insert()Map(x => x.Provrince, "PROVRINCE").Not.Insert(); Map(x => x.City, "CITY").Not.Insert(); 阅读全文