...Detail1Entity: a failure occured when adding the Id of the class ---> System.ArgumentException: The() at NHibernate.Impl.SessionFactoryImplpublic virtual int Id { get; set; }
public
在我的mvc应用程序中,我有两个表: detail(srNo,ID,work),master(ID,name,plan),它们使用"ID“字段与从细节到主的外键关系关联。ID字段是主表的主键。但是当我想要删除最近添加了ID值的行(grom linq to sql),这是在主表中添加的,它给我的异常是外键关系ship在那里.....谢谢
如何使用NHibernate的内置linq提供程序编写查询,包括紧急加载和对细节的限制?public virtual string Title { get; set; }下面的查询显示了我需要的内容,但并没有立即加载 from detail in master.Books
where detail.Title