Exemplo n.º 1
0
        private void PrepareBaseAttribute(IBTAttribute attr)
        {
            var baseAttr = new BaseALAttribute(this, (BT.BaseBTAttribute)attr);

            baseAttr.JoinAlias = "t0";
            Attributes.Add(baseAttr);
            if (attr.IsIdentity)
            {
                IdColumn = baseAttr;
            }
        }
 private object GetBTName(IBTAttribute btAttribute)
 {
     if (btAttribute is RefBTAttribute)
     {
         var refAttr = (RefBTAttribute)btAttribute;
         return(refAttr.IdAttribute.Name);
     }
     else if (btAttribute is BaseBTAttribute)
     {
         var baseAttr = (BaseBTAttribute)btAttribute;
         return(baseAttr.Name);
     }
     else
     {
         throw new InvalidAttributeTypeException();
     }
 }