sql server - C# Delete problem with an object relating to another object -


we have 2 assemblies , b b extends a. b has property of type in a

if have record of b in de database , delete wich used b record removed

how can prevent in code because show delete link or not if can or can't delete a. because b need type of , if in used record of b, may not removed.

we use nhibernate orm.

you can check relations in sql or triggers witch can use prevent deleting

and delete link think must check code , write method it


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -