public virtual int GetMaxID() { return(SqlDatabaseHelper.GetMaxID(this.TableName)); }
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); }