コード例 #1
0
        public static OperationAddCountAttribute ToData(CdmOperationAddCountAttribute instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationAddCountAttribute obj = OperationBasePersistence.ToData <OperationAddCountAttribute>(instance, resOpt, options);

            obj.CountAttribute = Utils.JsonForm(instance.CountAttribute, resOpt, options);

            return(obj);
        }
コード例 #2
0
        public static OperationExcludeAttributes ToData(CdmOperationExcludeAttributes instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationExcludeAttributes obj = OperationBasePersistence.ToData <OperationExcludeAttributes>(instance, resOpt, options);

            obj.ExcludeAttributes = instance.ExcludeAttributes;

            return(obj);
        }
コード例 #3
0
        public static OperationAddAttributeGroup ToData(CdmOperationAddAttributeGroup instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationAddAttributeGroup obj = OperationBasePersistence.ToData <OperationAddAttributeGroup>(instance, resOpt, options);

            obj.AttributeGroupName = instance.AttributeGroupName;

            return(obj);
        }
コード例 #4
0
        public static OperationRenameAttributes ToData(CdmOperationRenameAttributes instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationRenameAttributes obj = OperationBasePersistence.ToData <OperationRenameAttributes>(instance, resOpt, options);

            obj.RenameFormat = instance.RenameFormat;
            obj.ApplyTo      = instance.ApplyTo;

            return(obj);
        }
コード例 #5
0
        public static OperationCombineAttributes ToData(CdmOperationCombineAttributes instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationCombineAttributes obj = OperationBasePersistence.ToData <OperationCombineAttributes>(instance, resOpt, options);

            obj.Select    = instance.Select;
            obj.MergeInto = Utils.JsonForm(instance.MergeInto, resOpt, options);

            return(obj);
        }
コード例 #6
0
        public static OperationArrayExpansion ToData(CdmOperationArrayExpansion instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationArrayExpansion obj = OperationBasePersistence.ToData <OperationArrayExpansion>(instance, resOpt, options);

            obj.StartOrdinal = instance.StartOrdinal;
            obj.EndOrdinal   = instance.EndOrdinal;

            return(obj);
        }
コード例 #7
0
        public static OperationReplaceAsForeignKey ToData(CdmOperationReplaceAsForeignKey instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationReplaceAsForeignKey obj = OperationBasePersistence.ToData <OperationReplaceAsForeignKey>(instance, resOpt, options);

            obj.Reference   = instance.Reference;
            obj.ReplaceWith = Utils.JsonForm(instance.ReplaceWith, resOpt, options);

            return(obj);
        }
コード例 #8
0
        public static OperationAlterTraits ToData(CdmOperationAlterTraits instance, ResolveOptions resOpt, CopyOptions options)
        {
            if (instance == null)
            {
                return(null);
            }

            OperationAlterTraits obj = OperationBasePersistence.ToData <OperationAlterTraits>(instance, resOpt, options);

            obj.TraitsToAdd               = CopyDataUtils.ListCopyData(resOpt, instance.TraitsToAdd, options);
            obj.TraitsToRemove            = CopyDataUtils.ListCopyData(resOpt, instance.TraitsToRemove, options);
            obj.ArgumentsContainWildcards = instance.ArgumentsContainWildcards;
            obj.ApplyTo = instance.ApplyTo;

            return(obj);
        }