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
Post a Comment