Exemple #1
0
        public static AlternateOf CreateNew()
        {
            var tomAlternateOf = new TOM.AlternateOf();
            var obj            = new AlternateOf(tomAlternateOf);

            obj.Init();
            return(obj);
        }
Exemple #2
0
        internal static AlternateOf CreateFromMetadata(Column parent, TOM.AlternateOf metadataObject)
        {
            var obj = new AlternateOf(metadataObject);

            parent.MetadataObject.AlternateOf = metadataObject;

            obj.Init();

            return(obj);
        }
Exemple #3
0
        public AlternateOf AddAlternateOf(Column column = null, SummarizationType summarization = SummarizationType.Sum)
        {
            if (this.AlternateOf == null)
            {
                this.AlternateOf = AlternateOf.CreateNew();
            }

            if (column != null)
            {
                this.AlternateOf.BaseColumn = column;
            }
            this.AlternateOf.Summarization = summarization;
            return(this.AlternateOf);
        }
Exemple #4
0
        protected override void Init()
        {
            if (Handler.CompatibilityLevel >= 1400)
            {
                Variations          = new VariationCollection("Variations", MetadataObject.Variations, this);
                ObjectLevelSecurity = new ColumnOLSIndexer(this);
            }

            if (Handler.CompatibilityLevel >= 1460)
            {
                if (MetadataObject.AlternateOf != null)
                {
                    this.AlternateOf = AlternateOf.CreateFromMetadata(this, MetadataObject.AlternateOf);
                }
            }

            base.Init();
        }