public override string ToString() { BasePlugInAttribute attr = Attribute; return(attr == null?base.ToString() : string.Format(ObjectUtil.SysCulture, "注册名为{0}的CodeTable", attr.GetRegName(GetType()))); }
protected override DataTable FillDbData(TkDbContext context, DataSet dataSet) { using (SqlSelector selector = new SqlSelector(context, dataSet)) { BasePlugInAttribute attr = Attribute; TkDebug.AssertNotNull(attr, "需要设置CodeAttribute", this); string regName = attr.GetRegName(GetType()); string sql = Expression.Execute(Sql, selector); selector.Select(regName, sql); DataTable dataTable = dataSet.Tables[regName]; return(dataTable); } }