public IALAttribute Clone(IALInterface newParent) { var clone = new BaseALAttribute(newParent, (BaseBTAttribute)this.BTAttribute); clone.Name = this.Name; return(clone); }
public RefALAttribute(IALInterface parentInterface, DimensionALInterface referencedDim, BT.RefBTAttribute btAttribute) { this.ParentInterface = parentInterface; this.ReferencedDimension = referencedDim; this.BTAttribute = btAttribute; this.Name = ReferencedDimension.IdColumn.Name; }
public IALAttribute Clone(IALInterface newParent) { var clone = new RefALAttribute(newParent, ReferencedDimension, (RefBTAttribute)BTAttribute); clone.Name = this.Name; return(clone); }
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(); }
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"); }