public IALAttribute Clone(IALInterface newParent)
        {
            var clone = new BaseALAttribute(newParent, (BaseBTAttribute)this.BTAttribute);

            clone.Name = this.Name;
            return(clone);
        }
Exemplo n.º 2
0
 public RefALAttribute(IALInterface parentInterface, DimensionALInterface referencedDim, BT.RefBTAttribute btAttribute)
 {
     this.ParentInterface     = parentInterface;
     this.ReferencedDimension = referencedDim;
     this.BTAttribute         = btAttribute;
     this.Name = ReferencedDimension.IdColumn.Name;
 }
Exemplo n.º 3
0
        public IALAttribute Clone(IALInterface newParent)
        {
            var clone = new RefALAttribute(newParent, ReferencedDimension, (RefBTAttribute)BTAttribute);

            clone.Name = this.Name;
            return(clone);
        }
Exemplo n.º 4
0
 public bool ConstainsDimInterface(IALInterface ifa)
 {
     return(this.dim.Name == ifa.Name ||
            this.Attributes
            .Select(a => a.ParentInterface)
            .Distinct()
            .Where(i => i == ifa)
            .Count() > 0);
 }
 public BaseALAttribute(IALInterface parentInterface, BaseBTAttribute attr)
 {
     ParentInterface = parentInterface;
     BTAttribute     = attr;
     Name            = CalculateName();
 }
Exemplo n.º 6
0
 private void GenerateDropInterface(StringBuilder sb, IALInterface ifa)
 {
     sb.Append($"IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[{ifa.Name}]') AND type in (N'U'))\n");
     sb.Append($"drop table {ifa.Name}\n".Indent(1));
     sb.Append("go\n\n");
 }