private static string TranslateCascadeEnum(ManyRelationCascadeEnum cascadeEnum) { String cascade = null; if (cascadeEnum != ManyRelationCascadeEnum.None) { if (cascadeEnum == ManyRelationCascadeEnum.SaveUpdate) { cascade = "save-update"; } else if (cascadeEnum == ManyRelationCascadeEnum.AllDeleteOrphan) { cascade = "all-delete-orphan"; } else { cascade = cascadeEnum.ToString().ToLower(); } } return(cascade); }
private static string TranslateCascadeEnum(ManyRelationCascadeEnum cascadeEnum) { String cascade = null; if (cascadeEnum != ManyRelationCascadeEnum.None) { if (cascadeEnum == ManyRelationCascadeEnum.SaveUpdate) { cascade = "save-update"; } else if (cascadeEnum == ManyRelationCascadeEnum.AllDeleteOrphan) { cascade = "all-delete-orphan"; } else { cascade = cascadeEnum.ToString().ToLower(); } } return cascade; }