private static void RemRelacao(this IAbstractDataContext context, object obj, RelacaoAttribute relacao, bool inRelacao) { if (relacao == null) { return; } if (obj is IList) { context.RemLista(obj as IList, inRelacao); } else if (obj is object) { context.RemObjeto(obj as object); } }