private void detach_SanPhams(SanPham entity)
 {
     this.SendPropertyChanging();
     entity.Loai = null;
 }
 private void attach_SanPhams(SanPham entity)
 {
     this.SendPropertyChanging();
     entity.Loai = this;
 }
 partial void UpdateSanPham(SanPham instance);
 partial void DeleteSanPham(SanPham instance);
 partial void InsertSanPham(SanPham instance);