예제 #1
0
    string GetInsertedId(string app, string title, string createDate)
    {
        string condition = DataExtension.AndConditon(
            ItemsTSql.GetByApp(app),
            ItemsTSql.GetByTitle(title),
            ItemsTSql.GetByCreateDate(createDate)
            );
        DataTable dt = Items.GetItems("1", ItemsColumns.IidColumn, condition, ItemsColumns.IidColumn + " desc");

        if (dt.Rows.Count > 0)
        {
            return(dt.Rows[0][ItemsColumns.IidColumn].ToString());
        }
        return("");
    }