c# - Remove element of unilateral many to many relation -


for mapping below:

hasmanytomany(x => x.secondobjectslist)                .parentkeycolumn("firstobjectoid")                .childkeycolumn("secondobjectoid")                .cascade.merge()                .cascade.delete()                .table("firsttosecond"); 

the second object doesn't know first, i.e. doesn't have property firstobjectslist, doesn't need know second objects exist.

i need delete first object, there entry in many many table.

what approach?


Comments

Popular posts from this blog

serialization - Convert Any type in scala to Array[Byte] and back -

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -