コード例 #1
0
    public void InitControl(RsOneItemTable tableName)
    {
        string sql = "";

        sql += "select * from " + tableName.ToString();
        
        if (SqlHelper.IsSqlTableContainsColumn(Config.ConnectionString, tableName.ToString(), "Name"))
        {
            sql +=" order by [Name]";
        }

        InitControl(BaseCollection.ExecuteSql(tableName, sql));
    }
コード例 #2
0
 public void AddTable(RsOneItemTable tableName)
 {
     DropDownList1.Items.Add(new ListItem(tableName.ToString(), tableName.ToString("d")));
 }
コード例 #3
0
 public static string ToSelect(RsOneItemTable tableName, params object[] whereColVals)
 {
     return ToSelect(tableName.ToString(), whereColVals);
 }
コード例 #4
0
 public static string ToSelectAll(RsOneItemTable tableName)
 {
     return ToSelectAll(tableName.ToString());
 }