Ejemplo n.º 1
0
        public BusinessObjectPartialLogic AddPartialLogic(string code)
        {
            var logic = new BusinessObjectPartialLogic(Session);

            logic.BusinessObject = this;
            logic.Code           = code;
            return(logic);
        }
Ejemplo n.º 2
0
        public static BusinessObjectPartialLogic AddPartialLogic(this BusinessObject self, string code, string usingBlock = null)
        {
            var logic = new BusinessObjectPartialLogic(self.Session);

            logic.BusinessObject = self;
            if (usingBlock == null)
            {
                code = BusinessObjectCodeGenerateExtendesion.CommonUsing() + code;
            }
            logic.Code = new CsharpCode(code, logic);
            return(logic);
        }