public BusinessObjectPartialLogic AddPartialLogic(string code) { var logic = new BusinessObjectPartialLogic(Session); logic.BusinessObject = this; logic.Code = code; return(logic); }
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); }