コード例 #1
0
 public virtual int GetMaxID()
 {
     return(SqlDatabaseHelper.GetMaxID(this.TableName));
 }
コード例 #2
0
        public static void InsertQueryCommand(string strQueryCommand, string strTableName, string strQueryKey)
        {
            DbCommand query = SqlDatabaseHelper.GetQuery(string.Format("INSERT INTO [dbo].[STTableQueries] ([STTableQueryID],[STTableQueryTableName],[STTableQueryKey],[STTableQueryCommand]) VALUES({0},'{1}','{2}','{3}')", (object)(SqlDatabaseHelper.GetMaxID("STTableQueries") + 1), (object)strTableName, (object)strQueryKey, (object)strQueryCommand));

            ((Database)SqlDatabaseHelper.database).ExecuteNonQuery(query);
        }