コード例 #1
0
        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);
        }
コード例 #2
0
		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;
		}