摘要: 本章来看看Castle ActiveRecord中的级联(cascade)操作还是以post和comment为例post.cs 修改为 1: [ActiveRecord("Posts")] 2: public class Post : ActiveRecordBase<Post> 3: { 4: [PrimaryKey("PostId")] 5: public int Id { get; set; } 6: 7: [Property] 8: public string Subject { get; set; } ... 阅读全文
posted @ 2012-10-30 00:16 Ian.w 阅读(451) 评论(2) 推荐(1)